From 8628dc91418b1220dd504397c0f1f842a224fc30 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Sun, 28 Jan 2024 16:33:45 +0100 Subject: [PATCH] Updated protobuf to 26.x --- .github/workflows/c-cpp.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/msvc-analysis.yml | 2 +- CMakeLists.txt | 6 +- README.md | 4 +- external/src/Tari/proto/gRPC/base_node.pb.cc | 3621 ++++++----- external/src/Tari/proto/gRPC/base_node.pb.h | 5490 ++++++++--------- external/src/Tari/proto/gRPC/block.pb.cc | 712 ++- external/src/Tari/proto/gRPC/block.pb.h | 812 ++- external/src/Tari/proto/gRPC/network.pb.cc | 506 +- external/src/Tari/proto/gRPC/network.pb.h | 876 ++- .../src/Tari/proto/gRPC/sidechain_types.pb.cc | 763 +-- .../src/Tari/proto/gRPC/sidechain_types.pb.h | 953 ++- .../src/Tari/proto/gRPC/transaction.pb.cc | 966 +-- external/src/Tari/proto/gRPC/transaction.pb.h | 895 ++- external/src/Tari/proto/gRPC/types.pb.cc | 1071 ++-- external/src/Tari/proto/gRPC/types.pb.h | 1335 ++-- external/src/protobuf | 2 +- 18 files changed, 8682 insertions(+), 9336 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index d2a99c2..cb1ce55 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -115,7 +115,7 @@ jobs: strategy: matrix: config: - - {os: ubuntu-20.04, c: gcc, cpp: g++, flags: ""} + - {os: ubuntu-20.04, c: gcc-8, cpp: g++-8, flags: "-Wno-lto-type-mismatch"} - {os: ubuntu-20.04, c: gcc-11, cpp: g++-11, flags: ""} - {os: ubuntu-22.04, c: gcc-12, cpp: g++-12, flags: ""} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 66fbdf5..fa12f8f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -26,7 +26,7 @@ on: jobs: analyze: name: Analyze - timeout-minutes: 20 + timeout-minutes: 30 runs-on: ubuntu-latest permissions: actions: read diff --git a/.github/workflows/msvc-analysis.yml b/.github/workflows/msvc-analysis.yml index 1252f3a..2666b37 100644 --- a/.github/workflows/msvc-analysis.yml +++ b/.github/workflows/msvc-analysis.yml @@ -28,7 +28,7 @@ env: jobs: analyze: name: Analyze - timeout-minutes: 15 + timeout-minutes: 30 runs-on: windows-latest steps: diff --git a/CMakeLists.txt b/CMakeLists.txt index 30be080..0f9fde8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) project(p2pool) message(STATUS "Build environment: @@ -23,9 +23,7 @@ option(DEV_WITH_ASAN "[Developer only] Compile with address sanitizer" OFF) option(DEV_CLANG_TIDY "[Developer only] Compile for clang-tidy" OFF) option(DEV_TRACK_MEMORY "[Developer only] Track memory allocations" OFF) -if (${CMAKE_VERSION} VERSION_GREATER "3.5.2") - set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT p2pool) -endif() +set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT p2pool) add_subdirectory(external/src/protobuf) set(LIBS ${LIBS} libprotobuf) diff --git a/README.md b/README.md index 7d7caf2..3d1eff0 100644 --- a/README.md +++ b/README.md @@ -230,7 +230,9 @@ PAUSE ## Build instructions Only 64-bit builds are supported, in particular ARMv7 or older CPUs are not supported. The reason is that RandomX hashing algorithm is too slow in 32-bit mode, and P2Pool needs to check new blocks very fast to keep up with other nodes. -Please see the relevant instructions for your platform: +### Prerequisites +- cmake >= 3.10 +- C++ compiler with full C++17 support. GCC-8, Clang-13 and MSVC-2019 have been tested and confirmed to work, older compilers may fail to build P2Pool. ### Ubuntu 20.04 diff --git a/external/src/Tari/proto/gRPC/base_node.pb.cc b/external/src/Tari/proto/gRPC/base_node.pb.cc index 9102964..b490dbd 100644 --- a/external/src/Tari/proto/gRPC/base_node.pb.cc +++ b/external/src/Tari/proto/gRPC/base_node.pb.cc @@ -1,5 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: base_node.proto +// Protobuf C++ Version: 5.26.0-rc1 #include "base_node.pb.h" @@ -1157,602 +1158,603 @@ static ::_pb::Metadata file_level_metadata_base_5fnode_2eproto[52]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_base_5fnode_2eproto[6]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_base_5fnode_2eproto = nullptr; -const ::uint32_t TableStruct_base_5fnode_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataRequest, _impl_.asset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.image_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.owner_commitment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.mined_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.mined_in_block_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsRequest, _impl_.offset_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsRequest, _impl_.count_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.asset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.unique_id_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.owner_commitment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.mined_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.mined_in_block_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.script_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensRequest, _impl_.asset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensRequest, _impl_.unique_ids_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.unique_id_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.asset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.owner_commitment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.mined_in_block_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.mined_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.script_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitBlockResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitBlockResponse, _impl_.block_hash_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockBlobRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockBlobRequest, _impl_.header_blob_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockBlobRequest, _impl_.body_blob_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _impl_.metadata_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _impl_.initial_sync_achieved_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _impl_.base_node_state_), - 0, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _impl_.new_block_template_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _impl_.initial_sync_achieved_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _impl_.miner_data_), - 0, - ~0u, - 1, - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _impl_.algo_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _impl_.max_weight_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.difficulty_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.estimated_hash_rate_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.timestamp_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.pow_algo_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.sha3x_estimated_hash_rate_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.randomx_estimated_hash_rate_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_.height_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::IntegerValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::IntegerValue, _impl_.value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::StringValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::StringValue, _impl_.value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _impl_.from_tip_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _impl_.start_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _impl_.end_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _impl_.calc_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupResponse, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupResponse, _impl_.calc_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::HeightRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::HeightRequest, _impl_.from_tip_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::HeightRequest, _impl_.start_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::HeightRequest, _impl_.end_height_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockTimingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockTimingResponse, _impl_.max_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockTimingResponse, _impl_.min_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockTimingResponse, _impl_.avg_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetHeaderByHashRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetHeaderByHashRequest, _impl_.hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.header_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.confirmations_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.reward_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.difficulty_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.num_transactions_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListHeadersRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListHeadersRequest, _impl_.from_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListHeadersRequest, _impl_.num_headers_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListHeadersRequest, _impl_.sorting_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetBlocksRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetBlocksRequest, _impl_.heights_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetBlocksResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetBlocksResponse, _impl_.blocks_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.height_of_longest_chain_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.best_block_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.pruned_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.accumulated_difficulty_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncInfoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncInfoResponse, _impl_.tip_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncInfoResponse, _impl_.local_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncInfoResponse, _impl_.peer_node_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _impl_.tip_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _impl_.local_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _impl_.state_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.block_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.block_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.merge_mining_hash_), - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.block_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.header_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.block_body_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.merge_mining_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.utxo_mr_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_.algo_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_.target_difficulty_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_.reward_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_.total_fees_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchKernelsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchKernelsRequest, _impl_.signatures_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchUtxosRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchUtxosRequest, _impl_.commitments_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosRequest, _impl_.hashes_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosResponse, _impl_.output_), - 0, - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetPeersResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetPeersResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetPeersResponse, _impl_.peer_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetPeersRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionRequest, _impl_.transaction_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionResponse, _impl_.result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetMempoolTransactionsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetMempoolTransactionsResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetMempoolTransactionsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetMempoolTransactionsResponse, _impl_.transaction_), - 0, - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateRequest, _impl_.excess_sig_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateResponse, _impl_.result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::MempoolStatsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::MempoolStatsResponse, _impl_.unconfirmed_txs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MempoolStatsResponse, _impl_.reorg_txs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MempoolStatsResponse, _impl_.unconfirmed_weight_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesRequest, _impl_.height_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesResponse, _impl_.shard_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesResponse, _impl_.public_key_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyRequest, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyRequest, _impl_.public_key_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyResponse, _impl_.shard_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyResponse, _impl_.found_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationsRequest, _impl_.start_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationsRequest, _impl_.count_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationResponse, _impl_.utxo_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationResponse, _impl_.registration_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockInfo, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockInfo, _impl_.hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockInfo, _impl_.next_block_hash_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosRequest, _impl_.start_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosRequest, _impl_.count_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _impl_.block_info_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _impl_.outputs_), - 0, - ~0u, +const ::uint32_t + TableStruct_base_5fnode_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataRequest, _impl_.asset_public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.image_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.owner_commitment_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.features_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.mined_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.mined_in_block_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsRequest, _impl_.offset_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsRequest, _impl_.count_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.asset_public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.unique_id_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.owner_commitment_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.mined_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.mined_in_block_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.features_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.script_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensRequest, _impl_.asset_public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensRequest, _impl_.unique_ids_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.unique_id_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.asset_public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.owner_commitment_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.mined_in_block_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.mined_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.features_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.script_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitBlockResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitBlockResponse, _impl_.block_hash_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockBlobRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockBlobRequest, _impl_.header_blob_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockBlobRequest, _impl_.body_blob_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _impl_.metadata_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _impl_.initial_sync_achieved_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _impl_.base_node_state_), + 0, + ~0u, + ~0u, + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _impl_.new_block_template_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _impl_.initial_sync_achieved_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _impl_.miner_data_), + 0, + ~0u, + 1, + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _impl_.algo_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _impl_.max_weight_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.difficulty_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.estimated_hash_rate_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.timestamp_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.pow_algo_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.sha3x_estimated_hash_rate_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.randomx_estimated_hash_rate_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_.height_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::IntegerValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::IntegerValue, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::StringValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::StringValue, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _impl_.from_tip_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _impl_.start_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _impl_.end_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _impl_.calc_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupResponse, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupResponse, _impl_.calc_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::HeightRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::HeightRequest, _impl_.from_tip_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::HeightRequest, _impl_.start_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::HeightRequest, _impl_.end_height_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockTimingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockTimingResponse, _impl_.max_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockTimingResponse, _impl_.min_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockTimingResponse, _impl_.avg_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetHeaderByHashRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetHeaderByHashRequest, _impl_.hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.confirmations_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.reward_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.difficulty_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.num_transactions_), + 0, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListHeadersRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListHeadersRequest, _impl_.from_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListHeadersRequest, _impl_.num_headers_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListHeadersRequest, _impl_.sorting_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetBlocksRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetBlocksRequest, _impl_.heights_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetBlocksResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetBlocksResponse, _impl_.blocks_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.height_of_longest_chain_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.best_block_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.pruned_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.accumulated_difficulty_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncInfoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncInfoResponse, _impl_.tip_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncInfoResponse, _impl_.local_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncInfoResponse, _impl_.peer_node_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _impl_.tip_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _impl_.local_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _impl_.state_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.block_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.block_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.merge_mining_hash_), + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.block_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.block_body_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.merge_mining_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.utxo_mr_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_.algo_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_.target_difficulty_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_.reward_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_.total_fees_), + 0, + ~0u, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchKernelsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchKernelsRequest, _impl_.signatures_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchUtxosRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchUtxosRequest, _impl_.commitments_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosRequest, _impl_.hashes_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosResponse, _impl_.output_), + 0, + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetPeersResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetPeersResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetPeersResponse, _impl_.peer_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetPeersRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionRequest, _impl_.transaction_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionResponse, _impl_.result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetMempoolTransactionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetMempoolTransactionsResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetMempoolTransactionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetMempoolTransactionsResponse, _impl_.transaction_), + 0, + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateRequest, _impl_.excess_sig_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateResponse, _impl_.result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::MempoolStatsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::MempoolStatsResponse, _impl_.unconfirmed_txs_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MempoolStatsResponse, _impl_.reorg_txs_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MempoolStatsResponse, _impl_.unconfirmed_weight_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesRequest, _impl_.height_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesResponse, _impl_.shard_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesResponse, _impl_.public_key_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyRequest, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyRequest, _impl_.public_key_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyResponse, _impl_.shard_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyResponse, _impl_.found_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationsRequest, _impl_.start_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationsRequest, _impl_.count_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationResponse, _impl_.utxo_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationResponse, _impl_.registration_), + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockInfo, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockInfo, _impl_.hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockInfo, _impl_.next_block_hash_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosRequest, _impl_.start_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosRequest, _impl_.count_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _impl_.block_info_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _impl_.outputs_), + 0, + ~0u, }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::tari::rpc::GetAssetMetadataRequest)}, {9, 24, -1, sizeof(::tari::rpc::GetAssetMetadataResponse)}, {31, -1, -1, sizeof(::tari::rpc::ListAssetRegistrationsRequest)}, @@ -1806,7 +1808,6 @@ static const ::_pbi::MigrationSchema {568, -1, -1, sizeof(::tari::rpc::GetSideChainUtxosRequest)}, {578, 588, -1, sizeof(::tari::rpc::GetSideChainUtxosResponse)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_GetAssetMetadataRequest_default_instance_._instance, &::tari::rpc::_GetAssetMetadataResponse_default_instance_._instance, @@ -1861,7 +1862,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_GetSideChainUtxosRequest_default_instance_._instance, &::tari::rpc::_GetSideChainUtxosResponse_default_instance_._instance, }; -const char descriptor_table_protodef_base_5fnode_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_base_5fnode_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\017base_node.proto\022\010tari.rpc\032\013types.proto" "\032\021transaction.proto\032\013block.proto\032\rnetwor" "k.proto\032\025sidechain_types.proto\"3\n\027GetAss" @@ -2098,9 +2100,6 @@ const ::_pbi::DescriptorTable descriptor_table_base_5fnode_2eproto = { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_base_5fnode_2eproto_getter() { return &descriptor_table_base_5fnode_2eproto; } -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_base_5fnode_2eproto(&descriptor_table_base_5fnode_2eproto); namespace tari { namespace rpc { const ::google::protobuf::EnumDescriptor* BaseNodeState_descriptor() { @@ -2206,6 +2205,20 @@ inline void GetAssetMetadataRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetAssetMetadataRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetAssetMetadataRequest, _impl_._cached_size_), + false, + }, + &GetAssetMetadataRequest::MergeImpl, + &GetAssetMetadataRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetAssetMetadataRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetAssetMetadataRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2238,6 +2251,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetAssetMetadataRequest::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_GetAssetMetadataRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetAssetMetadataRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes asset_public_key = 1; {::_pbi::TcParser::FastBS1, @@ -2293,15 +2309,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetAssetMetadataRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetAssetMetadataRequest::_class_data_ = { - GetAssetMetadataRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetAssetMetadataRequest::GetClassData() const { - return &_class_data_; -} -void GetAssetMetadataRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetAssetMetadataRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetAssetMetadataRequest) @@ -2326,9 +2335,6 @@ PROTOBUF_NOINLINE bool GetAssetMetadataRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetAssetMetadataRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetAssetMetadataRequest::InternalSwap(GetAssetMetadataRequest* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -2338,9 +2344,9 @@ void GetAssetMetadataRequest::InternalSwap(GetAssetMetadataRequest* PROTOBUF_RES } ::google::protobuf::Metadata GetAssetMetadataRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[0]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[0]); } // =================================================================== @@ -2349,15 +2355,8 @@ class GetAssetMetadataResponse::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_._has_bits_); - static const ::tari::rpc::OutputFeatures& features(const GetAssetMetadataResponse* msg); - static void set_has_features(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::OutputFeatures& GetAssetMetadataResponse::_Internal::features(const GetAssetMetadataResponse* msg) { - return *msg->_impl_.features_; -} void GetAssetMetadataResponse::clear_features() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.features_ != nullptr) _impl_.features_->Clear(); @@ -2389,9 +2388,9 @@ GetAssetMetadataResponse::GetAssetMetadataResponse( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_) - : nullptr; + _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( + arena, *from._impl_.features_) + : nullptr; _impl_.mined_height_ = from._impl_.mined_height_; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetAssetMetadataResponse) @@ -2431,6 +2430,20 @@ inline void GetAssetMetadataResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetAssetMetadataResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_._cached_size_), + false, + }, + &GetAssetMetadataResponse::MergeImpl, + &GetAssetMetadataResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetAssetMetadataResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetAssetMetadataResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2474,6 +2487,9 @@ const ::_pbi::TcParseTable<3, 7, 1, 62, 2> GetAssetMetadataResponse::_table_ = { offsetof(decltype(_table_), aux_entries), &_GetAssetMetadataResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetAssetMetadataResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes mined_in_block = 8; {::_pbi::TcParser::FastBS1, @@ -2573,8 +2589,7 @@ const ::_pbi::TcParseTable<3, 7, 1, 62, 2> GetAssetMetadataResponse::_table_ = { // .tari.rpc.OutputFeatures features = 6; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::features(this), - _Internal::features(this).GetCachedSize(), target, stream); + 6, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); } // uint64 mined_height = 7; @@ -2653,17 +2668,11 @@ const ::_pbi::TcParseTable<3, 7, 1, 62, 2> GetAssetMetadataResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetAssetMetadataResponse::_class_data_ = { - GetAssetMetadataResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetAssetMetadataResponse::GetClassData() const { - return &_class_data_; -} -void GetAssetMetadataResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetAssetMetadataResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetAssetMetadataResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -2684,13 +2693,20 @@ void GetAssetMetadataResponse::MergeImpl(::google::protobuf::Message& to_msg, co if (!from._internal_mined_in_block().empty()) { _this->_internal_set_mined_in_block(from._internal_mined_in_block()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_features()->::tari::rpc::OutputFeatures::MergeFrom( - from._internal_features()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.features_ != nullptr); + if (_this->_impl_.features_ == nullptr) { + _this->_impl_.features_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_); + } else { + _this->_impl_.features_->MergeFrom(*from._impl_.features_); + } } if (from._internal_mined_height() != 0) { - _this->_internal_set_mined_height(from._internal_mined_height()); + _this->_impl_.mined_height_ = from._impl_.mined_height_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2705,9 +2721,6 @@ PROTOBUF_NOINLINE bool GetAssetMetadataResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetAssetMetadataResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetAssetMetadataResponse::InternalSwap(GetAssetMetadataResponse* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -2728,9 +2741,9 @@ void GetAssetMetadataResponse::InternalSwap(GetAssetMetadataResponse* PROTOBUF_R } ::google::protobuf::Metadata GetAssetMetadataResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[1]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[1]); } // =================================================================== @@ -2772,6 +2785,20 @@ inline void ListAssetRegistrationsRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +ListAssetRegistrationsRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_._cached_size_), + false, + }, + &ListAssetRegistrationsRequest::MergeImpl, + &ListAssetRegistrationsRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void ListAssetRegistrationsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.ListAssetRegistrationsRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2806,6 +2833,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ListAssetRegistrationsRequest::_table_ offsetof(decltype(_table_), field_names), // no aux_entries &_ListAssetRegistrationsRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ListAssetRegistrationsRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 offset = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListAssetRegistrationsRequest, _impl_.offset_), 63>(), @@ -2881,15 +2911,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ListAssetRegistrationsRequest::_table_ return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData ListAssetRegistrationsRequest::_class_data_ = { - ListAssetRegistrationsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ListAssetRegistrationsRequest::GetClassData() const { - return &_class_data_; -} -void ListAssetRegistrationsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void ListAssetRegistrationsRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.ListAssetRegistrationsRequest) @@ -2898,10 +2921,10 @@ void ListAssetRegistrationsRequest::MergeImpl(::google::protobuf::Message& to_ms (void) cached_has_bits; if (from._internal_offset() != 0) { - _this->_internal_set_offset(from._internal_offset()); + _this->_impl_.offset_ = from._impl_.offset_; } if (from._internal_count() != 0) { - _this->_internal_set_count(from._internal_count()); + _this->_impl_.count_ = from._impl_.count_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2917,9 +2940,6 @@ PROTOBUF_NOINLINE bool ListAssetRegistrationsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListAssetRegistrationsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ListAssetRegistrationsRequest::InternalSwap(ListAssetRegistrationsRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2932,9 +2952,9 @@ void ListAssetRegistrationsRequest::InternalSwap(ListAssetRegistrationsRequest* } ::google::protobuf::Metadata ListAssetRegistrationsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[2]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[2]); } // =================================================================== @@ -2943,15 +2963,8 @@ class ListAssetRegistrationsResponse::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_._has_bits_); - static const ::tari::rpc::OutputFeatures& features(const ListAssetRegistrationsResponse* msg); - static void set_has_features(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::OutputFeatures& ListAssetRegistrationsResponse::_Internal::features(const ListAssetRegistrationsResponse* msg) { - return *msg->_impl_.features_; -} void ListAssetRegistrationsResponse::clear_features() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.features_ != nullptr) _impl_.features_->Clear(); @@ -2983,9 +2996,9 @@ ListAssetRegistrationsResponse::ListAssetRegistrationsResponse( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_) - : nullptr; + _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( + arena, *from._impl_.features_) + : nullptr; _impl_.mined_height_ = from._impl_.mined_height_; // @@protoc_insertion_point(copy_constructor:tari.rpc.ListAssetRegistrationsResponse) @@ -3025,6 +3038,20 @@ inline void ListAssetRegistrationsResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +ListAssetRegistrationsResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_._cached_size_), + false, + }, + &ListAssetRegistrationsResponse::MergeImpl, + &ListAssetRegistrationsResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void ListAssetRegistrationsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.ListAssetRegistrationsResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -3068,6 +3095,9 @@ const ::_pbi::TcParseTable<3, 7, 1, 0, 2> ListAssetRegistrationsResponse::_table offsetof(decltype(_table_), aux_entries), &_ListAssetRegistrationsResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ListAssetRegistrationsResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes asset_public_key = 1; @@ -3163,8 +3193,7 @@ const ::_pbi::TcParseTable<3, 7, 1, 0, 2> ListAssetRegistrationsResponse::_table // .tari.rpc.OutputFeatures features = 6; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::features(this), - _Internal::features(this).GetCachedSize(), target, stream); + 6, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); } // bytes script = 7; @@ -3236,17 +3265,11 @@ const ::_pbi::TcParseTable<3, 7, 1, 0, 2> ListAssetRegistrationsResponse::_table return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData ListAssetRegistrationsResponse::_class_data_ = { - ListAssetRegistrationsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ListAssetRegistrationsResponse::GetClassData() const { - return &_class_data_; -} -void ListAssetRegistrationsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void ListAssetRegistrationsResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.ListAssetRegistrationsResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -3267,13 +3290,20 @@ void ListAssetRegistrationsResponse::MergeImpl(::google::protobuf::Message& to_m if (!from._internal_script().empty()) { _this->_internal_set_script(from._internal_script()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_features()->::tari::rpc::OutputFeatures::MergeFrom( - from._internal_features()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.features_ != nullptr); + if (_this->_impl_.features_ == nullptr) { + _this->_impl_.features_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_); + } else { + _this->_impl_.features_->MergeFrom(*from._impl_.features_); + } } if (from._internal_mined_height() != 0) { - _this->_internal_set_mined_height(from._internal_mined_height()); + _this->_impl_.mined_height_ = from._impl_.mined_height_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3288,9 +3318,6 @@ PROTOBUF_NOINLINE bool ListAssetRegistrationsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListAssetRegistrationsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ListAssetRegistrationsResponse::InternalSwap(ListAssetRegistrationsResponse* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -3311,9 +3338,9 @@ void ListAssetRegistrationsResponse::InternalSwap(ListAssetRegistrationsResponse } ::google::protobuf::Metadata ListAssetRegistrationsResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[3]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[3]); } // =================================================================== @@ -3366,6 +3393,20 @@ inline void GetTokensRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetTokensRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_._cached_size_), + false, + }, + &GetTokensRequest::MergeImpl, + &GetTokensRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetTokensRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetTokensRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -3399,6 +3440,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetTokensRequest::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_GetTokensRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetTokensRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated bytes unique_ids = 2; {::_pbi::TcParser::FastBR1, @@ -3472,15 +3516,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetTokensRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetTokensRequest::_class_data_ = { - GetTokensRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetTokensRequest::GetClassData() const { - return &_class_data_; -} -void GetTokensRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetTokensRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetTokensRequest) @@ -3506,9 +3543,6 @@ PROTOBUF_NOINLINE bool GetTokensRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetTokensRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetTokensRequest::InternalSwap(GetTokensRequest* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -3519,9 +3553,9 @@ void GetTokensRequest::InternalSwap(GetTokensRequest* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata GetTokensRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[4]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[4]); } // =================================================================== @@ -3530,15 +3564,8 @@ class GetTokensResponse::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_._has_bits_); - static const ::tari::rpc::OutputFeatures& features(const GetTokensResponse* msg); - static void set_has_features(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::OutputFeatures& GetTokensResponse::_Internal::features(const GetTokensResponse* msg) { - return *msg->_impl_.features_; -} void GetTokensResponse::clear_features() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.features_ != nullptr) _impl_.features_->Clear(); @@ -3570,9 +3597,9 @@ GetTokensResponse::GetTokensResponse( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_) - : nullptr; + _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( + arena, *from._impl_.features_) + : nullptr; _impl_.mined_height_ = from._impl_.mined_height_; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetTokensResponse) @@ -3612,6 +3639,20 @@ inline void GetTokensResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetTokensResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_._cached_size_), + false, + }, + &GetTokensResponse::MergeImpl, + &GetTokensResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetTokensResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetTokensResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -3655,6 +3696,9 @@ const ::_pbi::TcParseTable<3, 7, 1, 0, 2> GetTokensResponse::_table_ = { offsetof(decltype(_table_), aux_entries), &_GetTokensResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetTokensResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes unique_id = 1; @@ -3750,8 +3794,7 @@ const ::_pbi::TcParseTable<3, 7, 1, 0, 2> GetTokensResponse::_table_ = { // .tari.rpc.OutputFeatures features = 6; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::features(this), - _Internal::features(this).GetCachedSize(), target, stream); + 6, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); } // bytes script = 7; @@ -3823,17 +3866,11 @@ const ::_pbi::TcParseTable<3, 7, 1, 0, 2> GetTokensResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetTokensResponse::_class_data_ = { - GetTokensResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetTokensResponse::GetClassData() const { - return &_class_data_; -} -void GetTokensResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetTokensResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetTokensResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -3854,13 +3891,20 @@ void GetTokensResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::g if (!from._internal_script().empty()) { _this->_internal_set_script(from._internal_script()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_features()->::tari::rpc::OutputFeatures::MergeFrom( - from._internal_features()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.features_ != nullptr); + if (_this->_impl_.features_ == nullptr) { + _this->_impl_.features_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_); + } else { + _this->_impl_.features_->MergeFrom(*from._impl_.features_); + } } if (from._internal_mined_height() != 0) { - _this->_internal_set_mined_height(from._internal_mined_height()); + _this->_impl_.mined_height_ = from._impl_.mined_height_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3875,9 +3919,6 @@ PROTOBUF_NOINLINE bool GetTokensResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetTokensResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetTokensResponse::InternalSwap(GetTokensResponse* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -3898,9 +3939,9 @@ void GetTokensResponse::InternalSwap(GetTokensResponse* PROTOBUF_RESTRICT other) } ::google::protobuf::Metadata GetTokensResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[5]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[5]); } // =================================================================== @@ -3951,6 +3992,20 @@ inline void SubmitBlockResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +SubmitBlockResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SubmitBlockResponse, _impl_._cached_size_), + false, + }, + &SubmitBlockResponse::MergeImpl, + &SubmitBlockResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void SubmitBlockResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.SubmitBlockResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -3983,6 +4038,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SubmitBlockResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_SubmitBlockResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SubmitBlockResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes block_hash = 1; {::_pbi::TcParser::FastBS1, @@ -4038,15 +4096,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SubmitBlockResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData SubmitBlockResponse::_class_data_ = { - SubmitBlockResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SubmitBlockResponse::GetClassData() const { - return &_class_data_; -} -void SubmitBlockResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void SubmitBlockResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.SubmitBlockResponse) @@ -4071,9 +4122,6 @@ PROTOBUF_NOINLINE bool SubmitBlockResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* SubmitBlockResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SubmitBlockResponse::InternalSwap(SubmitBlockResponse* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -4083,9 +4131,9 @@ void SubmitBlockResponse::InternalSwap(SubmitBlockResponse* PROTOBUF_RESTRICT ot } ::google::protobuf::Metadata SubmitBlockResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[6]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[6]); } // =================================================================== @@ -4139,6 +4187,20 @@ inline void BlockBlobRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +BlockBlobRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_._cached_size_), + false, + }, + &BlockBlobRequest::MergeImpl, + &BlockBlobRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void BlockBlobRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.BlockBlobRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -4172,6 +4234,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BlockBlobRequest::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_BlockBlobRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::BlockBlobRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes body_blob = 2; {::_pbi::TcParser::FastBS1, @@ -4245,15 +4310,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BlockBlobRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData BlockBlobRequest::_class_data_ = { - BlockBlobRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* BlockBlobRequest::GetClassData() const { - return &_class_data_; -} -void BlockBlobRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void BlockBlobRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.BlockBlobRequest) @@ -4281,9 +4339,6 @@ PROTOBUF_NOINLINE bool BlockBlobRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* BlockBlobRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void BlockBlobRequest::InternalSwap(BlockBlobRequest* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -4294,9 +4349,9 @@ void BlockBlobRequest::InternalSwap(BlockBlobRequest* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata BlockBlobRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[7]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[7]); } // =================================================================== @@ -4305,15 +4360,8 @@ class TipInfoResponse::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_._has_bits_); - static const ::tari::rpc::MetaData& metadata(const TipInfoResponse* msg); - static void set_has_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::MetaData& TipInfoResponse::_Internal::metadata(const TipInfoResponse* msg) { - return *msg->_impl_.metadata_; -} TipInfoResponse::TipInfoResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); @@ -4335,9 +4383,9 @@ TipInfoResponse::TipInfoResponse( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::MetaData>(arena, *from._impl_.metadata_) - : nullptr; + _impl_.metadata_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::MetaData>( + arena, *from._impl_.metadata_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, initial_sync_achieved_), reinterpret_cast(&from._impl_) + @@ -4373,6 +4421,20 @@ inline void TipInfoResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +TipInfoResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_._cached_size_), + false, + }, + &TipInfoResponse::MergeImpl, + &TipInfoResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void TipInfoResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.TipInfoResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -4413,6 +4475,9 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> TipInfoResponse::_table_ = { offsetof(decltype(_table_), aux_entries), &_TipInfoResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::TipInfoResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // .tari.rpc.MetaData metadata = 1; @@ -4453,8 +4518,7 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> TipInfoResponse::_table_ = { // .tari.rpc.MetaData metadata = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::metadata(this), - _Internal::metadata(this).GetCachedSize(), target, stream); + 1, *_impl_.metadata_, _impl_.metadata_->GetCachedSize(), target, stream); } // bool initial_sync_achieved = 2; @@ -4509,32 +4573,33 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> TipInfoResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData TipInfoResponse::_class_data_ = { - TipInfoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TipInfoResponse::GetClassData() const { - return &_class_data_; -} -void TipInfoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void TipInfoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.TipInfoResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_metadata()->::tari::rpc::MetaData::MergeFrom( - from._internal_metadata()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.metadata_ != nullptr); + if (_this->_impl_.metadata_ == nullptr) { + _this->_impl_.metadata_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::MetaData>(arena, *from._impl_.metadata_); + } else { + _this->_impl_.metadata_->MergeFrom(*from._impl_.metadata_); + } } if (from._internal_initial_sync_achieved() != 0) { - _this->_internal_set_initial_sync_achieved(from._internal_initial_sync_achieved()); + _this->_impl_.initial_sync_achieved_ = from._impl_.initial_sync_achieved_; } if (from._internal_base_node_state() != 0) { - _this->_internal_set_base_node_state(from._internal_base_node_state()); + _this->_impl_.base_node_state_ = from._impl_.base_node_state_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4549,9 +4614,6 @@ PROTOBUF_NOINLINE bool TipInfoResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* TipInfoResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TipInfoResponse::InternalSwap(TipInfoResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -4565,9 +4627,9 @@ void TipInfoResponse::InternalSwap(TipInfoResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata TipInfoResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[8]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[8]); } // =================================================================== @@ -4576,22 +4638,8 @@ class NewBlockTemplateResponse::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_._has_bits_); - static const ::tari::rpc::NewBlockTemplate& new_block_template(const NewBlockTemplateResponse* msg); - static void set_has_new_block_template(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::tari::rpc::MinerData& miner_data(const NewBlockTemplateResponse* msg); - static void set_has_miner_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::tari::rpc::NewBlockTemplate& NewBlockTemplateResponse::_Internal::new_block_template(const NewBlockTemplateResponse* msg) { - return *msg->_impl_.new_block_template_; -} -const ::tari::rpc::MinerData& NewBlockTemplateResponse::_Internal::miner_data(const NewBlockTemplateResponse* msg) { - return *msg->_impl_.miner_data_; -} void NewBlockTemplateResponse::clear_new_block_template() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.new_block_template_ != nullptr) _impl_.new_block_template_->Clear(); @@ -4618,12 +4666,12 @@ NewBlockTemplateResponse::NewBlockTemplateResponse( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.new_block_template_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::NewBlockTemplate>(arena, *from._impl_.new_block_template_) - : nullptr; - _impl_.miner_data_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::tari::rpc::MinerData>(arena, *from._impl_.miner_data_) - : nullptr; + _impl_.new_block_template_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::NewBlockTemplate>( + arena, *from._impl_.new_block_template_) + : nullptr; + _impl_.miner_data_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::MinerData>( + arena, *from._impl_.miner_data_) + : nullptr; _impl_.initial_sync_achieved_ = from._impl_.initial_sync_achieved_; // @@protoc_insertion_point(copy_constructor:tari.rpc.NewBlockTemplateResponse) @@ -4654,6 +4702,20 @@ inline void NewBlockTemplateResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +NewBlockTemplateResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_._cached_size_), + false, + }, + &NewBlockTemplateResponse::MergeImpl, + &NewBlockTemplateResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void NewBlockTemplateResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockTemplateResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -4698,6 +4760,9 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplateResponse::_table_ = { offsetof(decltype(_table_), aux_entries), &_NewBlockTemplateResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplateResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.MinerData miner_data = 4; {::_pbi::TcParser::FastMtS1, @@ -4739,8 +4804,7 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplateResponse::_table_ = { // .tari.rpc.NewBlockTemplate new_block_template = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::new_block_template(this), - _Internal::new_block_template(this).GetCachedSize(), target, stream); + 1, *_impl_.new_block_template_, _impl_.new_block_template_->GetCachedSize(), target, stream); } // bool initial_sync_achieved = 3; @@ -4753,8 +4817,7 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplateResponse::_table_ = { // .tari.rpc.MinerData miner_data = 4; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, _Internal::miner_data(this), - _Internal::miner_data(this).GetCachedSize(), target, stream); + 4, *_impl_.miner_data_, _impl_.miner_data_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4797,17 +4860,11 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplateResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData NewBlockTemplateResponse::_class_data_ = { - NewBlockTemplateResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* NewBlockTemplateResponse::GetClassData() const { - return &_class_data_; -} -void NewBlockTemplateResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void NewBlockTemplateResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.NewBlockTemplateResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -4816,17 +4873,28 @@ void NewBlockTemplateResponse::MergeImpl(::google::protobuf::Message& to_msg, co cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_new_block_template()->::tari::rpc::NewBlockTemplate::MergeFrom( - from._internal_new_block_template()); + ABSL_DCHECK(from._impl_.new_block_template_ != nullptr); + if (_this->_impl_.new_block_template_ == nullptr) { + _this->_impl_.new_block_template_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::NewBlockTemplate>(arena, *from._impl_.new_block_template_); + } else { + _this->_impl_.new_block_template_->MergeFrom(*from._impl_.new_block_template_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_miner_data()->::tari::rpc::MinerData::MergeFrom( - from._internal_miner_data()); + ABSL_DCHECK(from._impl_.miner_data_ != nullptr); + if (_this->_impl_.miner_data_ == nullptr) { + _this->_impl_.miner_data_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::MinerData>(arena, *from._impl_.miner_data_); + } else { + _this->_impl_.miner_data_->MergeFrom(*from._impl_.miner_data_); + } } } if (from._internal_initial_sync_achieved() != 0) { - _this->_internal_set_initial_sync_achieved(from._internal_initial_sync_achieved()); + _this->_impl_.initial_sync_achieved_ = from._impl_.initial_sync_achieved_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4841,9 +4909,6 @@ PROTOBUF_NOINLINE bool NewBlockTemplateResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* NewBlockTemplateResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void NewBlockTemplateResponse::InternalSwap(NewBlockTemplateResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -4857,9 +4922,9 @@ void NewBlockTemplateResponse::InternalSwap(NewBlockTemplateResponse* PROTOBUF_R } ::google::protobuf::Metadata NewBlockTemplateResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[9]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[9]); } // =================================================================== @@ -4868,15 +4933,8 @@ class NewBlockTemplateRequest::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_._has_bits_); - static const ::tari::rpc::PowAlgo& algo(const NewBlockTemplateRequest* msg); - static void set_has_algo(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::PowAlgo& NewBlockTemplateRequest::_Internal::algo(const NewBlockTemplateRequest* msg) { - return *msg->_impl_.algo_; -} void NewBlockTemplateRequest::clear_algo() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.algo_ != nullptr) _impl_.algo_->Clear(); @@ -4903,9 +4961,9 @@ NewBlockTemplateRequest::NewBlockTemplateRequest( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.algo_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::PowAlgo>(arena, *from._impl_.algo_) - : nullptr; + _impl_.algo_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::PowAlgo>( + arena, *from._impl_.algo_) + : nullptr; _impl_.max_weight_ = from._impl_.max_weight_; // @@protoc_insertion_point(copy_constructor:tari.rpc.NewBlockTemplateRequest) @@ -4935,6 +4993,20 @@ inline void NewBlockTemplateRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +NewBlockTemplateRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_._cached_size_), + false, + }, + &NewBlockTemplateRequest::MergeImpl, + &NewBlockTemplateRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void NewBlockTemplateRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockTemplateRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -4973,6 +5045,9 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> NewBlockTemplateRequest::_table_ = { offsetof(decltype(_table_), aux_entries), &_NewBlockTemplateRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplateRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 max_weight = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NewBlockTemplateRequest, _impl_.max_weight_), 63>(), @@ -5006,8 +5081,7 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> NewBlockTemplateRequest::_table_ = { // .tari.rpc.PowAlgo algo = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::algo(this), - _Internal::algo(this).GetCachedSize(), target, stream); + 1, *_impl_.algo_, _impl_.algo_->GetCachedSize(), target, stream); } // uint64 max_weight = 2; @@ -5050,29 +5124,30 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> NewBlockTemplateRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData NewBlockTemplateRequest::_class_data_ = { - NewBlockTemplateRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* NewBlockTemplateRequest::GetClassData() const { - return &_class_data_; -} -void NewBlockTemplateRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void NewBlockTemplateRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.NewBlockTemplateRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_algo()->::tari::rpc::PowAlgo::MergeFrom( - from._internal_algo()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.algo_ != nullptr); + if (_this->_impl_.algo_ == nullptr) { + _this->_impl_.algo_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::PowAlgo>(arena, *from._impl_.algo_); + } else { + _this->_impl_.algo_->MergeFrom(*from._impl_.algo_); + } } if (from._internal_max_weight() != 0) { - _this->_internal_set_max_weight(from._internal_max_weight()); + _this->_impl_.max_weight_ = from._impl_.max_weight_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5087,9 +5162,6 @@ PROTOBUF_NOINLINE bool NewBlockTemplateRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* NewBlockTemplateRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void NewBlockTemplateRequest::InternalSwap(NewBlockTemplateRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -5103,9 +5175,9 @@ void NewBlockTemplateRequest::InternalSwap(NewBlockTemplateRequest* PROTOBUF_RES } ::google::protobuf::Metadata NewBlockTemplateRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[10]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[10]); } // =================================================================== @@ -5147,6 +5219,20 @@ inline void NetworkDifficultyResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +NetworkDifficultyResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_._cached_size_), + false, + }, + &NetworkDifficultyResponse::MergeImpl, + &NetworkDifficultyResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void NetworkDifficultyResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.NetworkDifficultyResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -5181,6 +5267,9 @@ const ::_pbi::TcParseTable<3, 7, 0, 0, 2> NetworkDifficultyResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_NetworkDifficultyResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::NetworkDifficultyResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 difficulty = 1; @@ -5352,15 +5441,8 @@ const ::_pbi::TcParseTable<3, 7, 0, 0, 2> NetworkDifficultyResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData NetworkDifficultyResponse::_class_data_ = { - NetworkDifficultyResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* NetworkDifficultyResponse::GetClassData() const { - return &_class_data_; -} -void NetworkDifficultyResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void NetworkDifficultyResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.NetworkDifficultyResponse) @@ -5369,25 +5451,25 @@ void NetworkDifficultyResponse::MergeImpl(::google::protobuf::Message& to_msg, c (void) cached_has_bits; if (from._internal_difficulty() != 0) { - _this->_internal_set_difficulty(from._internal_difficulty()); + _this->_impl_.difficulty_ = from._impl_.difficulty_; } if (from._internal_estimated_hash_rate() != 0) { - _this->_internal_set_estimated_hash_rate(from._internal_estimated_hash_rate()); + _this->_impl_.estimated_hash_rate_ = from._impl_.estimated_hash_rate_; } if (from._internal_height() != 0) { - _this->_internal_set_height(from._internal_height()); + _this->_impl_.height_ = from._impl_.height_; } if (from._internal_timestamp() != 0) { - _this->_internal_set_timestamp(from._internal_timestamp()); + _this->_impl_.timestamp_ = from._impl_.timestamp_; } if (from._internal_pow_algo() != 0) { - _this->_internal_set_pow_algo(from._internal_pow_algo()); + _this->_impl_.pow_algo_ = from._impl_.pow_algo_; } if (from._internal_sha3x_estimated_hash_rate() != 0) { - _this->_internal_set_sha3x_estimated_hash_rate(from._internal_sha3x_estimated_hash_rate()); + _this->_impl_.sha3x_estimated_hash_rate_ = from._impl_.sha3x_estimated_hash_rate_; } if (from._internal_randomx_estimated_hash_rate() != 0) { - _this->_internal_set_randomx_estimated_hash_rate(from._internal_randomx_estimated_hash_rate()); + _this->_impl_.randomx_estimated_hash_rate_ = from._impl_.randomx_estimated_hash_rate_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5403,9 +5485,6 @@ PROTOBUF_NOINLINE bool NetworkDifficultyResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* NetworkDifficultyResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void NetworkDifficultyResponse::InternalSwap(NetworkDifficultyResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -5418,9 +5497,9 @@ void NetworkDifficultyResponse::InternalSwap(NetworkDifficultyResponse* PROTOBUF } ::google::protobuf::Metadata NetworkDifficultyResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[11]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[11]); } // =================================================================== @@ -5462,6 +5541,20 @@ inline void ValueAtHeightResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +ValueAtHeightResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_._cached_size_), + false, + }, + &ValueAtHeightResponse::MergeImpl, + &ValueAtHeightResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void ValueAtHeightResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.ValueAtHeightResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -5496,6 +5589,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ValueAtHeightResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_ValueAtHeightResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ValueAtHeightResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 height = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.height_), 63>(), @@ -5571,15 +5667,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ValueAtHeightResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData ValueAtHeightResponse::_class_data_ = { - ValueAtHeightResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ValueAtHeightResponse::GetClassData() const { - return &_class_data_; -} -void ValueAtHeightResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void ValueAtHeightResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.ValueAtHeightResponse) @@ -5588,10 +5677,10 @@ void ValueAtHeightResponse::MergeImpl(::google::protobuf::Message& to_msg, const (void) cached_has_bits; if (from._internal_value() != 0) { - _this->_internal_set_value(from._internal_value()); + _this->_impl_.value_ = from._impl_.value_; } if (from._internal_height() != 0) { - _this->_internal_set_height(from._internal_height()); + _this->_impl_.height_ = from._impl_.height_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5607,9 +5696,6 @@ PROTOBUF_NOINLINE bool ValueAtHeightResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ValueAtHeightResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ValueAtHeightResponse::InternalSwap(ValueAtHeightResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -5622,9 +5708,9 @@ void ValueAtHeightResponse::InternalSwap(ValueAtHeightResponse* PROTOBUF_RESTRIC } ::google::protobuf::Metadata ValueAtHeightResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[12]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[12]); } // =================================================================== @@ -5661,6 +5747,20 @@ inline void IntegerValue::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +IntegerValue::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(IntegerValue, _impl_._cached_size_), + false, + }, + &IntegerValue::MergeImpl, + &IntegerValue::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void IntegerValue::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.IntegerValue) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -5693,6 +5793,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IntegerValue::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_IntegerValue_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::IntegerValue>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 value = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntegerValue, _impl_.value_), 63>(), @@ -5749,15 +5852,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IntegerValue::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData IntegerValue::_class_data_ = { - IntegerValue::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* IntegerValue::GetClassData() const { - return &_class_data_; -} -void IntegerValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void IntegerValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.IntegerValue) @@ -5766,7 +5862,7 @@ void IntegerValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google (void) cached_has_bits; if (from._internal_value() != 0) { - _this->_internal_set_value(from._internal_value()); + _this->_impl_.value_ = from._impl_.value_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5782,9 +5878,6 @@ PROTOBUF_NOINLINE bool IntegerValue::IsInitialized() const { return true; } -::_pbi::CachedSize* IntegerValue::AccessCachedSize() const { - return &_impl_._cached_size_; -} void IntegerValue::InternalSwap(IntegerValue* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -5792,9 +5885,9 @@ void IntegerValue::InternalSwap(IntegerValue* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata IntegerValue::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[13]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[13]); } // =================================================================== @@ -5845,6 +5938,20 @@ inline void StringValue::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +StringValue::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(StringValue, _impl_._cached_size_), + false, + }, + &StringValue::MergeImpl, + &StringValue::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void StringValue::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.StringValue) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -5877,6 +5984,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 34, 2> StringValue::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_StringValue_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::StringValue>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // string value = 1; {::_pbi::TcParser::FastUS1, @@ -5937,15 +6047,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 34, 2> StringValue::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData StringValue::_class_data_ = { - StringValue::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StringValue::GetClassData() const { - return &_class_data_; -} -void StringValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void StringValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.StringValue) @@ -5970,9 +6073,6 @@ PROTOBUF_NOINLINE bool StringValue::IsInitialized() const { return true; } -::_pbi::CachedSize* StringValue::AccessCachedSize() const { - return &_impl_._cached_size_; -} void StringValue::InternalSwap(StringValue* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -5982,9 +6082,9 @@ void StringValue::InternalSwap(StringValue* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata StringValue::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[14]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[14]); } // =================================================================== @@ -6026,6 +6126,20 @@ inline void BlockGroupRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +BlockGroupRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_._cached_size_), + false, + }, + &BlockGroupRequest::MergeImpl, + &BlockGroupRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void BlockGroupRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.BlockGroupRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -6060,6 +6174,9 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> BlockGroupRequest::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_BlockGroupRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::BlockGroupRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.CalcType calc_type = 4; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BlockGroupRequest, _impl_.calc_type_), 63>(), @@ -6173,15 +6290,8 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> BlockGroupRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData BlockGroupRequest::_class_data_ = { - BlockGroupRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* BlockGroupRequest::GetClassData() const { - return &_class_data_; -} -void BlockGroupRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void BlockGroupRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.BlockGroupRequest) @@ -6190,16 +6300,16 @@ void BlockGroupRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::g (void) cached_has_bits; if (from._internal_from_tip() != 0) { - _this->_internal_set_from_tip(from._internal_from_tip()); + _this->_impl_.from_tip_ = from._impl_.from_tip_; } if (from._internal_start_height() != 0) { - _this->_internal_set_start_height(from._internal_start_height()); + _this->_impl_.start_height_ = from._impl_.start_height_; } if (from._internal_end_height() != 0) { - _this->_internal_set_end_height(from._internal_end_height()); + _this->_impl_.end_height_ = from._impl_.end_height_; } if (from._internal_calc_type() != 0) { - _this->_internal_set_calc_type(from._internal_calc_type()); + _this->_impl_.calc_type_ = from._impl_.calc_type_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6215,9 +6325,6 @@ PROTOBUF_NOINLINE bool BlockGroupRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* BlockGroupRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void BlockGroupRequest::InternalSwap(BlockGroupRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -6230,9 +6337,9 @@ void BlockGroupRequest::InternalSwap(BlockGroupRequest* PROTOBUF_RESTRICT other) } ::google::protobuf::Metadata BlockGroupRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[15]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[15]); } // =================================================================== @@ -6284,6 +6391,20 @@ inline void BlockGroupResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +BlockGroupResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_._cached_size_), + false, + }, + &BlockGroupResponse::MergeImpl, + &BlockGroupResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void BlockGroupResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.BlockGroupResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -6317,6 +6438,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BlockGroupResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_BlockGroupResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::BlockGroupResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.CalcType calc_type = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BlockGroupResponse, _impl_.calc_type_), 63>(), @@ -6396,15 +6520,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BlockGroupResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData BlockGroupResponse::_class_data_ = { - BlockGroupResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* BlockGroupResponse::GetClassData() const { - return &_class_data_; -} -void BlockGroupResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void BlockGroupResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.BlockGroupResponse) @@ -6414,7 +6531,7 @@ void BlockGroupResponse::MergeImpl(::google::protobuf::Message& to_msg, const :: _this->_internal_mutable_value()->MergeFrom(from._internal_value()); if (from._internal_calc_type() != 0) { - _this->_internal_set_calc_type(from._internal_calc_type()); + _this->_impl_.calc_type_ = from._impl_.calc_type_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6430,9 +6547,6 @@ PROTOBUF_NOINLINE bool BlockGroupResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* BlockGroupResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void BlockGroupResponse::InternalSwap(BlockGroupResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -6441,9 +6555,9 @@ void BlockGroupResponse::InternalSwap(BlockGroupResponse* PROTOBUF_RESTRICT othe } ::google::protobuf::Metadata BlockGroupResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[16]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[16]); } // =================================================================== @@ -6485,6 +6599,20 @@ inline void HeightRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +HeightRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_._cached_size_), + false, + }, + &HeightRequest::MergeImpl, + &HeightRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void HeightRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.HeightRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -6519,6 +6647,9 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> HeightRequest::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_HeightRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::HeightRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 from_tip = 1; @@ -6614,15 +6745,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> HeightRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData HeightRequest::_class_data_ = { - HeightRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* HeightRequest::GetClassData() const { - return &_class_data_; -} -void HeightRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void HeightRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.HeightRequest) @@ -6631,13 +6755,13 @@ void HeightRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::googl (void) cached_has_bits; if (from._internal_from_tip() != 0) { - _this->_internal_set_from_tip(from._internal_from_tip()); + _this->_impl_.from_tip_ = from._impl_.from_tip_; } if (from._internal_start_height() != 0) { - _this->_internal_set_start_height(from._internal_start_height()); + _this->_impl_.start_height_ = from._impl_.start_height_; } if (from._internal_end_height() != 0) { - _this->_internal_set_end_height(from._internal_end_height()); + _this->_impl_.end_height_ = from._impl_.end_height_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6653,9 +6777,6 @@ PROTOBUF_NOINLINE bool HeightRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* HeightRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void HeightRequest::InternalSwap(HeightRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -6668,9 +6789,9 @@ void HeightRequest::InternalSwap(HeightRequest* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata HeightRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[17]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[17]); } // =================================================================== @@ -6712,6 +6833,20 @@ inline void BlockTimingResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +BlockTimingResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_._cached_size_), + false, + }, + &BlockTimingResponse::MergeImpl, + &BlockTimingResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void BlockTimingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.BlockTimingResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -6746,6 +6881,9 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> BlockTimingResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_BlockTimingResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::BlockTimingResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 max = 1; @@ -6850,15 +6988,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> BlockTimingResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData BlockTimingResponse::_class_data_ = { - BlockTimingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* BlockTimingResponse::GetClassData() const { - return &_class_data_; -} -void BlockTimingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void BlockTimingResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.BlockTimingResponse) @@ -6867,10 +6998,10 @@ void BlockTimingResponse::MergeImpl(::google::protobuf::Message& to_msg, const : (void) cached_has_bits; if (from._internal_max() != 0) { - _this->_internal_set_max(from._internal_max()); + _this->_impl_.max_ = from._impl_.max_; } if (from._internal_min() != 0) { - _this->_internal_set_min(from._internal_min()); + _this->_impl_.min_ = from._impl_.min_; } static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); @@ -6878,7 +7009,7 @@ void BlockTimingResponse::MergeImpl(::google::protobuf::Message& to_msg, const : ::uint64_t raw_avg; memcpy(&raw_avg, &tmp_avg, sizeof(tmp_avg)); if (raw_avg != 0) { - _this->_internal_set_avg(from._internal_avg()); + _this->_impl_.avg_ = from._impl_.avg_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6894,9 +7025,6 @@ PROTOBUF_NOINLINE bool BlockTimingResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* BlockTimingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void BlockTimingResponse::InternalSwap(BlockTimingResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -6909,9 +7037,9 @@ void BlockTimingResponse::InternalSwap(BlockTimingResponse* PROTOBUF_RESTRICT ot } ::google::protobuf::Metadata BlockTimingResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[18]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[18]); } // =================================================================== @@ -6962,6 +7090,20 @@ inline void GetHeaderByHashRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetHeaderByHashRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetHeaderByHashRequest, _impl_._cached_size_), + false, + }, + &GetHeaderByHashRequest::MergeImpl, + &GetHeaderByHashRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetHeaderByHashRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetHeaderByHashRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -6994,6 +7136,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetHeaderByHashRequest::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_GetHeaderByHashRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetHeaderByHashRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes hash = 1; {::_pbi::TcParser::FastBS1, @@ -7049,15 +7194,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetHeaderByHashRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetHeaderByHashRequest::_class_data_ = { - GetHeaderByHashRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetHeaderByHashRequest::GetClassData() const { - return &_class_data_; -} -void GetHeaderByHashRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetHeaderByHashRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetHeaderByHashRequest) @@ -7082,9 +7220,6 @@ PROTOBUF_NOINLINE bool GetHeaderByHashRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetHeaderByHashRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetHeaderByHashRequest::InternalSwap(GetHeaderByHashRequest* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -7094,9 +7229,9 @@ void GetHeaderByHashRequest::InternalSwap(GetHeaderByHashRequest* PROTOBUF_RESTR } ::google::protobuf::Metadata GetHeaderByHashRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[19]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[19]); } // =================================================================== @@ -7105,15 +7240,8 @@ class BlockHeaderResponse::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_._has_bits_); - static const ::tari::rpc::BlockHeader& header(const BlockHeaderResponse* msg); - static void set_has_header(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::BlockHeader& BlockHeaderResponse::_Internal::header(const BlockHeaderResponse* msg) { - return *msg->_impl_.header_; -} void BlockHeaderResponse::clear_header() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.header_ != nullptr) _impl_.header_->Clear(); @@ -7140,9 +7268,9 @@ BlockHeaderResponse::BlockHeaderResponse( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.header_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::BlockHeader>(arena, *from._impl_.header_) - : nullptr; + _impl_.header_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockHeader>( + arena, *from._impl_.header_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, confirmations_), reinterpret_cast(&from._impl_) + @@ -7178,6 +7306,20 @@ inline void BlockHeaderResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +BlockHeaderResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_._cached_size_), + false, + }, + &BlockHeaderResponse::MergeImpl, + &BlockHeaderResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void BlockHeaderResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.BlockHeaderResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -7218,6 +7360,9 @@ const ::_pbi::TcParseTable<3, 5, 1, 0, 2> BlockHeaderResponse::_table_ = { offsetof(decltype(_table_), aux_entries), &_BlockHeaderResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::BlockHeaderResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // .tari.rpc.BlockHeader header = 1; @@ -7272,8 +7417,7 @@ const ::_pbi::TcParseTable<3, 5, 1, 0, 2> BlockHeaderResponse::_table_ = { // .tari.rpc.BlockHeader header = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::header(this), - _Internal::header(this).GetCachedSize(), target, stream); + 1, *_impl_.header_, _impl_.header_->GetCachedSize(), target, stream); } // uint64 confirmations = 2; @@ -7355,38 +7499,39 @@ const ::_pbi::TcParseTable<3, 5, 1, 0, 2> BlockHeaderResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData BlockHeaderResponse::_class_data_ = { - BlockHeaderResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* BlockHeaderResponse::GetClassData() const { - return &_class_data_; -} -void BlockHeaderResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void BlockHeaderResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.BlockHeaderResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_header()->::tari::rpc::BlockHeader::MergeFrom( - from._internal_header()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.header_ != nullptr); + if (_this->_impl_.header_ == nullptr) { + _this->_impl_.header_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockHeader>(arena, *from._impl_.header_); + } else { + _this->_impl_.header_->MergeFrom(*from._impl_.header_); + } } if (from._internal_confirmations() != 0) { - _this->_internal_set_confirmations(from._internal_confirmations()); + _this->_impl_.confirmations_ = from._impl_.confirmations_; } if (from._internal_reward() != 0) { - _this->_internal_set_reward(from._internal_reward()); + _this->_impl_.reward_ = from._impl_.reward_; } if (from._internal_difficulty() != 0) { - _this->_internal_set_difficulty(from._internal_difficulty()); + _this->_impl_.difficulty_ = from._impl_.difficulty_; } if (from._internal_num_transactions() != 0) { - _this->_internal_set_num_transactions(from._internal_num_transactions()); + _this->_impl_.num_transactions_ = from._impl_.num_transactions_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7401,9 +7546,6 @@ PROTOBUF_NOINLINE bool BlockHeaderResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* BlockHeaderResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void BlockHeaderResponse::InternalSwap(BlockHeaderResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -7417,9 +7559,9 @@ void BlockHeaderResponse::InternalSwap(BlockHeaderResponse* PROTOBUF_RESTRICT ot } ::google::protobuf::Metadata BlockHeaderResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[20]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[20]); } // =================================================================== @@ -7461,6 +7603,20 @@ inline void ListHeadersRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +ListHeadersRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_._cached_size_), + false, + }, + &ListHeadersRequest::MergeImpl, + &ListHeadersRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void ListHeadersRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.ListHeadersRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -7495,6 +7651,9 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> ListHeadersRequest::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_ListHeadersRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ListHeadersRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 from_height = 1; @@ -7590,15 +7749,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> ListHeadersRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData ListHeadersRequest::_class_data_ = { - ListHeadersRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ListHeadersRequest::GetClassData() const { - return &_class_data_; -} -void ListHeadersRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void ListHeadersRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.ListHeadersRequest) @@ -7607,13 +7759,13 @@ void ListHeadersRequest::MergeImpl(::google::protobuf::Message& to_msg, const :: (void) cached_has_bits; if (from._internal_from_height() != 0) { - _this->_internal_set_from_height(from._internal_from_height()); + _this->_impl_.from_height_ = from._impl_.from_height_; } if (from._internal_num_headers() != 0) { - _this->_internal_set_num_headers(from._internal_num_headers()); + _this->_impl_.num_headers_ = from._impl_.num_headers_; } if (from._internal_sorting() != 0) { - _this->_internal_set_sorting(from._internal_sorting()); + _this->_impl_.sorting_ = from._impl_.sorting_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7629,9 +7781,6 @@ PROTOBUF_NOINLINE bool ListHeadersRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* ListHeadersRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ListHeadersRequest::InternalSwap(ListHeadersRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -7644,9 +7793,9 @@ void ListHeadersRequest::InternalSwap(ListHeadersRequest* PROTOBUF_RESTRICT othe } ::google::protobuf::Metadata ListHeadersRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[21]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[21]); } // =================================================================== @@ -7698,6 +7847,20 @@ inline void GetBlocksRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetBlocksRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetBlocksRequest, _impl_._cached_size_), + false, + }, + &GetBlocksRequest::MergeImpl, + &GetBlocksRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetBlocksRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetBlocksRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -7730,6 +7893,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetBlocksRequest::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_GetBlocksRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetBlocksRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated uint64 heights = 1; {::_pbi::TcParser::FastV64P1, @@ -7795,15 +7961,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetBlocksRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetBlocksRequest::_class_data_ = { - GetBlocksRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetBlocksRequest::GetClassData() const { - return &_class_data_; -} -void GetBlocksRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetBlocksRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetBlocksRequest) @@ -7826,9 +7985,6 @@ PROTOBUF_NOINLINE bool GetBlocksRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetBlocksRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetBlocksRequest::InternalSwap(GetBlocksRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -7836,9 +7992,9 @@ void GetBlocksRequest::InternalSwap(GetBlocksRequest* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata GetBlocksRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[22]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[22]); } // =================================================================== @@ -7892,6 +8048,20 @@ inline void GetBlocksResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetBlocksResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetBlocksResponse, _impl_._cached_size_), + false, + }, + &GetBlocksResponse::MergeImpl, + &GetBlocksResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetBlocksResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetBlocksResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -7924,6 +8094,9 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetBlocksResponse::_table_ = { offsetof(decltype(_table_), aux_entries), &_GetBlocksResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetBlocksResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated .tari.rpc.HistoricalBlock blocks = 1; {::_pbi::TcParser::FastMtR1, @@ -7948,11 +8121,14 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetBlocksResponse::_table_ = { (void)cached_has_bits; // repeated .tari.rpc.HistoricalBlock blocks = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_blocks_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_blocks_size()); + i < n; i++) { const auto& repfield = this->_internal_blocks().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -7975,21 +8151,13 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetBlocksResponse::_table_ = { // repeated .tari.rpc.HistoricalBlock blocks = 1; total_size += 1UL * this->_internal_blocks_size(); for (const auto& msg : this->_internal_blocks()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetBlocksResponse::_class_data_ = { - GetBlocksResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetBlocksResponse::GetClassData() const { - return &_class_data_; -} -void GetBlocksResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetBlocksResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetBlocksResponse) @@ -8013,9 +8181,6 @@ PROTOBUF_NOINLINE bool GetBlocksResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetBlocksResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetBlocksResponse::InternalSwap(GetBlocksResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -8023,9 +8188,9 @@ void GetBlocksResponse::InternalSwap(GetBlocksResponse* PROTOBUF_RESTRICT other) } ::google::protobuf::Metadata GetBlocksResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[23]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[23]); } // =================================================================== @@ -8092,6 +8257,20 @@ inline void MetaData::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +MetaData::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(MetaData, _impl_._cached_size_), + false, + }, + &MetaData::MergeImpl, + &MetaData::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void MetaData::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.MetaData) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -8128,6 +8307,9 @@ const ::_pbi::TcParseTable<3, 4, 0, 0, 2> MetaData::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_MetaData_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::MetaData>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 height_of_longest_chain = 1; @@ -8243,15 +8425,8 @@ const ::_pbi::TcParseTable<3, 4, 0, 0, 2> MetaData::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData MetaData::_class_data_ = { - MetaData::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* MetaData::GetClassData() const { - return &_class_data_; -} -void MetaData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void MetaData::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.MetaData) @@ -8266,10 +8441,10 @@ void MetaData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::pr _this->_internal_set_accumulated_difficulty(from._internal_accumulated_difficulty()); } if (from._internal_height_of_longest_chain() != 0) { - _this->_internal_set_height_of_longest_chain(from._internal_height_of_longest_chain()); + _this->_impl_.height_of_longest_chain_ = from._impl_.height_of_longest_chain_; } if (from._internal_pruned_height() != 0) { - _this->_internal_set_pruned_height(from._internal_pruned_height()); + _this->_impl_.pruned_height_ = from._impl_.pruned_height_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -8285,9 +8460,6 @@ PROTOBUF_NOINLINE bool MetaData::IsInitialized() const { return true; } -::_pbi::CachedSize* MetaData::AccessCachedSize() const { - return &_impl_._cached_size_; -} void MetaData::InternalSwap(MetaData* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -8304,9 +8476,9 @@ void MetaData::InternalSwap(MetaData* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata MetaData::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[24]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[24]); } // =================================================================== @@ -8369,6 +8541,20 @@ inline void SyncInfoResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +SyncInfoResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_._cached_size_), + false, + }, + &SyncInfoResponse::MergeImpl, + &SyncInfoResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void SyncInfoResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.SyncInfoResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -8404,6 +8590,9 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> SyncInfoResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_SyncInfoResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SyncInfoResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 tip_height = 1; @@ -8498,15 +8687,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> SyncInfoResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData SyncInfoResponse::_class_data_ = { - SyncInfoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SyncInfoResponse::GetClassData() const { - return &_class_data_; -} -void SyncInfoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void SyncInfoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.SyncInfoResponse) @@ -8516,10 +8698,10 @@ void SyncInfoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::go _this->_internal_mutable_peer_node_id()->MergeFrom(from._internal_peer_node_id()); if (from._internal_tip_height() != 0) { - _this->_internal_set_tip_height(from._internal_tip_height()); + _this->_impl_.tip_height_ = from._impl_.tip_height_; } if (from._internal_local_height() != 0) { - _this->_internal_set_local_height(from._internal_local_height()); + _this->_impl_.local_height_ = from._impl_.local_height_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -8535,9 +8717,6 @@ PROTOBUF_NOINLINE bool SyncInfoResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* SyncInfoResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SyncInfoResponse::InternalSwap(SyncInfoResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -8551,9 +8730,9 @@ void SyncInfoResponse::InternalSwap(SyncInfoResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata SyncInfoResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[25]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[25]); } // =================================================================== @@ -8595,6 +8774,20 @@ inline void SyncProgressResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +SyncProgressResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_._cached_size_), + false, + }, + &SyncProgressResponse::MergeImpl, + &SyncProgressResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void SyncProgressResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.SyncProgressResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -8629,6 +8822,9 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> SyncProgressResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_SyncProgressResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SyncProgressResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 tip_height = 1; @@ -8724,15 +8920,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> SyncProgressResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData SyncProgressResponse::_class_data_ = { - SyncProgressResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SyncProgressResponse::GetClassData() const { - return &_class_data_; -} -void SyncProgressResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void SyncProgressResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.SyncProgressResponse) @@ -8741,13 +8930,13 @@ void SyncProgressResponse::MergeImpl(::google::protobuf::Message& to_msg, const (void) cached_has_bits; if (from._internal_tip_height() != 0) { - _this->_internal_set_tip_height(from._internal_tip_height()); + _this->_impl_.tip_height_ = from._impl_.tip_height_; } if (from._internal_local_height() != 0) { - _this->_internal_set_local_height(from._internal_local_height()); + _this->_impl_.local_height_ = from._impl_.local_height_; } if (from._internal_state() != 0) { - _this->_internal_set_state(from._internal_state()); + _this->_impl_.state_ = from._impl_.state_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -8763,9 +8952,6 @@ PROTOBUF_NOINLINE bool SyncProgressResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* SyncProgressResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SyncProgressResponse::InternalSwap(SyncProgressResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -8778,9 +8964,9 @@ void SyncProgressResponse::InternalSwap(SyncProgressResponse* PROTOBUF_RESTRICT } ::google::protobuf::Metadata SyncProgressResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[26]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[26]); } // =================================================================== @@ -8789,15 +8975,8 @@ class GetNewBlockResult::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_._has_bits_); - static const ::tari::rpc::Block& block(const GetNewBlockResult* msg); - static void set_has_block(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::Block& GetNewBlockResult::_Internal::block(const GetNewBlockResult* msg) { - return *msg->_impl_.block_; -} void GetNewBlockResult::clear_block() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.block_ != nullptr) _impl_.block_->Clear(); @@ -8826,9 +9005,9 @@ GetNewBlockResult::GetNewBlockResult( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.block_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::Block>(arena, *from._impl_.block_) - : nullptr; + _impl_.block_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Block>( + arena, *from._impl_.block_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetNewBlockResult) } @@ -8856,6 +9035,20 @@ inline void GetNewBlockResult::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetNewBlockResult::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_._cached_size_), + false, + }, + &GetNewBlockResult::MergeImpl, + &GetNewBlockResult::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetNewBlockResult::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetNewBlockResult) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -8895,6 +9088,9 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> GetNewBlockResult::_table_ = { offsetof(decltype(_table_), aux_entries), &_GetNewBlockResult_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetNewBlockResult>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes block_hash = 1; @@ -8941,8 +9137,7 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> GetNewBlockResult::_table_ = { // .tari.rpc.Block block = 2; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::block(this), - _Internal::block(this).GetCachedSize(), target, stream); + 2, *_impl_.block_, _impl_.block_->GetCachedSize(), target, stream); } // bytes merge_mining_hash = 3; @@ -8990,17 +9185,11 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> GetNewBlockResult::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetNewBlockResult::_class_data_ = { - GetNewBlockResult::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetNewBlockResult::GetClassData() const { - return &_class_data_; -} -void GetNewBlockResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetNewBlockResult::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetNewBlockResult) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -9012,10 +9201,17 @@ void GetNewBlockResult::MergeImpl(::google::protobuf::Message& to_msg, const ::g if (!from._internal_merge_mining_hash().empty()) { _this->_internal_set_merge_mining_hash(from._internal_merge_mining_hash()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_block()->::tari::rpc::Block::MergeFrom( - from._internal_block()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.block_ != nullptr); + if (_this->_impl_.block_ == nullptr) { + _this->_impl_.block_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Block>(arena, *from._impl_.block_); + } else { + _this->_impl_.block_->MergeFrom(*from._impl_.block_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -9030,9 +9226,6 @@ PROTOBUF_NOINLINE bool GetNewBlockResult::IsInitialized() const { return true; } -::_pbi::CachedSize* GetNewBlockResult::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetNewBlockResult::InternalSwap(GetNewBlockResult* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -9045,9 +9238,9 @@ void GetNewBlockResult::InternalSwap(GetNewBlockResult* PROTOBUF_RESTRICT other) } ::google::protobuf::Metadata GetNewBlockResult::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[27]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[27]); } // =================================================================== @@ -9110,6 +9303,20 @@ inline void GetNewBlockBlobResult::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetNewBlockBlobResult::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_._cached_size_), + false, + }, + &GetNewBlockBlobResult::MergeImpl, + &GetNewBlockBlobResult::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetNewBlockBlobResult::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetNewBlockBlobResult) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -9146,6 +9353,9 @@ const ::_pbi::TcParseTable<3, 5, 0, 0, 2> GetNewBlockBlobResult::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_GetNewBlockBlobResult_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetNewBlockBlobResult>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes block_hash = 1; @@ -9276,15 +9486,8 @@ const ::_pbi::TcParseTable<3, 5, 0, 0, 2> GetNewBlockBlobResult::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetNewBlockBlobResult::_class_data_ = { - GetNewBlockBlobResult::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetNewBlockBlobResult::GetClassData() const { - return &_class_data_; -} -void GetNewBlockBlobResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetNewBlockBlobResult::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetNewBlockBlobResult) @@ -9321,9 +9524,6 @@ PROTOBUF_NOINLINE bool GetNewBlockBlobResult::IsInitialized() const { return true; } -::_pbi::CachedSize* GetNewBlockBlobResult::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetNewBlockBlobResult::InternalSwap(GetNewBlockBlobResult* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -9337,9 +9537,9 @@ void GetNewBlockBlobResult::InternalSwap(GetNewBlockBlobResult* PROTOBUF_RESTRIC } ::google::protobuf::Metadata GetNewBlockBlobResult::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[28]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[28]); } // =================================================================== @@ -9348,15 +9548,8 @@ class MinerData::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(MinerData, _impl_._has_bits_); - static const ::tari::rpc::PowAlgo& algo(const MinerData* msg); - static void set_has_algo(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::PowAlgo& MinerData::_Internal::algo(const MinerData* msg) { - return *msg->_impl_.algo_; -} void MinerData::clear_algo() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.algo_ != nullptr) _impl_.algo_->Clear(); @@ -9383,9 +9576,9 @@ MinerData::MinerData( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.algo_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::PowAlgo>(arena, *from._impl_.algo_) - : nullptr; + _impl_.algo_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::PowAlgo>( + arena, *from._impl_.algo_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, target_difficulty_), reinterpret_cast(&from._impl_) + @@ -9421,6 +9614,20 @@ inline void MinerData::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +MinerData::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(MinerData, _impl_._cached_size_), + false, + }, + &MinerData::MergeImpl, + &MinerData::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void MinerData::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.MinerData) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -9461,6 +9668,9 @@ const ::_pbi::TcParseTable<3, 4, 1, 0, 2> MinerData::_table_ = { offsetof(decltype(_table_), aux_entries), &_MinerData_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::MinerData>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // .tari.rpc.PowAlgo algo = 1; @@ -9510,8 +9720,7 @@ const ::_pbi::TcParseTable<3, 4, 1, 0, 2> MinerData::_table_ = { // .tari.rpc.PowAlgo algo = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::algo(this), - _Internal::algo(this).GetCachedSize(), target, stream); + 1, *_impl_.algo_, _impl_.algo_->GetCachedSize(), target, stream); } // uint64 target_difficulty = 2; @@ -9580,35 +9789,36 @@ const ::_pbi::TcParseTable<3, 4, 1, 0, 2> MinerData::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData MinerData::_class_data_ = { - MinerData::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* MinerData::GetClassData() const { - return &_class_data_; -} -void MinerData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void MinerData::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.MinerData) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_algo()->::tari::rpc::PowAlgo::MergeFrom( - from._internal_algo()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.algo_ != nullptr); + if (_this->_impl_.algo_ == nullptr) { + _this->_impl_.algo_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::PowAlgo>(arena, *from._impl_.algo_); + } else { + _this->_impl_.algo_->MergeFrom(*from._impl_.algo_); + } } if (from._internal_target_difficulty() != 0) { - _this->_internal_set_target_difficulty(from._internal_target_difficulty()); + _this->_impl_.target_difficulty_ = from._impl_.target_difficulty_; } if (from._internal_reward() != 0) { - _this->_internal_set_reward(from._internal_reward()); + _this->_impl_.reward_ = from._impl_.reward_; } if (from._internal_total_fees() != 0) { - _this->_internal_set_total_fees(from._internal_total_fees()); + _this->_impl_.total_fees_ = from._impl_.total_fees_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -9623,9 +9833,6 @@ PROTOBUF_NOINLINE bool MinerData::IsInitialized() const { return true; } -::_pbi::CachedSize* MinerData::AccessCachedSize() const { - return &_impl_._cached_size_; -} void MinerData::InternalSwap(MinerData* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -9639,9 +9846,9 @@ void MinerData::InternalSwap(MinerData* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata MinerData::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[29]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[29]); } // =================================================================== @@ -9695,6 +9902,20 @@ inline void SearchKernelsRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +SearchKernelsRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SearchKernelsRequest, _impl_._cached_size_), + false, + }, + &SearchKernelsRequest::MergeImpl, + &SearchKernelsRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void SearchKernelsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.SearchKernelsRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -9727,6 +9948,9 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SearchKernelsRequest::_table_ = { offsetof(decltype(_table_), aux_entries), &_SearchKernelsRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SearchKernelsRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated .tari.rpc.Signature signatures = 1; {::_pbi::TcParser::FastMtR1, @@ -9751,11 +9975,14 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SearchKernelsRequest::_table_ = { (void)cached_has_bits; // repeated .tari.rpc.Signature signatures = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_signatures_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_signatures_size()); + i < n; i++) { const auto& repfield = this->_internal_signatures().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -9778,21 +10005,13 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SearchKernelsRequest::_table_ = { // repeated .tari.rpc.Signature signatures = 1; total_size += 1UL * this->_internal_signatures_size(); for (const auto& msg : this->_internal_signatures()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData SearchKernelsRequest::_class_data_ = { - SearchKernelsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SearchKernelsRequest::GetClassData() const { - return &_class_data_; -} -void SearchKernelsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void SearchKernelsRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.SearchKernelsRequest) @@ -9816,9 +10035,6 @@ PROTOBUF_NOINLINE bool SearchKernelsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SearchKernelsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SearchKernelsRequest::InternalSwap(SearchKernelsRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -9826,9 +10042,9 @@ void SearchKernelsRequest::InternalSwap(SearchKernelsRequest* PROTOBUF_RESTRICT } ::google::protobuf::Metadata SearchKernelsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[30]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[30]); } // =================================================================== @@ -9878,6 +10094,20 @@ inline void SearchUtxosRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +SearchUtxosRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SearchUtxosRequest, _impl_._cached_size_), + false, + }, + &SearchUtxosRequest::MergeImpl, + &SearchUtxosRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void SearchUtxosRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.SearchUtxosRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -9910,6 +10140,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SearchUtxosRequest::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_SearchUtxosRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SearchUtxosRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated bytes commitments = 1; {::_pbi::TcParser::FastBR1, @@ -9965,15 +10198,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SearchUtxosRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData SearchUtxosRequest::_class_data_ = { - SearchUtxosRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SearchUtxosRequest::GetClassData() const { - return &_class_data_; -} -void SearchUtxosRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void SearchUtxosRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.SearchUtxosRequest) @@ -9996,9 +10222,6 @@ PROTOBUF_NOINLINE bool SearchUtxosRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SearchUtxosRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SearchUtxosRequest::InternalSwap(SearchUtxosRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -10006,9 +10229,9 @@ void SearchUtxosRequest::InternalSwap(SearchUtxosRequest* PROTOBUF_RESTRICT othe } ::google::protobuf::Metadata SearchUtxosRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[31]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[31]); } // =================================================================== @@ -10058,6 +10281,20 @@ inline void FetchMatchingUtxosRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +FetchMatchingUtxosRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosRequest, _impl_._cached_size_), + false, + }, + &FetchMatchingUtxosRequest::MergeImpl, + &FetchMatchingUtxosRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void FetchMatchingUtxosRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.FetchMatchingUtxosRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -10090,6 +10327,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FetchMatchingUtxosRequest::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_FetchMatchingUtxosRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::FetchMatchingUtxosRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated bytes hashes = 1; {::_pbi::TcParser::FastBR1, @@ -10145,15 +10385,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FetchMatchingUtxosRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData FetchMatchingUtxosRequest::_class_data_ = { - FetchMatchingUtxosRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FetchMatchingUtxosRequest::GetClassData() const { - return &_class_data_; -} -void FetchMatchingUtxosRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void FetchMatchingUtxosRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.FetchMatchingUtxosRequest) @@ -10176,9 +10409,6 @@ PROTOBUF_NOINLINE bool FetchMatchingUtxosRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* FetchMatchingUtxosRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void FetchMatchingUtxosRequest::InternalSwap(FetchMatchingUtxosRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -10186,9 +10416,9 @@ void FetchMatchingUtxosRequest::InternalSwap(FetchMatchingUtxosRequest* PROTOBUF } ::google::protobuf::Metadata FetchMatchingUtxosRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[32]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[32]); } // =================================================================== @@ -10197,15 +10427,8 @@ class FetchMatchingUtxosResponse::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosResponse, _impl_._has_bits_); - static const ::tari::rpc::TransactionOutput& output(const FetchMatchingUtxosResponse* msg); - static void set_has_output(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::TransactionOutput& FetchMatchingUtxosResponse::_Internal::output(const FetchMatchingUtxosResponse* msg) { - return *msg->_impl_.output_; -} void FetchMatchingUtxosResponse::clear_output() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.output_ != nullptr) _impl_.output_->Clear(); @@ -10232,9 +10455,9 @@ FetchMatchingUtxosResponse::FetchMatchingUtxosResponse( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.output_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::TransactionOutput>(arena, *from._impl_.output_) - : nullptr; + _impl_.output_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::TransactionOutput>( + arena, *from._impl_.output_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.FetchMatchingUtxosResponse) } @@ -10258,6 +10481,20 @@ inline void FetchMatchingUtxosResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +FetchMatchingUtxosResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosResponse, _impl_._cached_size_), + false, + }, + &FetchMatchingUtxosResponse::MergeImpl, + &FetchMatchingUtxosResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void FetchMatchingUtxosResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.FetchMatchingUtxosResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -10295,6 +10532,9 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FetchMatchingUtxosResponse::_table_ = offsetof(decltype(_table_), aux_entries), &_FetchMatchingUtxosResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::FetchMatchingUtxosResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.TransactionOutput output = 1; {::_pbi::TcParser::FastMtS1, @@ -10322,8 +10562,7 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FetchMatchingUtxosResponse::_table_ = // .tari.rpc.TransactionOutput output = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::output(this), - _Internal::output(this).GetCachedSize(), target, stream); + 1, *_impl_.output_, _impl_.output_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -10353,26 +10592,27 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FetchMatchingUtxosResponse::_table_ = return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData FetchMatchingUtxosResponse::_class_data_ = { - FetchMatchingUtxosResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FetchMatchingUtxosResponse::GetClassData() const { - return &_class_data_; -} -void FetchMatchingUtxosResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void FetchMatchingUtxosResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.FetchMatchingUtxosResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_output()->::tari::rpc::TransactionOutput::MergeFrom( - from._internal_output()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.output_ != nullptr); + if (_this->_impl_.output_ == nullptr) { + _this->_impl_.output_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::TransactionOutput>(arena, *from._impl_.output_); + } else { + _this->_impl_.output_->MergeFrom(*from._impl_.output_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -10387,9 +10627,6 @@ PROTOBUF_NOINLINE bool FetchMatchingUtxosResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* FetchMatchingUtxosResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void FetchMatchingUtxosResponse::InternalSwap(FetchMatchingUtxosResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -10398,9 +10635,9 @@ void FetchMatchingUtxosResponse::InternalSwap(FetchMatchingUtxosResponse* PROTOB } ::google::protobuf::Metadata FetchMatchingUtxosResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[33]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[33]); } // =================================================================== @@ -10409,15 +10646,8 @@ class GetPeersResponse::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetPeersResponse, _impl_._has_bits_); - static const ::tari::rpc::Peer& peer(const GetPeersResponse* msg); - static void set_has_peer(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::Peer& GetPeersResponse::_Internal::peer(const GetPeersResponse* msg) { - return *msg->_impl_.peer_; -} void GetPeersResponse::clear_peer() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.peer_ != nullptr) _impl_.peer_->Clear(); @@ -10444,9 +10674,9 @@ GetPeersResponse::GetPeersResponse( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.peer_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::Peer>(arena, *from._impl_.peer_) - : nullptr; + _impl_.peer_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Peer>( + arena, *from._impl_.peer_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetPeersResponse) } @@ -10470,6 +10700,20 @@ inline void GetPeersResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetPeersResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetPeersResponse, _impl_._cached_size_), + false, + }, + &GetPeersResponse::MergeImpl, + &GetPeersResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetPeersResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetPeersResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -10507,6 +10751,9 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetPeersResponse::_table_ = { offsetof(decltype(_table_), aux_entries), &_GetPeersResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetPeersResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.Peer peer = 1; {::_pbi::TcParser::FastMtS1, @@ -10534,8 +10781,7 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetPeersResponse::_table_ = { // .tari.rpc.Peer peer = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::peer(this), - _Internal::peer(this).GetCachedSize(), target, stream); + 1, *_impl_.peer_, _impl_.peer_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -10565,26 +10811,27 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetPeersResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetPeersResponse::_class_data_ = { - GetPeersResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetPeersResponse::GetClassData() const { - return &_class_data_; -} -void GetPeersResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetPeersResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetPeersResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_peer()->::tari::rpc::Peer::MergeFrom( - from._internal_peer()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.peer_ != nullptr); + if (_this->_impl_.peer_ == nullptr) { + _this->_impl_.peer_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Peer>(arena, *from._impl_.peer_); + } else { + _this->_impl_.peer_->MergeFrom(*from._impl_.peer_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -10599,9 +10846,6 @@ PROTOBUF_NOINLINE bool GetPeersResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetPeersResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetPeersResponse::InternalSwap(GetPeersResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -10610,9 +10854,9 @@ void GetPeersResponse::InternalSwap(GetPeersResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata GetPeersResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[34]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[34]); } // =================================================================== @@ -10645,9 +10889,9 @@ GetPeersRequest::GetPeersRequest( ::google::protobuf::Metadata GetPeersRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[35]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[35]); } // =================================================================== @@ -10656,15 +10900,8 @@ class SubmitTransactionRequest::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, _impl_._has_bits_); - static const ::tari::rpc::Transaction& transaction(const SubmitTransactionRequest* msg); - static void set_has_transaction(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::Transaction& SubmitTransactionRequest::_Internal::transaction(const SubmitTransactionRequest* msg) { - return *msg->_impl_.transaction_; -} void SubmitTransactionRequest::clear_transaction() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.transaction_ != nullptr) _impl_.transaction_->Clear(); @@ -10691,9 +10928,9 @@ SubmitTransactionRequest::SubmitTransactionRequest( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.transaction_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::Transaction>(arena, *from._impl_.transaction_) - : nullptr; + _impl_.transaction_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Transaction>( + arena, *from._impl_.transaction_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.SubmitTransactionRequest) } @@ -10717,6 +10954,20 @@ inline void SubmitTransactionRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +SubmitTransactionRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, _impl_._cached_size_), + false, + }, + &SubmitTransactionRequest::MergeImpl, + &SubmitTransactionRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void SubmitTransactionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.SubmitTransactionRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -10754,6 +11005,9 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SubmitTransactionRequest::_table_ = { offsetof(decltype(_table_), aux_entries), &_SubmitTransactionRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SubmitTransactionRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.Transaction transaction = 1; {::_pbi::TcParser::FastMtS1, @@ -10781,8 +11035,7 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SubmitTransactionRequest::_table_ = { // .tari.rpc.Transaction transaction = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::transaction(this), - _Internal::transaction(this).GetCachedSize(), target, stream); + 1, *_impl_.transaction_, _impl_.transaction_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -10812,26 +11065,27 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SubmitTransactionRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData SubmitTransactionRequest::_class_data_ = { - SubmitTransactionRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SubmitTransactionRequest::GetClassData() const { - return &_class_data_; -} -void SubmitTransactionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void SubmitTransactionRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.SubmitTransactionRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_transaction()->::tari::rpc::Transaction::MergeFrom( - from._internal_transaction()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.transaction_ != nullptr); + if (_this->_impl_.transaction_ == nullptr) { + _this->_impl_.transaction_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Transaction>(arena, *from._impl_.transaction_); + } else { + _this->_impl_.transaction_->MergeFrom(*from._impl_.transaction_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -10846,9 +11100,6 @@ PROTOBUF_NOINLINE bool SubmitTransactionRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SubmitTransactionRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SubmitTransactionRequest::InternalSwap(SubmitTransactionRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -10857,9 +11108,9 @@ void SubmitTransactionRequest::InternalSwap(SubmitTransactionRequest* PROTOBUF_R } ::google::protobuf::Metadata SubmitTransactionRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[36]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[36]); } // =================================================================== @@ -10896,6 +11147,20 @@ inline void SubmitTransactionResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +SubmitTransactionResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SubmitTransactionResponse, _impl_._cached_size_), + false, + }, + &SubmitTransactionResponse::MergeImpl, + &SubmitTransactionResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void SubmitTransactionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.SubmitTransactionResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -10928,6 +11193,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SubmitTransactionResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_SubmitTransactionResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SubmitTransactionResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.SubmitTransactionResult result = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SubmitTransactionResponse, _impl_.result_), 63>(), @@ -10984,15 +11252,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SubmitTransactionResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData SubmitTransactionResponse::_class_data_ = { - SubmitTransactionResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SubmitTransactionResponse::GetClassData() const { - return &_class_data_; -} -void SubmitTransactionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void SubmitTransactionResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.SubmitTransactionResponse) @@ -11001,7 +11262,7 @@ void SubmitTransactionResponse::MergeImpl(::google::protobuf::Message& to_msg, c (void) cached_has_bits; if (from._internal_result() != 0) { - _this->_internal_set_result(from._internal_result()); + _this->_impl_.result_ = from._impl_.result_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -11017,9 +11278,6 @@ PROTOBUF_NOINLINE bool SubmitTransactionResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* SubmitTransactionResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SubmitTransactionResponse::InternalSwap(SubmitTransactionResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -11027,9 +11285,9 @@ void SubmitTransactionResponse::InternalSwap(SubmitTransactionResponse* PROTOBUF } ::google::protobuf::Metadata SubmitTransactionResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[37]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[37]); } // =================================================================== @@ -11062,9 +11320,9 @@ GetMempoolTransactionsRequest::GetMempoolTransactionsRequest( ::google::protobuf::Metadata GetMempoolTransactionsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[38]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[38]); } // =================================================================== @@ -11073,15 +11331,8 @@ class GetMempoolTransactionsResponse::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsResponse, _impl_._has_bits_); - static const ::tari::rpc::Transaction& transaction(const GetMempoolTransactionsResponse* msg); - static void set_has_transaction(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::Transaction& GetMempoolTransactionsResponse::_Internal::transaction(const GetMempoolTransactionsResponse* msg) { - return *msg->_impl_.transaction_; -} void GetMempoolTransactionsResponse::clear_transaction() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.transaction_ != nullptr) _impl_.transaction_->Clear(); @@ -11108,9 +11359,9 @@ GetMempoolTransactionsResponse::GetMempoolTransactionsResponse( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.transaction_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::Transaction>(arena, *from._impl_.transaction_) - : nullptr; + _impl_.transaction_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Transaction>( + arena, *from._impl_.transaction_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetMempoolTransactionsResponse) } @@ -11134,6 +11385,20 @@ inline void GetMempoolTransactionsResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetMempoolTransactionsResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsResponse, _impl_._cached_size_), + false, + }, + &GetMempoolTransactionsResponse::MergeImpl, + &GetMempoolTransactionsResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetMempoolTransactionsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetMempoolTransactionsResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -11171,6 +11436,9 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetMempoolTransactionsResponse::_table offsetof(decltype(_table_), aux_entries), &_GetMempoolTransactionsResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetMempoolTransactionsResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.Transaction transaction = 1; {::_pbi::TcParser::FastMtS1, @@ -11198,8 +11466,7 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetMempoolTransactionsResponse::_table // .tari.rpc.Transaction transaction = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::transaction(this), - _Internal::transaction(this).GetCachedSize(), target, stream); + 1, *_impl_.transaction_, _impl_.transaction_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -11229,26 +11496,27 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetMempoolTransactionsResponse::_table return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetMempoolTransactionsResponse::_class_data_ = { - GetMempoolTransactionsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetMempoolTransactionsResponse::GetClassData() const { - return &_class_data_; -} -void GetMempoolTransactionsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetMempoolTransactionsResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetMempoolTransactionsResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_transaction()->::tari::rpc::Transaction::MergeFrom( - from._internal_transaction()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.transaction_ != nullptr); + if (_this->_impl_.transaction_ == nullptr) { + _this->_impl_.transaction_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Transaction>(arena, *from._impl_.transaction_); + } else { + _this->_impl_.transaction_->MergeFrom(*from._impl_.transaction_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -11263,9 +11531,6 @@ PROTOBUF_NOINLINE bool GetMempoolTransactionsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetMempoolTransactionsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetMempoolTransactionsResponse::InternalSwap(GetMempoolTransactionsResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -11274,9 +11539,9 @@ void GetMempoolTransactionsResponse::InternalSwap(GetMempoolTransactionsResponse } ::google::protobuf::Metadata GetMempoolTransactionsResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[39]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[39]); } // =================================================================== @@ -11285,15 +11550,8 @@ class TransactionStateRequest::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(TransactionStateRequest, _impl_._has_bits_); - static const ::tari::rpc::Signature& excess_sig(const TransactionStateRequest* msg); - static void set_has_excess_sig(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::Signature& TransactionStateRequest::_Internal::excess_sig(const TransactionStateRequest* msg) { - return *msg->_impl_.excess_sig_; -} void TransactionStateRequest::clear_excess_sig() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.excess_sig_ != nullptr) _impl_.excess_sig_->Clear(); @@ -11320,9 +11578,9 @@ TransactionStateRequest::TransactionStateRequest( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.excess_sig_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::Signature>(arena, *from._impl_.excess_sig_) - : nullptr; + _impl_.excess_sig_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>( + arena, *from._impl_.excess_sig_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.TransactionStateRequest) } @@ -11346,6 +11604,20 @@ inline void TransactionStateRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +TransactionStateRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(TransactionStateRequest, _impl_._cached_size_), + false, + }, + &TransactionStateRequest::MergeImpl, + &TransactionStateRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void TransactionStateRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionStateRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -11383,6 +11655,9 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransactionStateRequest::_table_ = { offsetof(decltype(_table_), aux_entries), &_TransactionStateRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::TransactionStateRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.Signature excess_sig = 1; {::_pbi::TcParser::FastMtS1, @@ -11410,8 +11685,7 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransactionStateRequest::_table_ = { // .tari.rpc.Signature excess_sig = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::excess_sig(this), - _Internal::excess_sig(this).GetCachedSize(), target, stream); + 1, *_impl_.excess_sig_, _impl_.excess_sig_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -11441,26 +11715,27 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransactionStateRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData TransactionStateRequest::_class_data_ = { - TransactionStateRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TransactionStateRequest::GetClassData() const { - return &_class_data_; -} -void TransactionStateRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void TransactionStateRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.TransactionStateRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_excess_sig()->::tari::rpc::Signature::MergeFrom( - from._internal_excess_sig()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.excess_sig_ != nullptr); + if (_this->_impl_.excess_sig_ == nullptr) { + _this->_impl_.excess_sig_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>(arena, *from._impl_.excess_sig_); + } else { + _this->_impl_.excess_sig_->MergeFrom(*from._impl_.excess_sig_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -11475,9 +11750,6 @@ PROTOBUF_NOINLINE bool TransactionStateRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* TransactionStateRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TransactionStateRequest::InternalSwap(TransactionStateRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -11486,9 +11758,9 @@ void TransactionStateRequest::InternalSwap(TransactionStateRequest* PROTOBUF_RES } ::google::protobuf::Metadata TransactionStateRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[40]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[40]); } // =================================================================== @@ -11525,6 +11797,20 @@ inline void TransactionStateResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +TransactionStateResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(TransactionStateResponse, _impl_._cached_size_), + false, + }, + &TransactionStateResponse::MergeImpl, + &TransactionStateResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void TransactionStateResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionStateResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -11557,6 +11843,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> TransactionStateResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_TransactionStateResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::TransactionStateResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.TransactionLocation result = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionStateResponse, _impl_.result_), 63>(), @@ -11613,15 +11902,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> TransactionStateResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData TransactionStateResponse::_class_data_ = { - TransactionStateResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TransactionStateResponse::GetClassData() const { - return &_class_data_; -} -void TransactionStateResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void TransactionStateResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.TransactionStateResponse) @@ -11630,7 +11912,7 @@ void TransactionStateResponse::MergeImpl(::google::protobuf::Message& to_msg, co (void) cached_has_bits; if (from._internal_result() != 0) { - _this->_internal_set_result(from._internal_result()); + _this->_impl_.result_ = from._impl_.result_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -11646,9 +11928,6 @@ PROTOBUF_NOINLINE bool TransactionStateResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* TransactionStateResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TransactionStateResponse::InternalSwap(TransactionStateResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -11656,9 +11935,9 @@ void TransactionStateResponse::InternalSwap(TransactionStateResponse* PROTOBUF_R } ::google::protobuf::Metadata TransactionStateResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[41]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[41]); } // =================================================================== @@ -11700,6 +11979,20 @@ inline void MempoolStatsResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +MempoolStatsResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_._cached_size_), + false, + }, + &MempoolStatsResponse::MergeImpl, + &MempoolStatsResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void MempoolStatsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.MempoolStatsResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -11734,6 +12027,9 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> MempoolStatsResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_MempoolStatsResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::MempoolStatsResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 unconfirmed_weight = 4; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MempoolStatsResponse, _impl_.unconfirmed_weight_), 63>(), @@ -11829,15 +12125,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> MempoolStatsResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData MempoolStatsResponse::_class_data_ = { - MempoolStatsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* MempoolStatsResponse::GetClassData() const { - return &_class_data_; -} -void MempoolStatsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void MempoolStatsResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.MempoolStatsResponse) @@ -11846,13 +12135,13 @@ void MempoolStatsResponse::MergeImpl(::google::protobuf::Message& to_msg, const (void) cached_has_bits; if (from._internal_unconfirmed_txs() != 0) { - _this->_internal_set_unconfirmed_txs(from._internal_unconfirmed_txs()); + _this->_impl_.unconfirmed_txs_ = from._impl_.unconfirmed_txs_; } if (from._internal_reorg_txs() != 0) { - _this->_internal_set_reorg_txs(from._internal_reorg_txs()); + _this->_impl_.reorg_txs_ = from._impl_.reorg_txs_; } if (from._internal_unconfirmed_weight() != 0) { - _this->_internal_set_unconfirmed_weight(from._internal_unconfirmed_weight()); + _this->_impl_.unconfirmed_weight_ = from._impl_.unconfirmed_weight_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -11868,9 +12157,6 @@ PROTOBUF_NOINLINE bool MempoolStatsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* MempoolStatsResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void MempoolStatsResponse::InternalSwap(MempoolStatsResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -11883,9 +12169,9 @@ void MempoolStatsResponse::InternalSwap(MempoolStatsResponse* PROTOBUF_RESTRICT } ::google::protobuf::Metadata MempoolStatsResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[42]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[42]); } // =================================================================== @@ -11922,6 +12208,20 @@ inline void GetActiveValidatorNodesRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetActiveValidatorNodesRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_._cached_size_), + false, + }, + &GetActiveValidatorNodesRequest::MergeImpl, + &GetActiveValidatorNodesRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetActiveValidatorNodesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetActiveValidatorNodesRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -11954,6 +12254,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetActiveValidatorNodesRequest::_table offsetof(decltype(_table_), field_names), // no aux_entries &_GetActiveValidatorNodesRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetActiveValidatorNodesRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 height = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetActiveValidatorNodesRequest, _impl_.height_), 63>(), @@ -12010,15 +12313,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetActiveValidatorNodesRequest::_table return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetActiveValidatorNodesRequest::_class_data_ = { - GetActiveValidatorNodesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetActiveValidatorNodesRequest::GetClassData() const { - return &_class_data_; -} -void GetActiveValidatorNodesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetActiveValidatorNodesRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetActiveValidatorNodesRequest) @@ -12027,7 +12323,7 @@ void GetActiveValidatorNodesRequest::MergeImpl(::google::protobuf::Message& to_m (void) cached_has_bits; if (from._internal_height() != 0) { - _this->_internal_set_height(from._internal_height()); + _this->_impl_.height_ = from._impl_.height_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -12043,9 +12339,6 @@ PROTOBUF_NOINLINE bool GetActiveValidatorNodesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetActiveValidatorNodesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetActiveValidatorNodesRequest::InternalSwap(GetActiveValidatorNodesRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -12053,9 +12346,9 @@ void GetActiveValidatorNodesRequest::InternalSwap(GetActiveValidatorNodesRequest } ::google::protobuf::Metadata GetActiveValidatorNodesRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[43]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[43]); } // =================================================================== @@ -12109,6 +12402,20 @@ inline void GetActiveValidatorNodesResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetActiveValidatorNodesResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_._cached_size_), + false, + }, + &GetActiveValidatorNodesResponse::MergeImpl, + &GetActiveValidatorNodesResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetActiveValidatorNodesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetActiveValidatorNodesResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -12142,6 +12449,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetActiveValidatorNodesResponse::_tabl offsetof(decltype(_table_), field_names), // no aux_entries &_GetActiveValidatorNodesResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetActiveValidatorNodesResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes public_key = 2; {::_pbi::TcParser::FastBS1, @@ -12215,15 +12525,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetActiveValidatorNodesResponse::_tabl return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetActiveValidatorNodesResponse::_class_data_ = { - GetActiveValidatorNodesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetActiveValidatorNodesResponse::GetClassData() const { - return &_class_data_; -} -void GetActiveValidatorNodesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetActiveValidatorNodesResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetActiveValidatorNodesResponse) @@ -12251,9 +12554,6 @@ PROTOBUF_NOINLINE bool GetActiveValidatorNodesResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetActiveValidatorNodesResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetActiveValidatorNodesResponse::InternalSwap(GetActiveValidatorNodesResponse* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -12264,9 +12564,9 @@ void GetActiveValidatorNodesResponse::InternalSwap(GetActiveValidatorNodesRespon } ::google::protobuf::Metadata GetActiveValidatorNodesResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[44]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[44]); } // =================================================================== @@ -12319,6 +12619,20 @@ inline void GetShardKeyRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetShardKeyRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_._cached_size_), + false, + }, + &GetShardKeyRequest::MergeImpl, + &GetShardKeyRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetShardKeyRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetShardKeyRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -12352,6 +12666,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetShardKeyRequest::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_GetShardKeyRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetShardKeyRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes public_key = 2; {::_pbi::TcParser::FastBS1, @@ -12426,15 +12743,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetShardKeyRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetShardKeyRequest::_class_data_ = { - GetShardKeyRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetShardKeyRequest::GetClassData() const { - return &_class_data_; -} -void GetShardKeyRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetShardKeyRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetShardKeyRequest) @@ -12446,7 +12756,7 @@ void GetShardKeyRequest::MergeImpl(::google::protobuf::Message& to_msg, const :: _this->_internal_set_public_key(from._internal_public_key()); } if (from._internal_height() != 0) { - _this->_internal_set_height(from._internal_height()); + _this->_impl_.height_ = from._impl_.height_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -12462,9 +12772,6 @@ PROTOBUF_NOINLINE bool GetShardKeyRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetShardKeyRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetShardKeyRequest::InternalSwap(GetShardKeyRequest* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -12475,9 +12782,9 @@ void GetShardKeyRequest::InternalSwap(GetShardKeyRequest* PROTOBUF_RESTRICT othe } ::google::protobuf::Metadata GetShardKeyRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[45]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[45]); } // =================================================================== @@ -12530,6 +12837,20 @@ inline void GetShardKeyResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetShardKeyResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_._cached_size_), + false, + }, + &GetShardKeyResponse::MergeImpl, + &GetShardKeyResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetShardKeyResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetShardKeyResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -12563,6 +12884,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetShardKeyResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_GetShardKeyResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetShardKeyResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool found = 2; {::_pbi::TcParser::SingularVarintNoZag1(), @@ -12636,15 +12960,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetShardKeyResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetShardKeyResponse::_class_data_ = { - GetShardKeyResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetShardKeyResponse::GetClassData() const { - return &_class_data_; -} -void GetShardKeyResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetShardKeyResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetShardKeyResponse) @@ -12656,7 +12973,7 @@ void GetShardKeyResponse::MergeImpl(::google::protobuf::Message& to_msg, const : _this->_internal_set_shard_key(from._internal_shard_key()); } if (from._internal_found() != 0) { - _this->_internal_set_found(from._internal_found()); + _this->_impl_.found_ = from._impl_.found_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -12672,9 +12989,6 @@ PROTOBUF_NOINLINE bool GetShardKeyResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetShardKeyResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetShardKeyResponse::InternalSwap(GetShardKeyResponse* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -12685,9 +12999,9 @@ void GetShardKeyResponse::InternalSwap(GetShardKeyResponse* PROTOBUF_RESTRICT ot } ::google::protobuf::Metadata GetShardKeyResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[46]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[46]); } // =================================================================== @@ -12740,6 +13054,20 @@ inline void GetTemplateRegistrationsRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetTemplateRegistrationsRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_._cached_size_), + false, + }, + &GetTemplateRegistrationsRequest::MergeImpl, + &GetTemplateRegistrationsRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetTemplateRegistrationsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetTemplateRegistrationsRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -12773,6 +13101,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetTemplateRegistrationsRequest::_tabl offsetof(decltype(_table_), field_names), // no aux_entries &_GetTemplateRegistrationsRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetTemplateRegistrationsRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 count = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetTemplateRegistrationsRequest, _impl_.count_), 63>(), @@ -12847,15 +13178,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetTemplateRegistrationsRequest::_tabl return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetTemplateRegistrationsRequest::_class_data_ = { - GetTemplateRegistrationsRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetTemplateRegistrationsRequest::GetClassData() const { - return &_class_data_; -} -void GetTemplateRegistrationsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetTemplateRegistrationsRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetTemplateRegistrationsRequest) @@ -12867,7 +13191,7 @@ void GetTemplateRegistrationsRequest::MergeImpl(::google::protobuf::Message& to_ _this->_internal_set_start_hash(from._internal_start_hash()); } if (from._internal_count() != 0) { - _this->_internal_set_count(from._internal_count()); + _this->_impl_.count_ = from._impl_.count_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -12883,9 +13207,6 @@ PROTOBUF_NOINLINE bool GetTemplateRegistrationsRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetTemplateRegistrationsRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetTemplateRegistrationsRequest::InternalSwap(GetTemplateRegistrationsRequest* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -12896,9 +13217,9 @@ void GetTemplateRegistrationsRequest::InternalSwap(GetTemplateRegistrationsReque } ::google::protobuf::Metadata GetTemplateRegistrationsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[47]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[47]); } // =================================================================== @@ -12907,15 +13228,8 @@ class GetTemplateRegistrationResponse::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_._has_bits_); - static const ::tari::rpc::TemplateRegistration& registration(const GetTemplateRegistrationResponse* msg); - static void set_has_registration(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::TemplateRegistration& GetTemplateRegistrationResponse::_Internal::registration(const GetTemplateRegistrationResponse* msg) { - return *msg->_impl_.registration_; -} void GetTemplateRegistrationResponse::clear_registration() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.registration_ != nullptr) _impl_.registration_->Clear(); @@ -12943,9 +13257,9 @@ GetTemplateRegistrationResponse::GetTemplateRegistrationResponse( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.registration_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::TemplateRegistration>(arena, *from._impl_.registration_) - : nullptr; + _impl_.registration_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateRegistration>( + arena, *from._impl_.registration_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetTemplateRegistrationResponse) } @@ -12971,6 +13285,20 @@ inline void GetTemplateRegistrationResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetTemplateRegistrationResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_._cached_size_), + false, + }, + &GetTemplateRegistrationResponse::MergeImpl, + &GetTemplateRegistrationResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetTemplateRegistrationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetTemplateRegistrationResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -13009,6 +13337,9 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetTemplateRegistrationResponse::_tabl offsetof(decltype(_table_), aux_entries), &_GetTemplateRegistrationResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetTemplateRegistrationResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.TemplateRegistration registration = 2; {::_pbi::TcParser::FastMtS1, @@ -13048,8 +13379,7 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetTemplateRegistrationResponse::_tabl // .tari.rpc.TemplateRegistration registration = 2; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::registration(this), - _Internal::registration(this).GetCachedSize(), target, stream); + 2, *_impl_.registration_, _impl_.registration_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -13085,17 +13415,11 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetTemplateRegistrationResponse::_tabl return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetTemplateRegistrationResponse::_class_data_ = { - GetTemplateRegistrationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetTemplateRegistrationResponse::GetClassData() const { - return &_class_data_; -} -void GetTemplateRegistrationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetTemplateRegistrationResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetTemplateRegistrationResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -13104,10 +13428,17 @@ void GetTemplateRegistrationResponse::MergeImpl(::google::protobuf::Message& to_ if (!from._internal_utxo_hash().empty()) { _this->_internal_set_utxo_hash(from._internal_utxo_hash()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_registration()->::tari::rpc::TemplateRegistration::MergeFrom( - from._internal_registration()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.registration_ != nullptr); + if (_this->_impl_.registration_ == nullptr) { + _this->_impl_.registration_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateRegistration>(arena, *from._impl_.registration_); + } else { + _this->_impl_.registration_->MergeFrom(*from._impl_.registration_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -13122,9 +13453,6 @@ PROTOBUF_NOINLINE bool GetTemplateRegistrationResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetTemplateRegistrationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetTemplateRegistrationResponse::InternalSwap(GetTemplateRegistrationResponse* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -13136,9 +13464,9 @@ void GetTemplateRegistrationResponse::InternalSwap(GetTemplateRegistrationRespon } ::google::protobuf::Metadata GetTemplateRegistrationResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[48]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[48]); } // =================================================================== @@ -13194,6 +13522,20 @@ inline void BlockInfo::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +BlockInfo::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_._cached_size_), + false, + }, + &BlockInfo::MergeImpl, + &BlockInfo::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void BlockInfo::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.BlockInfo) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -13228,6 +13570,9 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> BlockInfo::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_BlockInfo_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::BlockInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 height = 1; @@ -13321,15 +13666,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> BlockInfo::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData BlockInfo::_class_data_ = { - BlockInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* BlockInfo::GetClassData() const { - return &_class_data_; -} -void BlockInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void BlockInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.BlockInfo) @@ -13344,7 +13682,7 @@ void BlockInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::p _this->_internal_set_next_block_hash(from._internal_next_block_hash()); } if (from._internal_height() != 0) { - _this->_internal_set_height(from._internal_height()); + _this->_impl_.height_ = from._impl_.height_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -13360,9 +13698,6 @@ PROTOBUF_NOINLINE bool BlockInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* BlockInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} void BlockInfo::InternalSwap(BlockInfo* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -13374,9 +13709,9 @@ void BlockInfo::InternalSwap(BlockInfo* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata BlockInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[49]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[49]); } // =================================================================== @@ -13429,6 +13764,20 @@ inline void GetSideChainUtxosRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetSideChainUtxosRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_._cached_size_), + false, + }, + &GetSideChainUtxosRequest::MergeImpl, + &GetSideChainUtxosRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetSideChainUtxosRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetSideChainUtxosRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -13462,6 +13811,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetSideChainUtxosRequest::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_GetSideChainUtxosRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetSideChainUtxosRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 count = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetSideChainUtxosRequest, _impl_.count_), 63>(), @@ -13536,15 +13888,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetSideChainUtxosRequest::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetSideChainUtxosRequest::_class_data_ = { - GetSideChainUtxosRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetSideChainUtxosRequest::GetClassData() const { - return &_class_data_; -} -void GetSideChainUtxosRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetSideChainUtxosRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetSideChainUtxosRequest) @@ -13556,7 +13901,7 @@ void GetSideChainUtxosRequest::MergeImpl(::google::protobuf::Message& to_msg, co _this->_internal_set_start_hash(from._internal_start_hash()); } if (from._internal_count() != 0) { - _this->_internal_set_count(from._internal_count()); + _this->_impl_.count_ = from._impl_.count_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -13572,9 +13917,6 @@ PROTOBUF_NOINLINE bool GetSideChainUtxosRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetSideChainUtxosRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetSideChainUtxosRequest::InternalSwap(GetSideChainUtxosRequest* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -13585,9 +13927,9 @@ void GetSideChainUtxosRequest::InternalSwap(GetSideChainUtxosRequest* PROTOBUF_R } ::google::protobuf::Metadata GetSideChainUtxosRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[50]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[50]); } // =================================================================== @@ -13596,15 +13938,8 @@ class GetSideChainUtxosResponse::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_._has_bits_); - static const ::tari::rpc::BlockInfo& block_info(const GetSideChainUtxosResponse* msg); - static void set_has_block_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::BlockInfo& GetSideChainUtxosResponse::_Internal::block_info(const GetSideChainUtxosResponse* msg) { - return *msg->_impl_.block_info_; -} void GetSideChainUtxosResponse::clear_outputs() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.outputs_.Clear(); @@ -13631,9 +13966,9 @@ GetSideChainUtxosResponse::GetSideChainUtxosResponse( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.block_info_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::BlockInfo>(arena, *from._impl_.block_info_) - : nullptr; + _impl_.block_info_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockInfo>( + arena, *from._impl_.block_info_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetSideChainUtxosResponse) } @@ -13658,6 +13993,20 @@ inline void GetSideChainUtxosResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetSideChainUtxosResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_._cached_size_), + false, + }, + &GetSideChainUtxosResponse::MergeImpl, + &GetSideChainUtxosResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetSideChainUtxosResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetSideChainUtxosResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -13696,6 +14045,9 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetSideChainUtxosResponse::_table_ = { offsetof(decltype(_table_), aux_entries), &_GetSideChainUtxosResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetSideChainUtxosResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated .tari.rpc.TransactionOutput outputs = 2; {::_pbi::TcParser::FastMtR1, @@ -13730,16 +14082,18 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetSideChainUtxosResponse::_table_ = { // .tari.rpc.BlockInfo block_info = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::block_info(this), - _Internal::block_info(this).GetCachedSize(), target, stream); + 1, *_impl_.block_info_, _impl_.block_info_->GetCachedSize(), target, stream); } // repeated .tari.rpc.TransactionOutput outputs = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_outputs_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_outputs_size()); + i < n; i++) { const auto& repfield = this->_internal_outputs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -13762,8 +14116,7 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetSideChainUtxosResponse::_table_ = { // repeated .tari.rpc.TransactionOutput outputs = 2; total_size += 1UL * this->_internal_outputs_size(); for (const auto& msg : this->_internal_outputs()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // .tari.rpc.BlockInfo block_info = 1; cached_has_bits = _impl_._has_bits_[0]; @@ -13775,17 +14128,11 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetSideChainUtxosResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetSideChainUtxosResponse::_class_data_ = { - GetSideChainUtxosResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetSideChainUtxosResponse::GetClassData() const { - return &_class_data_; -} -void GetSideChainUtxosResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetSideChainUtxosResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetSideChainUtxosResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -13793,10 +14140,17 @@ void GetSideChainUtxosResponse::MergeImpl(::google::protobuf::Message& to_msg, c _this->_internal_mutable_outputs()->MergeFrom( from._internal_outputs()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_block_info()->::tari::rpc::BlockInfo::MergeFrom( - from._internal_block_info()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.block_info_ != nullptr); + if (_this->_impl_.block_info_ == nullptr) { + _this->_impl_.block_info_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockInfo>(arena, *from._impl_.block_info_); + } else { + _this->_impl_.block_info_->MergeFrom(*from._impl_.block_info_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -13811,9 +14165,6 @@ PROTOBUF_NOINLINE bool GetSideChainUtxosResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetSideChainUtxosResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetSideChainUtxosResponse::InternalSwap(GetSideChainUtxosResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -13823,9 +14174,9 @@ void GetSideChainUtxosResponse::InternalSwap(GetSideChainUtxosResponse* PROTOBUF } ::google::protobuf::Metadata GetSideChainUtxosResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_base_5fnode_2eproto_getter, &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[51]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[51]); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -13835,4 +14186,8 @@ namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::std::false_type _static_init_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_base_5fnode_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/external/src/Tari/proto/gRPC/base_node.pb.h b/external/src/Tari/proto/gRPC/base_node.pb.h index 52f55d0..698bd82 100644 --- a/external/src/Tari/proto/gRPC/base_node.pb.h +++ b/external/src/Tari/proto/gRPC/base_node.pb.h @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: base_node.proto -// Protobuf C++ Version: 4.25.2 +// Protobuf C++ Version: 5.26.0-rc1 #ifndef GOOGLE_PROTOBUF_INCLUDED_base_5fnode_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_base_5fnode_2eproto_2epb_2eh @@ -11,17 +11,11 @@ #include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#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 // PROTOBUF_VERSION - -#if 4025002 < 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 // PROTOBUF_MIN_PROTOC_VERSION +#if PROTOBUF_VERSION != 5026000 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" @@ -449,21 +443,18 @@ inline bool TransactionLocation_Parse(absl::string_view name, TransactionLocatio // ------------------------------------------------------------------- -class ValueAtHeightResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ValueAtHeightResponse) */ { +class ValueAtHeightResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ValueAtHeightResponse) */ { public: inline ValueAtHeightResponse() : ValueAtHeightResponse(nullptr) {} ~ValueAtHeightResponse() override; - template - explicit PROTOBUF_CONSTEXPR ValueAtHeightResponse(::google::protobuf::internal::ConstantInitialized); - - inline ValueAtHeightResponse(const ValueAtHeightResponse& from) - : ValueAtHeightResponse(nullptr, from) {} - ValueAtHeightResponse(ValueAtHeightResponse&& from) noexcept - : ValueAtHeightResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR ValueAtHeightResponse( + ::google::protobuf::internal::ConstantInitialized); + inline ValueAtHeightResponse(const ValueAtHeightResponse& from) : ValueAtHeightResponse(nullptr, from) {} + inline ValueAtHeightResponse(ValueAtHeightResponse&& from) noexcept + : ValueAtHeightResponse(nullptr, std::move(from)) {} inline ValueAtHeightResponse& operator=(const ValueAtHeightResponse& from) { CopyFrom(from); return *this; @@ -471,9 +462,9 @@ class ValueAtHeightResponse final : inline ValueAtHeightResponse& operator=(ValueAtHeightResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -505,22 +496,17 @@ class ValueAtHeightResponse final : } static inline const ValueAtHeightResponse* internal_default_instance() { return reinterpret_cast( - &_ValueAtHeightResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(ValueAtHeightResponse& a, ValueAtHeightResponse& b) { - a.Swap(&b); + &_ValueAtHeightResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 12; + friend void swap(ValueAtHeightResponse& a, ValueAtHeightResponse& b) { a.Swap(&b); } inline void Swap(ValueAtHeightResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -535,51 +521,52 @@ class ValueAtHeightResponse final : // implements Message ---------------------------------------------- ValueAtHeightResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ValueAtHeightResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ValueAtHeightResponse& from) { - ValueAtHeightResponse::MergeImpl(*this, from); - } + void MergeFrom(const ValueAtHeightResponse& from) { ValueAtHeightResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(ValueAtHeightResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.ValueAtHeightResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.ValueAtHeightResponse"; } + + protected: explicit ValueAtHeightResponse(::google::protobuf::Arena* arena); ValueAtHeightResponse(::google::protobuf::Arena* arena, const ValueAtHeightResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + ValueAtHeightResponse(::google::protobuf::Arena* arena, ValueAtHeightResponse&& from) noexcept + : ValueAtHeightResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kValueFieldNumber = 1, kHeightFieldNumber = 2, @@ -607,7 +594,6 @@ class ValueAtHeightResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.ValueAtHeightResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -620,13 +606,12 @@ class ValueAtHeightResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t value_; ::uint64_t height_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -634,23 +619,21 @@ class ValueAtHeightResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TransactionStateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.TransactionStateResponse) */ { +class TransactionStateResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionStateResponse) */ { public: inline TransactionStateResponse() : TransactionStateResponse(nullptr) {} ~TransactionStateResponse() override; - template - explicit PROTOBUF_CONSTEXPR TransactionStateResponse(::google::protobuf::internal::ConstantInitialized); - - inline TransactionStateResponse(const TransactionStateResponse& from) - : TransactionStateResponse(nullptr, from) {} - TransactionStateResponse(TransactionStateResponse&& from) noexcept - : TransactionStateResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR TransactionStateResponse( + ::google::protobuf::internal::ConstantInitialized); + inline TransactionStateResponse(const TransactionStateResponse& from) : TransactionStateResponse(nullptr, from) {} + inline TransactionStateResponse(TransactionStateResponse&& from) noexcept + : TransactionStateResponse(nullptr, std::move(from)) {} inline TransactionStateResponse& operator=(const TransactionStateResponse& from) { CopyFrom(from); return *this; @@ -658,9 +641,9 @@ class TransactionStateResponse final : inline TransactionStateResponse& operator=(TransactionStateResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -692,22 +675,17 @@ class TransactionStateResponse final : } static inline const TransactionStateResponse* internal_default_instance() { return reinterpret_cast( - &_TransactionStateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 41; - - friend void swap(TransactionStateResponse& a, TransactionStateResponse& b) { - a.Swap(&b); + &_TransactionStateResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 41; + friend void swap(TransactionStateResponse& a, TransactionStateResponse& b) { a.Swap(&b); } inline void Swap(TransactionStateResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -722,51 +700,52 @@ class TransactionStateResponse final : // implements Message ---------------------------------------------- TransactionStateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TransactionStateResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransactionStateResponse& from) { - TransactionStateResponse::MergeImpl(*this, from); - } + void MergeFrom(const TransactionStateResponse& from) { TransactionStateResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(TransactionStateResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.TransactionStateResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionStateResponse"; } + + protected: explicit TransactionStateResponse(::google::protobuf::Arena* arena); TransactionStateResponse(::google::protobuf::Arena* arena, const TransactionStateResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + TransactionStateResponse(::google::protobuf::Arena* arena, TransactionStateResponse&& from) noexcept + : TransactionStateResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kResultFieldNumber = 1, }; @@ -783,7 +762,6 @@ class TransactionStateResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.TransactionStateResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -796,36 +774,33 @@ class TransactionStateResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); int result_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SyncProgressResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SyncProgressResponse) */ { +class SyncProgressResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SyncProgressResponse) */ { public: inline SyncProgressResponse() : SyncProgressResponse(nullptr) {} ~SyncProgressResponse() override; - template - explicit PROTOBUF_CONSTEXPR SyncProgressResponse(::google::protobuf::internal::ConstantInitialized); - - inline SyncProgressResponse(const SyncProgressResponse& from) - : SyncProgressResponse(nullptr, from) {} - SyncProgressResponse(SyncProgressResponse&& from) noexcept - : SyncProgressResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR SyncProgressResponse( + ::google::protobuf::internal::ConstantInitialized); + inline SyncProgressResponse(const SyncProgressResponse& from) : SyncProgressResponse(nullptr, from) {} + inline SyncProgressResponse(SyncProgressResponse&& from) noexcept + : SyncProgressResponse(nullptr, std::move(from)) {} inline SyncProgressResponse& operator=(const SyncProgressResponse& from) { CopyFrom(from); return *this; @@ -833,9 +808,9 @@ class SyncProgressResponse final : inline SyncProgressResponse& operator=(SyncProgressResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -867,22 +842,17 @@ class SyncProgressResponse final : } static inline const SyncProgressResponse* internal_default_instance() { return reinterpret_cast( - &_SyncProgressResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(SyncProgressResponse& a, SyncProgressResponse& b) { - a.Swap(&b); + &_SyncProgressResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 26; + friend void swap(SyncProgressResponse& a, SyncProgressResponse& b) { a.Swap(&b); } inline void Swap(SyncProgressResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -897,51 +867,52 @@ class SyncProgressResponse final : // implements Message ---------------------------------------------- SyncProgressResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SyncProgressResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SyncProgressResponse& from) { - SyncProgressResponse::MergeImpl(*this, from); - } + void MergeFrom(const SyncProgressResponse& from) { SyncProgressResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(SyncProgressResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.SyncProgressResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.SyncProgressResponse"; } + + protected: explicit SyncProgressResponse(::google::protobuf::Arena* arena); SyncProgressResponse(::google::protobuf::Arena* arena, const SyncProgressResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + SyncProgressResponse(::google::protobuf::Arena* arena, SyncProgressResponse&& from) noexcept + : SyncProgressResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kTipHeightFieldNumber = 1, kLocalHeightFieldNumber = 2, @@ -980,7 +951,6 @@ class SyncProgressResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.SyncProgressResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, @@ -993,13 +963,12 @@ class SyncProgressResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t tip_height_; ::uint64_t local_height_; int state_; @@ -1008,23 +977,21 @@ class SyncProgressResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SyncInfoResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SyncInfoResponse) */ { +class SyncInfoResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SyncInfoResponse) */ { public: inline SyncInfoResponse() : SyncInfoResponse(nullptr) {} ~SyncInfoResponse() override; - template - explicit PROTOBUF_CONSTEXPR SyncInfoResponse(::google::protobuf::internal::ConstantInitialized); - - inline SyncInfoResponse(const SyncInfoResponse& from) - : SyncInfoResponse(nullptr, from) {} - SyncInfoResponse(SyncInfoResponse&& from) noexcept - : SyncInfoResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR SyncInfoResponse( + ::google::protobuf::internal::ConstantInitialized); + inline SyncInfoResponse(const SyncInfoResponse& from) : SyncInfoResponse(nullptr, from) {} + inline SyncInfoResponse(SyncInfoResponse&& from) noexcept + : SyncInfoResponse(nullptr, std::move(from)) {} inline SyncInfoResponse& operator=(const SyncInfoResponse& from) { CopyFrom(from); return *this; @@ -1032,9 +999,9 @@ class SyncInfoResponse final : inline SyncInfoResponse& operator=(SyncInfoResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1066,22 +1033,17 @@ class SyncInfoResponse final : } static inline const SyncInfoResponse* internal_default_instance() { return reinterpret_cast( - &_SyncInfoResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(SyncInfoResponse& a, SyncInfoResponse& b) { - a.Swap(&b); + &_SyncInfoResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 25; + friend void swap(SyncInfoResponse& a, SyncInfoResponse& b) { a.Swap(&b); } inline void Swap(SyncInfoResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1096,51 +1058,52 @@ class SyncInfoResponse final : // implements Message ---------------------------------------------- SyncInfoResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SyncInfoResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SyncInfoResponse& from) { - SyncInfoResponse::MergeImpl(*this, from); - } + void MergeFrom(const SyncInfoResponse& from) { SyncInfoResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(SyncInfoResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.SyncInfoResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.SyncInfoResponse"; } + + protected: explicit SyncInfoResponse(::google::protobuf::Arena* arena); SyncInfoResponse(::google::protobuf::Arena* arena, const SyncInfoResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + SyncInfoResponse(::google::protobuf::Arena* arena, SyncInfoResponse&& from) noexcept + : SyncInfoResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kPeerNodeIdFieldNumber = 3, kTipHeightFieldNumber = 1, @@ -1197,7 +1160,6 @@ class SyncInfoResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.SyncInfoResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, @@ -1210,13 +1172,12 @@ class SyncInfoResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField peer_node_id_; ::uint64_t tip_height_; ::uint64_t local_height_; @@ -1225,23 +1186,21 @@ class SyncInfoResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubmitTransactionResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SubmitTransactionResponse) */ { +class SubmitTransactionResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SubmitTransactionResponse) */ { public: inline SubmitTransactionResponse() : SubmitTransactionResponse(nullptr) {} ~SubmitTransactionResponse() override; - template - explicit PROTOBUF_CONSTEXPR SubmitTransactionResponse(::google::protobuf::internal::ConstantInitialized); - - inline SubmitTransactionResponse(const SubmitTransactionResponse& from) - : SubmitTransactionResponse(nullptr, from) {} - SubmitTransactionResponse(SubmitTransactionResponse&& from) noexcept - : SubmitTransactionResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR SubmitTransactionResponse( + ::google::protobuf::internal::ConstantInitialized); + inline SubmitTransactionResponse(const SubmitTransactionResponse& from) : SubmitTransactionResponse(nullptr, from) {} + inline SubmitTransactionResponse(SubmitTransactionResponse&& from) noexcept + : SubmitTransactionResponse(nullptr, std::move(from)) {} inline SubmitTransactionResponse& operator=(const SubmitTransactionResponse& from) { CopyFrom(from); return *this; @@ -1249,9 +1208,9 @@ class SubmitTransactionResponse final : inline SubmitTransactionResponse& operator=(SubmitTransactionResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1283,22 +1242,17 @@ class SubmitTransactionResponse final : } static inline const SubmitTransactionResponse* internal_default_instance() { return reinterpret_cast( - &_SubmitTransactionResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - friend void swap(SubmitTransactionResponse& a, SubmitTransactionResponse& b) { - a.Swap(&b); + &_SubmitTransactionResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 37; + friend void swap(SubmitTransactionResponse& a, SubmitTransactionResponse& b) { a.Swap(&b); } inline void Swap(SubmitTransactionResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1313,51 +1267,52 @@ class SubmitTransactionResponse final : // implements Message ---------------------------------------------- SubmitTransactionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SubmitTransactionResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SubmitTransactionResponse& from) { - SubmitTransactionResponse::MergeImpl(*this, from); - } + void MergeFrom(const SubmitTransactionResponse& from) { SubmitTransactionResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(SubmitTransactionResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.SubmitTransactionResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.SubmitTransactionResponse"; } + + protected: explicit SubmitTransactionResponse(::google::protobuf::Arena* arena); SubmitTransactionResponse(::google::protobuf::Arena* arena, const SubmitTransactionResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + SubmitTransactionResponse(::google::protobuf::Arena* arena, SubmitTransactionResponse&& from) noexcept + : SubmitTransactionResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kResultFieldNumber = 1, }; @@ -1374,7 +1329,6 @@ class SubmitTransactionResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.SubmitTransactionResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -1387,36 +1341,33 @@ class SubmitTransactionResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); int result_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubmitBlockResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SubmitBlockResponse) */ { +class SubmitBlockResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SubmitBlockResponse) */ { public: inline SubmitBlockResponse() : SubmitBlockResponse(nullptr) {} ~SubmitBlockResponse() override; - template - explicit PROTOBUF_CONSTEXPR SubmitBlockResponse(::google::protobuf::internal::ConstantInitialized); - - inline SubmitBlockResponse(const SubmitBlockResponse& from) - : SubmitBlockResponse(nullptr, from) {} - SubmitBlockResponse(SubmitBlockResponse&& from) noexcept - : SubmitBlockResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR SubmitBlockResponse( + ::google::protobuf::internal::ConstantInitialized); + inline SubmitBlockResponse(const SubmitBlockResponse& from) : SubmitBlockResponse(nullptr, from) {} + inline SubmitBlockResponse(SubmitBlockResponse&& from) noexcept + : SubmitBlockResponse(nullptr, std::move(from)) {} inline SubmitBlockResponse& operator=(const SubmitBlockResponse& from) { CopyFrom(from); return *this; @@ -1424,9 +1375,9 @@ class SubmitBlockResponse final : inline SubmitBlockResponse& operator=(SubmitBlockResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1458,22 +1409,17 @@ class SubmitBlockResponse final : } static inline const SubmitBlockResponse* internal_default_instance() { return reinterpret_cast( - &_SubmitBlockResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(SubmitBlockResponse& a, SubmitBlockResponse& b) { - a.Swap(&b); + &_SubmitBlockResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 6; + friend void swap(SubmitBlockResponse& a, SubmitBlockResponse& b) { a.Swap(&b); } inline void Swap(SubmitBlockResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1488,51 +1434,52 @@ class SubmitBlockResponse final : // implements Message ---------------------------------------------- SubmitBlockResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SubmitBlockResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SubmitBlockResponse& from) { - SubmitBlockResponse::MergeImpl(*this, from); - } + void MergeFrom(const SubmitBlockResponse& from) { SubmitBlockResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(SubmitBlockResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.SubmitBlockResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.SubmitBlockResponse"; } + + protected: explicit SubmitBlockResponse(::google::protobuf::Arena* arena); SubmitBlockResponse(::google::protobuf::Arena* arena, const SubmitBlockResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + SubmitBlockResponse(::google::protobuf::Arena* arena, SubmitBlockResponse&& from) noexcept + : SubmitBlockResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kBlockHashFieldNumber = 1, }; @@ -1555,7 +1502,6 @@ class SubmitBlockResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.SubmitBlockResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -1568,36 +1514,33 @@ class SubmitBlockResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr block_hash_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class StringValue final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.StringValue) */ { +class StringValue final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.StringValue) */ { public: inline StringValue() : StringValue(nullptr) {} ~StringValue() override; - template - explicit PROTOBUF_CONSTEXPR StringValue(::google::protobuf::internal::ConstantInitialized); - - inline StringValue(const StringValue& from) - : StringValue(nullptr, from) {} - StringValue(StringValue&& from) noexcept - : StringValue() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR StringValue( + ::google::protobuf::internal::ConstantInitialized); + inline StringValue(const StringValue& from) : StringValue(nullptr, from) {} + inline StringValue(StringValue&& from) noexcept + : StringValue(nullptr, std::move(from)) {} inline StringValue& operator=(const StringValue& from) { CopyFrom(from); return *this; @@ -1605,9 +1548,9 @@ class StringValue final : inline StringValue& operator=(StringValue&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1639,22 +1582,17 @@ class StringValue final : } static inline const StringValue* internal_default_instance() { return reinterpret_cast( - &_StringValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(StringValue& a, StringValue& b) { - a.Swap(&b); + &_StringValue_default_instance_); } + static constexpr int kIndexInFileMessages = 14; + friend void swap(StringValue& a, StringValue& b) { a.Swap(&b); } inline void Swap(StringValue* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1669,51 +1607,52 @@ class StringValue final : // implements Message ---------------------------------------------- StringValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const StringValue& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const StringValue& from) { - StringValue::MergeImpl(*this, from); - } + void MergeFrom(const StringValue& from) { StringValue::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(StringValue* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.StringValue"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.StringValue"; } + + protected: explicit StringValue(::google::protobuf::Arena* arena); StringValue(::google::protobuf::Arena* arena, const StringValue& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + StringValue(::google::protobuf::Arena* arena, StringValue&& from) noexcept + : StringValue(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kValueFieldNumber = 1, }; @@ -1736,7 +1675,6 @@ class StringValue final : // @@protoc_insertion_point(class_scope:tari.rpc.StringValue) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -1749,36 +1687,33 @@ class StringValue final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr value_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SearchUtxosRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SearchUtxosRequest) */ { +class SearchUtxosRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SearchUtxosRequest) */ { public: inline SearchUtxosRequest() : SearchUtxosRequest(nullptr) {} ~SearchUtxosRequest() override; - template - explicit PROTOBUF_CONSTEXPR SearchUtxosRequest(::google::protobuf::internal::ConstantInitialized); - - inline SearchUtxosRequest(const SearchUtxosRequest& from) - : SearchUtxosRequest(nullptr, from) {} - SearchUtxosRequest(SearchUtxosRequest&& from) noexcept - : SearchUtxosRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR SearchUtxosRequest( + ::google::protobuf::internal::ConstantInitialized); + inline SearchUtxosRequest(const SearchUtxosRequest& from) : SearchUtxosRequest(nullptr, from) {} + inline SearchUtxosRequest(SearchUtxosRequest&& from) noexcept + : SearchUtxosRequest(nullptr, std::move(from)) {} inline SearchUtxosRequest& operator=(const SearchUtxosRequest& from) { CopyFrom(from); return *this; @@ -1786,9 +1721,9 @@ class SearchUtxosRequest final : inline SearchUtxosRequest& operator=(SearchUtxosRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1820,22 +1755,17 @@ class SearchUtxosRequest final : } static inline const SearchUtxosRequest* internal_default_instance() { return reinterpret_cast( - &_SearchUtxosRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - - friend void swap(SearchUtxosRequest& a, SearchUtxosRequest& b) { - a.Swap(&b); + &_SearchUtxosRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 31; + friend void swap(SearchUtxosRequest& a, SearchUtxosRequest& b) { a.Swap(&b); } inline void Swap(SearchUtxosRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1850,51 +1780,52 @@ class SearchUtxosRequest final : // implements Message ---------------------------------------------- SearchUtxosRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SearchUtxosRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SearchUtxosRequest& from) { - SearchUtxosRequest::MergeImpl(*this, from); - } + void MergeFrom(const SearchUtxosRequest& from) { SearchUtxosRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(SearchUtxosRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.SearchUtxosRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.SearchUtxosRequest"; } + + protected: explicit SearchUtxosRequest(::google::protobuf::Arena* arena); SearchUtxosRequest(::google::protobuf::Arena* arena, const SearchUtxosRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + SearchUtxosRequest(::google::protobuf::Arena* arena, SearchUtxosRequest&& from) noexcept + : SearchUtxosRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCommitmentsFieldNumber = 1, }; @@ -1929,7 +1860,6 @@ class SearchUtxosRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.SearchUtxosRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -1942,36 +1872,33 @@ class SearchUtxosRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField commitments_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NetworkDifficultyResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NetworkDifficultyResponse) */ { +class NetworkDifficultyResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.NetworkDifficultyResponse) */ { public: inline NetworkDifficultyResponse() : NetworkDifficultyResponse(nullptr) {} ~NetworkDifficultyResponse() override; - template - explicit PROTOBUF_CONSTEXPR NetworkDifficultyResponse(::google::protobuf::internal::ConstantInitialized); - - inline NetworkDifficultyResponse(const NetworkDifficultyResponse& from) - : NetworkDifficultyResponse(nullptr, from) {} - NetworkDifficultyResponse(NetworkDifficultyResponse&& from) noexcept - : NetworkDifficultyResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR NetworkDifficultyResponse( + ::google::protobuf::internal::ConstantInitialized); + inline NetworkDifficultyResponse(const NetworkDifficultyResponse& from) : NetworkDifficultyResponse(nullptr, from) {} + inline NetworkDifficultyResponse(NetworkDifficultyResponse&& from) noexcept + : NetworkDifficultyResponse(nullptr, std::move(from)) {} inline NetworkDifficultyResponse& operator=(const NetworkDifficultyResponse& from) { CopyFrom(from); return *this; @@ -1979,9 +1906,9 @@ class NetworkDifficultyResponse final : inline NetworkDifficultyResponse& operator=(NetworkDifficultyResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2013,22 +1940,17 @@ class NetworkDifficultyResponse final : } static inline const NetworkDifficultyResponse* internal_default_instance() { return reinterpret_cast( - &_NetworkDifficultyResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(NetworkDifficultyResponse& a, NetworkDifficultyResponse& b) { - a.Swap(&b); + &_NetworkDifficultyResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 11; + friend void swap(NetworkDifficultyResponse& a, NetworkDifficultyResponse& b) { a.Swap(&b); } inline void Swap(NetworkDifficultyResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2043,51 +1965,52 @@ class NetworkDifficultyResponse final : // implements Message ---------------------------------------------- NetworkDifficultyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const NetworkDifficultyResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NetworkDifficultyResponse& from) { - NetworkDifficultyResponse::MergeImpl(*this, from); - } + void MergeFrom(const NetworkDifficultyResponse& from) { NetworkDifficultyResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(NetworkDifficultyResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.NetworkDifficultyResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.NetworkDifficultyResponse"; } + + protected: explicit NetworkDifficultyResponse(::google::protobuf::Arena* arena); NetworkDifficultyResponse(::google::protobuf::Arena* arena, const NetworkDifficultyResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + NetworkDifficultyResponse(::google::protobuf::Arena* arena, NetworkDifficultyResponse&& from) noexcept + : NetworkDifficultyResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kDifficultyFieldNumber = 1, kEstimatedHashRateFieldNumber = 2, @@ -2170,7 +2093,6 @@ class NetworkDifficultyResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.NetworkDifficultyResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 7, 0, @@ -2183,13 +2105,12 @@ class NetworkDifficultyResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t difficulty_; ::uint64_t estimated_hash_rate_; ::uint64_t height_; @@ -2202,23 +2123,21 @@ class NetworkDifficultyResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MetaData final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.MetaData) */ { +class MetaData final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.MetaData) */ { public: inline MetaData() : MetaData(nullptr) {} ~MetaData() override; - template - explicit PROTOBUF_CONSTEXPR MetaData(::google::protobuf::internal::ConstantInitialized); - - inline MetaData(const MetaData& from) - : MetaData(nullptr, from) {} - MetaData(MetaData&& from) noexcept - : MetaData() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR MetaData( + ::google::protobuf::internal::ConstantInitialized); + inline MetaData(const MetaData& from) : MetaData(nullptr, from) {} + inline MetaData(MetaData&& from) noexcept + : MetaData(nullptr, std::move(from)) {} inline MetaData& operator=(const MetaData& from) { CopyFrom(from); return *this; @@ -2226,9 +2145,9 @@ class MetaData final : inline MetaData& operator=(MetaData&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2260,22 +2179,17 @@ class MetaData final : } static inline const MetaData* internal_default_instance() { return reinterpret_cast( - &_MetaData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(MetaData& a, MetaData& b) { - a.Swap(&b); + &_MetaData_default_instance_); } + static constexpr int kIndexInFileMessages = 24; + friend void swap(MetaData& a, MetaData& b) { a.Swap(&b); } inline void Swap(MetaData* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2290,51 +2204,52 @@ class MetaData final : // implements Message ---------------------------------------------- MetaData* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const MetaData& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MetaData& from) { - MetaData::MergeImpl(*this, from); - } + void MergeFrom(const MetaData& from) { MetaData::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(MetaData* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.MetaData"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.MetaData"; } + + protected: explicit MetaData(::google::protobuf::Arena* arena); MetaData(::google::protobuf::Arena* arena, const MetaData& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + MetaData(::google::protobuf::Arena* arena, MetaData&& from) noexcept + : MetaData(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kBestBlockFieldNumber = 2, kAccumulatedDifficultyFieldNumber = 5, @@ -2396,7 +2311,6 @@ class MetaData final : // @@protoc_insertion_point(class_scope:tari.rpc.MetaData) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 4, 0, @@ -2409,13 +2323,12 @@ class MetaData final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr best_block_; ::google::protobuf::internal::ArenaStringPtr accumulated_difficulty_; ::uint64_t height_of_longest_chain_; @@ -2425,23 +2338,21 @@ class MetaData final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MempoolStatsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.MempoolStatsResponse) */ { +class MempoolStatsResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.MempoolStatsResponse) */ { public: inline MempoolStatsResponse() : MempoolStatsResponse(nullptr) {} ~MempoolStatsResponse() override; - template - explicit PROTOBUF_CONSTEXPR MempoolStatsResponse(::google::protobuf::internal::ConstantInitialized); - - inline MempoolStatsResponse(const MempoolStatsResponse& from) - : MempoolStatsResponse(nullptr, from) {} - MempoolStatsResponse(MempoolStatsResponse&& from) noexcept - : MempoolStatsResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR MempoolStatsResponse( + ::google::protobuf::internal::ConstantInitialized); + inline MempoolStatsResponse(const MempoolStatsResponse& from) : MempoolStatsResponse(nullptr, from) {} + inline MempoolStatsResponse(MempoolStatsResponse&& from) noexcept + : MempoolStatsResponse(nullptr, std::move(from)) {} inline MempoolStatsResponse& operator=(const MempoolStatsResponse& from) { CopyFrom(from); return *this; @@ -2449,9 +2360,9 @@ class MempoolStatsResponse final : inline MempoolStatsResponse& operator=(MempoolStatsResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2483,22 +2394,17 @@ class MempoolStatsResponse final : } static inline const MempoolStatsResponse* internal_default_instance() { return reinterpret_cast( - &_MempoolStatsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 42; - - friend void swap(MempoolStatsResponse& a, MempoolStatsResponse& b) { - a.Swap(&b); + &_MempoolStatsResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 42; + friend void swap(MempoolStatsResponse& a, MempoolStatsResponse& b) { a.Swap(&b); } inline void Swap(MempoolStatsResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2513,51 +2419,52 @@ class MempoolStatsResponse final : // implements Message ---------------------------------------------- MempoolStatsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const MempoolStatsResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MempoolStatsResponse& from) { - MempoolStatsResponse::MergeImpl(*this, from); - } + void MergeFrom(const MempoolStatsResponse& from) { MempoolStatsResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(MempoolStatsResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.MempoolStatsResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.MempoolStatsResponse"; } + + protected: explicit MempoolStatsResponse(::google::protobuf::Arena* arena); MempoolStatsResponse(::google::protobuf::Arena* arena, const MempoolStatsResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + MempoolStatsResponse(::google::protobuf::Arena* arena, MempoolStatsResponse&& from) noexcept + : MempoolStatsResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kUnconfirmedTxsFieldNumber = 2, kReorgTxsFieldNumber = 3, @@ -2596,7 +2503,6 @@ class MempoolStatsResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.MempoolStatsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, @@ -2609,13 +2515,12 @@ class MempoolStatsResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t unconfirmed_txs_; ::uint64_t reorg_txs_; ::uint64_t unconfirmed_weight_; @@ -2624,23 +2529,21 @@ class MempoolStatsResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListHeadersRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ListHeadersRequest) */ { +class ListHeadersRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ListHeadersRequest) */ { public: inline ListHeadersRequest() : ListHeadersRequest(nullptr) {} ~ListHeadersRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListHeadersRequest(::google::protobuf::internal::ConstantInitialized); - - inline ListHeadersRequest(const ListHeadersRequest& from) - : ListHeadersRequest(nullptr, from) {} - ListHeadersRequest(ListHeadersRequest&& from) noexcept - : ListHeadersRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR ListHeadersRequest( + ::google::protobuf::internal::ConstantInitialized); + inline ListHeadersRequest(const ListHeadersRequest& from) : ListHeadersRequest(nullptr, from) {} + inline ListHeadersRequest(ListHeadersRequest&& from) noexcept + : ListHeadersRequest(nullptr, std::move(from)) {} inline ListHeadersRequest& operator=(const ListHeadersRequest& from) { CopyFrom(from); return *this; @@ -2648,9 +2551,9 @@ class ListHeadersRequest final : inline ListHeadersRequest& operator=(ListHeadersRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2682,22 +2585,17 @@ class ListHeadersRequest final : } static inline const ListHeadersRequest* internal_default_instance() { return reinterpret_cast( - &_ListHeadersRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(ListHeadersRequest& a, ListHeadersRequest& b) { - a.Swap(&b); + &_ListHeadersRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 21; + friend void swap(ListHeadersRequest& a, ListHeadersRequest& b) { a.Swap(&b); } inline void Swap(ListHeadersRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2712,51 +2610,52 @@ class ListHeadersRequest final : // implements Message ---------------------------------------------- ListHeadersRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ListHeadersRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListHeadersRequest& from) { - ListHeadersRequest::MergeImpl(*this, from); - } + void MergeFrom(const ListHeadersRequest& from) { ListHeadersRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(ListHeadersRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.ListHeadersRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.ListHeadersRequest"; } + + protected: explicit ListHeadersRequest(::google::protobuf::Arena* arena); ListHeadersRequest(::google::protobuf::Arena* arena, const ListHeadersRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + ListHeadersRequest(::google::protobuf::Arena* arena, ListHeadersRequest&& from) noexcept + : ListHeadersRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kFromHeightFieldNumber = 1, kNumHeadersFieldNumber = 2, @@ -2795,7 +2694,6 @@ class ListHeadersRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.ListHeadersRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, @@ -2808,13 +2706,12 @@ class ListHeadersRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t from_height_; ::uint64_t num_headers_; int sorting_; @@ -2823,23 +2720,21 @@ class ListHeadersRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListAssetRegistrationsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ListAssetRegistrationsRequest) */ { +class ListAssetRegistrationsRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ListAssetRegistrationsRequest) */ { public: inline ListAssetRegistrationsRequest() : ListAssetRegistrationsRequest(nullptr) {} ~ListAssetRegistrationsRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListAssetRegistrationsRequest(::google::protobuf::internal::ConstantInitialized); - - inline ListAssetRegistrationsRequest(const ListAssetRegistrationsRequest& from) - : ListAssetRegistrationsRequest(nullptr, from) {} - ListAssetRegistrationsRequest(ListAssetRegistrationsRequest&& from) noexcept - : ListAssetRegistrationsRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR ListAssetRegistrationsRequest( + ::google::protobuf::internal::ConstantInitialized); + inline ListAssetRegistrationsRequest(const ListAssetRegistrationsRequest& from) : ListAssetRegistrationsRequest(nullptr, from) {} + inline ListAssetRegistrationsRequest(ListAssetRegistrationsRequest&& from) noexcept + : ListAssetRegistrationsRequest(nullptr, std::move(from)) {} inline ListAssetRegistrationsRequest& operator=(const ListAssetRegistrationsRequest& from) { CopyFrom(from); return *this; @@ -2847,9 +2742,9 @@ class ListAssetRegistrationsRequest final : inline ListAssetRegistrationsRequest& operator=(ListAssetRegistrationsRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2881,22 +2776,17 @@ class ListAssetRegistrationsRequest final : } static inline const ListAssetRegistrationsRequest* internal_default_instance() { return reinterpret_cast( - &_ListAssetRegistrationsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(ListAssetRegistrationsRequest& a, ListAssetRegistrationsRequest& b) { - a.Swap(&b); + &_ListAssetRegistrationsRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(ListAssetRegistrationsRequest& a, ListAssetRegistrationsRequest& b) { a.Swap(&b); } inline void Swap(ListAssetRegistrationsRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2911,51 +2801,52 @@ class ListAssetRegistrationsRequest final : // implements Message ---------------------------------------------- ListAssetRegistrationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ListAssetRegistrationsRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListAssetRegistrationsRequest& from) { - ListAssetRegistrationsRequest::MergeImpl(*this, from); - } + void MergeFrom(const ListAssetRegistrationsRequest& from) { ListAssetRegistrationsRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(ListAssetRegistrationsRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.ListAssetRegistrationsRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.ListAssetRegistrationsRequest"; } + + protected: explicit ListAssetRegistrationsRequest(::google::protobuf::Arena* arena); ListAssetRegistrationsRequest(::google::protobuf::Arena* arena, const ListAssetRegistrationsRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + ListAssetRegistrationsRequest(::google::protobuf::Arena* arena, ListAssetRegistrationsRequest&& from) noexcept + : ListAssetRegistrationsRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kOffsetFieldNumber = 2, kCountFieldNumber = 3, @@ -2983,7 +2874,6 @@ class ListAssetRegistrationsRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.ListAssetRegistrationsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -2996,13 +2886,12 @@ class ListAssetRegistrationsRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t offset_; ::uint64_t count_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -3010,23 +2899,21 @@ class ListAssetRegistrationsRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class IntegerValue final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.IntegerValue) */ { +class IntegerValue final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.IntegerValue) */ { public: inline IntegerValue() : IntegerValue(nullptr) {} ~IntegerValue() override; - template - explicit PROTOBUF_CONSTEXPR IntegerValue(::google::protobuf::internal::ConstantInitialized); - - inline IntegerValue(const IntegerValue& from) - : IntegerValue(nullptr, from) {} - IntegerValue(IntegerValue&& from) noexcept - : IntegerValue() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR IntegerValue( + ::google::protobuf::internal::ConstantInitialized); + inline IntegerValue(const IntegerValue& from) : IntegerValue(nullptr, from) {} + inline IntegerValue(IntegerValue&& from) noexcept + : IntegerValue(nullptr, std::move(from)) {} inline IntegerValue& operator=(const IntegerValue& from) { CopyFrom(from); return *this; @@ -3034,9 +2921,9 @@ class IntegerValue final : inline IntegerValue& operator=(IntegerValue&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -3068,22 +2955,17 @@ class IntegerValue final : } static inline const IntegerValue* internal_default_instance() { return reinterpret_cast( - &_IntegerValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(IntegerValue& a, IntegerValue& b) { - a.Swap(&b); + &_IntegerValue_default_instance_); } + static constexpr int kIndexInFileMessages = 13; + friend void swap(IntegerValue& a, IntegerValue& b) { a.Swap(&b); } inline void Swap(IntegerValue* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3098,51 +2980,52 @@ class IntegerValue final : // implements Message ---------------------------------------------- IntegerValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const IntegerValue& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const IntegerValue& from) { - IntegerValue::MergeImpl(*this, from); - } + void MergeFrom(const IntegerValue& from) { IntegerValue::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(IntegerValue* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.IntegerValue"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.IntegerValue"; } + + protected: explicit IntegerValue(::google::protobuf::Arena* arena); IntegerValue(::google::protobuf::Arena* arena, const IntegerValue& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + IntegerValue(::google::protobuf::Arena* arena, IntegerValue&& from) noexcept + : IntegerValue(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kValueFieldNumber = 1, }; @@ -3159,7 +3042,6 @@ class IntegerValue final : // @@protoc_insertion_point(class_scope:tari.rpc.IntegerValue) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -3172,36 +3054,33 @@ class IntegerValue final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t value_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class HeightRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.HeightRequest) */ { +class HeightRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.HeightRequest) */ { public: inline HeightRequest() : HeightRequest(nullptr) {} ~HeightRequest() override; - template - explicit PROTOBUF_CONSTEXPR HeightRequest(::google::protobuf::internal::ConstantInitialized); - - inline HeightRequest(const HeightRequest& from) - : HeightRequest(nullptr, from) {} - HeightRequest(HeightRequest&& from) noexcept - : HeightRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR HeightRequest( + ::google::protobuf::internal::ConstantInitialized); + inline HeightRequest(const HeightRequest& from) : HeightRequest(nullptr, from) {} + inline HeightRequest(HeightRequest&& from) noexcept + : HeightRequest(nullptr, std::move(from)) {} inline HeightRequest& operator=(const HeightRequest& from) { CopyFrom(from); return *this; @@ -3209,9 +3088,9 @@ class HeightRequest final : inline HeightRequest& operator=(HeightRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -3243,22 +3122,17 @@ class HeightRequest final : } static inline const HeightRequest* internal_default_instance() { return reinterpret_cast( - &_HeightRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(HeightRequest& a, HeightRequest& b) { - a.Swap(&b); + &_HeightRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 17; + friend void swap(HeightRequest& a, HeightRequest& b) { a.Swap(&b); } inline void Swap(HeightRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3273,51 +3147,52 @@ class HeightRequest final : // implements Message ---------------------------------------------- HeightRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const HeightRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const HeightRequest& from) { - HeightRequest::MergeImpl(*this, from); - } + void MergeFrom(const HeightRequest& from) { HeightRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(HeightRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.HeightRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.HeightRequest"; } + + protected: explicit HeightRequest(::google::protobuf::Arena* arena); HeightRequest(::google::protobuf::Arena* arena, const HeightRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + HeightRequest(::google::protobuf::Arena* arena, HeightRequest&& from) noexcept + : HeightRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kFromTipFieldNumber = 1, kStartHeightFieldNumber = 2, @@ -3356,7 +3231,6 @@ class HeightRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.HeightRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, @@ -3369,13 +3243,12 @@ class HeightRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t from_tip_; ::uint64_t start_height_; ::uint64_t end_height_; @@ -3384,23 +3257,21 @@ class HeightRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetTokensRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetTokensRequest) */ { +class GetTokensRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetTokensRequest) */ { public: inline GetTokensRequest() : GetTokensRequest(nullptr) {} ~GetTokensRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetTokensRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetTokensRequest(const GetTokensRequest& from) - : GetTokensRequest(nullptr, from) {} - GetTokensRequest(GetTokensRequest&& from) noexcept - : GetTokensRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetTokensRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetTokensRequest(const GetTokensRequest& from) : GetTokensRequest(nullptr, from) {} + inline GetTokensRequest(GetTokensRequest&& from) noexcept + : GetTokensRequest(nullptr, std::move(from)) {} inline GetTokensRequest& operator=(const GetTokensRequest& from) { CopyFrom(from); return *this; @@ -3408,9 +3279,9 @@ class GetTokensRequest final : inline GetTokensRequest& operator=(GetTokensRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -3442,22 +3313,17 @@ class GetTokensRequest final : } static inline const GetTokensRequest* internal_default_instance() { return reinterpret_cast( - &_GetTokensRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(GetTokensRequest& a, GetTokensRequest& b) { - a.Swap(&b); + &_GetTokensRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 4; + friend void swap(GetTokensRequest& a, GetTokensRequest& b) { a.Swap(&b); } inline void Swap(GetTokensRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3472,51 +3338,52 @@ class GetTokensRequest final : // implements Message ---------------------------------------------- GetTokensRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetTokensRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetTokensRequest& from) { - GetTokensRequest::MergeImpl(*this, from); - } + void MergeFrom(const GetTokensRequest& from) { GetTokensRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetTokensRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetTokensRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetTokensRequest"; } + + protected: explicit GetTokensRequest(::google::protobuf::Arena* arena); GetTokensRequest(::google::protobuf::Arena* arena, const GetTokensRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetTokensRequest(::google::protobuf::Arena* arena, GetTokensRequest&& from) noexcept + : GetTokensRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kUniqueIdsFieldNumber = 2, kAssetPublicKeyFieldNumber = 1, @@ -3568,7 +3435,6 @@ class GetTokensRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.GetTokensRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -3581,13 +3447,12 @@ class GetTokensRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField unique_ids_; ::google::protobuf::internal::ArenaStringPtr asset_public_key_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -3595,23 +3460,21 @@ class GetTokensRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetTemplateRegistrationsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetTemplateRegistrationsRequest) */ { +class GetTemplateRegistrationsRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetTemplateRegistrationsRequest) */ { public: inline GetTemplateRegistrationsRequest() : GetTemplateRegistrationsRequest(nullptr) {} ~GetTemplateRegistrationsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetTemplateRegistrationsRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetTemplateRegistrationsRequest(const GetTemplateRegistrationsRequest& from) - : GetTemplateRegistrationsRequest(nullptr, from) {} - GetTemplateRegistrationsRequest(GetTemplateRegistrationsRequest&& from) noexcept - : GetTemplateRegistrationsRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetTemplateRegistrationsRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetTemplateRegistrationsRequest(const GetTemplateRegistrationsRequest& from) : GetTemplateRegistrationsRequest(nullptr, from) {} + inline GetTemplateRegistrationsRequest(GetTemplateRegistrationsRequest&& from) noexcept + : GetTemplateRegistrationsRequest(nullptr, std::move(from)) {} inline GetTemplateRegistrationsRequest& operator=(const GetTemplateRegistrationsRequest& from) { CopyFrom(from); return *this; @@ -3619,9 +3482,9 @@ class GetTemplateRegistrationsRequest final : inline GetTemplateRegistrationsRequest& operator=(GetTemplateRegistrationsRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -3653,22 +3516,17 @@ class GetTemplateRegistrationsRequest final : } static inline const GetTemplateRegistrationsRequest* internal_default_instance() { return reinterpret_cast( - &_GetTemplateRegistrationsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 47; - - friend void swap(GetTemplateRegistrationsRequest& a, GetTemplateRegistrationsRequest& b) { - a.Swap(&b); + &_GetTemplateRegistrationsRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 47; + friend void swap(GetTemplateRegistrationsRequest& a, GetTemplateRegistrationsRequest& b) { a.Swap(&b); } inline void Swap(GetTemplateRegistrationsRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3683,51 +3541,52 @@ class GetTemplateRegistrationsRequest final : // implements Message ---------------------------------------------- GetTemplateRegistrationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetTemplateRegistrationsRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetTemplateRegistrationsRequest& from) { - GetTemplateRegistrationsRequest::MergeImpl(*this, from); - } + void MergeFrom(const GetTemplateRegistrationsRequest& from) { GetTemplateRegistrationsRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetTemplateRegistrationsRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetTemplateRegistrationsRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetTemplateRegistrationsRequest"; } + + protected: explicit GetTemplateRegistrationsRequest(::google::protobuf::Arena* arena); GetTemplateRegistrationsRequest(::google::protobuf::Arena* arena, const GetTemplateRegistrationsRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetTemplateRegistrationsRequest(::google::protobuf::Arena* arena, GetTemplateRegistrationsRequest&& from) noexcept + : GetTemplateRegistrationsRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kStartHashFieldNumber = 1, kCountFieldNumber = 2, @@ -3761,7 +3620,6 @@ class GetTemplateRegistrationsRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.GetTemplateRegistrationsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -3774,13 +3632,12 @@ class GetTemplateRegistrationsRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr start_hash_; ::uint64_t count_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -3788,23 +3645,21 @@ class GetTemplateRegistrationsRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetSideChainUtxosRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetSideChainUtxosRequest) */ { +class GetSideChainUtxosRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetSideChainUtxosRequest) */ { public: inline GetSideChainUtxosRequest() : GetSideChainUtxosRequest(nullptr) {} ~GetSideChainUtxosRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetSideChainUtxosRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetSideChainUtxosRequest(const GetSideChainUtxosRequest& from) - : GetSideChainUtxosRequest(nullptr, from) {} - GetSideChainUtxosRequest(GetSideChainUtxosRequest&& from) noexcept - : GetSideChainUtxosRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetSideChainUtxosRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetSideChainUtxosRequest(const GetSideChainUtxosRequest& from) : GetSideChainUtxosRequest(nullptr, from) {} + inline GetSideChainUtxosRequest(GetSideChainUtxosRequest&& from) noexcept + : GetSideChainUtxosRequest(nullptr, std::move(from)) {} inline GetSideChainUtxosRequest& operator=(const GetSideChainUtxosRequest& from) { CopyFrom(from); return *this; @@ -3812,9 +3667,9 @@ class GetSideChainUtxosRequest final : inline GetSideChainUtxosRequest& operator=(GetSideChainUtxosRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -3846,22 +3701,17 @@ class GetSideChainUtxosRequest final : } static inline const GetSideChainUtxosRequest* internal_default_instance() { return reinterpret_cast( - &_GetSideChainUtxosRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 50; - - friend void swap(GetSideChainUtxosRequest& a, GetSideChainUtxosRequest& b) { - a.Swap(&b); + &_GetSideChainUtxosRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 50; + friend void swap(GetSideChainUtxosRequest& a, GetSideChainUtxosRequest& b) { a.Swap(&b); } inline void Swap(GetSideChainUtxosRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3876,51 +3726,52 @@ class GetSideChainUtxosRequest final : // implements Message ---------------------------------------------- GetSideChainUtxosRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetSideChainUtxosRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetSideChainUtxosRequest& from) { - GetSideChainUtxosRequest::MergeImpl(*this, from); - } + void MergeFrom(const GetSideChainUtxosRequest& from) { GetSideChainUtxosRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetSideChainUtxosRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetSideChainUtxosRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetSideChainUtxosRequest"; } + + protected: explicit GetSideChainUtxosRequest(::google::protobuf::Arena* arena); GetSideChainUtxosRequest(::google::protobuf::Arena* arena, const GetSideChainUtxosRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetSideChainUtxosRequest(::google::protobuf::Arena* arena, GetSideChainUtxosRequest&& from) noexcept + : GetSideChainUtxosRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kStartHashFieldNumber = 1, kCountFieldNumber = 2, @@ -3954,7 +3805,6 @@ class GetSideChainUtxosRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.GetSideChainUtxosRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -3967,13 +3817,12 @@ class GetSideChainUtxosRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr start_hash_; ::uint64_t count_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -3981,23 +3830,21 @@ class GetSideChainUtxosRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetShardKeyResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetShardKeyResponse) */ { +class GetShardKeyResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetShardKeyResponse) */ { public: inline GetShardKeyResponse() : GetShardKeyResponse(nullptr) {} ~GetShardKeyResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetShardKeyResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetShardKeyResponse(const GetShardKeyResponse& from) - : GetShardKeyResponse(nullptr, from) {} - GetShardKeyResponse(GetShardKeyResponse&& from) noexcept - : GetShardKeyResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetShardKeyResponse( + ::google::protobuf::internal::ConstantInitialized); + inline GetShardKeyResponse(const GetShardKeyResponse& from) : GetShardKeyResponse(nullptr, from) {} + inline GetShardKeyResponse(GetShardKeyResponse&& from) noexcept + : GetShardKeyResponse(nullptr, std::move(from)) {} inline GetShardKeyResponse& operator=(const GetShardKeyResponse& from) { CopyFrom(from); return *this; @@ -4005,9 +3852,9 @@ class GetShardKeyResponse final : inline GetShardKeyResponse& operator=(GetShardKeyResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -4039,22 +3886,17 @@ class GetShardKeyResponse final : } static inline const GetShardKeyResponse* internal_default_instance() { return reinterpret_cast( - &_GetShardKeyResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 46; - - friend void swap(GetShardKeyResponse& a, GetShardKeyResponse& b) { - a.Swap(&b); + &_GetShardKeyResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 46; + friend void swap(GetShardKeyResponse& a, GetShardKeyResponse& b) { a.Swap(&b); } inline void Swap(GetShardKeyResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4069,51 +3911,52 @@ class GetShardKeyResponse final : // implements Message ---------------------------------------------- GetShardKeyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetShardKeyResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetShardKeyResponse& from) { - GetShardKeyResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetShardKeyResponse& from) { GetShardKeyResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetShardKeyResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetShardKeyResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetShardKeyResponse"; } + + protected: explicit GetShardKeyResponse(::google::protobuf::Arena* arena); GetShardKeyResponse(::google::protobuf::Arena* arena, const GetShardKeyResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetShardKeyResponse(::google::protobuf::Arena* arena, GetShardKeyResponse&& from) noexcept + : GetShardKeyResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kShardKeyFieldNumber = 1, kFoundFieldNumber = 2, @@ -4147,7 +3990,6 @@ class GetShardKeyResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.GetShardKeyResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -4160,13 +4002,12 @@ class GetShardKeyResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr shard_key_; bool found_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -4174,23 +4015,21 @@ class GetShardKeyResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetShardKeyRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetShardKeyRequest) */ { +class GetShardKeyRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetShardKeyRequest) */ { public: inline GetShardKeyRequest() : GetShardKeyRequest(nullptr) {} ~GetShardKeyRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetShardKeyRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetShardKeyRequest(const GetShardKeyRequest& from) - : GetShardKeyRequest(nullptr, from) {} - GetShardKeyRequest(GetShardKeyRequest&& from) noexcept - : GetShardKeyRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetShardKeyRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetShardKeyRequest(const GetShardKeyRequest& from) : GetShardKeyRequest(nullptr, from) {} + inline GetShardKeyRequest(GetShardKeyRequest&& from) noexcept + : GetShardKeyRequest(nullptr, std::move(from)) {} inline GetShardKeyRequest& operator=(const GetShardKeyRequest& from) { CopyFrom(from); return *this; @@ -4198,9 +4037,9 @@ class GetShardKeyRequest final : inline GetShardKeyRequest& operator=(GetShardKeyRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -4232,22 +4071,17 @@ class GetShardKeyRequest final : } static inline const GetShardKeyRequest* internal_default_instance() { return reinterpret_cast( - &_GetShardKeyRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 45; - - friend void swap(GetShardKeyRequest& a, GetShardKeyRequest& b) { - a.Swap(&b); + &_GetShardKeyRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 45; + friend void swap(GetShardKeyRequest& a, GetShardKeyRequest& b) { a.Swap(&b); } inline void Swap(GetShardKeyRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4262,51 +4096,52 @@ class GetShardKeyRequest final : // implements Message ---------------------------------------------- GetShardKeyRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetShardKeyRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetShardKeyRequest& from) { - GetShardKeyRequest::MergeImpl(*this, from); - } + void MergeFrom(const GetShardKeyRequest& from) { GetShardKeyRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetShardKeyRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetShardKeyRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetShardKeyRequest"; } + + protected: explicit GetShardKeyRequest(::google::protobuf::Arena* arena); GetShardKeyRequest(::google::protobuf::Arena* arena, const GetShardKeyRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetShardKeyRequest(::google::protobuf::Arena* arena, GetShardKeyRequest&& from) noexcept + : GetShardKeyRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kPublicKeyFieldNumber = 2, kHeightFieldNumber = 1, @@ -4340,7 +4175,6 @@ class GetShardKeyRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.GetShardKeyRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -4353,13 +4187,12 @@ class GetShardKeyRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr public_key_; ::uint64_t height_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -4367,22 +4200,20 @@ class GetShardKeyRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPeersRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:tari.rpc.GetPeersRequest) */ { +class GetPeersRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:tari.rpc.GetPeersRequest) */ { public: inline GetPeersRequest() : GetPeersRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetPeersRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetPeersRequest(const GetPeersRequest& from) - : GetPeersRequest(nullptr, from) {} - GetPeersRequest(GetPeersRequest&& from) noexcept - : GetPeersRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetPeersRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetPeersRequest(const GetPeersRequest& from) : GetPeersRequest(nullptr, from) {} + inline GetPeersRequest(GetPeersRequest&& from) noexcept + : GetPeersRequest(nullptr, std::move(from)) {} inline GetPeersRequest& operator=(const GetPeersRequest& from) { CopyFrom(from); return *this; @@ -4390,9 +4221,9 @@ class GetPeersRequest final : inline GetPeersRequest& operator=(GetPeersRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -4424,22 +4255,17 @@ class GetPeersRequest final : } static inline const GetPeersRequest* internal_default_instance() { return reinterpret_cast( - &_GetPeersRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - - friend void swap(GetPeersRequest& a, GetPeersRequest& b) { - a.Swap(&b); + &_GetPeersRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 35; + friend void swap(GetPeersRequest& a, GetPeersRequest& b) { a.Swap(&b); } inline void Swap(GetPeersRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4454,7 +4280,7 @@ class GetPeersRequest final : // implements Message ---------------------------------------------- GetPeersRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const GetPeersRequest& from) { @@ -4464,28 +4290,28 @@ class GetPeersRequest final : void MergeFrom(const GetPeersRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: + public: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetPeersRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetPeersRequest"; } + + protected: explicit GetPeersRequest(::google::protobuf::Arena* arena); GetPeersRequest(::google::protobuf::Arena* arena, const GetPeersRequest& from); - public: + GetPeersRequest(::google::protobuf::Arena* arena, GetPeersRequest&& from) noexcept + : GetPeersRequest(arena) { + *this = ::std::move(from); + } + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:tari.rpc.GetPeersRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4493,33 +4319,30 @@ class GetPeersRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetNewBlockBlobResult final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockBlobResult) */ { +class GetNewBlockBlobResult final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockBlobResult) */ { public: inline GetNewBlockBlobResult() : GetNewBlockBlobResult(nullptr) {} ~GetNewBlockBlobResult() override; - template - explicit PROTOBUF_CONSTEXPR GetNewBlockBlobResult(::google::protobuf::internal::ConstantInitialized); - - inline GetNewBlockBlobResult(const GetNewBlockBlobResult& from) - : GetNewBlockBlobResult(nullptr, from) {} - GetNewBlockBlobResult(GetNewBlockBlobResult&& from) noexcept - : GetNewBlockBlobResult() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetNewBlockBlobResult( + ::google::protobuf::internal::ConstantInitialized); + inline GetNewBlockBlobResult(const GetNewBlockBlobResult& from) : GetNewBlockBlobResult(nullptr, from) {} + inline GetNewBlockBlobResult(GetNewBlockBlobResult&& from) noexcept + : GetNewBlockBlobResult(nullptr, std::move(from)) {} inline GetNewBlockBlobResult& operator=(const GetNewBlockBlobResult& from) { CopyFrom(from); return *this; @@ -4527,9 +4350,9 @@ class GetNewBlockBlobResult final : inline GetNewBlockBlobResult& operator=(GetNewBlockBlobResult&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -4561,22 +4384,17 @@ class GetNewBlockBlobResult final : } static inline const GetNewBlockBlobResult* internal_default_instance() { return reinterpret_cast( - &_GetNewBlockBlobResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - friend void swap(GetNewBlockBlobResult& a, GetNewBlockBlobResult& b) { - a.Swap(&b); + &_GetNewBlockBlobResult_default_instance_); } + static constexpr int kIndexInFileMessages = 28; + friend void swap(GetNewBlockBlobResult& a, GetNewBlockBlobResult& b) { a.Swap(&b); } inline void Swap(GetNewBlockBlobResult* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4591,51 +4409,52 @@ class GetNewBlockBlobResult final : // implements Message ---------------------------------------------- GetNewBlockBlobResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetNewBlockBlobResult& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetNewBlockBlobResult& from) { - GetNewBlockBlobResult::MergeImpl(*this, from); - } + void MergeFrom(const GetNewBlockBlobResult& from) { GetNewBlockBlobResult::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetNewBlockBlobResult* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetNewBlockBlobResult"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetNewBlockBlobResult"; } + + protected: explicit GetNewBlockBlobResult(::google::protobuf::Arena* arena); GetNewBlockBlobResult(::google::protobuf::Arena* arena, const GetNewBlockBlobResult& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetNewBlockBlobResult(::google::protobuf::Arena* arena, GetNewBlockBlobResult&& from) noexcept + : GetNewBlockBlobResult(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kBlockHashFieldNumber = 1, kHeaderFieldNumber = 2, @@ -4726,7 +4545,6 @@ class GetNewBlockBlobResult final : // @@protoc_insertion_point(class_scope:tari.rpc.GetNewBlockBlobResult) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 5, 0, @@ -4739,13 +4557,12 @@ class GetNewBlockBlobResult final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr block_hash_; ::google::protobuf::internal::ArenaStringPtr header_; ::google::protobuf::internal::ArenaStringPtr block_body_; @@ -4756,22 +4573,20 @@ class GetNewBlockBlobResult final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetMempoolTransactionsRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:tari.rpc.GetMempoolTransactionsRequest) */ { +class GetMempoolTransactionsRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:tari.rpc.GetMempoolTransactionsRequest) */ { public: inline GetMempoolTransactionsRequest() : GetMempoolTransactionsRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetMempoolTransactionsRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetMempoolTransactionsRequest(const GetMempoolTransactionsRequest& from) - : GetMempoolTransactionsRequest(nullptr, from) {} - GetMempoolTransactionsRequest(GetMempoolTransactionsRequest&& from) noexcept - : GetMempoolTransactionsRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetMempoolTransactionsRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetMempoolTransactionsRequest(const GetMempoolTransactionsRequest& from) : GetMempoolTransactionsRequest(nullptr, from) {} + inline GetMempoolTransactionsRequest(GetMempoolTransactionsRequest&& from) noexcept + : GetMempoolTransactionsRequest(nullptr, std::move(from)) {} inline GetMempoolTransactionsRequest& operator=(const GetMempoolTransactionsRequest& from) { CopyFrom(from); return *this; @@ -4779,9 +4594,9 @@ class GetMempoolTransactionsRequest final : inline GetMempoolTransactionsRequest& operator=(GetMempoolTransactionsRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -4813,22 +4628,17 @@ class GetMempoolTransactionsRequest final : } static inline const GetMempoolTransactionsRequest* internal_default_instance() { return reinterpret_cast( - &_GetMempoolTransactionsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 38; - - friend void swap(GetMempoolTransactionsRequest& a, GetMempoolTransactionsRequest& b) { - a.Swap(&b); + &_GetMempoolTransactionsRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 38; + friend void swap(GetMempoolTransactionsRequest& a, GetMempoolTransactionsRequest& b) { a.Swap(&b); } inline void Swap(GetMempoolTransactionsRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4843,7 +4653,7 @@ class GetMempoolTransactionsRequest final : // implements Message ---------------------------------------------- GetMempoolTransactionsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const GetMempoolTransactionsRequest& from) { @@ -4853,28 +4663,28 @@ class GetMempoolTransactionsRequest final : void MergeFrom(const GetMempoolTransactionsRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: + public: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetMempoolTransactionsRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetMempoolTransactionsRequest"; } + + protected: explicit GetMempoolTransactionsRequest(::google::protobuf::Arena* arena); GetMempoolTransactionsRequest(::google::protobuf::Arena* arena, const GetMempoolTransactionsRequest& from); - public: + GetMempoolTransactionsRequest(::google::protobuf::Arena* arena, GetMempoolTransactionsRequest&& from) noexcept + : GetMempoolTransactionsRequest(arena) { + *this = ::std::move(from); + } + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:tari.rpc.GetMempoolTransactionsRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4882,33 +4692,30 @@ class GetMempoolTransactionsRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetHeaderByHashRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetHeaderByHashRequest) */ { +class GetHeaderByHashRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetHeaderByHashRequest) */ { public: inline GetHeaderByHashRequest() : GetHeaderByHashRequest(nullptr) {} ~GetHeaderByHashRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetHeaderByHashRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetHeaderByHashRequest(const GetHeaderByHashRequest& from) - : GetHeaderByHashRequest(nullptr, from) {} - GetHeaderByHashRequest(GetHeaderByHashRequest&& from) noexcept - : GetHeaderByHashRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetHeaderByHashRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetHeaderByHashRequest(const GetHeaderByHashRequest& from) : GetHeaderByHashRequest(nullptr, from) {} + inline GetHeaderByHashRequest(GetHeaderByHashRequest&& from) noexcept + : GetHeaderByHashRequest(nullptr, std::move(from)) {} inline GetHeaderByHashRequest& operator=(const GetHeaderByHashRequest& from) { CopyFrom(from); return *this; @@ -4916,9 +4723,9 @@ class GetHeaderByHashRequest final : inline GetHeaderByHashRequest& operator=(GetHeaderByHashRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -4950,22 +4757,17 @@ class GetHeaderByHashRequest final : } static inline const GetHeaderByHashRequest* internal_default_instance() { return reinterpret_cast( - &_GetHeaderByHashRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(GetHeaderByHashRequest& a, GetHeaderByHashRequest& b) { - a.Swap(&b); + &_GetHeaderByHashRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 19; + friend void swap(GetHeaderByHashRequest& a, GetHeaderByHashRequest& b) { a.Swap(&b); } inline void Swap(GetHeaderByHashRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4980,51 +4782,52 @@ class GetHeaderByHashRequest final : // implements Message ---------------------------------------------- GetHeaderByHashRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetHeaderByHashRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetHeaderByHashRequest& from) { - GetHeaderByHashRequest::MergeImpl(*this, from); - } + void MergeFrom(const GetHeaderByHashRequest& from) { GetHeaderByHashRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetHeaderByHashRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetHeaderByHashRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetHeaderByHashRequest"; } + + protected: explicit GetHeaderByHashRequest(::google::protobuf::Arena* arena); GetHeaderByHashRequest(::google::protobuf::Arena* arena, const GetHeaderByHashRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetHeaderByHashRequest(::google::protobuf::Arena* arena, GetHeaderByHashRequest&& from) noexcept + : GetHeaderByHashRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kHashFieldNumber = 1, }; @@ -5047,7 +4850,6 @@ class GetHeaderByHashRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.GetHeaderByHashRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -5060,36 +4862,33 @@ class GetHeaderByHashRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr hash_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetBlocksRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetBlocksRequest) */ { +class GetBlocksRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetBlocksRequest) */ { public: inline GetBlocksRequest() : GetBlocksRequest(nullptr) {} ~GetBlocksRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetBlocksRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetBlocksRequest(const GetBlocksRequest& from) - : GetBlocksRequest(nullptr, from) {} - GetBlocksRequest(GetBlocksRequest&& from) noexcept - : GetBlocksRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetBlocksRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetBlocksRequest(const GetBlocksRequest& from) : GetBlocksRequest(nullptr, from) {} + inline GetBlocksRequest(GetBlocksRequest&& from) noexcept + : GetBlocksRequest(nullptr, std::move(from)) {} inline GetBlocksRequest& operator=(const GetBlocksRequest& from) { CopyFrom(from); return *this; @@ -5097,9 +4896,9 @@ class GetBlocksRequest final : inline GetBlocksRequest& operator=(GetBlocksRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -5131,22 +4930,17 @@ class GetBlocksRequest final : } static inline const GetBlocksRequest* internal_default_instance() { return reinterpret_cast( - &_GetBlocksRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(GetBlocksRequest& a, GetBlocksRequest& b) { - a.Swap(&b); + &_GetBlocksRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 22; + friend void swap(GetBlocksRequest& a, GetBlocksRequest& b) { a.Swap(&b); } inline void Swap(GetBlocksRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -5161,51 +4955,52 @@ class GetBlocksRequest final : // implements Message ---------------------------------------------- GetBlocksRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetBlocksRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetBlocksRequest& from) { - GetBlocksRequest::MergeImpl(*this, from); - } + void MergeFrom(const GetBlocksRequest& from) { GetBlocksRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetBlocksRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetBlocksRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetBlocksRequest"; } + + protected: explicit GetBlocksRequest(::google::protobuf::Arena* arena); GetBlocksRequest(::google::protobuf::Arena* arena, const GetBlocksRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetBlocksRequest(::google::protobuf::Arena* arena, GetBlocksRequest&& from) noexcept + : GetBlocksRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kHeightsFieldNumber = 1, }; @@ -5230,7 +5025,6 @@ class GetBlocksRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.GetBlocksRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -5243,13 +5037,12 @@ class GetBlocksRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedField<::uint64_t> heights_; mutable ::google::protobuf::internal::CachedSize _heights_cached_byte_size_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -5257,23 +5050,21 @@ class GetBlocksRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetAssetMetadataRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetAssetMetadataRequest) */ { +class GetAssetMetadataRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetAssetMetadataRequest) */ { public: inline GetAssetMetadataRequest() : GetAssetMetadataRequest(nullptr) {} ~GetAssetMetadataRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetAssetMetadataRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetAssetMetadataRequest(const GetAssetMetadataRequest& from) - : GetAssetMetadataRequest(nullptr, from) {} - GetAssetMetadataRequest(GetAssetMetadataRequest&& from) noexcept - : GetAssetMetadataRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetAssetMetadataRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetAssetMetadataRequest(const GetAssetMetadataRequest& from) : GetAssetMetadataRequest(nullptr, from) {} + inline GetAssetMetadataRequest(GetAssetMetadataRequest&& from) noexcept + : GetAssetMetadataRequest(nullptr, std::move(from)) {} inline GetAssetMetadataRequest& operator=(const GetAssetMetadataRequest& from) { CopyFrom(from); return *this; @@ -5281,9 +5072,9 @@ class GetAssetMetadataRequest final : inline GetAssetMetadataRequest& operator=(GetAssetMetadataRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -5315,22 +5106,17 @@ class GetAssetMetadataRequest final : } static inline const GetAssetMetadataRequest* internal_default_instance() { return reinterpret_cast( - &_GetAssetMetadataRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(GetAssetMetadataRequest& a, GetAssetMetadataRequest& b) { - a.Swap(&b); + &_GetAssetMetadataRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(GetAssetMetadataRequest& a, GetAssetMetadataRequest& b) { a.Swap(&b); } inline void Swap(GetAssetMetadataRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -5345,51 +5131,52 @@ class GetAssetMetadataRequest final : // implements Message ---------------------------------------------- GetAssetMetadataRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetAssetMetadataRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetAssetMetadataRequest& from) { - GetAssetMetadataRequest::MergeImpl(*this, from); - } + void MergeFrom(const GetAssetMetadataRequest& from) { GetAssetMetadataRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetAssetMetadataRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetAssetMetadataRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetAssetMetadataRequest"; } + + protected: explicit GetAssetMetadataRequest(::google::protobuf::Arena* arena); GetAssetMetadataRequest(::google::protobuf::Arena* arena, const GetAssetMetadataRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetAssetMetadataRequest(::google::protobuf::Arena* arena, GetAssetMetadataRequest&& from) noexcept + : GetAssetMetadataRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAssetPublicKeyFieldNumber = 1, }; @@ -5412,7 +5199,6 @@ class GetAssetMetadataRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.GetAssetMetadataRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -5425,36 +5211,33 @@ class GetAssetMetadataRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr asset_public_key_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetActiveValidatorNodesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetActiveValidatorNodesResponse) */ { +class GetActiveValidatorNodesResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetActiveValidatorNodesResponse) */ { public: inline GetActiveValidatorNodesResponse() : GetActiveValidatorNodesResponse(nullptr) {} ~GetActiveValidatorNodesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetActiveValidatorNodesResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetActiveValidatorNodesResponse(const GetActiveValidatorNodesResponse& from) - : GetActiveValidatorNodesResponse(nullptr, from) {} - GetActiveValidatorNodesResponse(GetActiveValidatorNodesResponse&& from) noexcept - : GetActiveValidatorNodesResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetActiveValidatorNodesResponse( + ::google::protobuf::internal::ConstantInitialized); + inline GetActiveValidatorNodesResponse(const GetActiveValidatorNodesResponse& from) : GetActiveValidatorNodesResponse(nullptr, from) {} + inline GetActiveValidatorNodesResponse(GetActiveValidatorNodesResponse&& from) noexcept + : GetActiveValidatorNodesResponse(nullptr, std::move(from)) {} inline GetActiveValidatorNodesResponse& operator=(const GetActiveValidatorNodesResponse& from) { CopyFrom(from); return *this; @@ -5462,9 +5245,9 @@ class GetActiveValidatorNodesResponse final : inline GetActiveValidatorNodesResponse& operator=(GetActiveValidatorNodesResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -5496,22 +5279,17 @@ class GetActiveValidatorNodesResponse final : } static inline const GetActiveValidatorNodesResponse* internal_default_instance() { return reinterpret_cast( - &_GetActiveValidatorNodesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 44; - - friend void swap(GetActiveValidatorNodesResponse& a, GetActiveValidatorNodesResponse& b) { - a.Swap(&b); + &_GetActiveValidatorNodesResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 44; + friend void swap(GetActiveValidatorNodesResponse& a, GetActiveValidatorNodesResponse& b) { a.Swap(&b); } inline void Swap(GetActiveValidatorNodesResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -5526,51 +5304,52 @@ class GetActiveValidatorNodesResponse final : // implements Message ---------------------------------------------- GetActiveValidatorNodesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetActiveValidatorNodesResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetActiveValidatorNodesResponse& from) { - GetActiveValidatorNodesResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetActiveValidatorNodesResponse& from) { GetActiveValidatorNodesResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetActiveValidatorNodesResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetActiveValidatorNodesResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetActiveValidatorNodesResponse"; } + + protected: explicit GetActiveValidatorNodesResponse(::google::protobuf::Arena* arena); GetActiveValidatorNodesResponse(::google::protobuf::Arena* arena, const GetActiveValidatorNodesResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetActiveValidatorNodesResponse(::google::protobuf::Arena* arena, GetActiveValidatorNodesResponse&& from) noexcept + : GetActiveValidatorNodesResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kShardKeyFieldNumber = 1, kPublicKeyFieldNumber = 2, @@ -5610,7 +5389,6 @@ class GetActiveValidatorNodesResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.GetActiveValidatorNodesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -5623,13 +5401,12 @@ class GetActiveValidatorNodesResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr shard_key_; ::google::protobuf::internal::ArenaStringPtr public_key_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -5637,23 +5414,21 @@ class GetActiveValidatorNodesResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetActiveValidatorNodesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetActiveValidatorNodesRequest) */ { +class GetActiveValidatorNodesRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetActiveValidatorNodesRequest) */ { public: inline GetActiveValidatorNodesRequest() : GetActiveValidatorNodesRequest(nullptr) {} ~GetActiveValidatorNodesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetActiveValidatorNodesRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetActiveValidatorNodesRequest(const GetActiveValidatorNodesRequest& from) - : GetActiveValidatorNodesRequest(nullptr, from) {} - GetActiveValidatorNodesRequest(GetActiveValidatorNodesRequest&& from) noexcept - : GetActiveValidatorNodesRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetActiveValidatorNodesRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetActiveValidatorNodesRequest(const GetActiveValidatorNodesRequest& from) : GetActiveValidatorNodesRequest(nullptr, from) {} + inline GetActiveValidatorNodesRequest(GetActiveValidatorNodesRequest&& from) noexcept + : GetActiveValidatorNodesRequest(nullptr, std::move(from)) {} inline GetActiveValidatorNodesRequest& operator=(const GetActiveValidatorNodesRequest& from) { CopyFrom(from); return *this; @@ -5661,9 +5436,9 @@ class GetActiveValidatorNodesRequest final : inline GetActiveValidatorNodesRequest& operator=(GetActiveValidatorNodesRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -5695,22 +5470,17 @@ class GetActiveValidatorNodesRequest final : } static inline const GetActiveValidatorNodesRequest* internal_default_instance() { return reinterpret_cast( - &_GetActiveValidatorNodesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 43; - - friend void swap(GetActiveValidatorNodesRequest& a, GetActiveValidatorNodesRequest& b) { - a.Swap(&b); + &_GetActiveValidatorNodesRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 43; + friend void swap(GetActiveValidatorNodesRequest& a, GetActiveValidatorNodesRequest& b) { a.Swap(&b); } inline void Swap(GetActiveValidatorNodesRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -5725,51 +5495,52 @@ class GetActiveValidatorNodesRequest final : // implements Message ---------------------------------------------- GetActiveValidatorNodesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetActiveValidatorNodesRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetActiveValidatorNodesRequest& from) { - GetActiveValidatorNodesRequest::MergeImpl(*this, from); - } + void MergeFrom(const GetActiveValidatorNodesRequest& from) { GetActiveValidatorNodesRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetActiveValidatorNodesRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetActiveValidatorNodesRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetActiveValidatorNodesRequest"; } + + protected: explicit GetActiveValidatorNodesRequest(::google::protobuf::Arena* arena); GetActiveValidatorNodesRequest(::google::protobuf::Arena* arena, const GetActiveValidatorNodesRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetActiveValidatorNodesRequest(::google::protobuf::Arena* arena, GetActiveValidatorNodesRequest&& from) noexcept + : GetActiveValidatorNodesRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kHeightFieldNumber = 1, }; @@ -5786,7 +5557,6 @@ class GetActiveValidatorNodesRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.GetActiveValidatorNodesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -5799,36 +5569,33 @@ class GetActiveValidatorNodesRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t height_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FetchMatchingUtxosRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.FetchMatchingUtxosRequest) */ { +class FetchMatchingUtxosRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.FetchMatchingUtxosRequest) */ { public: inline FetchMatchingUtxosRequest() : FetchMatchingUtxosRequest(nullptr) {} ~FetchMatchingUtxosRequest() override; - template - explicit PROTOBUF_CONSTEXPR FetchMatchingUtxosRequest(::google::protobuf::internal::ConstantInitialized); - - inline FetchMatchingUtxosRequest(const FetchMatchingUtxosRequest& from) - : FetchMatchingUtxosRequest(nullptr, from) {} - FetchMatchingUtxosRequest(FetchMatchingUtxosRequest&& from) noexcept - : FetchMatchingUtxosRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR FetchMatchingUtxosRequest( + ::google::protobuf::internal::ConstantInitialized); + inline FetchMatchingUtxosRequest(const FetchMatchingUtxosRequest& from) : FetchMatchingUtxosRequest(nullptr, from) {} + inline FetchMatchingUtxosRequest(FetchMatchingUtxosRequest&& from) noexcept + : FetchMatchingUtxosRequest(nullptr, std::move(from)) {} inline FetchMatchingUtxosRequest& operator=(const FetchMatchingUtxosRequest& from) { CopyFrom(from); return *this; @@ -5836,9 +5603,9 @@ class FetchMatchingUtxosRequest final : inline FetchMatchingUtxosRequest& operator=(FetchMatchingUtxosRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -5870,22 +5637,17 @@ class FetchMatchingUtxosRequest final : } static inline const FetchMatchingUtxosRequest* internal_default_instance() { return reinterpret_cast( - &_FetchMatchingUtxosRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - - friend void swap(FetchMatchingUtxosRequest& a, FetchMatchingUtxosRequest& b) { - a.Swap(&b); + &_FetchMatchingUtxosRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 32; + friend void swap(FetchMatchingUtxosRequest& a, FetchMatchingUtxosRequest& b) { a.Swap(&b); } inline void Swap(FetchMatchingUtxosRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -5900,51 +5662,52 @@ class FetchMatchingUtxosRequest final : // implements Message ---------------------------------------------- FetchMatchingUtxosRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const FetchMatchingUtxosRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FetchMatchingUtxosRequest& from) { - FetchMatchingUtxosRequest::MergeImpl(*this, from); - } + void MergeFrom(const FetchMatchingUtxosRequest& from) { FetchMatchingUtxosRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(FetchMatchingUtxosRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.FetchMatchingUtxosRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.FetchMatchingUtxosRequest"; } + + protected: explicit FetchMatchingUtxosRequest(::google::protobuf::Arena* arena); FetchMatchingUtxosRequest(::google::protobuf::Arena* arena, const FetchMatchingUtxosRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + FetchMatchingUtxosRequest(::google::protobuf::Arena* arena, FetchMatchingUtxosRequest&& from) noexcept + : FetchMatchingUtxosRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kHashesFieldNumber = 1, }; @@ -5979,7 +5742,6 @@ class FetchMatchingUtxosRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.FetchMatchingUtxosRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -5992,36 +5754,33 @@ class FetchMatchingUtxosRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField hashes_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BlockTimingResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockTimingResponse) */ { +class BlockTimingResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.BlockTimingResponse) */ { public: inline BlockTimingResponse() : BlockTimingResponse(nullptr) {} ~BlockTimingResponse() override; - template - explicit PROTOBUF_CONSTEXPR BlockTimingResponse(::google::protobuf::internal::ConstantInitialized); - - inline BlockTimingResponse(const BlockTimingResponse& from) - : BlockTimingResponse(nullptr, from) {} - BlockTimingResponse(BlockTimingResponse&& from) noexcept - : BlockTimingResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR BlockTimingResponse( + ::google::protobuf::internal::ConstantInitialized); + inline BlockTimingResponse(const BlockTimingResponse& from) : BlockTimingResponse(nullptr, from) {} + inline BlockTimingResponse(BlockTimingResponse&& from) noexcept + : BlockTimingResponse(nullptr, std::move(from)) {} inline BlockTimingResponse& operator=(const BlockTimingResponse& from) { CopyFrom(from); return *this; @@ -6029,9 +5788,9 @@ class BlockTimingResponse final : inline BlockTimingResponse& operator=(BlockTimingResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -6063,22 +5822,17 @@ class BlockTimingResponse final : } static inline const BlockTimingResponse* internal_default_instance() { return reinterpret_cast( - &_BlockTimingResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(BlockTimingResponse& a, BlockTimingResponse& b) { - a.Swap(&b); + &_BlockTimingResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 18; + friend void swap(BlockTimingResponse& a, BlockTimingResponse& b) { a.Swap(&b); } inline void Swap(BlockTimingResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -6093,51 +5847,52 @@ class BlockTimingResponse final : // implements Message ---------------------------------------------- BlockTimingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const BlockTimingResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BlockTimingResponse& from) { - BlockTimingResponse::MergeImpl(*this, from); - } + void MergeFrom(const BlockTimingResponse& from) { BlockTimingResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(BlockTimingResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.BlockTimingResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.BlockTimingResponse"; } + + protected: explicit BlockTimingResponse(::google::protobuf::Arena* arena); BlockTimingResponse(::google::protobuf::Arena* arena, const BlockTimingResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + BlockTimingResponse(::google::protobuf::Arena* arena, BlockTimingResponse&& from) noexcept + : BlockTimingResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kMaxFieldNumber = 1, kMinFieldNumber = 2, @@ -6176,7 +5931,6 @@ class BlockTimingResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.BlockTimingResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, @@ -6189,13 +5943,12 @@ class BlockTimingResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t max_; ::uint64_t min_; double avg_; @@ -6204,23 +5957,21 @@ class BlockTimingResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BlockInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockInfo) */ { +class BlockInfo final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.BlockInfo) */ { public: inline BlockInfo() : BlockInfo(nullptr) {} ~BlockInfo() override; - template - explicit PROTOBUF_CONSTEXPR BlockInfo(::google::protobuf::internal::ConstantInitialized); - - inline BlockInfo(const BlockInfo& from) - : BlockInfo(nullptr, from) {} - BlockInfo(BlockInfo&& from) noexcept - : BlockInfo() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR BlockInfo( + ::google::protobuf::internal::ConstantInitialized); + inline BlockInfo(const BlockInfo& from) : BlockInfo(nullptr, from) {} + inline BlockInfo(BlockInfo&& from) noexcept + : BlockInfo(nullptr, std::move(from)) {} inline BlockInfo& operator=(const BlockInfo& from) { CopyFrom(from); return *this; @@ -6228,9 +5979,9 @@ class BlockInfo final : inline BlockInfo& operator=(BlockInfo&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -6262,22 +6013,17 @@ class BlockInfo final : } static inline const BlockInfo* internal_default_instance() { return reinterpret_cast( - &_BlockInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 49; - - friend void swap(BlockInfo& a, BlockInfo& b) { - a.Swap(&b); + &_BlockInfo_default_instance_); } + static constexpr int kIndexInFileMessages = 49; + friend void swap(BlockInfo& a, BlockInfo& b) { a.Swap(&b); } inline void Swap(BlockInfo* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -6292,51 +6038,52 @@ class BlockInfo final : // implements Message ---------------------------------------------- BlockInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const BlockInfo& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BlockInfo& from) { - BlockInfo::MergeImpl(*this, from); - } + void MergeFrom(const BlockInfo& from) { BlockInfo::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(BlockInfo* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.BlockInfo"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.BlockInfo"; } + + protected: explicit BlockInfo(::google::protobuf::Arena* arena); BlockInfo(::google::protobuf::Arena* arena, const BlockInfo& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + BlockInfo(::google::protobuf::Arena* arena, BlockInfo&& from) noexcept + : BlockInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kHashFieldNumber = 2, kNextBlockHashFieldNumber = 3, @@ -6387,7 +6134,6 @@ class BlockInfo final : // @@protoc_insertion_point(class_scope:tari.rpc.BlockInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, @@ -6400,13 +6146,12 @@ class BlockInfo final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr hash_; ::google::protobuf::internal::ArenaStringPtr next_block_hash_; ::uint64_t height_; @@ -6415,23 +6160,21 @@ class BlockInfo final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BlockGroupResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockGroupResponse) */ { +class BlockGroupResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.BlockGroupResponse) */ { public: inline BlockGroupResponse() : BlockGroupResponse(nullptr) {} ~BlockGroupResponse() override; - template - explicit PROTOBUF_CONSTEXPR BlockGroupResponse(::google::protobuf::internal::ConstantInitialized); - - inline BlockGroupResponse(const BlockGroupResponse& from) - : BlockGroupResponse(nullptr, from) {} - BlockGroupResponse(BlockGroupResponse&& from) noexcept - : BlockGroupResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR BlockGroupResponse( + ::google::protobuf::internal::ConstantInitialized); + inline BlockGroupResponse(const BlockGroupResponse& from) : BlockGroupResponse(nullptr, from) {} + inline BlockGroupResponse(BlockGroupResponse&& from) noexcept + : BlockGroupResponse(nullptr, std::move(from)) {} inline BlockGroupResponse& operator=(const BlockGroupResponse& from) { CopyFrom(from); return *this; @@ -6439,9 +6182,9 @@ class BlockGroupResponse final : inline BlockGroupResponse& operator=(BlockGroupResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -6473,22 +6216,17 @@ class BlockGroupResponse final : } static inline const BlockGroupResponse* internal_default_instance() { return reinterpret_cast( - &_BlockGroupResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(BlockGroupResponse& a, BlockGroupResponse& b) { - a.Swap(&b); + &_BlockGroupResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 16; + friend void swap(BlockGroupResponse& a, BlockGroupResponse& b) { a.Swap(&b); } inline void Swap(BlockGroupResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -6503,51 +6241,52 @@ class BlockGroupResponse final : // implements Message ---------------------------------------------- BlockGroupResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const BlockGroupResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BlockGroupResponse& from) { - BlockGroupResponse::MergeImpl(*this, from); - } + void MergeFrom(const BlockGroupResponse& from) { BlockGroupResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(BlockGroupResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.BlockGroupResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.BlockGroupResponse"; } + + protected: explicit BlockGroupResponse(::google::protobuf::Arena* arena); BlockGroupResponse(::google::protobuf::Arena* arena, const BlockGroupResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + BlockGroupResponse(::google::protobuf::Arena* arena, BlockGroupResponse&& from) noexcept + : BlockGroupResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kValueFieldNumber = 1, kCalcTypeFieldNumber = 2, @@ -6583,7 +6322,6 @@ class BlockGroupResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.BlockGroupResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -6596,13 +6334,12 @@ class BlockGroupResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedField value_; int calc_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -6610,23 +6347,21 @@ class BlockGroupResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BlockGroupRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockGroupRequest) */ { +class BlockGroupRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.BlockGroupRequest) */ { public: inline BlockGroupRequest() : BlockGroupRequest(nullptr) {} ~BlockGroupRequest() override; - template - explicit PROTOBUF_CONSTEXPR BlockGroupRequest(::google::protobuf::internal::ConstantInitialized); - - inline BlockGroupRequest(const BlockGroupRequest& from) - : BlockGroupRequest(nullptr, from) {} - BlockGroupRequest(BlockGroupRequest&& from) noexcept - : BlockGroupRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR BlockGroupRequest( + ::google::protobuf::internal::ConstantInitialized); + inline BlockGroupRequest(const BlockGroupRequest& from) : BlockGroupRequest(nullptr, from) {} + inline BlockGroupRequest(BlockGroupRequest&& from) noexcept + : BlockGroupRequest(nullptr, std::move(from)) {} inline BlockGroupRequest& operator=(const BlockGroupRequest& from) { CopyFrom(from); return *this; @@ -6634,9 +6369,9 @@ class BlockGroupRequest final : inline BlockGroupRequest& operator=(BlockGroupRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -6668,22 +6403,17 @@ class BlockGroupRequest final : } static inline const BlockGroupRequest* internal_default_instance() { return reinterpret_cast( - &_BlockGroupRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(BlockGroupRequest& a, BlockGroupRequest& b) { - a.Swap(&b); + &_BlockGroupRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 15; + friend void swap(BlockGroupRequest& a, BlockGroupRequest& b) { a.Swap(&b); } inline void Swap(BlockGroupRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -6698,51 +6428,52 @@ class BlockGroupRequest final : // implements Message ---------------------------------------------- BlockGroupRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const BlockGroupRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BlockGroupRequest& from) { - BlockGroupRequest::MergeImpl(*this, from); - } + void MergeFrom(const BlockGroupRequest& from) { BlockGroupRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(BlockGroupRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.BlockGroupRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.BlockGroupRequest"; } + + protected: explicit BlockGroupRequest(::google::protobuf::Arena* arena); BlockGroupRequest(::google::protobuf::Arena* arena, const BlockGroupRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + BlockGroupRequest(::google::protobuf::Arena* arena, BlockGroupRequest&& from) noexcept + : BlockGroupRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kFromTipFieldNumber = 1, kStartHeightFieldNumber = 2, @@ -6792,7 +6523,6 @@ class BlockGroupRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.BlockGroupRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 4, 0, @@ -6805,13 +6535,12 @@ class BlockGroupRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t from_tip_; ::uint64_t start_height_; ::uint64_t end_height_; @@ -6821,23 +6550,21 @@ class BlockGroupRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BlockBlobRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockBlobRequest) */ { +class BlockBlobRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.BlockBlobRequest) */ { public: inline BlockBlobRequest() : BlockBlobRequest(nullptr) {} ~BlockBlobRequest() override; - template - explicit PROTOBUF_CONSTEXPR BlockBlobRequest(::google::protobuf::internal::ConstantInitialized); - - inline BlockBlobRequest(const BlockBlobRequest& from) - : BlockBlobRequest(nullptr, from) {} - BlockBlobRequest(BlockBlobRequest&& from) noexcept - : BlockBlobRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR BlockBlobRequest( + ::google::protobuf::internal::ConstantInitialized); + inline BlockBlobRequest(const BlockBlobRequest& from) : BlockBlobRequest(nullptr, from) {} + inline BlockBlobRequest(BlockBlobRequest&& from) noexcept + : BlockBlobRequest(nullptr, std::move(from)) {} inline BlockBlobRequest& operator=(const BlockBlobRequest& from) { CopyFrom(from); return *this; @@ -6845,9 +6572,9 @@ class BlockBlobRequest final : inline BlockBlobRequest& operator=(BlockBlobRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -6879,22 +6606,17 @@ class BlockBlobRequest final : } static inline const BlockBlobRequest* internal_default_instance() { return reinterpret_cast( - &_BlockBlobRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(BlockBlobRequest& a, BlockBlobRequest& b) { - a.Swap(&b); + &_BlockBlobRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 7; + friend void swap(BlockBlobRequest& a, BlockBlobRequest& b) { a.Swap(&b); } inline void Swap(BlockBlobRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -6909,51 +6631,52 @@ class BlockBlobRequest final : // implements Message ---------------------------------------------- BlockBlobRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const BlockBlobRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BlockBlobRequest& from) { - BlockBlobRequest::MergeImpl(*this, from); - } + void MergeFrom(const BlockBlobRequest& from) { BlockBlobRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(BlockBlobRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.BlockBlobRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.BlockBlobRequest"; } + + protected: explicit BlockBlobRequest(::google::protobuf::Arena* arena); BlockBlobRequest(::google::protobuf::Arena* arena, const BlockBlobRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + BlockBlobRequest(::google::protobuf::Arena* arena, BlockBlobRequest&& from) noexcept + : BlockBlobRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kHeaderBlobFieldNumber = 1, kBodyBlobFieldNumber = 2, @@ -6993,7 +6716,6 @@ class BlockBlobRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.BlockBlobRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -7006,13 +6728,12 @@ class BlockBlobRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr header_blob_; ::google::protobuf::internal::ArenaStringPtr body_blob_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -7020,23 +6741,21 @@ class BlockBlobRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TransactionStateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.TransactionStateRequest) */ { +class TransactionStateRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionStateRequest) */ { public: inline TransactionStateRequest() : TransactionStateRequest(nullptr) {} ~TransactionStateRequest() override; - template - explicit PROTOBUF_CONSTEXPR TransactionStateRequest(::google::protobuf::internal::ConstantInitialized); - - inline TransactionStateRequest(const TransactionStateRequest& from) - : TransactionStateRequest(nullptr, from) {} - TransactionStateRequest(TransactionStateRequest&& from) noexcept - : TransactionStateRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR TransactionStateRequest( + ::google::protobuf::internal::ConstantInitialized); + inline TransactionStateRequest(const TransactionStateRequest& from) : TransactionStateRequest(nullptr, from) {} + inline TransactionStateRequest(TransactionStateRequest&& from) noexcept + : TransactionStateRequest(nullptr, std::move(from)) {} inline TransactionStateRequest& operator=(const TransactionStateRequest& from) { CopyFrom(from); return *this; @@ -7044,9 +6763,9 @@ class TransactionStateRequest final : inline TransactionStateRequest& operator=(TransactionStateRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -7078,22 +6797,17 @@ class TransactionStateRequest final : } static inline const TransactionStateRequest* internal_default_instance() { return reinterpret_cast( - &_TransactionStateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 40; - - friend void swap(TransactionStateRequest& a, TransactionStateRequest& b) { - a.Swap(&b); + &_TransactionStateRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 40; + friend void swap(TransactionStateRequest& a, TransactionStateRequest& b) { a.Swap(&b); } inline void Swap(TransactionStateRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -7108,51 +6822,52 @@ class TransactionStateRequest final : // implements Message ---------------------------------------------- TransactionStateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TransactionStateRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransactionStateRequest& from) { - TransactionStateRequest::MergeImpl(*this, from); - } + void MergeFrom(const TransactionStateRequest& from) { TransactionStateRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(TransactionStateRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.TransactionStateRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionStateRequest"; } + + protected: explicit TransactionStateRequest(::google::protobuf::Arena* arena); TransactionStateRequest(::google::protobuf::Arena* arena, const TransactionStateRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + TransactionStateRequest(::google::protobuf::Arena* arena, TransactionStateRequest&& from) noexcept + : TransactionStateRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kExcessSigFieldNumber = 1, }; @@ -7174,7 +6889,6 @@ class TransactionStateRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.TransactionStateRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, @@ -7187,13 +6901,12 @@ class TransactionStateRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::Signature* excess_sig_; @@ -7201,23 +6914,21 @@ class TransactionStateRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TipInfoResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.TipInfoResponse) */ { +class TipInfoResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.TipInfoResponse) */ { public: inline TipInfoResponse() : TipInfoResponse(nullptr) {} ~TipInfoResponse() override; - template - explicit PROTOBUF_CONSTEXPR TipInfoResponse(::google::protobuf::internal::ConstantInitialized); - - inline TipInfoResponse(const TipInfoResponse& from) - : TipInfoResponse(nullptr, from) {} - TipInfoResponse(TipInfoResponse&& from) noexcept - : TipInfoResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR TipInfoResponse( + ::google::protobuf::internal::ConstantInitialized); + inline TipInfoResponse(const TipInfoResponse& from) : TipInfoResponse(nullptr, from) {} + inline TipInfoResponse(TipInfoResponse&& from) noexcept + : TipInfoResponse(nullptr, std::move(from)) {} inline TipInfoResponse& operator=(const TipInfoResponse& from) { CopyFrom(from); return *this; @@ -7225,9 +6936,9 @@ class TipInfoResponse final : inline TipInfoResponse& operator=(TipInfoResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -7259,22 +6970,17 @@ class TipInfoResponse final : } static inline const TipInfoResponse* internal_default_instance() { return reinterpret_cast( - &_TipInfoResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(TipInfoResponse& a, TipInfoResponse& b) { - a.Swap(&b); + &_TipInfoResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 8; + friend void swap(TipInfoResponse& a, TipInfoResponse& b) { a.Swap(&b); } inline void Swap(TipInfoResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -7289,51 +6995,52 @@ class TipInfoResponse final : // implements Message ---------------------------------------------- TipInfoResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TipInfoResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TipInfoResponse& from) { - TipInfoResponse::MergeImpl(*this, from); - } + void MergeFrom(const TipInfoResponse& from) { TipInfoResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(TipInfoResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.TipInfoResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.TipInfoResponse"; } + + protected: explicit TipInfoResponse(::google::protobuf::Arena* arena); TipInfoResponse(::google::protobuf::Arena* arena, const TipInfoResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + TipInfoResponse(::google::protobuf::Arena* arena, TipInfoResponse&& from) noexcept + : TipInfoResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kMetadataFieldNumber = 1, kInitialSyncAchievedFieldNumber = 2, @@ -7377,7 +7084,6 @@ class TipInfoResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.TipInfoResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 1, @@ -7390,13 +7096,12 @@ class TipInfoResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::MetaData* metadata_; @@ -7406,23 +7111,21 @@ class TipInfoResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SearchKernelsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SearchKernelsRequest) */ { +class SearchKernelsRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SearchKernelsRequest) */ { public: inline SearchKernelsRequest() : SearchKernelsRequest(nullptr) {} ~SearchKernelsRequest() override; - template - explicit PROTOBUF_CONSTEXPR SearchKernelsRequest(::google::protobuf::internal::ConstantInitialized); - - inline SearchKernelsRequest(const SearchKernelsRequest& from) - : SearchKernelsRequest(nullptr, from) {} - SearchKernelsRequest(SearchKernelsRequest&& from) noexcept - : SearchKernelsRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR SearchKernelsRequest( + ::google::protobuf::internal::ConstantInitialized); + inline SearchKernelsRequest(const SearchKernelsRequest& from) : SearchKernelsRequest(nullptr, from) {} + inline SearchKernelsRequest(SearchKernelsRequest&& from) noexcept + : SearchKernelsRequest(nullptr, std::move(from)) {} inline SearchKernelsRequest& operator=(const SearchKernelsRequest& from) { CopyFrom(from); return *this; @@ -7430,9 +7133,9 @@ class SearchKernelsRequest final : inline SearchKernelsRequest& operator=(SearchKernelsRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -7464,22 +7167,17 @@ class SearchKernelsRequest final : } static inline const SearchKernelsRequest* internal_default_instance() { return reinterpret_cast( - &_SearchKernelsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - - friend void swap(SearchKernelsRequest& a, SearchKernelsRequest& b) { - a.Swap(&b); + &_SearchKernelsRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 30; + friend void swap(SearchKernelsRequest& a, SearchKernelsRequest& b) { a.Swap(&b); } inline void Swap(SearchKernelsRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -7494,51 +7192,52 @@ class SearchKernelsRequest final : // implements Message ---------------------------------------------- SearchKernelsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SearchKernelsRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SearchKernelsRequest& from) { - SearchKernelsRequest::MergeImpl(*this, from); - } + void MergeFrom(const SearchKernelsRequest& from) { SearchKernelsRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(SearchKernelsRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.SearchKernelsRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.SearchKernelsRequest"; } + + protected: explicit SearchKernelsRequest(::google::protobuf::Arena* arena); SearchKernelsRequest(::google::protobuf::Arena* arena, const SearchKernelsRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + SearchKernelsRequest(::google::protobuf::Arena* arena, SearchKernelsRequest&& from) noexcept + : SearchKernelsRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kSignaturesFieldNumber = 1, }; @@ -7550,20 +7249,18 @@ class SearchKernelsRequest final : public: void clear_signatures() ; ::tari::rpc::Signature* mutable_signatures(int index); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::Signature >* - mutable_signatures(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* mutable_signatures(); + private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>& _internal_signatures() const; ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* _internal_mutable_signatures(); public: const ::tari::rpc::Signature& signatures(int index) const; ::tari::rpc::Signature* add_signatures(); - const ::google::protobuf::RepeatedPtrField< ::tari::rpc::Signature >& - signatures() const; + const ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>& signatures() const; // @@protoc_insertion_point(class_scope:tari.rpc.SearchKernelsRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, @@ -7576,36 +7273,33 @@ class SearchKernelsRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField< ::tari::rpc::Signature > signatures_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NewBlockTemplateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplateRequest) */ { +class NewBlockTemplateRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplateRequest) */ { public: inline NewBlockTemplateRequest() : NewBlockTemplateRequest(nullptr) {} ~NewBlockTemplateRequest() override; - template - explicit PROTOBUF_CONSTEXPR NewBlockTemplateRequest(::google::protobuf::internal::ConstantInitialized); - - inline NewBlockTemplateRequest(const NewBlockTemplateRequest& from) - : NewBlockTemplateRequest(nullptr, from) {} - NewBlockTemplateRequest(NewBlockTemplateRequest&& from) noexcept - : NewBlockTemplateRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR NewBlockTemplateRequest( + ::google::protobuf::internal::ConstantInitialized); + inline NewBlockTemplateRequest(const NewBlockTemplateRequest& from) : NewBlockTemplateRequest(nullptr, from) {} + inline NewBlockTemplateRequest(NewBlockTemplateRequest&& from) noexcept + : NewBlockTemplateRequest(nullptr, std::move(from)) {} inline NewBlockTemplateRequest& operator=(const NewBlockTemplateRequest& from) { CopyFrom(from); return *this; @@ -7613,9 +7307,9 @@ class NewBlockTemplateRequest final : inline NewBlockTemplateRequest& operator=(NewBlockTemplateRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -7647,22 +7341,17 @@ class NewBlockTemplateRequest final : } static inline const NewBlockTemplateRequest* internal_default_instance() { return reinterpret_cast( - &_NewBlockTemplateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(NewBlockTemplateRequest& a, NewBlockTemplateRequest& b) { - a.Swap(&b); + &_NewBlockTemplateRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 10; + friend void swap(NewBlockTemplateRequest& a, NewBlockTemplateRequest& b) { a.Swap(&b); } inline void Swap(NewBlockTemplateRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -7677,51 +7366,52 @@ class NewBlockTemplateRequest final : // implements Message ---------------------------------------------- NewBlockTemplateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const NewBlockTemplateRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NewBlockTemplateRequest& from) { - NewBlockTemplateRequest::MergeImpl(*this, from); - } + void MergeFrom(const NewBlockTemplateRequest& from) { NewBlockTemplateRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(NewBlockTemplateRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.NewBlockTemplateRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockTemplateRequest"; } + + protected: explicit NewBlockTemplateRequest(::google::protobuf::Arena* arena); NewBlockTemplateRequest(::google::protobuf::Arena* arena, const NewBlockTemplateRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + NewBlockTemplateRequest(::google::protobuf::Arena* arena, NewBlockTemplateRequest&& from) noexcept + : NewBlockTemplateRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAlgoFieldNumber = 1, kMaxWeightFieldNumber = 2, @@ -7754,7 +7444,6 @@ class NewBlockTemplateRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.NewBlockTemplateRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, @@ -7767,13 +7456,12 @@ class NewBlockTemplateRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::PowAlgo* algo_; @@ -7782,23 +7470,21 @@ class NewBlockTemplateRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class MinerData final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.MinerData) */ { +class MinerData final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.MinerData) */ { public: inline MinerData() : MinerData(nullptr) {} ~MinerData() override; - template - explicit PROTOBUF_CONSTEXPR MinerData(::google::protobuf::internal::ConstantInitialized); - - inline MinerData(const MinerData& from) - : MinerData(nullptr, from) {} - MinerData(MinerData&& from) noexcept - : MinerData() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR MinerData( + ::google::protobuf::internal::ConstantInitialized); + inline MinerData(const MinerData& from) : MinerData(nullptr, from) {} + inline MinerData(MinerData&& from) noexcept + : MinerData(nullptr, std::move(from)) {} inline MinerData& operator=(const MinerData& from) { CopyFrom(from); return *this; @@ -7806,9 +7492,9 @@ class MinerData final : inline MinerData& operator=(MinerData&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -7840,22 +7526,17 @@ class MinerData final : } static inline const MinerData* internal_default_instance() { return reinterpret_cast( - &_MinerData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - friend void swap(MinerData& a, MinerData& b) { - a.Swap(&b); + &_MinerData_default_instance_); } + static constexpr int kIndexInFileMessages = 29; + friend void swap(MinerData& a, MinerData& b) { a.Swap(&b); } inline void Swap(MinerData* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -7870,51 +7551,52 @@ class MinerData final : // implements Message ---------------------------------------------- MinerData* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const MinerData& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const MinerData& from) { - MinerData::MergeImpl(*this, from); - } + void MergeFrom(const MinerData& from) { MinerData::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(MinerData* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.MinerData"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.MinerData"; } + + protected: explicit MinerData(::google::protobuf::Arena* arena); MinerData(::google::protobuf::Arena* arena, const MinerData& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + MinerData(::google::protobuf::Arena* arena, MinerData&& from) noexcept + : MinerData(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAlgoFieldNumber = 1, kTargetDifficultyFieldNumber = 2, @@ -7969,7 +7651,6 @@ class MinerData final : // @@protoc_insertion_point(class_scope:tari.rpc.MinerData) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 4, 1, @@ -7982,13 +7663,12 @@ class MinerData final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::PowAlgo* algo_; @@ -7999,23 +7679,21 @@ class MinerData final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetPeersResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetPeersResponse) */ { +class GetPeersResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetPeersResponse) */ { public: inline GetPeersResponse() : GetPeersResponse(nullptr) {} ~GetPeersResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPeersResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetPeersResponse(const GetPeersResponse& from) - : GetPeersResponse(nullptr, from) {} - GetPeersResponse(GetPeersResponse&& from) noexcept - : GetPeersResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetPeersResponse( + ::google::protobuf::internal::ConstantInitialized); + inline GetPeersResponse(const GetPeersResponse& from) : GetPeersResponse(nullptr, from) {} + inline GetPeersResponse(GetPeersResponse&& from) noexcept + : GetPeersResponse(nullptr, std::move(from)) {} inline GetPeersResponse& operator=(const GetPeersResponse& from) { CopyFrom(from); return *this; @@ -8023,9 +7701,9 @@ class GetPeersResponse final : inline GetPeersResponse& operator=(GetPeersResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -8057,22 +7735,17 @@ class GetPeersResponse final : } static inline const GetPeersResponse* internal_default_instance() { return reinterpret_cast( - &_GetPeersResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - - friend void swap(GetPeersResponse& a, GetPeersResponse& b) { - a.Swap(&b); + &_GetPeersResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 34; + friend void swap(GetPeersResponse& a, GetPeersResponse& b) { a.Swap(&b); } inline void Swap(GetPeersResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -8087,51 +7760,52 @@ class GetPeersResponse final : // implements Message ---------------------------------------------- GetPeersResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetPeersResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetPeersResponse& from) { - GetPeersResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetPeersResponse& from) { GetPeersResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetPeersResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetPeersResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetPeersResponse"; } + + protected: explicit GetPeersResponse(::google::protobuf::Arena* arena); GetPeersResponse(::google::protobuf::Arena* arena, const GetPeersResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetPeersResponse(::google::protobuf::Arena* arena, GetPeersResponse&& from) noexcept + : GetPeersResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kPeerFieldNumber = 1, }; @@ -8153,7 +7827,6 @@ class GetPeersResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.GetPeersResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, @@ -8166,13 +7839,12 @@ class GetPeersResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::Peer* peer_; @@ -8180,23 +7852,21 @@ class GetPeersResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BlockHeaderResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockHeaderResponse) */ { +class BlockHeaderResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.BlockHeaderResponse) */ { public: inline BlockHeaderResponse() : BlockHeaderResponse(nullptr) {} ~BlockHeaderResponse() override; - template - explicit PROTOBUF_CONSTEXPR BlockHeaderResponse(::google::protobuf::internal::ConstantInitialized); - - inline BlockHeaderResponse(const BlockHeaderResponse& from) - : BlockHeaderResponse(nullptr, from) {} - BlockHeaderResponse(BlockHeaderResponse&& from) noexcept - : BlockHeaderResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR BlockHeaderResponse( + ::google::protobuf::internal::ConstantInitialized); + inline BlockHeaderResponse(const BlockHeaderResponse& from) : BlockHeaderResponse(nullptr, from) {} + inline BlockHeaderResponse(BlockHeaderResponse&& from) noexcept + : BlockHeaderResponse(nullptr, std::move(from)) {} inline BlockHeaderResponse& operator=(const BlockHeaderResponse& from) { CopyFrom(from); return *this; @@ -8204,9 +7874,9 @@ class BlockHeaderResponse final : inline BlockHeaderResponse& operator=(BlockHeaderResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -8238,22 +7908,17 @@ class BlockHeaderResponse final : } static inline const BlockHeaderResponse* internal_default_instance() { return reinterpret_cast( - &_BlockHeaderResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(BlockHeaderResponse& a, BlockHeaderResponse& b) { - a.Swap(&b); + &_BlockHeaderResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 20; + friend void swap(BlockHeaderResponse& a, BlockHeaderResponse& b) { a.Swap(&b); } inline void Swap(BlockHeaderResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -8268,51 +7933,52 @@ class BlockHeaderResponse final : // implements Message ---------------------------------------------- BlockHeaderResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const BlockHeaderResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BlockHeaderResponse& from) { - BlockHeaderResponse::MergeImpl(*this, from); - } + void MergeFrom(const BlockHeaderResponse& from) { BlockHeaderResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(BlockHeaderResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.BlockHeaderResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.BlockHeaderResponse"; } + + protected: explicit BlockHeaderResponse(::google::protobuf::Arena* arena); BlockHeaderResponse(::google::protobuf::Arena* arena, const BlockHeaderResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + BlockHeaderResponse(::google::protobuf::Arena* arena, BlockHeaderResponse&& from) noexcept + : BlockHeaderResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kHeaderFieldNumber = 1, kConfirmationsFieldNumber = 2, @@ -8378,7 +8044,6 @@ class BlockHeaderResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.BlockHeaderResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 5, 1, @@ -8391,13 +8056,12 @@ class BlockHeaderResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::BlockHeader* header_; @@ -8409,23 +8073,21 @@ class BlockHeaderResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetTemplateRegistrationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetTemplateRegistrationResponse) */ { +class GetTemplateRegistrationResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetTemplateRegistrationResponse) */ { public: inline GetTemplateRegistrationResponse() : GetTemplateRegistrationResponse(nullptr) {} ~GetTemplateRegistrationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetTemplateRegistrationResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetTemplateRegistrationResponse(const GetTemplateRegistrationResponse& from) - : GetTemplateRegistrationResponse(nullptr, from) {} - GetTemplateRegistrationResponse(GetTemplateRegistrationResponse&& from) noexcept - : GetTemplateRegistrationResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetTemplateRegistrationResponse( + ::google::protobuf::internal::ConstantInitialized); + inline GetTemplateRegistrationResponse(const GetTemplateRegistrationResponse& from) : GetTemplateRegistrationResponse(nullptr, from) {} + inline GetTemplateRegistrationResponse(GetTemplateRegistrationResponse&& from) noexcept + : GetTemplateRegistrationResponse(nullptr, std::move(from)) {} inline GetTemplateRegistrationResponse& operator=(const GetTemplateRegistrationResponse& from) { CopyFrom(from); return *this; @@ -8433,9 +8095,9 @@ class GetTemplateRegistrationResponse final : inline GetTemplateRegistrationResponse& operator=(GetTemplateRegistrationResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -8467,22 +8129,17 @@ class GetTemplateRegistrationResponse final : } static inline const GetTemplateRegistrationResponse* internal_default_instance() { return reinterpret_cast( - &_GetTemplateRegistrationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 48; - - friend void swap(GetTemplateRegistrationResponse& a, GetTemplateRegistrationResponse& b) { - a.Swap(&b); + &_GetTemplateRegistrationResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 48; + friend void swap(GetTemplateRegistrationResponse& a, GetTemplateRegistrationResponse& b) { a.Swap(&b); } inline void Swap(GetTemplateRegistrationResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -8497,51 +8154,52 @@ class GetTemplateRegistrationResponse final : // implements Message ---------------------------------------------- GetTemplateRegistrationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetTemplateRegistrationResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetTemplateRegistrationResponse& from) { - GetTemplateRegistrationResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetTemplateRegistrationResponse& from) { GetTemplateRegistrationResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetTemplateRegistrationResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetTemplateRegistrationResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetTemplateRegistrationResponse"; } + + protected: explicit GetTemplateRegistrationResponse(::google::protobuf::Arena* arena); GetTemplateRegistrationResponse(::google::protobuf::Arena* arena, const GetTemplateRegistrationResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetTemplateRegistrationResponse(::google::protobuf::Arena* arena, GetTemplateRegistrationResponse&& from) noexcept + : GetTemplateRegistrationResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kUtxoHashFieldNumber = 1, kRegistrationFieldNumber = 2, @@ -8580,7 +8238,6 @@ class GetTemplateRegistrationResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.GetTemplateRegistrationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, @@ -8593,13 +8250,12 @@ class GetTemplateRegistrationResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr utxo_hash_; @@ -8608,23 +8264,21 @@ class GetTemplateRegistrationResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListAssetRegistrationsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ListAssetRegistrationsResponse) */ { +class ListAssetRegistrationsResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ListAssetRegistrationsResponse) */ { public: inline ListAssetRegistrationsResponse() : ListAssetRegistrationsResponse(nullptr) {} ~ListAssetRegistrationsResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListAssetRegistrationsResponse(::google::protobuf::internal::ConstantInitialized); - - inline ListAssetRegistrationsResponse(const ListAssetRegistrationsResponse& from) - : ListAssetRegistrationsResponse(nullptr, from) {} - ListAssetRegistrationsResponse(ListAssetRegistrationsResponse&& from) noexcept - : ListAssetRegistrationsResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR ListAssetRegistrationsResponse( + ::google::protobuf::internal::ConstantInitialized); + inline ListAssetRegistrationsResponse(const ListAssetRegistrationsResponse& from) : ListAssetRegistrationsResponse(nullptr, from) {} + inline ListAssetRegistrationsResponse(ListAssetRegistrationsResponse&& from) noexcept + : ListAssetRegistrationsResponse(nullptr, std::move(from)) {} inline ListAssetRegistrationsResponse& operator=(const ListAssetRegistrationsResponse& from) { CopyFrom(from); return *this; @@ -8632,9 +8286,9 @@ class ListAssetRegistrationsResponse final : inline ListAssetRegistrationsResponse& operator=(ListAssetRegistrationsResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -8666,22 +8320,17 @@ class ListAssetRegistrationsResponse final : } static inline const ListAssetRegistrationsResponse* internal_default_instance() { return reinterpret_cast( - &_ListAssetRegistrationsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ListAssetRegistrationsResponse& a, ListAssetRegistrationsResponse& b) { - a.Swap(&b); + &_ListAssetRegistrationsResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(ListAssetRegistrationsResponse& a, ListAssetRegistrationsResponse& b) { a.Swap(&b); } inline void Swap(ListAssetRegistrationsResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -8696,51 +8345,52 @@ class ListAssetRegistrationsResponse final : // implements Message ---------------------------------------------- ListAssetRegistrationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ListAssetRegistrationsResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListAssetRegistrationsResponse& from) { - ListAssetRegistrationsResponse::MergeImpl(*this, from); - } + void MergeFrom(const ListAssetRegistrationsResponse& from) { ListAssetRegistrationsResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(ListAssetRegistrationsResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.ListAssetRegistrationsResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.ListAssetRegistrationsResponse"; } + + protected: explicit ListAssetRegistrationsResponse(::google::protobuf::Arena* arena); ListAssetRegistrationsResponse(::google::protobuf::Arena* arena, const ListAssetRegistrationsResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + ListAssetRegistrationsResponse(::google::protobuf::Arena* arena, ListAssetRegistrationsResponse&& from) noexcept + : ListAssetRegistrationsResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAssetPublicKeyFieldNumber = 1, kUniqueIdFieldNumber = 2, @@ -8858,7 +8508,6 @@ class ListAssetRegistrationsResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.ListAssetRegistrationsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 7, 1, @@ -8871,13 +8520,12 @@ class ListAssetRegistrationsResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr asset_public_key_; @@ -8891,23 +8539,21 @@ class ListAssetRegistrationsResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetTokensResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetTokensResponse) */ { +class GetTokensResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetTokensResponse) */ { public: inline GetTokensResponse() : GetTokensResponse(nullptr) {} ~GetTokensResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetTokensResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetTokensResponse(const GetTokensResponse& from) - : GetTokensResponse(nullptr, from) {} - GetTokensResponse(GetTokensResponse&& from) noexcept - : GetTokensResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetTokensResponse( + ::google::protobuf::internal::ConstantInitialized); + inline GetTokensResponse(const GetTokensResponse& from) : GetTokensResponse(nullptr, from) {} + inline GetTokensResponse(GetTokensResponse&& from) noexcept + : GetTokensResponse(nullptr, std::move(from)) {} inline GetTokensResponse& operator=(const GetTokensResponse& from) { CopyFrom(from); return *this; @@ -8915,9 +8561,9 @@ class GetTokensResponse final : inline GetTokensResponse& operator=(GetTokensResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -8949,22 +8595,17 @@ class GetTokensResponse final : } static inline const GetTokensResponse* internal_default_instance() { return reinterpret_cast( - &_GetTokensResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(GetTokensResponse& a, GetTokensResponse& b) { - a.Swap(&b); + &_GetTokensResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 5; + friend void swap(GetTokensResponse& a, GetTokensResponse& b) { a.Swap(&b); } inline void Swap(GetTokensResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -8979,51 +8620,52 @@ class GetTokensResponse final : // implements Message ---------------------------------------------- GetTokensResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetTokensResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetTokensResponse& from) { - GetTokensResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetTokensResponse& from) { GetTokensResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetTokensResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetTokensResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetTokensResponse"; } + + protected: explicit GetTokensResponse(::google::protobuf::Arena* arena); GetTokensResponse(::google::protobuf::Arena* arena, const GetTokensResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetTokensResponse(::google::protobuf::Arena* arena, GetTokensResponse&& from) noexcept + : GetTokensResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kUniqueIdFieldNumber = 1, kAssetPublicKeyFieldNumber = 2, @@ -9141,7 +8783,6 @@ class GetTokensResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.GetTokensResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 7, 1, @@ -9154,13 +8795,12 @@ class GetTokensResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr unique_id_; @@ -9174,23 +8814,21 @@ class GetTokensResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetAssetMetadataResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetAssetMetadataResponse) */ { +class GetAssetMetadataResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetAssetMetadataResponse) */ { public: inline GetAssetMetadataResponse() : GetAssetMetadataResponse(nullptr) {} ~GetAssetMetadataResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetAssetMetadataResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetAssetMetadataResponse(const GetAssetMetadataResponse& from) - : GetAssetMetadataResponse(nullptr, from) {} - GetAssetMetadataResponse(GetAssetMetadataResponse&& from) noexcept - : GetAssetMetadataResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetAssetMetadataResponse( + ::google::protobuf::internal::ConstantInitialized); + inline GetAssetMetadataResponse(const GetAssetMetadataResponse& from) : GetAssetMetadataResponse(nullptr, from) {} + inline GetAssetMetadataResponse(GetAssetMetadataResponse&& from) noexcept + : GetAssetMetadataResponse(nullptr, std::move(from)) {} inline GetAssetMetadataResponse& operator=(const GetAssetMetadataResponse& from) { CopyFrom(from); return *this; @@ -9198,9 +8836,9 @@ class GetAssetMetadataResponse final : inline GetAssetMetadataResponse& operator=(GetAssetMetadataResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -9232,22 +8870,17 @@ class GetAssetMetadataResponse final : } static inline const GetAssetMetadataResponse* internal_default_instance() { return reinterpret_cast( - &_GetAssetMetadataResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(GetAssetMetadataResponse& a, GetAssetMetadataResponse& b) { - a.Swap(&b); + &_GetAssetMetadataResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(GetAssetMetadataResponse& a, GetAssetMetadataResponse& b) { a.Swap(&b); } inline void Swap(GetAssetMetadataResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -9262,51 +8895,52 @@ class GetAssetMetadataResponse final : // implements Message ---------------------------------------------- GetAssetMetadataResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetAssetMetadataResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetAssetMetadataResponse& from) { - GetAssetMetadataResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetAssetMetadataResponse& from) { GetAssetMetadataResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetAssetMetadataResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetAssetMetadataResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetAssetMetadataResponse"; } + + protected: explicit GetAssetMetadataResponse(::google::protobuf::Arena* arena); GetAssetMetadataResponse(::google::protobuf::Arena* arena, const GetAssetMetadataResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetAssetMetadataResponse(::google::protobuf::Arena* arena, GetAssetMetadataResponse&& from) noexcept + : GetAssetMetadataResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 2, kDescriptionFieldNumber = 3, @@ -9424,7 +9058,6 @@ class GetAssetMetadataResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.GetAssetMetadataResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 7, 1, @@ -9437,13 +9070,12 @@ class GetAssetMetadataResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_; @@ -9457,23 +9089,21 @@ class GetAssetMetadataResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetSideChainUtxosResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetSideChainUtxosResponse) */ { +class GetSideChainUtxosResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetSideChainUtxosResponse) */ { public: inline GetSideChainUtxosResponse() : GetSideChainUtxosResponse(nullptr) {} ~GetSideChainUtxosResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetSideChainUtxosResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetSideChainUtxosResponse(const GetSideChainUtxosResponse& from) - : GetSideChainUtxosResponse(nullptr, from) {} - GetSideChainUtxosResponse(GetSideChainUtxosResponse&& from) noexcept - : GetSideChainUtxosResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetSideChainUtxosResponse( + ::google::protobuf::internal::ConstantInitialized); + inline GetSideChainUtxosResponse(const GetSideChainUtxosResponse& from) : GetSideChainUtxosResponse(nullptr, from) {} + inline GetSideChainUtxosResponse(GetSideChainUtxosResponse&& from) noexcept + : GetSideChainUtxosResponse(nullptr, std::move(from)) {} inline GetSideChainUtxosResponse& operator=(const GetSideChainUtxosResponse& from) { CopyFrom(from); return *this; @@ -9481,9 +9111,9 @@ class GetSideChainUtxosResponse final : inline GetSideChainUtxosResponse& operator=(GetSideChainUtxosResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -9515,22 +9145,17 @@ class GetSideChainUtxosResponse final : } static inline const GetSideChainUtxosResponse* internal_default_instance() { return reinterpret_cast( - &_GetSideChainUtxosResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 51; - - friend void swap(GetSideChainUtxosResponse& a, GetSideChainUtxosResponse& b) { - a.Swap(&b); + &_GetSideChainUtxosResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 51; + friend void swap(GetSideChainUtxosResponse& a, GetSideChainUtxosResponse& b) { a.Swap(&b); } inline void Swap(GetSideChainUtxosResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -9545,51 +9170,52 @@ class GetSideChainUtxosResponse final : // implements Message ---------------------------------------------- GetSideChainUtxosResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetSideChainUtxosResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetSideChainUtxosResponse& from) { - GetSideChainUtxosResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetSideChainUtxosResponse& from) { GetSideChainUtxosResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetSideChainUtxosResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetSideChainUtxosResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetSideChainUtxosResponse"; } + + protected: explicit GetSideChainUtxosResponse(::google::protobuf::Arena* arena); GetSideChainUtxosResponse(::google::protobuf::Arena* arena, const GetSideChainUtxosResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetSideChainUtxosResponse(::google::protobuf::Arena* arena, GetSideChainUtxosResponse&& from) noexcept + : GetSideChainUtxosResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kOutputsFieldNumber = 2, kBlockInfoFieldNumber = 1, @@ -9602,16 +9228,15 @@ class GetSideChainUtxosResponse final : public: void clear_outputs() ; ::tari::rpc::TransactionOutput* mutable_outputs(int index); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionOutput >* - mutable_outputs(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* mutable_outputs(); + private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& _internal_outputs() const; ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* _internal_mutable_outputs(); public: const ::tari::rpc::TransactionOutput& outputs(int index) const; ::tari::rpc::TransactionOutput* add_outputs(); - const ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionOutput >& - outputs() const; + const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& outputs() const; // .tari.rpc.BlockInfo block_info = 1; bool has_block_info() const; void clear_block_info() ; @@ -9630,7 +9255,6 @@ class GetSideChainUtxosResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.GetSideChainUtxosResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 2, @@ -9643,13 +9267,12 @@ class GetSideChainUtxosResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionOutput > outputs_; @@ -9658,23 +9281,21 @@ class GetSideChainUtxosResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FetchMatchingUtxosResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.FetchMatchingUtxosResponse) */ { +class FetchMatchingUtxosResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.FetchMatchingUtxosResponse) */ { public: inline FetchMatchingUtxosResponse() : FetchMatchingUtxosResponse(nullptr) {} ~FetchMatchingUtxosResponse() override; - template - explicit PROTOBUF_CONSTEXPR FetchMatchingUtxosResponse(::google::protobuf::internal::ConstantInitialized); - - inline FetchMatchingUtxosResponse(const FetchMatchingUtxosResponse& from) - : FetchMatchingUtxosResponse(nullptr, from) {} - FetchMatchingUtxosResponse(FetchMatchingUtxosResponse&& from) noexcept - : FetchMatchingUtxosResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR FetchMatchingUtxosResponse( + ::google::protobuf::internal::ConstantInitialized); + inline FetchMatchingUtxosResponse(const FetchMatchingUtxosResponse& from) : FetchMatchingUtxosResponse(nullptr, from) {} + inline FetchMatchingUtxosResponse(FetchMatchingUtxosResponse&& from) noexcept + : FetchMatchingUtxosResponse(nullptr, std::move(from)) {} inline FetchMatchingUtxosResponse& operator=(const FetchMatchingUtxosResponse& from) { CopyFrom(from); return *this; @@ -9682,9 +9303,9 @@ class FetchMatchingUtxosResponse final : inline FetchMatchingUtxosResponse& operator=(FetchMatchingUtxosResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -9716,22 +9337,17 @@ class FetchMatchingUtxosResponse final : } static inline const FetchMatchingUtxosResponse* internal_default_instance() { return reinterpret_cast( - &_FetchMatchingUtxosResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - - friend void swap(FetchMatchingUtxosResponse& a, FetchMatchingUtxosResponse& b) { - a.Swap(&b); + &_FetchMatchingUtxosResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 33; + friend void swap(FetchMatchingUtxosResponse& a, FetchMatchingUtxosResponse& b) { a.Swap(&b); } inline void Swap(FetchMatchingUtxosResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -9746,51 +9362,52 @@ class FetchMatchingUtxosResponse final : // implements Message ---------------------------------------------- FetchMatchingUtxosResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const FetchMatchingUtxosResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FetchMatchingUtxosResponse& from) { - FetchMatchingUtxosResponse::MergeImpl(*this, from); - } + void MergeFrom(const FetchMatchingUtxosResponse& from) { FetchMatchingUtxosResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(FetchMatchingUtxosResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.FetchMatchingUtxosResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.FetchMatchingUtxosResponse"; } + + protected: explicit FetchMatchingUtxosResponse(::google::protobuf::Arena* arena); FetchMatchingUtxosResponse(::google::protobuf::Arena* arena, const FetchMatchingUtxosResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + FetchMatchingUtxosResponse(::google::protobuf::Arena* arena, FetchMatchingUtxosResponse&& from) noexcept + : FetchMatchingUtxosResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kOutputFieldNumber = 1, }; @@ -9812,7 +9429,6 @@ class FetchMatchingUtxosResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.FetchMatchingUtxosResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, @@ -9825,13 +9441,12 @@ class FetchMatchingUtxosResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::TransactionOutput* output_; @@ -9839,23 +9454,21 @@ class FetchMatchingUtxosResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubmitTransactionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SubmitTransactionRequest) */ { +class SubmitTransactionRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SubmitTransactionRequest) */ { public: inline SubmitTransactionRequest() : SubmitTransactionRequest(nullptr) {} ~SubmitTransactionRequest() override; - template - explicit PROTOBUF_CONSTEXPR SubmitTransactionRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubmitTransactionRequest(const SubmitTransactionRequest& from) - : SubmitTransactionRequest(nullptr, from) {} - SubmitTransactionRequest(SubmitTransactionRequest&& from) noexcept - : SubmitTransactionRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR SubmitTransactionRequest( + ::google::protobuf::internal::ConstantInitialized); + inline SubmitTransactionRequest(const SubmitTransactionRequest& from) : SubmitTransactionRequest(nullptr, from) {} + inline SubmitTransactionRequest(SubmitTransactionRequest&& from) noexcept + : SubmitTransactionRequest(nullptr, std::move(from)) {} inline SubmitTransactionRequest& operator=(const SubmitTransactionRequest& from) { CopyFrom(from); return *this; @@ -9863,9 +9476,9 @@ class SubmitTransactionRequest final : inline SubmitTransactionRequest& operator=(SubmitTransactionRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -9897,22 +9510,17 @@ class SubmitTransactionRequest final : } static inline const SubmitTransactionRequest* internal_default_instance() { return reinterpret_cast( - &_SubmitTransactionRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - friend void swap(SubmitTransactionRequest& a, SubmitTransactionRequest& b) { - a.Swap(&b); + &_SubmitTransactionRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 36; + friend void swap(SubmitTransactionRequest& a, SubmitTransactionRequest& b) { a.Swap(&b); } inline void Swap(SubmitTransactionRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -9927,51 +9535,52 @@ class SubmitTransactionRequest final : // implements Message ---------------------------------------------- SubmitTransactionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SubmitTransactionRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SubmitTransactionRequest& from) { - SubmitTransactionRequest::MergeImpl(*this, from); - } + void MergeFrom(const SubmitTransactionRequest& from) { SubmitTransactionRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(SubmitTransactionRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.SubmitTransactionRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.SubmitTransactionRequest"; } + + protected: explicit SubmitTransactionRequest(::google::protobuf::Arena* arena); SubmitTransactionRequest(::google::protobuf::Arena* arena, const SubmitTransactionRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + SubmitTransactionRequest(::google::protobuf::Arena* arena, SubmitTransactionRequest&& from) noexcept + : SubmitTransactionRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kTransactionFieldNumber = 1, }; @@ -9993,7 +9602,6 @@ class SubmitTransactionRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.SubmitTransactionRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, @@ -10006,13 +9614,12 @@ class SubmitTransactionRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::Transaction* transaction_; @@ -10020,23 +9627,21 @@ class SubmitTransactionRequest final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NewBlockTemplateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplateResponse) */ { +class NewBlockTemplateResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplateResponse) */ { public: inline NewBlockTemplateResponse() : NewBlockTemplateResponse(nullptr) {} ~NewBlockTemplateResponse() override; - template - explicit PROTOBUF_CONSTEXPR NewBlockTemplateResponse(::google::protobuf::internal::ConstantInitialized); - - inline NewBlockTemplateResponse(const NewBlockTemplateResponse& from) - : NewBlockTemplateResponse(nullptr, from) {} - NewBlockTemplateResponse(NewBlockTemplateResponse&& from) noexcept - : NewBlockTemplateResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR NewBlockTemplateResponse( + ::google::protobuf::internal::ConstantInitialized); + inline NewBlockTemplateResponse(const NewBlockTemplateResponse& from) : NewBlockTemplateResponse(nullptr, from) {} + inline NewBlockTemplateResponse(NewBlockTemplateResponse&& from) noexcept + : NewBlockTemplateResponse(nullptr, std::move(from)) {} inline NewBlockTemplateResponse& operator=(const NewBlockTemplateResponse& from) { CopyFrom(from); return *this; @@ -10044,9 +9649,9 @@ class NewBlockTemplateResponse final : inline NewBlockTemplateResponse& operator=(NewBlockTemplateResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -10078,22 +9683,17 @@ class NewBlockTemplateResponse final : } static inline const NewBlockTemplateResponse* internal_default_instance() { return reinterpret_cast( - &_NewBlockTemplateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(NewBlockTemplateResponse& a, NewBlockTemplateResponse& b) { - a.Swap(&b); + &_NewBlockTemplateResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 9; + friend void swap(NewBlockTemplateResponse& a, NewBlockTemplateResponse& b) { a.Swap(&b); } inline void Swap(NewBlockTemplateResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -10108,51 +9708,52 @@ class NewBlockTemplateResponse final : // implements Message ---------------------------------------------- NewBlockTemplateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const NewBlockTemplateResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NewBlockTemplateResponse& from) { - NewBlockTemplateResponse::MergeImpl(*this, from); - } + void MergeFrom(const NewBlockTemplateResponse& from) { NewBlockTemplateResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(NewBlockTemplateResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.NewBlockTemplateResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockTemplateResponse"; } + + protected: explicit NewBlockTemplateResponse(::google::protobuf::Arena* arena); NewBlockTemplateResponse(::google::protobuf::Arena* arena, const NewBlockTemplateResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + NewBlockTemplateResponse(::google::protobuf::Arena* arena, NewBlockTemplateResponse&& from) noexcept + : NewBlockTemplateResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNewBlockTemplateFieldNumber = 1, kMinerDataFieldNumber = 4, @@ -10201,7 +9802,6 @@ class NewBlockTemplateResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.NewBlockTemplateResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 2, @@ -10214,13 +9814,12 @@ class NewBlockTemplateResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::NewBlockTemplate* new_block_template_; @@ -10230,23 +9829,21 @@ class NewBlockTemplateResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetNewBlockResult final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockResult) */ { +class GetNewBlockResult final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockResult) */ { public: inline GetNewBlockResult() : GetNewBlockResult(nullptr) {} ~GetNewBlockResult() override; - template - explicit PROTOBUF_CONSTEXPR GetNewBlockResult(::google::protobuf::internal::ConstantInitialized); - - inline GetNewBlockResult(const GetNewBlockResult& from) - : GetNewBlockResult(nullptr, from) {} - GetNewBlockResult(GetNewBlockResult&& from) noexcept - : GetNewBlockResult() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetNewBlockResult( + ::google::protobuf::internal::ConstantInitialized); + inline GetNewBlockResult(const GetNewBlockResult& from) : GetNewBlockResult(nullptr, from) {} + inline GetNewBlockResult(GetNewBlockResult&& from) noexcept + : GetNewBlockResult(nullptr, std::move(from)) {} inline GetNewBlockResult& operator=(const GetNewBlockResult& from) { CopyFrom(from); return *this; @@ -10254,9 +9851,9 @@ class GetNewBlockResult final : inline GetNewBlockResult& operator=(GetNewBlockResult&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -10288,22 +9885,17 @@ class GetNewBlockResult final : } static inline const GetNewBlockResult* internal_default_instance() { return reinterpret_cast( - &_GetNewBlockResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(GetNewBlockResult& a, GetNewBlockResult& b) { - a.Swap(&b); + &_GetNewBlockResult_default_instance_); } + static constexpr int kIndexInFileMessages = 27; + friend void swap(GetNewBlockResult& a, GetNewBlockResult& b) { a.Swap(&b); } inline void Swap(GetNewBlockResult* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -10318,51 +9910,52 @@ class GetNewBlockResult final : // implements Message ---------------------------------------------- GetNewBlockResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetNewBlockResult& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetNewBlockResult& from) { - GetNewBlockResult::MergeImpl(*this, from); - } + void MergeFrom(const GetNewBlockResult& from) { GetNewBlockResult::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetNewBlockResult* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetNewBlockResult"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetNewBlockResult"; } + + protected: explicit GetNewBlockResult(::google::protobuf::Arena* arena); GetNewBlockResult(::google::protobuf::Arena* arena, const GetNewBlockResult& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetNewBlockResult(::google::protobuf::Arena* arena, GetNewBlockResult&& from) noexcept + : GetNewBlockResult(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kBlockHashFieldNumber = 1, kMergeMiningHashFieldNumber = 3, @@ -10418,7 +10011,6 @@ class GetNewBlockResult final : // @@protoc_insertion_point(class_scope:tari.rpc.GetNewBlockResult) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 1, @@ -10431,13 +10023,12 @@ class GetNewBlockResult final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr block_hash_; @@ -10447,23 +10038,21 @@ class GetNewBlockResult final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetMempoolTransactionsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetMempoolTransactionsResponse) */ { +class GetMempoolTransactionsResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetMempoolTransactionsResponse) */ { public: inline GetMempoolTransactionsResponse() : GetMempoolTransactionsResponse(nullptr) {} ~GetMempoolTransactionsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetMempoolTransactionsResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetMempoolTransactionsResponse(const GetMempoolTransactionsResponse& from) - : GetMempoolTransactionsResponse(nullptr, from) {} - GetMempoolTransactionsResponse(GetMempoolTransactionsResponse&& from) noexcept - : GetMempoolTransactionsResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetMempoolTransactionsResponse( + ::google::protobuf::internal::ConstantInitialized); + inline GetMempoolTransactionsResponse(const GetMempoolTransactionsResponse& from) : GetMempoolTransactionsResponse(nullptr, from) {} + inline GetMempoolTransactionsResponse(GetMempoolTransactionsResponse&& from) noexcept + : GetMempoolTransactionsResponse(nullptr, std::move(from)) {} inline GetMempoolTransactionsResponse& operator=(const GetMempoolTransactionsResponse& from) { CopyFrom(from); return *this; @@ -10471,9 +10060,9 @@ class GetMempoolTransactionsResponse final : inline GetMempoolTransactionsResponse& operator=(GetMempoolTransactionsResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -10505,22 +10094,17 @@ class GetMempoolTransactionsResponse final : } static inline const GetMempoolTransactionsResponse* internal_default_instance() { return reinterpret_cast( - &_GetMempoolTransactionsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 39; - - friend void swap(GetMempoolTransactionsResponse& a, GetMempoolTransactionsResponse& b) { - a.Swap(&b); + &_GetMempoolTransactionsResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 39; + friend void swap(GetMempoolTransactionsResponse& a, GetMempoolTransactionsResponse& b) { a.Swap(&b); } inline void Swap(GetMempoolTransactionsResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -10535,51 +10119,52 @@ class GetMempoolTransactionsResponse final : // implements Message ---------------------------------------------- GetMempoolTransactionsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetMempoolTransactionsResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetMempoolTransactionsResponse& from) { - GetMempoolTransactionsResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetMempoolTransactionsResponse& from) { GetMempoolTransactionsResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetMempoolTransactionsResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetMempoolTransactionsResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetMempoolTransactionsResponse"; } + + protected: explicit GetMempoolTransactionsResponse(::google::protobuf::Arena* arena); GetMempoolTransactionsResponse(::google::protobuf::Arena* arena, const GetMempoolTransactionsResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetMempoolTransactionsResponse(::google::protobuf::Arena* arena, GetMempoolTransactionsResponse&& from) noexcept + : GetMempoolTransactionsResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kTransactionFieldNumber = 1, }; @@ -10601,7 +10186,6 @@ class GetMempoolTransactionsResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.GetMempoolTransactionsResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, @@ -10614,13 +10198,12 @@ class GetMempoolTransactionsResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::Transaction* transaction_; @@ -10628,23 +10211,21 @@ class GetMempoolTransactionsResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetBlocksResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetBlocksResponse) */ { +class GetBlocksResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetBlocksResponse) */ { public: inline GetBlocksResponse() : GetBlocksResponse(nullptr) {} ~GetBlocksResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetBlocksResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetBlocksResponse(const GetBlocksResponse& from) - : GetBlocksResponse(nullptr, from) {} - GetBlocksResponse(GetBlocksResponse&& from) noexcept - : GetBlocksResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetBlocksResponse( + ::google::protobuf::internal::ConstantInitialized); + inline GetBlocksResponse(const GetBlocksResponse& from) : GetBlocksResponse(nullptr, from) {} + inline GetBlocksResponse(GetBlocksResponse&& from) noexcept + : GetBlocksResponse(nullptr, std::move(from)) {} inline GetBlocksResponse& operator=(const GetBlocksResponse& from) { CopyFrom(from); return *this; @@ -10652,9 +10233,9 @@ class GetBlocksResponse final : inline GetBlocksResponse& operator=(GetBlocksResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -10686,22 +10267,17 @@ class GetBlocksResponse final : } static inline const GetBlocksResponse* internal_default_instance() { return reinterpret_cast( - &_GetBlocksResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(GetBlocksResponse& a, GetBlocksResponse& b) { - a.Swap(&b); + &_GetBlocksResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 23; + friend void swap(GetBlocksResponse& a, GetBlocksResponse& b) { a.Swap(&b); } inline void Swap(GetBlocksResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -10716,51 +10292,52 @@ class GetBlocksResponse final : // implements Message ---------------------------------------------- GetBlocksResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetBlocksResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetBlocksResponse& from) { - GetBlocksResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetBlocksResponse& from) { GetBlocksResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetBlocksResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetBlocksResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetBlocksResponse"; } + + protected: explicit GetBlocksResponse(::google::protobuf::Arena* arena); GetBlocksResponse(::google::protobuf::Arena* arena, const GetBlocksResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetBlocksResponse(::google::protobuf::Arena* arena, GetBlocksResponse&& from) noexcept + : GetBlocksResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kBlocksFieldNumber = 1, }; @@ -10772,20 +10349,18 @@ class GetBlocksResponse final : public: void clear_blocks() ; ::tari::rpc::HistoricalBlock* mutable_blocks(int index); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::HistoricalBlock >* - mutable_blocks(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* mutable_blocks(); + private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>& _internal_blocks() const; ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* _internal_mutable_blocks(); public: const ::tari::rpc::HistoricalBlock& blocks(int index) const; ::tari::rpc::HistoricalBlock* add_blocks(); - const ::google::protobuf::RepeatedPtrField< ::tari::rpc::HistoricalBlock >& - blocks() const; + const ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>& blocks() const; // @@protoc_insertion_point(class_scope:tari.rpc.GetBlocksResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, @@ -10798,13 +10373,12 @@ class GetBlocksResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField< ::tari::rpc::HistoricalBlock > blocks_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER @@ -10843,7 +10417,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataRequest::set_asset_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.asset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataRequest.asset_public_key) } @@ -10858,12 +10431,10 @@ inline const std::string& GetAssetMetadataRequest::_internal_asset_public_key() } inline void GetAssetMetadataRequest::_internal_set_asset_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.asset_public_key_.Set(value, GetArena()); } inline std::string* GetAssetMetadataRequest::_internal_mutable_asset_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.asset_public_key_.Mutable( GetArena()); } inline std::string* GetAssetMetadataRequest::release_asset_public_key() { @@ -10900,7 +10471,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_name(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.name) } @@ -10915,12 +10485,10 @@ inline const std::string& GetAssetMetadataResponse::_internal_name() const { } inline void GetAssetMetadataResponse::_internal_set_name(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.name_.Set(value, GetArena()); } inline std::string* GetAssetMetadataResponse::_internal_mutable_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.name_.Mutable( GetArena()); } inline std::string* GetAssetMetadataResponse::release_name() { @@ -10953,7 +10521,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_description(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.description) } @@ -10968,12 +10535,10 @@ inline const std::string& GetAssetMetadataResponse::_internal_description() cons } inline void GetAssetMetadataResponse::_internal_set_description(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.description_.Set(value, GetArena()); } inline std::string* GetAssetMetadataResponse::_internal_mutable_description() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.description_.Mutable( GetArena()); } inline std::string* GetAssetMetadataResponse::release_description() { @@ -11006,7 +10571,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_image(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.image_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.image) } @@ -11021,12 +10585,10 @@ inline const std::string& GetAssetMetadataResponse::_internal_image() const { } inline void GetAssetMetadataResponse::_internal_set_image(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.image_.Set(value, GetArena()); } inline std::string* GetAssetMetadataResponse::_internal_mutable_image() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.image_.Mutable( GetArena()); } inline std::string* GetAssetMetadataResponse::release_image() { @@ -11059,7 +10621,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_owner_commitment(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.owner_commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.owner_commitment) } @@ -11074,12 +10635,10 @@ inline const std::string& GetAssetMetadataResponse::_internal_owner_commitment() } inline void GetAssetMetadataResponse::_internal_set_owner_commitment(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.owner_commitment_.Set(value, GetArena()); } inline std::string* GetAssetMetadataResponse::_internal_mutable_owner_commitment() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.owner_commitment_.Mutable( GetArena()); } inline std::string* GetAssetMetadataResponse::release_owner_commitment() { @@ -11156,14 +10715,14 @@ inline ::tari::rpc::OutputFeatures* GetAssetMetadataResponse::unsafe_arena_relea } inline ::tari::rpc::OutputFeatures* GetAssetMetadataResponse::_internal_mutable_features() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.features_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::OutputFeatures>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputFeatures>(GetArena()); _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(p); } return _impl_.features_; } inline ::tari::rpc::OutputFeatures* GetAssetMetadataResponse::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.features) return _msg; @@ -11208,7 +10767,6 @@ inline ::uint64_t GetAssetMetadataResponse::_internal_mined_height() const { } inline void GetAssetMetadataResponse::_internal_set_mined_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.mined_height_ = value; } @@ -11226,7 +10784,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_mined_in_block(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.mined_in_block_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.mined_in_block) } @@ -11241,12 +10798,10 @@ inline const std::string& GetAssetMetadataResponse::_internal_mined_in_block() c } inline void GetAssetMetadataResponse::_internal_set_mined_in_block(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.mined_in_block_.Set(value, GetArena()); } inline std::string* GetAssetMetadataResponse::_internal_mutable_mined_in_block() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.mined_in_block_.Mutable( GetArena()); } inline std::string* GetAssetMetadataResponse::release_mined_in_block() { @@ -11288,7 +10843,6 @@ inline ::uint64_t ListAssetRegistrationsRequest::_internal_offset() const { } inline void ListAssetRegistrationsRequest::_internal_set_offset(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.offset_ = value; } @@ -11311,7 +10865,6 @@ inline ::uint64_t ListAssetRegistrationsRequest::_internal_count() const { } inline void ListAssetRegistrationsRequest::_internal_set_count(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.count_ = value; } @@ -11333,7 +10886,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_asset_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.asset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.asset_public_key) } @@ -11348,12 +10900,10 @@ inline const std::string& ListAssetRegistrationsResponse::_internal_asset_public } inline void ListAssetRegistrationsResponse::_internal_set_asset_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.asset_public_key_.Set(value, GetArena()); } inline std::string* ListAssetRegistrationsResponse::_internal_mutable_asset_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.asset_public_key_.Mutable( GetArena()); } inline std::string* ListAssetRegistrationsResponse::release_asset_public_key() { @@ -11386,7 +10936,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_unique_id(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.unique_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.unique_id) } @@ -11401,12 +10950,10 @@ inline const std::string& ListAssetRegistrationsResponse::_internal_unique_id() } inline void ListAssetRegistrationsResponse::_internal_set_unique_id(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.unique_id_.Set(value, GetArena()); } inline std::string* ListAssetRegistrationsResponse::_internal_mutable_unique_id() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.unique_id_.Mutable( GetArena()); } inline std::string* ListAssetRegistrationsResponse::release_unique_id() { @@ -11439,7 +10986,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_owner_commitment(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.owner_commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.owner_commitment) } @@ -11454,12 +11000,10 @@ inline const std::string& ListAssetRegistrationsResponse::_internal_owner_commit } inline void ListAssetRegistrationsResponse::_internal_set_owner_commitment(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.owner_commitment_.Set(value, GetArena()); } inline std::string* ListAssetRegistrationsResponse::_internal_mutable_owner_commitment() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.owner_commitment_.Mutable( GetArena()); } inline std::string* ListAssetRegistrationsResponse::release_owner_commitment() { @@ -11497,7 +11041,6 @@ inline ::uint64_t ListAssetRegistrationsResponse::_internal_mined_height() const } inline void ListAssetRegistrationsResponse::_internal_set_mined_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.mined_height_ = value; } @@ -11515,7 +11058,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_mined_in_block(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.mined_in_block_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.mined_in_block) } @@ -11530,12 +11072,10 @@ inline const std::string& ListAssetRegistrationsResponse::_internal_mined_in_blo } inline void ListAssetRegistrationsResponse::_internal_set_mined_in_block(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.mined_in_block_.Set(value, GetArena()); } inline std::string* ListAssetRegistrationsResponse::_internal_mutable_mined_in_block() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.mined_in_block_.Mutable( GetArena()); } inline std::string* ListAssetRegistrationsResponse::release_mined_in_block() { @@ -11612,14 +11152,14 @@ inline ::tari::rpc::OutputFeatures* ListAssetRegistrationsResponse::unsafe_arena } inline ::tari::rpc::OutputFeatures* ListAssetRegistrationsResponse::_internal_mutable_features() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.features_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::OutputFeatures>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputFeatures>(GetArena()); _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(p); } return _impl_.features_; } inline ::tari::rpc::OutputFeatures* ListAssetRegistrationsResponse::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.features) return _msg; @@ -11659,7 +11199,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_script(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.script) } @@ -11674,12 +11213,10 @@ inline const std::string& ListAssetRegistrationsResponse::_internal_script() con } inline void ListAssetRegistrationsResponse::_internal_set_script(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_.Set(value, GetArena()); } inline std::string* ListAssetRegistrationsResponse::_internal_mutable_script() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.script_.Mutable( GetArena()); } inline std::string* ListAssetRegistrationsResponse::release_script() { @@ -11716,7 +11253,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetTokensRequest::set_asset_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.asset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensRequest.asset_public_key) } @@ -11731,12 +11267,10 @@ inline const std::string& GetTokensRequest::_internal_asset_public_key() const { } inline void GetTokensRequest::_internal_set_asset_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.asset_public_key_.Set(value, GetArena()); } inline std::string* GetTokensRequest::_internal_mutable_asset_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.asset_public_key_.Mutable( GetArena()); } inline std::string* GetTokensRequest::release_asset_public_key() { @@ -11803,8 +11337,8 @@ inline void GetTokensRequest::set_unique_ids(int index, const void* value, // @@protoc_insertion_point(field_set_pointer:tari.rpc.GetTokensRequest.unique_ids) } inline void GetTokensRequest::set_unique_ids(int index, absl::string_view value) { - _internal_mutable_unique_ids()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_unique_ids()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:tari.rpc.GetTokensRequest.unique_ids) } inline void GetTokensRequest::add_unique_ids(const std::string& value) { @@ -11831,7 +11365,8 @@ inline void GetTokensRequest::add_unique_ids(const void* value, std::size_t size } inline void GetTokensRequest::add_unique_ids(absl::string_view value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_unique_ids()->Add()->assign(value.data(), value.size()); + _internal_mutable_unique_ids()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:tari.rpc.GetTokensRequest.unique_ids) } inline const ::google::protobuf::RepeatedPtrField& @@ -11874,7 +11409,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_unique_id(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.unique_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.unique_id) } @@ -11889,12 +11423,10 @@ inline const std::string& GetTokensResponse::_internal_unique_id() const { } inline void GetTokensResponse::_internal_set_unique_id(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.unique_id_.Set(value, GetArena()); } inline std::string* GetTokensResponse::_internal_mutable_unique_id() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.unique_id_.Mutable( GetArena()); } inline std::string* GetTokensResponse::release_unique_id() { @@ -11927,7 +11459,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_asset_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.asset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.asset_public_key) } @@ -11942,12 +11473,10 @@ inline const std::string& GetTokensResponse::_internal_asset_public_key() const } inline void GetTokensResponse::_internal_set_asset_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.asset_public_key_.Set(value, GetArena()); } inline std::string* GetTokensResponse::_internal_mutable_asset_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.asset_public_key_.Mutable( GetArena()); } inline std::string* GetTokensResponse::release_asset_public_key() { @@ -11980,7 +11509,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_owner_commitment(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.owner_commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.owner_commitment) } @@ -11995,12 +11523,10 @@ inline const std::string& GetTokensResponse::_internal_owner_commitment() const } inline void GetTokensResponse::_internal_set_owner_commitment(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.owner_commitment_.Set(value, GetArena()); } inline std::string* GetTokensResponse::_internal_mutable_owner_commitment() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.owner_commitment_.Mutable( GetArena()); } inline std::string* GetTokensResponse::release_owner_commitment() { @@ -12033,7 +11559,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_mined_in_block(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.mined_in_block_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.mined_in_block) } @@ -12048,12 +11573,10 @@ inline const std::string& GetTokensResponse::_internal_mined_in_block() const { } inline void GetTokensResponse::_internal_set_mined_in_block(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.mined_in_block_.Set(value, GetArena()); } inline std::string* GetTokensResponse::_internal_mutable_mined_in_block() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.mined_in_block_.Mutable( GetArena()); } inline std::string* GetTokensResponse::release_mined_in_block() { @@ -12091,7 +11614,6 @@ inline ::uint64_t GetTokensResponse::_internal_mined_height() const { } inline void GetTokensResponse::_internal_set_mined_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.mined_height_ = value; } @@ -12153,14 +11675,14 @@ inline ::tari::rpc::OutputFeatures* GetTokensResponse::unsafe_arena_release_feat } inline ::tari::rpc::OutputFeatures* GetTokensResponse::_internal_mutable_features() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.features_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::OutputFeatures>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputFeatures>(GetArena()); _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(p); } return _impl_.features_; } inline ::tari::rpc::OutputFeatures* GetTokensResponse::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.features) return _msg; @@ -12200,7 +11722,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_script(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.script) } @@ -12215,12 +11736,10 @@ inline const std::string& GetTokensResponse::_internal_script() const { } inline void GetTokensResponse::_internal_set_script(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_.Set(value, GetArena()); } inline std::string* GetTokensResponse::_internal_mutable_script() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.script_.Mutable( GetArena()); } inline std::string* GetTokensResponse::release_script() { @@ -12257,7 +11776,6 @@ template inline PROTOBUF_ALWAYS_INLINE void SubmitBlockResponse::set_block_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.block_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.SubmitBlockResponse.block_hash) } @@ -12272,12 +11790,10 @@ inline const std::string& SubmitBlockResponse::_internal_block_hash() const { } inline void SubmitBlockResponse::_internal_set_block_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.block_hash_.Set(value, GetArena()); } inline std::string* SubmitBlockResponse::_internal_mutable_block_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.block_hash_.Mutable( GetArena()); } inline std::string* SubmitBlockResponse::release_block_hash() { @@ -12314,7 +11830,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BlockBlobRequest::set_header_blob(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.header_blob_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockBlobRequest.header_blob) } @@ -12329,12 +11844,10 @@ inline const std::string& BlockBlobRequest::_internal_header_blob() const { } inline void BlockBlobRequest::_internal_set_header_blob(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.header_blob_.Set(value, GetArena()); } inline std::string* BlockBlobRequest::_internal_mutable_header_blob() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.header_blob_.Mutable( GetArena()); } inline std::string* BlockBlobRequest::release_header_blob() { @@ -12367,7 +11880,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BlockBlobRequest::set_body_blob(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.body_blob_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockBlobRequest.body_blob) } @@ -12382,12 +11894,10 @@ inline const std::string& BlockBlobRequest::_internal_body_blob() const { } inline void BlockBlobRequest::_internal_set_body_blob(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.body_blob_.Set(value, GetArena()); } inline std::string* BlockBlobRequest::_internal_mutable_body_blob() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.body_blob_.Mutable( GetArena()); } inline std::string* BlockBlobRequest::release_body_blob() { @@ -12473,14 +11983,14 @@ inline ::tari::rpc::MetaData* TipInfoResponse::unsafe_arena_release_metadata() { } inline ::tari::rpc::MetaData* TipInfoResponse::_internal_mutable_metadata() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::MetaData>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::MetaData>(GetArena()); _impl_.metadata_ = reinterpret_cast<::tari::rpc::MetaData*>(p); } return _impl_.metadata_; } inline ::tari::rpc::MetaData* TipInfoResponse::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::MetaData* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:tari.rpc.TipInfoResponse.metadata) return _msg; @@ -12489,11 +11999,11 @@ inline void TipInfoResponse::set_allocated_metadata(::tari::rpc::MetaData* value ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::MetaData*>(_impl_.metadata_); + delete (_impl_.metadata_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::MetaData*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -12525,7 +12035,6 @@ inline bool TipInfoResponse::_internal_initial_sync_achieved() const { } inline void TipInfoResponse::_internal_set_initial_sync_achieved(bool value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.initial_sync_achieved_ = value; } @@ -12548,7 +12057,6 @@ inline ::tari::rpc::BaseNodeState TipInfoResponse::_internal_base_node_state() c } inline void TipInfoResponse::_internal_set_base_node_state(::tari::rpc::BaseNodeState value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.base_node_state_ = value; } @@ -12614,14 +12122,14 @@ inline ::tari::rpc::NewBlockTemplate* NewBlockTemplateResponse::unsafe_arena_rel } inline ::tari::rpc::NewBlockTemplate* NewBlockTemplateResponse::_internal_mutable_new_block_template() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.new_block_template_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::NewBlockTemplate>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::NewBlockTemplate>(GetArena()); _impl_.new_block_template_ = reinterpret_cast<::tari::rpc::NewBlockTemplate*>(p); } return _impl_.new_block_template_; } inline ::tari::rpc::NewBlockTemplate* NewBlockTemplateResponse::mutable_new_block_template() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::NewBlockTemplate* _msg = _internal_mutable_new_block_template(); // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockTemplateResponse.new_block_template) return _msg; @@ -12666,7 +12174,6 @@ inline bool NewBlockTemplateResponse::_internal_initial_sync_achieved() const { } inline void NewBlockTemplateResponse::_internal_set_initial_sync_achieved(bool value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.initial_sync_achieved_ = value; } @@ -12733,14 +12240,14 @@ inline ::tari::rpc::MinerData* NewBlockTemplateResponse::unsafe_arena_release_mi } inline ::tari::rpc::MinerData* NewBlockTemplateResponse::_internal_mutable_miner_data() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; if (_impl_.miner_data_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::MinerData>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::MinerData>(GetArena()); _impl_.miner_data_ = reinterpret_cast<::tari::rpc::MinerData*>(p); } return _impl_.miner_data_; } inline ::tari::rpc::MinerData* NewBlockTemplateResponse::mutable_miner_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::tari::rpc::MinerData* _msg = _internal_mutable_miner_data(); // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockTemplateResponse.miner_data) return _msg; @@ -12749,11 +12256,11 @@ inline void NewBlockTemplateResponse::set_allocated_miner_data(::tari::rpc::Mine ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::MinerData*>(_impl_.miner_data_); + delete (_impl_.miner_data_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::MinerData*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -12828,14 +12335,14 @@ inline ::tari::rpc::PowAlgo* NewBlockTemplateRequest::unsafe_arena_release_algo( } inline ::tari::rpc::PowAlgo* NewBlockTemplateRequest::_internal_mutable_algo() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.algo_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::PowAlgo>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::PowAlgo>(GetArena()); _impl_.algo_ = reinterpret_cast<::tari::rpc::PowAlgo*>(p); } return _impl_.algo_; } inline ::tari::rpc::PowAlgo* NewBlockTemplateRequest::mutable_algo() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::PowAlgo* _msg = _internal_mutable_algo(); // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockTemplateRequest.algo) return _msg; @@ -12880,7 +12387,6 @@ inline ::uint64_t NewBlockTemplateRequest::_internal_max_weight() const { } inline void NewBlockTemplateRequest::_internal_set_max_weight(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.max_weight_ = value; } @@ -12907,7 +12413,6 @@ inline ::uint64_t NetworkDifficultyResponse::_internal_difficulty() const { } inline void NetworkDifficultyResponse::_internal_set_difficulty(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.difficulty_ = value; } @@ -12930,7 +12435,6 @@ inline ::uint64_t NetworkDifficultyResponse::_internal_estimated_hash_rate() con } inline void NetworkDifficultyResponse::_internal_set_estimated_hash_rate(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.estimated_hash_rate_ = value; } @@ -12953,7 +12457,6 @@ inline ::uint64_t NetworkDifficultyResponse::_internal_height() const { } inline void NetworkDifficultyResponse::_internal_set_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.height_ = value; } @@ -12976,7 +12479,6 @@ inline ::uint64_t NetworkDifficultyResponse::_internal_timestamp() const { } inline void NetworkDifficultyResponse::_internal_set_timestamp(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.timestamp_ = value; } @@ -12999,7 +12501,6 @@ inline ::uint64_t NetworkDifficultyResponse::_internal_pow_algo() const { } inline void NetworkDifficultyResponse::_internal_set_pow_algo(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.pow_algo_ = value; } @@ -13022,7 +12523,6 @@ inline ::uint64_t NetworkDifficultyResponse::_internal_sha3x_estimated_hash_rate } inline void NetworkDifficultyResponse::_internal_set_sha3x_estimated_hash_rate(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.sha3x_estimated_hash_rate_ = value; } @@ -13045,7 +12545,6 @@ inline ::uint64_t NetworkDifficultyResponse::_internal_randomx_estimated_hash_ra } inline void NetworkDifficultyResponse::_internal_set_randomx_estimated_hash_rate(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.randomx_estimated_hash_rate_ = value; } @@ -13072,7 +12571,6 @@ inline ::uint64_t ValueAtHeightResponse::_internal_value() const { } inline void ValueAtHeightResponse::_internal_set_value(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.value_ = value; } @@ -13095,7 +12593,6 @@ inline ::uint64_t ValueAtHeightResponse::_internal_height() const { } inline void ValueAtHeightResponse::_internal_set_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.height_ = value; } @@ -13122,7 +12619,6 @@ inline ::uint64_t IntegerValue::_internal_value() const { } inline void IntegerValue::_internal_set_value(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.value_ = value; } @@ -13144,7 +12640,6 @@ template inline PROTOBUF_ALWAYS_INLINE void StringValue::set_value(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.value_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.StringValue.value) } @@ -13159,12 +12654,10 @@ inline const std::string& StringValue::_internal_value() const { } inline void StringValue::_internal_set_value(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.value_.Set(value, GetArena()); } inline std::string* StringValue::_internal_mutable_value() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.value_.Mutable( GetArena()); } inline std::string* StringValue::release_value() { @@ -13206,7 +12699,6 @@ inline ::uint64_t BlockGroupRequest::_internal_from_tip() const { } inline void BlockGroupRequest::_internal_set_from_tip(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.from_tip_ = value; } @@ -13229,7 +12721,6 @@ inline ::uint64_t BlockGroupRequest::_internal_start_height() const { } inline void BlockGroupRequest::_internal_set_start_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.start_height_ = value; } @@ -13252,7 +12743,6 @@ inline ::uint64_t BlockGroupRequest::_internal_end_height() const { } inline void BlockGroupRequest::_internal_set_end_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.end_height_ = value; } @@ -13275,7 +12765,6 @@ inline ::tari::rpc::CalcType BlockGroupRequest::_internal_calc_type() const { } inline void BlockGroupRequest::_internal_set_calc_type(::tari::rpc::CalcType value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.calc_type_ = value; } @@ -13318,8 +12807,8 @@ inline ::google::protobuf::RepeatedField* BlockGroupResponse::mutable_va PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_value(); } -inline const ::google::protobuf::RepeatedField& BlockGroupResponse::_internal_value() - const { +inline const ::google::protobuf::RepeatedField& +BlockGroupResponse::_internal_value() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.value_; } @@ -13347,7 +12836,6 @@ inline ::tari::rpc::CalcType BlockGroupResponse::_internal_calc_type() const { } inline void BlockGroupResponse::_internal_set_calc_type(::tari::rpc::CalcType value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.calc_type_ = value; } @@ -13374,7 +12862,6 @@ inline ::uint64_t HeightRequest::_internal_from_tip() const { } inline void HeightRequest::_internal_set_from_tip(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.from_tip_ = value; } @@ -13397,7 +12884,6 @@ inline ::uint64_t HeightRequest::_internal_start_height() const { } inline void HeightRequest::_internal_set_start_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.start_height_ = value; } @@ -13420,7 +12906,6 @@ inline ::uint64_t HeightRequest::_internal_end_height() const { } inline void HeightRequest::_internal_set_end_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.end_height_ = value; } @@ -13447,7 +12932,6 @@ inline ::uint64_t BlockTimingResponse::_internal_max() const { } inline void BlockTimingResponse::_internal_set_max(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.max_ = value; } @@ -13470,7 +12954,6 @@ inline ::uint64_t BlockTimingResponse::_internal_min() const { } inline void BlockTimingResponse::_internal_set_min(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.min_ = value; } @@ -13493,7 +12976,6 @@ inline double BlockTimingResponse::_internal_avg() const { } inline void BlockTimingResponse::_internal_set_avg(double value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.avg_ = value; } @@ -13515,7 +12997,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetHeaderByHashRequest::set_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetHeaderByHashRequest.hash) } @@ -13530,12 +13011,10 @@ inline const std::string& GetHeaderByHashRequest::_internal_hash() const { } inline void GetHeaderByHashRequest::_internal_set_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.hash_.Set(value, GetArena()); } inline std::string* GetHeaderByHashRequest::_internal_mutable_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.hash_.Mutable( GetArena()); } inline std::string* GetHeaderByHashRequest::release_hash() { @@ -13616,14 +13095,14 @@ inline ::tari::rpc::BlockHeader* BlockHeaderResponse::unsafe_arena_release_heade } inline ::tari::rpc::BlockHeader* BlockHeaderResponse::_internal_mutable_header() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.header_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::BlockHeader>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::BlockHeader>(GetArena()); _impl_.header_ = reinterpret_cast<::tari::rpc::BlockHeader*>(p); } return _impl_.header_; } inline ::tari::rpc::BlockHeader* BlockHeaderResponse::mutable_header() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::BlockHeader* _msg = _internal_mutable_header(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeaderResponse.header) return _msg; @@ -13668,7 +13147,6 @@ inline ::uint64_t BlockHeaderResponse::_internal_confirmations() const { } inline void BlockHeaderResponse::_internal_set_confirmations(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.confirmations_ = value; } @@ -13691,7 +13169,6 @@ inline ::uint64_t BlockHeaderResponse::_internal_reward() const { } inline void BlockHeaderResponse::_internal_set_reward(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.reward_ = value; } @@ -13714,7 +13191,6 @@ inline ::uint64_t BlockHeaderResponse::_internal_difficulty() const { } inline void BlockHeaderResponse::_internal_set_difficulty(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.difficulty_ = value; } @@ -13737,7 +13213,6 @@ inline ::uint32_t BlockHeaderResponse::_internal_num_transactions() const { } inline void BlockHeaderResponse::_internal_set_num_transactions(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.num_transactions_ = value; } @@ -13764,7 +13239,6 @@ inline ::uint64_t ListHeadersRequest::_internal_from_height() const { } inline void ListHeadersRequest::_internal_set_from_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.from_height_ = value; } @@ -13787,7 +13261,6 @@ inline ::uint64_t ListHeadersRequest::_internal_num_headers() const { } inline void ListHeadersRequest::_internal_set_num_headers(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.num_headers_ = value; } @@ -13810,7 +13283,6 @@ inline ::tari::rpc::Sorting ListHeadersRequest::_internal_sorting() const { } inline void ListHeadersRequest::_internal_set_sorting(::tari::rpc::Sorting value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.sorting_ = value; } @@ -13853,8 +13325,8 @@ inline ::google::protobuf::RepeatedField<::uint64_t>* GetBlocksRequest::mutable_ PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_heights(); } -inline const ::google::protobuf::RepeatedField<::uint64_t>& GetBlocksRequest::_internal_heights() - const { +inline const ::google::protobuf::RepeatedField<::uint64_t>& +GetBlocksRequest::_internal_heights() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.heights_; } @@ -13935,7 +13407,6 @@ inline ::uint64_t MetaData::_internal_height_of_longest_chain() const { } inline void MetaData::_internal_set_height_of_longest_chain(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.height_of_longest_chain_ = value; } @@ -13953,7 +13424,6 @@ template inline PROTOBUF_ALWAYS_INLINE void MetaData::set_best_block(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.best_block_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.MetaData.best_block) } @@ -13968,12 +13438,10 @@ inline const std::string& MetaData::_internal_best_block() const { } inline void MetaData::_internal_set_best_block(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.best_block_.Set(value, GetArena()); } inline std::string* MetaData::_internal_mutable_best_block() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.best_block_.Mutable( GetArena()); } inline std::string* MetaData::release_best_block() { @@ -14011,7 +13479,6 @@ inline ::uint64_t MetaData::_internal_pruned_height() const { } inline void MetaData::_internal_set_pruned_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.pruned_height_ = value; } @@ -14029,7 +13496,6 @@ template inline PROTOBUF_ALWAYS_INLINE void MetaData::set_accumulated_difficulty(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.accumulated_difficulty_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.MetaData.accumulated_difficulty) } @@ -14044,12 +13510,10 @@ inline const std::string& MetaData::_internal_accumulated_difficulty() const { } inline void MetaData::_internal_set_accumulated_difficulty(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.accumulated_difficulty_.Set(value, GetArena()); } inline std::string* MetaData::_internal_mutable_accumulated_difficulty() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.accumulated_difficulty_.Mutable( GetArena()); } inline std::string* MetaData::release_accumulated_difficulty() { @@ -14091,7 +13555,6 @@ inline ::uint64_t SyncInfoResponse::_internal_tip_height() const { } inline void SyncInfoResponse::_internal_set_tip_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.tip_height_ = value; } @@ -14114,7 +13577,6 @@ inline ::uint64_t SyncInfoResponse::_internal_local_height() const { } inline void SyncInfoResponse::_internal_set_local_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.local_height_ = value; } @@ -14166,8 +13628,8 @@ inline void SyncInfoResponse::set_peer_node_id(int index, const void* value, // @@protoc_insertion_point(field_set_pointer:tari.rpc.SyncInfoResponse.peer_node_id) } inline void SyncInfoResponse::set_peer_node_id(int index, absl::string_view value) { - _internal_mutable_peer_node_id()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_peer_node_id()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:tari.rpc.SyncInfoResponse.peer_node_id) } inline void SyncInfoResponse::add_peer_node_id(const std::string& value) { @@ -14194,7 +13656,8 @@ inline void SyncInfoResponse::add_peer_node_id(const void* value, std::size_t si } inline void SyncInfoResponse::add_peer_node_id(absl::string_view value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_peer_node_id()->Add()->assign(value.data(), value.size()); + _internal_mutable_peer_node_id()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:tari.rpc.SyncInfoResponse.peer_node_id) } inline const ::google::protobuf::RepeatedPtrField& @@ -14242,7 +13705,6 @@ inline ::uint64_t SyncProgressResponse::_internal_tip_height() const { } inline void SyncProgressResponse::_internal_set_tip_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.tip_height_ = value; } @@ -14265,7 +13727,6 @@ inline ::uint64_t SyncProgressResponse::_internal_local_height() const { } inline void SyncProgressResponse::_internal_set_local_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.local_height_ = value; } @@ -14288,7 +13749,6 @@ inline ::tari::rpc::SyncState SyncProgressResponse::_internal_state() const { } inline void SyncProgressResponse::_internal_set_state(::tari::rpc::SyncState value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.state_ = value; } @@ -14310,7 +13770,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_block_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.block_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockResult.block_hash) } @@ -14325,12 +13784,10 @@ inline const std::string& GetNewBlockResult::_internal_block_hash() const { } inline void GetNewBlockResult::_internal_set_block_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.block_hash_.Set(value, GetArena()); } inline std::string* GetNewBlockResult::_internal_mutable_block_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.block_hash_.Mutable( GetArena()); } inline std::string* GetNewBlockResult::release_block_hash() { @@ -14407,14 +13864,14 @@ inline ::tari::rpc::Block* GetNewBlockResult::unsafe_arena_release_block() { } inline ::tari::rpc::Block* GetNewBlockResult::_internal_mutable_block() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.block_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Block>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Block>(GetArena()); _impl_.block_ = reinterpret_cast<::tari::rpc::Block*>(p); } return _impl_.block_; } inline ::tari::rpc::Block* GetNewBlockResult::mutable_block() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::Block* _msg = _internal_mutable_block(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockResult.block) return _msg; @@ -14454,7 +13911,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_merge_mining_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.merge_mining_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockResult.merge_mining_hash) } @@ -14469,12 +13925,10 @@ inline const std::string& GetNewBlockResult::_internal_merge_mining_hash() const } inline void GetNewBlockResult::_internal_set_merge_mining_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.merge_mining_hash_.Set(value, GetArena()); } inline std::string* GetNewBlockResult::_internal_mutable_merge_mining_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.merge_mining_hash_.Mutable( GetArena()); } inline std::string* GetNewBlockResult::release_merge_mining_hash() { @@ -14511,7 +13965,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_block_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.block_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.block_hash) } @@ -14526,12 +13979,10 @@ inline const std::string& GetNewBlockBlobResult::_internal_block_hash() const { } inline void GetNewBlockBlobResult::_internal_set_block_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.block_hash_.Set(value, GetArena()); } inline std::string* GetNewBlockBlobResult::_internal_mutable_block_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.block_hash_.Mutable( GetArena()); } inline std::string* GetNewBlockBlobResult::release_block_hash() { @@ -14564,7 +14015,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_header(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.header_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.header) } @@ -14579,12 +14029,10 @@ inline const std::string& GetNewBlockBlobResult::_internal_header() const { } inline void GetNewBlockBlobResult::_internal_set_header(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.header_.Set(value, GetArena()); } inline std::string* GetNewBlockBlobResult::_internal_mutable_header() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.header_.Mutable( GetArena()); } inline std::string* GetNewBlockBlobResult::release_header() { @@ -14617,7 +14065,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_block_body(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.block_body_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.block_body) } @@ -14632,12 +14079,10 @@ inline const std::string& GetNewBlockBlobResult::_internal_block_body() const { } inline void GetNewBlockBlobResult::_internal_set_block_body(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.block_body_.Set(value, GetArena()); } inline std::string* GetNewBlockBlobResult::_internal_mutable_block_body() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.block_body_.Mutable( GetArena()); } inline std::string* GetNewBlockBlobResult::release_block_body() { @@ -14670,7 +14115,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_merge_mining_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.merge_mining_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.merge_mining_hash) } @@ -14685,12 +14129,10 @@ inline const std::string& GetNewBlockBlobResult::_internal_merge_mining_hash() c } inline void GetNewBlockBlobResult::_internal_set_merge_mining_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.merge_mining_hash_.Set(value, GetArena()); } inline std::string* GetNewBlockBlobResult::_internal_mutable_merge_mining_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.merge_mining_hash_.Mutable( GetArena()); } inline std::string* GetNewBlockBlobResult::release_merge_mining_hash() { @@ -14723,7 +14165,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_utxo_mr(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.utxo_mr_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.utxo_mr) } @@ -14738,12 +14179,10 @@ inline const std::string& GetNewBlockBlobResult::_internal_utxo_mr() const { } inline void GetNewBlockBlobResult::_internal_set_utxo_mr(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.utxo_mr_.Set(value, GetArena()); } inline std::string* GetNewBlockBlobResult::_internal_mutable_utxo_mr() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.utxo_mr_.Mutable( GetArena()); } inline std::string* GetNewBlockBlobResult::release_utxo_mr() { @@ -14824,14 +14263,14 @@ inline ::tari::rpc::PowAlgo* MinerData::unsafe_arena_release_algo() { } inline ::tari::rpc::PowAlgo* MinerData::_internal_mutable_algo() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.algo_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::PowAlgo>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::PowAlgo>(GetArena()); _impl_.algo_ = reinterpret_cast<::tari::rpc::PowAlgo*>(p); } return _impl_.algo_; } inline ::tari::rpc::PowAlgo* MinerData::mutable_algo() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::PowAlgo* _msg = _internal_mutable_algo(); // @@protoc_insertion_point(field_mutable:tari.rpc.MinerData.algo) return _msg; @@ -14876,7 +14315,6 @@ inline ::uint64_t MinerData::_internal_target_difficulty() const { } inline void MinerData::_internal_set_target_difficulty(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.target_difficulty_ = value; } @@ -14899,7 +14337,6 @@ inline ::uint64_t MinerData::_internal_reward() const { } inline void MinerData::_internal_set_reward(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.reward_ = value; } @@ -14922,7 +14359,6 @@ inline ::uint64_t MinerData::_internal_total_fees() const { } inline void MinerData::_internal_set_total_fees(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.total_fees_ = value; } @@ -15027,8 +14463,8 @@ inline void SearchUtxosRequest::set_commitments(int index, const void* value, // @@protoc_insertion_point(field_set_pointer:tari.rpc.SearchUtxosRequest.commitments) } inline void SearchUtxosRequest::set_commitments(int index, absl::string_view value) { - _internal_mutable_commitments()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_commitments()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:tari.rpc.SearchUtxosRequest.commitments) } inline void SearchUtxosRequest::add_commitments(const std::string& value) { @@ -15055,7 +14491,8 @@ inline void SearchUtxosRequest::add_commitments(const void* value, std::size_t s } inline void SearchUtxosRequest::add_commitments(absl::string_view value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_commitments()->Add()->assign(value.data(), value.size()); + _internal_mutable_commitments()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:tari.rpc.SearchUtxosRequest.commitments) } inline const ::google::protobuf::RepeatedPtrField& @@ -15132,8 +14569,8 @@ inline void FetchMatchingUtxosRequest::set_hashes(int index, const void* value, // @@protoc_insertion_point(field_set_pointer:tari.rpc.FetchMatchingUtxosRequest.hashes) } inline void FetchMatchingUtxosRequest::set_hashes(int index, absl::string_view value) { - _internal_mutable_hashes()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_hashes()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:tari.rpc.FetchMatchingUtxosRequest.hashes) } inline void FetchMatchingUtxosRequest::add_hashes(const std::string& value) { @@ -15160,7 +14597,8 @@ inline void FetchMatchingUtxosRequest::add_hashes(const void* value, std::size_t } inline void FetchMatchingUtxosRequest::add_hashes(absl::string_view value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_hashes()->Add()->assign(value.data(), value.size()); + _internal_mutable_hashes()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:tari.rpc.FetchMatchingUtxosRequest.hashes) } inline const ::google::protobuf::RepeatedPtrField& @@ -15247,14 +14685,14 @@ inline ::tari::rpc::TransactionOutput* FetchMatchingUtxosResponse::unsafe_arena_ } inline ::tari::rpc::TransactionOutput* FetchMatchingUtxosResponse::_internal_mutable_output() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.output_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::TransactionOutput>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::TransactionOutput>(GetArena()); _impl_.output_ = reinterpret_cast<::tari::rpc::TransactionOutput*>(p); } return _impl_.output_; } inline ::tari::rpc::TransactionOutput* FetchMatchingUtxosResponse::mutable_output() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::TransactionOutput* _msg = _internal_mutable_output(); // @@protoc_insertion_point(field_mutable:tari.rpc.FetchMatchingUtxosResponse.output) return _msg; @@ -15342,14 +14780,14 @@ inline ::tari::rpc::Peer* GetPeersResponse::unsafe_arena_release_peer() { } inline ::tari::rpc::Peer* GetPeersResponse::_internal_mutable_peer() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.peer_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Peer>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Peer>(GetArena()); _impl_.peer_ = reinterpret_cast<::tari::rpc::Peer*>(p); } return _impl_.peer_; } inline ::tari::rpc::Peer* GetPeersResponse::mutable_peer() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::Peer* _msg = _internal_mutable_peer(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetPeersResponse.peer) return _msg; @@ -15441,14 +14879,14 @@ inline ::tari::rpc::Transaction* SubmitTransactionRequest::unsafe_arena_release_ } inline ::tari::rpc::Transaction* SubmitTransactionRequest::_internal_mutable_transaction() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.transaction_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Transaction>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Transaction>(GetArena()); _impl_.transaction_ = reinterpret_cast<::tari::rpc::Transaction*>(p); } return _impl_.transaction_; } inline ::tari::rpc::Transaction* SubmitTransactionRequest::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::Transaction* _msg = _internal_mutable_transaction(); // @@protoc_insertion_point(field_mutable:tari.rpc.SubmitTransactionRequest.transaction) return _msg; @@ -15497,7 +14935,6 @@ inline ::tari::rpc::SubmitTransactionResult SubmitTransactionResponse::_internal } inline void SubmitTransactionResponse::_internal_set_result(::tari::rpc::SubmitTransactionResult value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.result_ = value; } @@ -15567,14 +15004,14 @@ inline ::tari::rpc::Transaction* GetMempoolTransactionsResponse::unsafe_arena_re } inline ::tari::rpc::Transaction* GetMempoolTransactionsResponse::_internal_mutable_transaction() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.transaction_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Transaction>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Transaction>(GetArena()); _impl_.transaction_ = reinterpret_cast<::tari::rpc::Transaction*>(p); } return _impl_.transaction_; } inline ::tari::rpc::Transaction* GetMempoolTransactionsResponse::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::Transaction* _msg = _internal_mutable_transaction(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetMempoolTransactionsResponse.transaction) return _msg; @@ -15662,14 +15099,14 @@ inline ::tari::rpc::Signature* TransactionStateRequest::unsafe_arena_release_exc } inline ::tari::rpc::Signature* TransactionStateRequest::_internal_mutable_excess_sig() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.excess_sig_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Signature>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Signature>(GetArena()); _impl_.excess_sig_ = reinterpret_cast<::tari::rpc::Signature*>(p); } return _impl_.excess_sig_; } inline ::tari::rpc::Signature* TransactionStateRequest::mutable_excess_sig() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::Signature* _msg = _internal_mutable_excess_sig(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionStateRequest.excess_sig) return _msg; @@ -15718,7 +15155,6 @@ inline ::tari::rpc::TransactionLocation TransactionStateResponse::_internal_resu } inline void TransactionStateResponse::_internal_set_result(::tari::rpc::TransactionLocation value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.result_ = value; } @@ -15745,7 +15181,6 @@ inline ::uint64_t MempoolStatsResponse::_internal_unconfirmed_txs() const { } inline void MempoolStatsResponse::_internal_set_unconfirmed_txs(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.unconfirmed_txs_ = value; } @@ -15768,7 +15203,6 @@ inline ::uint64_t MempoolStatsResponse::_internal_reorg_txs() const { } inline void MempoolStatsResponse::_internal_set_reorg_txs(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.reorg_txs_ = value; } @@ -15791,7 +15225,6 @@ inline ::uint64_t MempoolStatsResponse::_internal_unconfirmed_weight() const { } inline void MempoolStatsResponse::_internal_set_unconfirmed_weight(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.unconfirmed_weight_ = value; } @@ -15818,7 +15251,6 @@ inline ::uint64_t GetActiveValidatorNodesRequest::_internal_height() const { } inline void GetActiveValidatorNodesRequest::_internal_set_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.height_ = value; } @@ -15840,7 +15272,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetActiveValidatorNodesResponse::set_shard_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.shard_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetActiveValidatorNodesResponse.shard_key) } @@ -15855,12 +15286,10 @@ inline const std::string& GetActiveValidatorNodesResponse::_internal_shard_key() } inline void GetActiveValidatorNodesResponse::_internal_set_shard_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.shard_key_.Set(value, GetArena()); } inline std::string* GetActiveValidatorNodesResponse::_internal_mutable_shard_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.shard_key_.Mutable( GetArena()); } inline std::string* GetActiveValidatorNodesResponse::release_shard_key() { @@ -15893,7 +15322,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetActiveValidatorNodesResponse::set_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetActiveValidatorNodesResponse.public_key) } @@ -15908,12 +15336,10 @@ inline const std::string& GetActiveValidatorNodesResponse::_internal_public_key( } inline void GetActiveValidatorNodesResponse::_internal_set_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_key_.Set(value, GetArena()); } inline std::string* GetActiveValidatorNodesResponse::_internal_mutable_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.public_key_.Mutable( GetArena()); } inline std::string* GetActiveValidatorNodesResponse::release_public_key() { @@ -15955,7 +15381,6 @@ inline ::uint64_t GetShardKeyRequest::_internal_height() const { } inline void GetShardKeyRequest::_internal_set_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.height_ = value; } @@ -15973,7 +15398,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetShardKeyRequest::set_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetShardKeyRequest.public_key) } @@ -15988,12 +15412,10 @@ inline const std::string& GetShardKeyRequest::_internal_public_key() const { } inline void GetShardKeyRequest::_internal_set_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_key_.Set(value, GetArena()); } inline std::string* GetShardKeyRequest::_internal_mutable_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.public_key_.Mutable( GetArena()); } inline std::string* GetShardKeyRequest::release_public_key() { @@ -16030,7 +15452,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetShardKeyResponse::set_shard_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.shard_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetShardKeyResponse.shard_key) } @@ -16045,12 +15466,10 @@ inline const std::string& GetShardKeyResponse::_internal_shard_key() const { } inline void GetShardKeyResponse::_internal_set_shard_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.shard_key_.Set(value, GetArena()); } inline std::string* GetShardKeyResponse::_internal_mutable_shard_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.shard_key_.Mutable( GetArena()); } inline std::string* GetShardKeyResponse::release_shard_key() { @@ -16088,7 +15507,6 @@ inline bool GetShardKeyResponse::_internal_found() const { } inline void GetShardKeyResponse::_internal_set_found(bool value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.found_ = value; } @@ -16110,7 +15528,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetTemplateRegistrationsRequest::set_start_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.start_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTemplateRegistrationsRequest.start_hash) } @@ -16125,12 +15542,10 @@ inline const std::string& GetTemplateRegistrationsRequest::_internal_start_hash( } inline void GetTemplateRegistrationsRequest::_internal_set_start_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.start_hash_.Set(value, GetArena()); } inline std::string* GetTemplateRegistrationsRequest::_internal_mutable_start_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.start_hash_.Mutable( GetArena()); } inline std::string* GetTemplateRegistrationsRequest::release_start_hash() { @@ -16168,7 +15583,6 @@ inline ::uint64_t GetTemplateRegistrationsRequest::_internal_count() const { } inline void GetTemplateRegistrationsRequest::_internal_set_count(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.count_ = value; } @@ -16190,7 +15604,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetTemplateRegistrationResponse::set_utxo_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.utxo_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTemplateRegistrationResponse.utxo_hash) } @@ -16205,12 +15618,10 @@ inline const std::string& GetTemplateRegistrationResponse::_internal_utxo_hash() } inline void GetTemplateRegistrationResponse::_internal_set_utxo_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.utxo_hash_.Set(value, GetArena()); } inline std::string* GetTemplateRegistrationResponse::_internal_mutable_utxo_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.utxo_hash_.Mutable( GetArena()); } inline std::string* GetTemplateRegistrationResponse::release_utxo_hash() { @@ -16287,14 +15698,14 @@ inline ::tari::rpc::TemplateRegistration* GetTemplateRegistrationResponse::unsaf } inline ::tari::rpc::TemplateRegistration* GetTemplateRegistrationResponse::_internal_mutable_registration() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.registration_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::TemplateRegistration>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::TemplateRegistration>(GetArena()); _impl_.registration_ = reinterpret_cast<::tari::rpc::TemplateRegistration*>(p); } return _impl_.registration_; } inline ::tari::rpc::TemplateRegistration* GetTemplateRegistrationResponse::mutable_registration() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::TemplateRegistration* _msg = _internal_mutable_registration(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetTemplateRegistrationResponse.registration) return _msg; @@ -16343,7 +15754,6 @@ inline ::uint64_t BlockInfo::_internal_height() const { } inline void BlockInfo::_internal_set_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.height_ = value; } @@ -16361,7 +15771,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BlockInfo::set_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockInfo.hash) } @@ -16376,12 +15785,10 @@ inline const std::string& BlockInfo::_internal_hash() const { } inline void BlockInfo::_internal_set_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.hash_.Set(value, GetArena()); } inline std::string* BlockInfo::_internal_mutable_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.hash_.Mutable( GetArena()); } inline std::string* BlockInfo::release_hash() { @@ -16414,7 +15821,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BlockInfo::set_next_block_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.next_block_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockInfo.next_block_hash) } @@ -16429,12 +15835,10 @@ inline const std::string& BlockInfo::_internal_next_block_hash() const { } inline void BlockInfo::_internal_set_next_block_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.next_block_hash_.Set(value, GetArena()); } inline std::string* BlockInfo::_internal_mutable_next_block_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.next_block_hash_.Mutable( GetArena()); } inline std::string* BlockInfo::release_next_block_hash() { @@ -16471,7 +15875,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetSideChainUtxosRequest::set_start_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.start_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetSideChainUtxosRequest.start_hash) } @@ -16486,12 +15889,10 @@ inline const std::string& GetSideChainUtxosRequest::_internal_start_hash() const } inline void GetSideChainUtxosRequest::_internal_set_start_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.start_hash_.Set(value, GetArena()); } inline std::string* GetSideChainUtxosRequest::_internal_mutable_start_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.start_hash_.Mutable( GetArena()); } inline std::string* GetSideChainUtxosRequest::release_start_hash() { @@ -16529,7 +15930,6 @@ inline ::uint64_t GetSideChainUtxosRequest::_internal_count() const { } inline void GetSideChainUtxosRequest::_internal_set_count(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.count_ = value; } @@ -16600,14 +16000,14 @@ inline ::tari::rpc::BlockInfo* GetSideChainUtxosResponse::unsafe_arena_release_b } inline ::tari::rpc::BlockInfo* GetSideChainUtxosResponse::_internal_mutable_block_info() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.block_info_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::BlockInfo>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::BlockInfo>(GetArena()); _impl_.block_info_ = reinterpret_cast<::tari::rpc::BlockInfo*>(p); } return _impl_.block_info_; } inline ::tari::rpc::BlockInfo* GetSideChainUtxosResponse::mutable_block_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::BlockInfo* _msg = _internal_mutable_block_info(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetSideChainUtxosResponse.block_info) return _msg; @@ -16616,11 +16016,11 @@ inline void GetSideChainUtxosResponse::set_allocated_block_info(::tari::rpc::Blo ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::BlockInfo*>(_impl_.block_info_); + delete (_impl_.block_info_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::BlockInfo*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } diff --git a/external/src/Tari/proto/gRPC/block.pb.cc b/external/src/Tari/proto/gRPC/block.pb.cc index 92f5d29..2d21a1b 100644 --- a/external/src/Tari/proto/gRPC/block.pb.cc +++ b/external/src/Tari/proto/gRPC/block.pb.cc @@ -1,5 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: block.proto +// Protobuf C++ Version: 5.26.0-rc1 #include "block.pb.h" @@ -209,127 +210,128 @@ static ::_pb::Metadata file_level_metadata_block_2eproto[7]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_block_2eproto[1]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_block_2eproto = nullptr; -const ::uint32_t TableStruct_block_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.prev_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.timestamp_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.output_mr_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.kernel_mr_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.input_mr_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.total_kernel_offset_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.nonce_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.pow_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.kernel_mmr_size_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.output_mmr_size_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.total_script_offset_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.validator_node_mr_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.validator_node_size_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ProofOfWork, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::ProofOfWork, _impl_.pow_algo_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ProofOfWork, _impl_.pow_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgo, _impl_.pow_algo_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _impl_.header_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _impl_.body_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _impl_.confirmations_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _impl_.block_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.prev_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.total_kernel_offset_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.pow_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.total_script_offset_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _impl_.header_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _impl_.body_), - 0, - 1, +const ::uint32_t + TableStruct_block_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.prev_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.timestamp_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.output_mr_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.kernel_mr_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.input_mr_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.total_kernel_offset_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.nonce_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.pow_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.kernel_mmr_size_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.output_mmr_size_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.total_script_offset_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.validator_node_mr_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.validator_node_size_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::ProofOfWork, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::ProofOfWork, _impl_.pow_algo_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ProofOfWork, _impl_.pow_data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgo, _impl_.pow_algo_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _impl_.body_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _impl_.confirmations_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _impl_.block_), + ~0u, + 0, + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.prev_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.total_kernel_offset_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.pow_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.total_script_offset_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _impl_.body_), + 0, + 1, }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, 24, -1, sizeof(::tari::rpc::BlockHeader)}, {40, -1, -1, sizeof(::tari::rpc::ProofOfWork)}, {50, -1, -1, sizeof(::tari::rpc::PowAlgo)}, @@ -338,7 +340,6 @@ static const ::_pbi::MigrationSchema {83, 97, -1, sizeof(::tari::rpc::NewBlockHeaderTemplate)}, {103, 113, -1, sizeof(::tari::rpc::NewBlockTemplate)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_BlockHeader_default_instance_._instance, &::tari::rpc::_ProofOfWork_default_instance_._instance, @@ -348,7 +349,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_NewBlockHeaderTemplate_default_instance_._instance, &::tari::rpc::_NewBlockTemplate_default_instance_._instance, }; -const char descriptor_table_protodef_block_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_block_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\013block.proto\022\010tari.rpc\032\021transaction.pro" "to\"\361\002\n\013BlockHeader\022\014\n\004hash\030\001 \001(\014\022\017\n\007vers" "ion\030\002 \001(\r\022\016\n\006height\030\003 \001(\004\022\021\n\tprev_hash\030\004" @@ -413,9 +415,6 @@ const ::_pbi::DescriptorTable descriptor_table_block_2eproto = { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_block_2eproto_getter() { return &descriptor_table_block_2eproto; } -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_block_2eproto(&descriptor_table_block_2eproto); namespace tari { namespace rpc { const ::google::protobuf::EnumDescriptor* PowAlgo_PowAlgos_descriptor() { @@ -445,15 +444,8 @@ class BlockHeader::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_._has_bits_); - static const ::tari::rpc::ProofOfWork& pow(const BlockHeader* msg); - static void set_has_pow(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::ProofOfWork& BlockHeader::_Internal::pow(const BlockHeader* msg) { - return *msg->_impl_.pow_; -} BlockHeader::BlockHeader(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); @@ -483,9 +475,9 @@ BlockHeader::BlockHeader( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pow_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::ProofOfWork>(arena, *from._impl_.pow_) - : nullptr; + _impl_.pow_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ProofOfWork>( + arena, *from._impl_.pow_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, height_), reinterpret_cast(&from._impl_) + @@ -537,6 +529,20 @@ inline void BlockHeader::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +BlockHeader::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_._cached_size_), + false, + }, + &BlockHeader::MergeImpl, + &BlockHeader::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void BlockHeader::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.BlockHeader) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -585,6 +591,9 @@ const ::_pbi::TcParseTable<5, 16, 1, 0, 2> BlockHeader::_table_ = { offsetof(decltype(_table_), aux_entries), &_BlockHeader_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::BlockHeader>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes hash = 1; @@ -782,8 +791,7 @@ const ::_pbi::TcParseTable<5, 16, 1, 0, 2> BlockHeader::_table_ = { // .tari.rpc.ProofOfWork pow = 12; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, _Internal::pow(this), - _Internal::pow(this).GetCachedSize(), target, stream); + 12, *_impl_.pow_, _impl_.pow_->GetCachedSize(), target, stream); } // uint64 kernel_mmr_size = 13; @@ -936,17 +944,11 @@ const ::_pbi::TcParseTable<5, 16, 1, 0, 2> BlockHeader::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData BlockHeader::_class_data_ = { - BlockHeader::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* BlockHeader::GetClassData() const { - return &_class_data_; -} -void BlockHeader::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void BlockHeader::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.BlockHeader) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -976,31 +978,38 @@ void BlockHeader::MergeImpl(::google::protobuf::Message& to_msg, const ::google: if (!from._internal_validator_node_mr().empty()) { _this->_internal_set_validator_node_mr(from._internal_validator_node_mr()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_pow()->::tari::rpc::ProofOfWork::MergeFrom( - from._internal_pow()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.pow_ != nullptr); + if (_this->_impl_.pow_ == nullptr) { + _this->_impl_.pow_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::ProofOfWork>(arena, *from._impl_.pow_); + } else { + _this->_impl_.pow_->MergeFrom(*from._impl_.pow_); + } } if (from._internal_height() != 0) { - _this->_internal_set_height(from._internal_height()); + _this->_impl_.height_ = from._impl_.height_; } if (from._internal_timestamp() != 0) { - _this->_internal_set_timestamp(from._internal_timestamp()); + _this->_impl_.timestamp_ = from._impl_.timestamp_; } if (from._internal_nonce() != 0) { - _this->_internal_set_nonce(from._internal_nonce()); + _this->_impl_.nonce_ = from._impl_.nonce_; } if (from._internal_kernel_mmr_size() != 0) { - _this->_internal_set_kernel_mmr_size(from._internal_kernel_mmr_size()); + _this->_impl_.kernel_mmr_size_ = from._impl_.kernel_mmr_size_; } if (from._internal_output_mmr_size() != 0) { - _this->_internal_set_output_mmr_size(from._internal_output_mmr_size()); + _this->_impl_.output_mmr_size_ = from._impl_.output_mmr_size_; } if (from._internal_validator_node_size() != 0) { - _this->_internal_set_validator_node_size(from._internal_validator_node_size()); + _this->_impl_.validator_node_size_ = from._impl_.validator_node_size_; } if (from._internal_version() != 0) { - _this->_internal_set_version(from._internal_version()); + _this->_impl_.version_ = from._impl_.version_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1015,9 +1024,6 @@ PROTOBUF_NOINLINE bool BlockHeader::IsInitialized() const { return true; } -::_pbi::CachedSize* BlockHeader::AccessCachedSize() const { - return &_impl_._cached_size_; -} void BlockHeader::InternalSwap(BlockHeader* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -1041,9 +1047,9 @@ void BlockHeader::InternalSwap(BlockHeader* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata BlockHeader::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_block_2eproto_getter, &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[0]); + return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, + &descriptor_table_block_2eproto_once, + file_level_metadata_block_2eproto[0]); } // =================================================================== @@ -1096,6 +1102,20 @@ inline void ProofOfWork::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +ProofOfWork::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_._cached_size_), + false, + }, + &ProofOfWork::MergeImpl, + &ProofOfWork::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void ProofOfWork::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.ProofOfWork) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1129,6 +1149,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ProofOfWork::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_ProofOfWork_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ProofOfWork>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes pow_data = 4; {::_pbi::TcParser::FastBS1, @@ -1203,15 +1226,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ProofOfWork::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData ProofOfWork::_class_data_ = { - ProofOfWork::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ProofOfWork::GetClassData() const { - return &_class_data_; -} -void ProofOfWork::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void ProofOfWork::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.ProofOfWork) @@ -1223,7 +1239,7 @@ void ProofOfWork::MergeImpl(::google::protobuf::Message& to_msg, const ::google: _this->_internal_set_pow_data(from._internal_pow_data()); } if (from._internal_pow_algo() != 0) { - _this->_internal_set_pow_algo(from._internal_pow_algo()); + _this->_impl_.pow_algo_ = from._impl_.pow_algo_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1239,9 +1255,6 @@ PROTOBUF_NOINLINE bool ProofOfWork::IsInitialized() const { return true; } -::_pbi::CachedSize* ProofOfWork::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ProofOfWork::InternalSwap(ProofOfWork* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -1252,9 +1265,9 @@ void ProofOfWork::InternalSwap(ProofOfWork* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata ProofOfWork::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_block_2eproto_getter, &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[1]); + return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, + &descriptor_table_block_2eproto_once, + file_level_metadata_block_2eproto[1]); } // =================================================================== @@ -1291,6 +1304,20 @@ inline void PowAlgo::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +PowAlgo::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(PowAlgo, _impl_._cached_size_), + false, + }, + &PowAlgo::MergeImpl, + &PowAlgo::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void PowAlgo::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.PowAlgo) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1323,6 +1350,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> PowAlgo::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_PowAlgo_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::PowAlgo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.PowAlgo.PowAlgos pow_algo = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PowAlgo, _impl_.pow_algo_), 63>(), @@ -1379,15 +1409,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> PowAlgo::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData PowAlgo::_class_data_ = { - PowAlgo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* PowAlgo::GetClassData() const { - return &_class_data_; -} -void PowAlgo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void PowAlgo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.PowAlgo) @@ -1396,7 +1419,7 @@ void PowAlgo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::pro (void) cached_has_bits; if (from._internal_pow_algo() != 0) { - _this->_internal_set_pow_algo(from._internal_pow_algo()); + _this->_impl_.pow_algo_ = from._impl_.pow_algo_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1412,9 +1435,6 @@ PROTOBUF_NOINLINE bool PowAlgo::IsInitialized() const { return true; } -::_pbi::CachedSize* PowAlgo::AccessCachedSize() const { - return &_impl_._cached_size_; -} void PowAlgo::InternalSwap(PowAlgo* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1422,9 +1442,9 @@ void PowAlgo::InternalSwap(PowAlgo* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata PowAlgo::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_block_2eproto_getter, &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[2]); + return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, + &descriptor_table_block_2eproto_once, + file_level_metadata_block_2eproto[2]); } // =================================================================== @@ -1433,22 +1453,8 @@ class Block::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Block, _impl_._has_bits_); - static const ::tari::rpc::BlockHeader& header(const Block* msg); - static void set_has_header(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::tari::rpc::AggregateBody& body(const Block* msg); - static void set_has_body(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::tari::rpc::BlockHeader& Block::_Internal::header(const Block* msg) { - return *msg->_impl_.header_; -} -const ::tari::rpc::AggregateBody& Block::_Internal::body(const Block* msg) { - return *msg->_impl_.body_; -} void Block::clear_body() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.body_ != nullptr) _impl_.body_->Clear(); @@ -1475,12 +1481,12 @@ Block::Block( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.header_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::BlockHeader>(arena, *from._impl_.header_) - : nullptr; - _impl_.body_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::tari::rpc::AggregateBody>(arena, *from._impl_.body_) - : nullptr; + _impl_.header_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockHeader>( + arena, *from._impl_.header_) + : nullptr; + _impl_.body_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>( + arena, *from._impl_.body_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.Block) } @@ -1510,6 +1516,20 @@ inline void Block::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +Block::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Block, _impl_._cached_size_), + false, + }, + &Block::MergeImpl, + &Block::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void Block::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.Block) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1553,6 +1573,9 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> Block::_table_ = { offsetof(decltype(_table_), aux_entries), &_Block_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::Block>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.AggregateBody body = 2; {::_pbi::TcParser::FastMtS1, @@ -1587,15 +1610,13 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> Block::_table_ = { // .tari.rpc.BlockHeader header = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::header(this), - _Internal::header(this).GetCachedSize(), target, stream); + 1, *_impl_.header_, _impl_.header_->GetCachedSize(), target, stream); } // .tari.rpc.AggregateBody body = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::body(this), - _Internal::body(this).GetCachedSize(), target, stream); + 2, *_impl_.body_, _impl_.body_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1633,17 +1654,11 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> Block::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData Block::_class_data_ = { - Block::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Block::GetClassData() const { - return &_class_data_; -} -void Block::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void Block::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.Block) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -1652,14 +1667,25 @@ void Block::MergeImpl(::google::protobuf::Message& to_msg, const ::google::proto cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_header()->::tari::rpc::BlockHeader::MergeFrom( - from._internal_header()); + ABSL_DCHECK(from._impl_.header_ != nullptr); + if (_this->_impl_.header_ == nullptr) { + _this->_impl_.header_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockHeader>(arena, *from._impl_.header_); + } else { + _this->_impl_.header_->MergeFrom(*from._impl_.header_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_body()->::tari::rpc::AggregateBody::MergeFrom( - from._internal_body()); + ABSL_DCHECK(from._impl_.body_ != nullptr); + if (_this->_impl_.body_ == nullptr) { + _this->_impl_.body_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>(arena, *from._impl_.body_); + } else { + _this->_impl_.body_->MergeFrom(*from._impl_.body_); + } } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1674,9 +1700,6 @@ PROTOBUF_NOINLINE bool Block::IsInitialized() const { return true; } -::_pbi::CachedSize* Block::AccessCachedSize() const { - return &_impl_._cached_size_; -} void Block::InternalSwap(Block* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1690,9 +1713,9 @@ void Block::InternalSwap(Block* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata Block::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_block_2eproto_getter, &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[3]); + return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, + &descriptor_table_block_2eproto_once, + file_level_metadata_block_2eproto[3]); } // =================================================================== @@ -1701,15 +1724,8 @@ class HistoricalBlock::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_._has_bits_); - static const ::tari::rpc::Block& block(const HistoricalBlock* msg); - static void set_has_block(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::Block& HistoricalBlock::_Internal::block(const HistoricalBlock* msg) { - return *msg->_impl_.block_; -} HistoricalBlock::HistoricalBlock(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); @@ -1731,9 +1747,9 @@ HistoricalBlock::HistoricalBlock( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.block_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::Block>(arena, *from._impl_.block_) - : nullptr; + _impl_.block_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Block>( + arena, *from._impl_.block_) + : nullptr; _impl_.confirmations_ = from._impl_.confirmations_; // @@protoc_insertion_point(copy_constructor:tari.rpc.HistoricalBlock) @@ -1763,6 +1779,20 @@ inline void HistoricalBlock::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +HistoricalBlock::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_._cached_size_), + false, + }, + &HistoricalBlock::MergeImpl, + &HistoricalBlock::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void HistoricalBlock::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.HistoricalBlock) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1801,6 +1831,9 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> HistoricalBlock::_table_ = { offsetof(decltype(_table_), aux_entries), &_HistoricalBlock_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::HistoricalBlock>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.Block block = 2; {::_pbi::TcParser::FastMtS1, @@ -1841,8 +1874,7 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> HistoricalBlock::_table_ = { // .tari.rpc.Block block = 2; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::block(this), - _Internal::block(this).GetCachedSize(), target, stream); + 2, *_impl_.block_, _impl_.block_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1878,29 +1910,30 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> HistoricalBlock::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData HistoricalBlock::_class_data_ = { - HistoricalBlock::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* HistoricalBlock::GetClassData() const { - return &_class_data_; -} -void HistoricalBlock::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void HistoricalBlock::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.HistoricalBlock) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_block()->::tari::rpc::Block::MergeFrom( - from._internal_block()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.block_ != nullptr); + if (_this->_impl_.block_ == nullptr) { + _this->_impl_.block_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Block>(arena, *from._impl_.block_); + } else { + _this->_impl_.block_->MergeFrom(*from._impl_.block_); + } } if (from._internal_confirmations() != 0) { - _this->_internal_set_confirmations(from._internal_confirmations()); + _this->_impl_.confirmations_ = from._impl_.confirmations_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1915,9 +1948,6 @@ PROTOBUF_NOINLINE bool HistoricalBlock::IsInitialized() const { return true; } -::_pbi::CachedSize* HistoricalBlock::AccessCachedSize() const { - return &_impl_._cached_size_; -} void HistoricalBlock::InternalSwap(HistoricalBlock* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1931,9 +1961,9 @@ void HistoricalBlock::InternalSwap(HistoricalBlock* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata HistoricalBlock::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_block_2eproto_getter, &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[4]); + return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, + &descriptor_table_block_2eproto_once, + file_level_metadata_block_2eproto[4]); } // =================================================================== @@ -1942,15 +1972,8 @@ class NewBlockHeaderTemplate::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_._has_bits_); - static const ::tari::rpc::ProofOfWork& pow(const NewBlockHeaderTemplate* msg); - static void set_has_pow(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::ProofOfWork& NewBlockHeaderTemplate::_Internal::pow(const NewBlockHeaderTemplate* msg) { - return *msg->_impl_.pow_; -} NewBlockHeaderTemplate::NewBlockHeaderTemplate(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); @@ -1975,9 +1998,9 @@ NewBlockHeaderTemplate::NewBlockHeaderTemplate( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pow_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::ProofOfWork>(arena, *from._impl_.pow_) - : nullptr; + _impl_.pow_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ProofOfWork>( + arena, *from._impl_.pow_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, height_), reinterpret_cast(&from._impl_) + @@ -2019,6 +2042,20 @@ inline void NewBlockHeaderTemplate::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +NewBlockHeaderTemplate::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_._cached_size_), + false, + }, + &NewBlockHeaderTemplate::MergeImpl, + &NewBlockHeaderTemplate::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void NewBlockHeaderTemplate::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockHeaderTemplate) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2062,6 +2099,9 @@ const ::_pbi::TcParseTable<3, 6, 1, 0, 2> NewBlockHeaderTemplate::_table_ = { offsetof(decltype(_table_), aux_entries), &_NewBlockHeaderTemplate_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockHeaderTemplate>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint32 version = 1; @@ -2147,8 +2187,7 @@ const ::_pbi::TcParseTable<3, 6, 1, 0, 2> NewBlockHeaderTemplate::_table_ = { // .tari.rpc.ProofOfWork pow = 5; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::pow(this), - _Internal::pow(this).GetCachedSize(), target, stream); + 5, *_impl_.pow_, _impl_.pow_->GetCachedSize(), target, stream); } // bytes total_script_offset = 7; @@ -2214,17 +2253,11 @@ const ::_pbi::TcParseTable<3, 6, 1, 0, 2> NewBlockHeaderTemplate::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData NewBlockHeaderTemplate::_class_data_ = { - NewBlockHeaderTemplate::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* NewBlockHeaderTemplate::GetClassData() const { - return &_class_data_; -} -void NewBlockHeaderTemplate::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void NewBlockHeaderTemplate::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.NewBlockHeaderTemplate) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -2239,16 +2272,23 @@ void NewBlockHeaderTemplate::MergeImpl(::google::protobuf::Message& to_msg, cons if (!from._internal_total_script_offset().empty()) { _this->_internal_set_total_script_offset(from._internal_total_script_offset()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_pow()->::tari::rpc::ProofOfWork::MergeFrom( - from._internal_pow()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.pow_ != nullptr); + if (_this->_impl_.pow_ == nullptr) { + _this->_impl_.pow_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::ProofOfWork>(arena, *from._impl_.pow_); + } else { + _this->_impl_.pow_->MergeFrom(*from._impl_.pow_); + } } if (from._internal_height() != 0) { - _this->_internal_set_height(from._internal_height()); + _this->_impl_.height_ = from._impl_.height_; } if (from._internal_version() != 0) { - _this->_internal_set_version(from._internal_version()); + _this->_impl_.version_ = from._impl_.version_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2263,9 +2303,6 @@ PROTOBUF_NOINLINE bool NewBlockHeaderTemplate::IsInitialized() const { return true; } -::_pbi::CachedSize* NewBlockHeaderTemplate::AccessCachedSize() const { - return &_impl_._cached_size_; -} void NewBlockHeaderTemplate::InternalSwap(NewBlockHeaderTemplate* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -2284,9 +2321,9 @@ void NewBlockHeaderTemplate::InternalSwap(NewBlockHeaderTemplate* PROTOBUF_RESTR } ::google::protobuf::Metadata NewBlockHeaderTemplate::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_block_2eproto_getter, &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[5]); + return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, + &descriptor_table_block_2eproto_once, + file_level_metadata_block_2eproto[5]); } // =================================================================== @@ -2295,22 +2332,8 @@ class NewBlockTemplate::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_._has_bits_); - static const ::tari::rpc::NewBlockHeaderTemplate& header(const NewBlockTemplate* msg); - static void set_has_header(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::tari::rpc::AggregateBody& body(const NewBlockTemplate* msg); - static void set_has_body(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::tari::rpc::NewBlockHeaderTemplate& NewBlockTemplate::_Internal::header(const NewBlockTemplate* msg) { - return *msg->_impl_.header_; -} -const ::tari::rpc::AggregateBody& NewBlockTemplate::_Internal::body(const NewBlockTemplate* msg) { - return *msg->_impl_.body_; -} void NewBlockTemplate::clear_body() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.body_ != nullptr) _impl_.body_->Clear(); @@ -2337,12 +2360,12 @@ NewBlockTemplate::NewBlockTemplate( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.header_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::NewBlockHeaderTemplate>(arena, *from._impl_.header_) - : nullptr; - _impl_.body_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::tari::rpc::AggregateBody>(arena, *from._impl_.body_) - : nullptr; + _impl_.header_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::NewBlockHeaderTemplate>( + arena, *from._impl_.header_) + : nullptr; + _impl_.body_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>( + arena, *from._impl_.body_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.NewBlockTemplate) } @@ -2372,6 +2395,20 @@ inline void NewBlockTemplate::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +NewBlockTemplate::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_._cached_size_), + false, + }, + &NewBlockTemplate::MergeImpl, + &NewBlockTemplate::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void NewBlockTemplate::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockTemplate) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2415,6 +2452,9 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> NewBlockTemplate::_table_ = { offsetof(decltype(_table_), aux_entries), &_NewBlockTemplate_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplate>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.AggregateBody body = 2; {::_pbi::TcParser::FastMtS1, @@ -2449,15 +2489,13 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> NewBlockTemplate::_table_ = { // .tari.rpc.NewBlockHeaderTemplate header = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::header(this), - _Internal::header(this).GetCachedSize(), target, stream); + 1, *_impl_.header_, _impl_.header_->GetCachedSize(), target, stream); } // .tari.rpc.AggregateBody body = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::body(this), - _Internal::body(this).GetCachedSize(), target, stream); + 2, *_impl_.body_, _impl_.body_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2495,17 +2533,11 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> NewBlockTemplate::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData NewBlockTemplate::_class_data_ = { - NewBlockTemplate::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* NewBlockTemplate::GetClassData() const { - return &_class_data_; -} -void NewBlockTemplate::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void NewBlockTemplate::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.NewBlockTemplate) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -2514,14 +2546,25 @@ void NewBlockTemplate::MergeImpl(::google::protobuf::Message& to_msg, const ::go cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_header()->::tari::rpc::NewBlockHeaderTemplate::MergeFrom( - from._internal_header()); + ABSL_DCHECK(from._impl_.header_ != nullptr); + if (_this->_impl_.header_ == nullptr) { + _this->_impl_.header_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::NewBlockHeaderTemplate>(arena, *from._impl_.header_); + } else { + _this->_impl_.header_->MergeFrom(*from._impl_.header_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_body()->::tari::rpc::AggregateBody::MergeFrom( - from._internal_body()); + ABSL_DCHECK(from._impl_.body_ != nullptr); + if (_this->_impl_.body_ == nullptr) { + _this->_impl_.body_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>(arena, *from._impl_.body_); + } else { + _this->_impl_.body_->MergeFrom(*from._impl_.body_); + } } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2536,9 +2579,6 @@ PROTOBUF_NOINLINE bool NewBlockTemplate::IsInitialized() const { return true; } -::_pbi::CachedSize* NewBlockTemplate::AccessCachedSize() const { - return &_impl_._cached_size_; -} void NewBlockTemplate::InternalSwap(NewBlockTemplate* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2552,9 +2592,9 @@ void NewBlockTemplate::InternalSwap(NewBlockTemplate* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata NewBlockTemplate::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_block_2eproto_getter, &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[6]); + return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, + &descriptor_table_block_2eproto_once, + file_level_metadata_block_2eproto[6]); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -2564,4 +2604,8 @@ namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::std::false_type _static_init_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_block_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/external/src/Tari/proto/gRPC/block.pb.h b/external/src/Tari/proto/gRPC/block.pb.h index b7d880e..ba5a6c6 100644 --- a/external/src/Tari/proto/gRPC/block.pb.h +++ b/external/src/Tari/proto/gRPC/block.pb.h @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: block.proto -// Protobuf C++ Version: 4.25.2 +// Protobuf C++ Version: 5.26.0-rc1 #ifndef GOOGLE_PROTOBUF_INCLUDED_block_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_block_2eproto_2epb_2eh @@ -11,17 +11,11 @@ #include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#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 // PROTOBUF_VERSION - -#if 4025002 < 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 // PROTOBUF_MIN_PROTOC_VERSION +#if PROTOBUF_VERSION != 5026000 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" @@ -128,21 +122,18 @@ inline bool PowAlgo_PowAlgos_Parse(absl::string_view name, PowAlgo_PowAlgos* val // ------------------------------------------------------------------- -class ProofOfWork final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ProofOfWork) */ { +class ProofOfWork final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ProofOfWork) */ { public: inline ProofOfWork() : ProofOfWork(nullptr) {} ~ProofOfWork() override; - template - explicit PROTOBUF_CONSTEXPR ProofOfWork(::google::protobuf::internal::ConstantInitialized); - - inline ProofOfWork(const ProofOfWork& from) - : ProofOfWork(nullptr, from) {} - ProofOfWork(ProofOfWork&& from) noexcept - : ProofOfWork() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR ProofOfWork( + ::google::protobuf::internal::ConstantInitialized); + inline ProofOfWork(const ProofOfWork& from) : ProofOfWork(nullptr, from) {} + inline ProofOfWork(ProofOfWork&& from) noexcept + : ProofOfWork(nullptr, std::move(from)) {} inline ProofOfWork& operator=(const ProofOfWork& from) { CopyFrom(from); return *this; @@ -150,9 +141,9 @@ class ProofOfWork final : inline ProofOfWork& operator=(ProofOfWork&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -184,22 +175,17 @@ class ProofOfWork final : } static inline const ProofOfWork* internal_default_instance() { return reinterpret_cast( - &_ProofOfWork_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(ProofOfWork& a, ProofOfWork& b) { - a.Swap(&b); + &_ProofOfWork_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(ProofOfWork& a, ProofOfWork& b) { a.Swap(&b); } inline void Swap(ProofOfWork* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -214,51 +200,52 @@ class ProofOfWork final : // implements Message ---------------------------------------------- ProofOfWork* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ProofOfWork& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ProofOfWork& from) { - ProofOfWork::MergeImpl(*this, from); - } + void MergeFrom(const ProofOfWork& from) { ProofOfWork::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(ProofOfWork* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.ProofOfWork"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.ProofOfWork"; } + + protected: explicit ProofOfWork(::google::protobuf::Arena* arena); ProofOfWork(::google::protobuf::Arena* arena, const ProofOfWork& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + ProofOfWork(::google::protobuf::Arena* arena, ProofOfWork&& from) noexcept + : ProofOfWork(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kPowDataFieldNumber = 4, kPowAlgoFieldNumber = 1, @@ -292,7 +279,6 @@ class ProofOfWork final : // @@protoc_insertion_point(class_scope:tari.rpc.ProofOfWork) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -305,13 +291,12 @@ class ProofOfWork final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr pow_data_; ::uint64_t pow_algo_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -319,23 +304,21 @@ class ProofOfWork final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_block_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PowAlgo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.PowAlgo) */ { +class PowAlgo final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.PowAlgo) */ { public: inline PowAlgo() : PowAlgo(nullptr) {} ~PowAlgo() override; - template - explicit PROTOBUF_CONSTEXPR PowAlgo(::google::protobuf::internal::ConstantInitialized); - - inline PowAlgo(const PowAlgo& from) - : PowAlgo(nullptr, from) {} - PowAlgo(PowAlgo&& from) noexcept - : PowAlgo() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR PowAlgo( + ::google::protobuf::internal::ConstantInitialized); + inline PowAlgo(const PowAlgo& from) : PowAlgo(nullptr, from) {} + inline PowAlgo(PowAlgo&& from) noexcept + : PowAlgo(nullptr, std::move(from)) {} inline PowAlgo& operator=(const PowAlgo& from) { CopyFrom(from); return *this; @@ -343,9 +326,9 @@ class PowAlgo final : inline PowAlgo& operator=(PowAlgo&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -377,22 +360,17 @@ class PowAlgo final : } static inline const PowAlgo* internal_default_instance() { return reinterpret_cast( - &_PowAlgo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(PowAlgo& a, PowAlgo& b) { - a.Swap(&b); + &_PowAlgo_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(PowAlgo& a, PowAlgo& b) { a.Swap(&b); } inline void Swap(PowAlgo* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -407,49 +385,50 @@ class PowAlgo final : // implements Message ---------------------------------------------- PowAlgo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const PowAlgo& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PowAlgo& from) { - PowAlgo::MergeImpl(*this, from); - } + void MergeFrom(const PowAlgo& from) { PowAlgo::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(PowAlgo* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.PowAlgo"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.PowAlgo"; } + + protected: explicit PowAlgo(::google::protobuf::Arena* arena); PowAlgo(::google::protobuf::Arena* arena, const PowAlgo& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + PowAlgo(::google::protobuf::Arena* arena, PowAlgo&& from) noexcept + : PowAlgo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - using PowAlgos = PowAlgo_PowAlgos; static constexpr PowAlgos POW_ALGOS_RANDOMX = PowAlgo_PowAlgos_POW_ALGOS_RANDOMX; static constexpr PowAlgos POW_ALGOS_SHA3X = PowAlgo_PowAlgos_POW_ALGOS_SHA3X; @@ -471,7 +450,6 @@ class PowAlgo final : } // accessors ------------------------------------------------------- - enum : int { kPowAlgoFieldNumber = 1, }; @@ -488,7 +466,6 @@ class PowAlgo final : // @@protoc_insertion_point(class_scope:tari.rpc.PowAlgo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -501,36 +478,33 @@ class PowAlgo final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); int pow_algo_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_block_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NewBlockHeaderTemplate final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockHeaderTemplate) */ { +class NewBlockHeaderTemplate final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockHeaderTemplate) */ { public: inline NewBlockHeaderTemplate() : NewBlockHeaderTemplate(nullptr) {} ~NewBlockHeaderTemplate() override; - template - explicit PROTOBUF_CONSTEXPR NewBlockHeaderTemplate(::google::protobuf::internal::ConstantInitialized); - - inline NewBlockHeaderTemplate(const NewBlockHeaderTemplate& from) - : NewBlockHeaderTemplate(nullptr, from) {} - NewBlockHeaderTemplate(NewBlockHeaderTemplate&& from) noexcept - : NewBlockHeaderTemplate() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR NewBlockHeaderTemplate( + ::google::protobuf::internal::ConstantInitialized); + inline NewBlockHeaderTemplate(const NewBlockHeaderTemplate& from) : NewBlockHeaderTemplate(nullptr, from) {} + inline NewBlockHeaderTemplate(NewBlockHeaderTemplate&& from) noexcept + : NewBlockHeaderTemplate(nullptr, std::move(from)) {} inline NewBlockHeaderTemplate& operator=(const NewBlockHeaderTemplate& from) { CopyFrom(from); return *this; @@ -538,9 +512,9 @@ class NewBlockHeaderTemplate final : inline NewBlockHeaderTemplate& operator=(NewBlockHeaderTemplate&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -572,22 +546,17 @@ class NewBlockHeaderTemplate final : } static inline const NewBlockHeaderTemplate* internal_default_instance() { return reinterpret_cast( - &_NewBlockHeaderTemplate_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(NewBlockHeaderTemplate& a, NewBlockHeaderTemplate& b) { - a.Swap(&b); + &_NewBlockHeaderTemplate_default_instance_); } + static constexpr int kIndexInFileMessages = 5; + friend void swap(NewBlockHeaderTemplate& a, NewBlockHeaderTemplate& b) { a.Swap(&b); } inline void Swap(NewBlockHeaderTemplate* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -602,51 +571,52 @@ class NewBlockHeaderTemplate final : // implements Message ---------------------------------------------- NewBlockHeaderTemplate* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const NewBlockHeaderTemplate& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NewBlockHeaderTemplate& from) { - NewBlockHeaderTemplate::MergeImpl(*this, from); - } + void MergeFrom(const NewBlockHeaderTemplate& from) { NewBlockHeaderTemplate::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(NewBlockHeaderTemplate* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.NewBlockHeaderTemplate"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockHeaderTemplate"; } + + protected: explicit NewBlockHeaderTemplate(::google::protobuf::Arena* arena); NewBlockHeaderTemplate(::google::protobuf::Arena* arena, const NewBlockHeaderTemplate& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + NewBlockHeaderTemplate(::google::protobuf::Arena* arena, NewBlockHeaderTemplate&& from) noexcept + : NewBlockHeaderTemplate(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kPrevHashFieldNumber = 3, kTotalKernelOffsetFieldNumber = 4, @@ -741,7 +711,6 @@ class NewBlockHeaderTemplate final : // @@protoc_insertion_point(class_scope:tari.rpc.NewBlockHeaderTemplate) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 6, 1, @@ -754,13 +723,12 @@ class NewBlockHeaderTemplate final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr prev_hash_; @@ -773,23 +741,21 @@ class NewBlockHeaderTemplate final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_block_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BlockHeader final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockHeader) */ { +class BlockHeader final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.BlockHeader) */ { public: inline BlockHeader() : BlockHeader(nullptr) {} ~BlockHeader() override; - template - explicit PROTOBUF_CONSTEXPR BlockHeader(::google::protobuf::internal::ConstantInitialized); - - inline BlockHeader(const BlockHeader& from) - : BlockHeader(nullptr, from) {} - BlockHeader(BlockHeader&& from) noexcept - : BlockHeader() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR BlockHeader( + ::google::protobuf::internal::ConstantInitialized); + inline BlockHeader(const BlockHeader& from) : BlockHeader(nullptr, from) {} + inline BlockHeader(BlockHeader&& from) noexcept + : BlockHeader(nullptr, std::move(from)) {} inline BlockHeader& operator=(const BlockHeader& from) { CopyFrom(from); return *this; @@ -797,9 +763,9 @@ class BlockHeader final : inline BlockHeader& operator=(BlockHeader&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -831,22 +797,17 @@ class BlockHeader final : } static inline const BlockHeader* internal_default_instance() { return reinterpret_cast( - &_BlockHeader_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(BlockHeader& a, BlockHeader& b) { - a.Swap(&b); + &_BlockHeader_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(BlockHeader& a, BlockHeader& b) { a.Swap(&b); } inline void Swap(BlockHeader* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -861,51 +822,52 @@ class BlockHeader final : // implements Message ---------------------------------------------- BlockHeader* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const BlockHeader& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BlockHeader& from) { - BlockHeader::MergeImpl(*this, from); - } + void MergeFrom(const BlockHeader& from) { BlockHeader::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(BlockHeader* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.BlockHeader"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.BlockHeader"; } + + protected: explicit BlockHeader(::google::protobuf::Arena* arena); BlockHeader(::google::protobuf::Arena* arena, const BlockHeader& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + BlockHeader(::google::protobuf::Arena* arena, BlockHeader&& from) noexcept + : BlockHeader(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kHashFieldNumber = 1, kPrevHashFieldNumber = 4, @@ -1140,7 +1102,6 @@ class BlockHeader final : // @@protoc_insertion_point(class_scope:tari.rpc.BlockHeader) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 5, 16, 1, @@ -1153,13 +1114,12 @@ class BlockHeader final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr hash_; @@ -1182,23 +1142,21 @@ class BlockHeader final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_block_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NewBlockTemplate final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplate) */ { +class NewBlockTemplate final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplate) */ { public: inline NewBlockTemplate() : NewBlockTemplate(nullptr) {} ~NewBlockTemplate() override; - template - explicit PROTOBUF_CONSTEXPR NewBlockTemplate(::google::protobuf::internal::ConstantInitialized); - - inline NewBlockTemplate(const NewBlockTemplate& from) - : NewBlockTemplate(nullptr, from) {} - NewBlockTemplate(NewBlockTemplate&& from) noexcept - : NewBlockTemplate() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR NewBlockTemplate( + ::google::protobuf::internal::ConstantInitialized); + inline NewBlockTemplate(const NewBlockTemplate& from) : NewBlockTemplate(nullptr, from) {} + inline NewBlockTemplate(NewBlockTemplate&& from) noexcept + : NewBlockTemplate(nullptr, std::move(from)) {} inline NewBlockTemplate& operator=(const NewBlockTemplate& from) { CopyFrom(from); return *this; @@ -1206,9 +1164,9 @@ class NewBlockTemplate final : inline NewBlockTemplate& operator=(NewBlockTemplate&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1240,22 +1198,17 @@ class NewBlockTemplate final : } static inline const NewBlockTemplate* internal_default_instance() { return reinterpret_cast( - &_NewBlockTemplate_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(NewBlockTemplate& a, NewBlockTemplate& b) { - a.Swap(&b); + &_NewBlockTemplate_default_instance_); } + static constexpr int kIndexInFileMessages = 6; + friend void swap(NewBlockTemplate& a, NewBlockTemplate& b) { a.Swap(&b); } inline void Swap(NewBlockTemplate* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1270,51 +1223,52 @@ class NewBlockTemplate final : // implements Message ---------------------------------------------- NewBlockTemplate* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const NewBlockTemplate& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NewBlockTemplate& from) { - NewBlockTemplate::MergeImpl(*this, from); - } + void MergeFrom(const NewBlockTemplate& from) { NewBlockTemplate::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(NewBlockTemplate* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.NewBlockTemplate"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockTemplate"; } + + protected: explicit NewBlockTemplate(::google::protobuf::Arena* arena); NewBlockTemplate(::google::protobuf::Arena* arena, const NewBlockTemplate& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + NewBlockTemplate(::google::protobuf::Arena* arena, NewBlockTemplate&& from) noexcept + : NewBlockTemplate(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kHeaderFieldNumber = 1, kBodyFieldNumber = 2, @@ -1352,7 +1306,6 @@ class NewBlockTemplate final : // @@protoc_insertion_point(class_scope:tari.rpc.NewBlockTemplate) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 2, @@ -1365,13 +1318,12 @@ class NewBlockTemplate final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::NewBlockHeaderTemplate* header_; @@ -1380,23 +1332,21 @@ class NewBlockTemplate final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_block_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Block final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.Block) */ { +class Block final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.Block) */ { public: inline Block() : Block(nullptr) {} ~Block() override; - template - explicit PROTOBUF_CONSTEXPR Block(::google::protobuf::internal::ConstantInitialized); - - inline Block(const Block& from) - : Block(nullptr, from) {} - Block(Block&& from) noexcept - : Block() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR Block( + ::google::protobuf::internal::ConstantInitialized); + inline Block(const Block& from) : Block(nullptr, from) {} + inline Block(Block&& from) noexcept + : Block(nullptr, std::move(from)) {} inline Block& operator=(const Block& from) { CopyFrom(from); return *this; @@ -1404,9 +1354,9 @@ class Block final : inline Block& operator=(Block&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1438,22 +1388,17 @@ class Block final : } static inline const Block* internal_default_instance() { return reinterpret_cast( - &_Block_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(Block& a, Block& b) { - a.Swap(&b); + &_Block_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(Block& a, Block& b) { a.Swap(&b); } inline void Swap(Block* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1468,51 +1413,52 @@ class Block final : // implements Message ---------------------------------------------- Block* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Block& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Block& from) { - Block::MergeImpl(*this, from); - } + void MergeFrom(const Block& from) { Block::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(Block* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.Block"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.Block"; } + + protected: explicit Block(::google::protobuf::Arena* arena); Block(::google::protobuf::Arena* arena, const Block& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + Block(::google::protobuf::Arena* arena, Block&& from) noexcept + : Block(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kHeaderFieldNumber = 1, kBodyFieldNumber = 2, @@ -1550,7 +1496,6 @@ class Block final : // @@protoc_insertion_point(class_scope:tari.rpc.Block) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 2, @@ -1563,13 +1508,12 @@ class Block final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::BlockHeader* header_; @@ -1578,23 +1522,21 @@ class Block final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_block_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class HistoricalBlock final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.HistoricalBlock) */ { +class HistoricalBlock final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.HistoricalBlock) */ { public: inline HistoricalBlock() : HistoricalBlock(nullptr) {} ~HistoricalBlock() override; - template - explicit PROTOBUF_CONSTEXPR HistoricalBlock(::google::protobuf::internal::ConstantInitialized); - - inline HistoricalBlock(const HistoricalBlock& from) - : HistoricalBlock(nullptr, from) {} - HistoricalBlock(HistoricalBlock&& from) noexcept - : HistoricalBlock() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR HistoricalBlock( + ::google::protobuf::internal::ConstantInitialized); + inline HistoricalBlock(const HistoricalBlock& from) : HistoricalBlock(nullptr, from) {} + inline HistoricalBlock(HistoricalBlock&& from) noexcept + : HistoricalBlock(nullptr, std::move(from)) {} inline HistoricalBlock& operator=(const HistoricalBlock& from) { CopyFrom(from); return *this; @@ -1602,9 +1544,9 @@ class HistoricalBlock final : inline HistoricalBlock& operator=(HistoricalBlock&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1636,22 +1578,17 @@ class HistoricalBlock final : } static inline const HistoricalBlock* internal_default_instance() { return reinterpret_cast( - &_HistoricalBlock_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(HistoricalBlock& a, HistoricalBlock& b) { - a.Swap(&b); + &_HistoricalBlock_default_instance_); } + static constexpr int kIndexInFileMessages = 4; + friend void swap(HistoricalBlock& a, HistoricalBlock& b) { a.Swap(&b); } inline void Swap(HistoricalBlock* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1666,51 +1603,52 @@ class HistoricalBlock final : // implements Message ---------------------------------------------- HistoricalBlock* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const HistoricalBlock& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const HistoricalBlock& from) { - HistoricalBlock::MergeImpl(*this, from); - } + void MergeFrom(const HistoricalBlock& from) { HistoricalBlock::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(HistoricalBlock* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.HistoricalBlock"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.HistoricalBlock"; } + + protected: explicit HistoricalBlock(::google::protobuf::Arena* arena); HistoricalBlock(::google::protobuf::Arena* arena, const HistoricalBlock& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + HistoricalBlock(::google::protobuf::Arena* arena, HistoricalBlock&& from) noexcept + : HistoricalBlock(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kBlockFieldNumber = 2, kConfirmationsFieldNumber = 1, @@ -1743,7 +1681,6 @@ class HistoricalBlock final : // @@protoc_insertion_point(class_scope:tari.rpc.HistoricalBlock) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, @@ -1756,13 +1693,12 @@ class HistoricalBlock final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::Block* block_; @@ -1803,7 +1739,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.hash) } @@ -1818,12 +1753,10 @@ inline const std::string& BlockHeader::_internal_hash() const { } inline void BlockHeader::_internal_set_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.hash_.Set(value, GetArena()); } inline std::string* BlockHeader::_internal_mutable_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.hash_.Mutable( GetArena()); } inline std::string* BlockHeader::release_hash() { @@ -1861,7 +1794,6 @@ inline ::uint32_t BlockHeader::_internal_version() const { } inline void BlockHeader::_internal_set_version(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.version_ = value; } @@ -1884,7 +1816,6 @@ inline ::uint64_t BlockHeader::_internal_height() const { } inline void BlockHeader::_internal_set_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.height_ = value; } @@ -1902,7 +1833,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_prev_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.prev_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.prev_hash) } @@ -1917,12 +1847,10 @@ inline const std::string& BlockHeader::_internal_prev_hash() const { } inline void BlockHeader::_internal_set_prev_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.prev_hash_.Set(value, GetArena()); } inline std::string* BlockHeader::_internal_mutable_prev_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.prev_hash_.Mutable( GetArena()); } inline std::string* BlockHeader::release_prev_hash() { @@ -1960,7 +1888,6 @@ inline ::uint64_t BlockHeader::_internal_timestamp() const { } inline void BlockHeader::_internal_set_timestamp(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.timestamp_ = value; } @@ -1978,7 +1905,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_output_mr(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.output_mr_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.output_mr) } @@ -1993,12 +1919,10 @@ inline const std::string& BlockHeader::_internal_output_mr() const { } inline void BlockHeader::_internal_set_output_mr(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.output_mr_.Set(value, GetArena()); } inline std::string* BlockHeader::_internal_mutable_output_mr() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.output_mr_.Mutable( GetArena()); } inline std::string* BlockHeader::release_output_mr() { @@ -2031,7 +1955,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_kernel_mr(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.kernel_mr_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.kernel_mr) } @@ -2046,12 +1969,10 @@ inline const std::string& BlockHeader::_internal_kernel_mr() const { } inline void BlockHeader::_internal_set_kernel_mr(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.kernel_mr_.Set(value, GetArena()); } inline std::string* BlockHeader::_internal_mutable_kernel_mr() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.kernel_mr_.Mutable( GetArena()); } inline std::string* BlockHeader::release_kernel_mr() { @@ -2084,7 +2005,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_input_mr(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.input_mr_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.input_mr) } @@ -2099,12 +2019,10 @@ inline const std::string& BlockHeader::_internal_input_mr() const { } inline void BlockHeader::_internal_set_input_mr(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.input_mr_.Set(value, GetArena()); } inline std::string* BlockHeader::_internal_mutable_input_mr() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.input_mr_.Mutable( GetArena()); } inline std::string* BlockHeader::release_input_mr() { @@ -2137,7 +2055,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_total_kernel_offset(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.total_kernel_offset_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.total_kernel_offset) } @@ -2152,12 +2069,10 @@ inline const std::string& BlockHeader::_internal_total_kernel_offset() const { } inline void BlockHeader::_internal_set_total_kernel_offset(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.total_kernel_offset_.Set(value, GetArena()); } inline std::string* BlockHeader::_internal_mutable_total_kernel_offset() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.total_kernel_offset_.Mutable( GetArena()); } inline std::string* BlockHeader::release_total_kernel_offset() { @@ -2195,7 +2110,6 @@ inline ::uint64_t BlockHeader::_internal_nonce() const { } inline void BlockHeader::_internal_set_nonce(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.nonce_ = value; } @@ -2262,14 +2176,14 @@ inline ::tari::rpc::ProofOfWork* BlockHeader::unsafe_arena_release_pow() { } inline ::tari::rpc::ProofOfWork* BlockHeader::_internal_mutable_pow() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.pow_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::ProofOfWork>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ProofOfWork>(GetArena()); _impl_.pow_ = reinterpret_cast<::tari::rpc::ProofOfWork*>(p); } return _impl_.pow_; } inline ::tari::rpc::ProofOfWork* BlockHeader::mutable_pow() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::ProofOfWork* _msg = _internal_mutable_pow(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.pow) return _msg; @@ -2278,11 +2192,11 @@ inline void BlockHeader::set_allocated_pow(::tari::rpc::ProofOfWork* value) { ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::ProofOfWork*>(_impl_.pow_); + delete (_impl_.pow_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::ProofOfWork*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2314,7 +2228,6 @@ inline ::uint64_t BlockHeader::_internal_kernel_mmr_size() const { } inline void BlockHeader::_internal_set_kernel_mmr_size(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.kernel_mmr_size_ = value; } @@ -2337,7 +2250,6 @@ inline ::uint64_t BlockHeader::_internal_output_mmr_size() const { } inline void BlockHeader::_internal_set_output_mmr_size(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.output_mmr_size_ = value; } @@ -2355,7 +2267,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_total_script_offset(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.total_script_offset_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.total_script_offset) } @@ -2370,12 +2281,10 @@ inline const std::string& BlockHeader::_internal_total_script_offset() const { } inline void BlockHeader::_internal_set_total_script_offset(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.total_script_offset_.Set(value, GetArena()); } inline std::string* BlockHeader::_internal_mutable_total_script_offset() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.total_script_offset_.Mutable( GetArena()); } inline std::string* BlockHeader::release_total_script_offset() { @@ -2408,7 +2317,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_validator_node_mr(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.validator_node_mr_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.validator_node_mr) } @@ -2423,12 +2331,10 @@ inline const std::string& BlockHeader::_internal_validator_node_mr() const { } inline void BlockHeader::_internal_set_validator_node_mr(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.validator_node_mr_.Set(value, GetArena()); } inline std::string* BlockHeader::_internal_mutable_validator_node_mr() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.validator_node_mr_.Mutable( GetArena()); } inline std::string* BlockHeader::release_validator_node_mr() { @@ -2466,7 +2372,6 @@ inline ::uint64_t BlockHeader::_internal_validator_node_size() const { } inline void BlockHeader::_internal_set_validator_node_size(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.validator_node_size_ = value; } @@ -2493,7 +2398,6 @@ inline ::uint64_t ProofOfWork::_internal_pow_algo() const { } inline void ProofOfWork::_internal_set_pow_algo(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.pow_algo_ = value; } @@ -2511,7 +2415,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ProofOfWork::set_pow_data(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.pow_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ProofOfWork.pow_data) } @@ -2526,12 +2429,10 @@ inline const std::string& ProofOfWork::_internal_pow_data() const { } inline void ProofOfWork::_internal_set_pow_data(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.pow_data_.Set(value, GetArena()); } inline std::string* ProofOfWork::_internal_mutable_pow_data() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.pow_data_.Mutable( GetArena()); } inline std::string* ProofOfWork::release_pow_data() { @@ -2573,7 +2474,6 @@ inline ::tari::rpc::PowAlgo_PowAlgos PowAlgo::_internal_pow_algo() const { } inline void PowAlgo::_internal_set_pow_algo(::tari::rpc::PowAlgo_PowAlgos value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.pow_algo_ = value; } @@ -2644,14 +2544,14 @@ inline ::tari::rpc::BlockHeader* Block::unsafe_arena_release_header() { } inline ::tari::rpc::BlockHeader* Block::_internal_mutable_header() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.header_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::BlockHeader>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::BlockHeader>(GetArena()); _impl_.header_ = reinterpret_cast<::tari::rpc::BlockHeader*>(p); } return _impl_.header_; } inline ::tari::rpc::BlockHeader* Block::mutable_header() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::BlockHeader* _msg = _internal_mutable_header(); // @@protoc_insertion_point(field_mutable:tari.rpc.Block.header) return _msg; @@ -2660,11 +2560,11 @@ inline void Block::set_allocated_header(::tari::rpc::BlockHeader* value) { ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::BlockHeader*>(_impl_.header_); + delete (_impl_.header_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::BlockHeader*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2735,14 +2635,14 @@ inline ::tari::rpc::AggregateBody* Block::unsafe_arena_release_body() { } inline ::tari::rpc::AggregateBody* Block::_internal_mutable_body() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; if (_impl_.body_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::AggregateBody>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::AggregateBody>(GetArena()); _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(p); } return _impl_.body_; } inline ::tari::rpc::AggregateBody* Block::mutable_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::tari::rpc::AggregateBody* _msg = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:tari.rpc.Block.body) return _msg; @@ -2791,7 +2691,6 @@ inline ::uint64_t HistoricalBlock::_internal_confirmations() const { } inline void HistoricalBlock::_internal_set_confirmations(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.confirmations_ = value; } @@ -2858,14 +2757,14 @@ inline ::tari::rpc::Block* HistoricalBlock::unsafe_arena_release_block() { } inline ::tari::rpc::Block* HistoricalBlock::_internal_mutable_block() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.block_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Block>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Block>(GetArena()); _impl_.block_ = reinterpret_cast<::tari::rpc::Block*>(p); } return _impl_.block_; } inline ::tari::rpc::Block* HistoricalBlock::mutable_block() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::Block* _msg = _internal_mutable_block(); // @@protoc_insertion_point(field_mutable:tari.rpc.HistoricalBlock.block) return _msg; @@ -2874,11 +2773,11 @@ inline void HistoricalBlock::set_allocated_block(::tari::rpc::Block* value) { ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::Block*>(_impl_.block_); + delete (_impl_.block_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::Block*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2914,7 +2813,6 @@ inline ::uint32_t NewBlockHeaderTemplate::_internal_version() const { } inline void NewBlockHeaderTemplate::_internal_set_version(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.version_ = value; } @@ -2937,7 +2835,6 @@ inline ::uint64_t NewBlockHeaderTemplate::_internal_height() const { } inline void NewBlockHeaderTemplate::_internal_set_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.height_ = value; } @@ -2955,7 +2852,6 @@ template inline PROTOBUF_ALWAYS_INLINE void NewBlockHeaderTemplate::set_prev_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.prev_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.prev_hash) } @@ -2970,12 +2866,10 @@ inline const std::string& NewBlockHeaderTemplate::_internal_prev_hash() const { } inline void NewBlockHeaderTemplate::_internal_set_prev_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.prev_hash_.Set(value, GetArena()); } inline std::string* NewBlockHeaderTemplate::_internal_mutable_prev_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.prev_hash_.Mutable( GetArena()); } inline std::string* NewBlockHeaderTemplate::release_prev_hash() { @@ -3008,7 +2902,6 @@ template inline PROTOBUF_ALWAYS_INLINE void NewBlockHeaderTemplate::set_total_kernel_offset(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.total_kernel_offset_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.total_kernel_offset) } @@ -3023,12 +2916,10 @@ inline const std::string& NewBlockHeaderTemplate::_internal_total_kernel_offset( } inline void NewBlockHeaderTemplate::_internal_set_total_kernel_offset(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.total_kernel_offset_.Set(value, GetArena()); } inline std::string* NewBlockHeaderTemplate::_internal_mutable_total_kernel_offset() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.total_kernel_offset_.Mutable( GetArena()); } inline std::string* NewBlockHeaderTemplate::release_total_kernel_offset() { @@ -3110,14 +3001,14 @@ inline ::tari::rpc::ProofOfWork* NewBlockHeaderTemplate::unsafe_arena_release_po } inline ::tari::rpc::ProofOfWork* NewBlockHeaderTemplate::_internal_mutable_pow() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.pow_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::ProofOfWork>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ProofOfWork>(GetArena()); _impl_.pow_ = reinterpret_cast<::tari::rpc::ProofOfWork*>(p); } return _impl_.pow_; } inline ::tari::rpc::ProofOfWork* NewBlockHeaderTemplate::mutable_pow() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::ProofOfWork* _msg = _internal_mutable_pow(); // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockHeaderTemplate.pow) return _msg; @@ -3126,11 +3017,11 @@ inline void NewBlockHeaderTemplate::set_allocated_pow(::tari::rpc::ProofOfWork* ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::ProofOfWork*>(_impl_.pow_); + delete (_impl_.pow_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::ProofOfWork*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3157,7 +3048,6 @@ template inline PROTOBUF_ALWAYS_INLINE void NewBlockHeaderTemplate::set_total_script_offset(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.total_script_offset_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.total_script_offset) } @@ -3172,12 +3062,10 @@ inline const std::string& NewBlockHeaderTemplate::_internal_total_script_offset( } inline void NewBlockHeaderTemplate::_internal_set_total_script_offset(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.total_script_offset_.Set(value, GetArena()); } inline std::string* NewBlockHeaderTemplate::_internal_mutable_total_script_offset() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.total_script_offset_.Mutable( GetArena()); } inline std::string* NewBlockHeaderTemplate::release_total_script_offset() { @@ -3263,14 +3151,14 @@ inline ::tari::rpc::NewBlockHeaderTemplate* NewBlockTemplate::unsafe_arena_relea } inline ::tari::rpc::NewBlockHeaderTemplate* NewBlockTemplate::_internal_mutable_header() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.header_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::NewBlockHeaderTemplate>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::NewBlockHeaderTemplate>(GetArena()); _impl_.header_ = reinterpret_cast<::tari::rpc::NewBlockHeaderTemplate*>(p); } return _impl_.header_; } inline ::tari::rpc::NewBlockHeaderTemplate* NewBlockTemplate::mutable_header() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::NewBlockHeaderTemplate* _msg = _internal_mutable_header(); // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockTemplate.header) return _msg; @@ -3279,11 +3167,11 @@ inline void NewBlockTemplate::set_allocated_header(::tari::rpc::NewBlockHeaderTe ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::NewBlockHeaderTemplate*>(_impl_.header_); + delete (_impl_.header_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::NewBlockHeaderTemplate*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3354,14 +3242,14 @@ inline ::tari::rpc::AggregateBody* NewBlockTemplate::unsafe_arena_release_body() } inline ::tari::rpc::AggregateBody* NewBlockTemplate::_internal_mutable_body() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; if (_impl_.body_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::AggregateBody>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::AggregateBody>(GetArena()); _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(p); } return _impl_.body_; } inline ::tari::rpc::AggregateBody* NewBlockTemplate::mutable_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::tari::rpc::AggregateBody* _msg = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockTemplate.body) return _msg; diff --git a/external/src/Tari/proto/gRPC/network.pb.cc b/external/src/Tari/proto/gRPC/network.pb.cc index 4431cc8..0181947 100644 --- a/external/src/Tari/proto/gRPC/network.pb.cc +++ b/external/src/Tari/proto/gRPC/network.pb.cc @@ -1,5 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: network.proto +// Protobuf C++ Version: 5.26.0-rc1 #include "network.pb.h" @@ -223,105 +224,106 @@ static ::_pb::Metadata file_level_metadata_network_2eproto[8]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_network_2eproto[1]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_network_2eproto = nullptr; -const ::uint32_t TableStruct_network_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::NodeIdentity, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::NodeIdentity, _impl_.public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NodeIdentity, _impl_.public_addresses_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NodeIdentity, _impl_.node_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.node_id_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.addresses_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.last_connection_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.flags_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.banned_until_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.banned_reason_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.offline_at_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.supported_protocols_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.user_agent_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkStatusResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkStatusResponse, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkStatusResponse, _impl_.avg_latency_ms_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkStatusResponse, _impl_.num_node_connections_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_.address_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_.last_seen_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_.connection_attempts_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_.avg_latency_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListConnectedPeersResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListConnectedPeersResponse, _impl_.connected_peers_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _impl_.has_update_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _impl_.sha_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _impl_.download_url_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityResponse, _impl_.public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityResponse, _impl_.public_address_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityResponse, _impl_.node_id_), +const ::uint32_t + TableStruct_network_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::NodeIdentity, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::NodeIdentity, _impl_.public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NodeIdentity, _impl_.public_addresses_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NodeIdentity, _impl_.node_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.node_id_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.addresses_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.last_connection_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.flags_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.banned_until_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.banned_reason_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.offline_at_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.features_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.supported_protocols_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.user_agent_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkStatusResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkStatusResponse, _impl_.status_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkStatusResponse, _impl_.avg_latency_ms_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkStatusResponse, _impl_.num_node_connections_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_.address_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_.last_seen_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_.connection_attempts_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_.avg_latency_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListConnectedPeersResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListConnectedPeersResponse, _impl_.connected_peers_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _impl_.has_update_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _impl_.sha_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _impl_.download_url_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityResponse, _impl_.public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityResponse, _impl_.public_address_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityResponse, _impl_.node_id_), }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::tari::rpc::NodeIdentity)}, {11, -1, -1, sizeof(::tari::rpc::Peer)}, {30, -1, -1, sizeof(::tari::rpc::NetworkStatusResponse)}, @@ -331,7 +333,6 @@ static const ::_pbi::MigrationSchema {74, -1, -1, sizeof(::tari::rpc::GetIdentityRequest)}, {82, -1, -1, sizeof(::tari::rpc::GetIdentityResponse)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_NodeIdentity_default_instance_._instance, &::tari::rpc::_Peer_default_instance_._instance, @@ -342,7 +343,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_GetIdentityRequest_default_instance_._instance, &::tari::rpc::_GetIdentityResponse_default_instance_._instance, }; -const char descriptor_table_protodef_network_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_network_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\rnetwork.proto\022\010tari.rpc\032\037google/protob" "uf/timestamp.proto\"M\n\014NodeIdentity\022\022\n\npu" "blic_key\030\001 \001(\014\022\030\n\020public_addresses\030\002 \003(\t" @@ -406,9 +408,6 @@ const ::_pbi::DescriptorTable descriptor_table_network_2eproto = { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_network_2eproto_getter() { return &descriptor_table_network_2eproto; } -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_network_2eproto(&descriptor_table_network_2eproto); namespace tari { namespace rpc { const ::google::protobuf::EnumDescriptor* ConnectivityStatus_descriptor() { @@ -474,6 +473,20 @@ inline void NodeIdentity::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +NodeIdentity::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_._cached_size_), + false, + }, + &NodeIdentity::MergeImpl, + &NodeIdentity::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void NodeIdentity::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.NodeIdentity) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -508,6 +521,9 @@ const ::_pbi::TcParseTable<2, 3, 0, 46, 2> NodeIdentity::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_NodeIdentity_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::NodeIdentity>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes public_key = 1; @@ -605,15 +621,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 46, 2> NodeIdentity::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData NodeIdentity::_class_data_ = { - NodeIdentity::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* NodeIdentity::GetClassData() const { - return &_class_data_; -} -void NodeIdentity::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void NodeIdentity::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.NodeIdentity) @@ -642,9 +651,6 @@ PROTOBUF_NOINLINE bool NodeIdentity::IsInitialized() const { return true; } -::_pbi::CachedSize* NodeIdentity::AccessCachedSize() const { - return &_impl_._cached_size_; -} void NodeIdentity::InternalSwap(NodeIdentity* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -656,9 +662,9 @@ void NodeIdentity::InternalSwap(NodeIdentity* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata NodeIdentity::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_network_2eproto_getter, &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[0]); + return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, + &descriptor_table_network_2eproto_once, + file_level_metadata_network_2eproto[0]); } // =================================================================== @@ -735,6 +741,20 @@ inline void Peer::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +Peer::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Peer, _impl_._cached_size_), + false, + }, + &Peer::MergeImpl, + &Peer::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void Peer::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.Peer) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -775,6 +795,9 @@ const ::_pbi::TcParseTable<4, 11, 1, 53, 2> Peer::_table_ = { offsetof(decltype(_table_), aux_entries), &_Peer_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::Peer>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes public_key = 1; @@ -880,11 +903,14 @@ const ::_pbi::TcParseTable<4, 11, 1, 53, 2> Peer::_table_ = { } // repeated .tari.rpc.Address addresses = 3; - for (unsigned i = 0, - n = static_cast(this->_internal_addresses_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_addresses_size()); + i < n; i++) { const auto& repfield = this->_internal_addresses().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); } // uint64 last_connection = 4; @@ -964,8 +990,7 @@ const ::_pbi::TcParseTable<4, 11, 1, 53, 2> Peer::_table_ = { // repeated .tari.rpc.Address addresses = 3; total_size += 1UL * this->_internal_addresses_size(); for (const auto& msg : this->_internal_addresses()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // repeated bytes supported_protocols = 11; total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_supported_protocols().size()); @@ -1030,15 +1055,8 @@ const ::_pbi::TcParseTable<4, 11, 1, 53, 2> Peer::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData Peer::_class_data_ = { - Peer::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Peer::GetClassData() const { - return &_class_data_; -} -void Peer::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void Peer::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.Peer) @@ -1062,19 +1080,19 @@ void Peer::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protob _this->_internal_set_user_agent(from._internal_user_agent()); } if (from._internal_last_connection() != 0) { - _this->_internal_set_last_connection(from._internal_last_connection()); + _this->_impl_.last_connection_ = from._impl_.last_connection_; } if (from._internal_banned_until() != 0) { - _this->_internal_set_banned_until(from._internal_banned_until()); + _this->_impl_.banned_until_ = from._impl_.banned_until_; } if (from._internal_flags() != 0) { - _this->_internal_set_flags(from._internal_flags()); + _this->_impl_.flags_ = from._impl_.flags_; } if (from._internal_features() != 0) { - _this->_internal_set_features(from._internal_features()); + _this->_impl_.features_ = from._impl_.features_; } if (from._internal_offline_at() != 0) { - _this->_internal_set_offline_at(from._internal_offline_at()); + _this->_impl_.offline_at_ = from._impl_.offline_at_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1090,9 +1108,6 @@ PROTOBUF_NOINLINE bool Peer::IsInitialized() const { return true; } -::_pbi::CachedSize* Peer::AccessCachedSize() const { - return &_impl_._cached_size_; -} void Peer::InternalSwap(Peer* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -1113,9 +1128,9 @@ void Peer::InternalSwap(Peer* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata Peer::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_network_2eproto_getter, &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[1]); + return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, + &descriptor_table_network_2eproto_once, + file_level_metadata_network_2eproto[1]); } // =================================================================== @@ -1157,6 +1172,20 @@ inline void NetworkStatusResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +NetworkStatusResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_._cached_size_), + false, + }, + &NetworkStatusResponse::MergeImpl, + &NetworkStatusResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void NetworkStatusResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.NetworkStatusResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1191,6 +1220,9 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> NetworkStatusResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_NetworkStatusResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::NetworkStatusResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // .tari.rpc.ConnectivityStatus status = 1; @@ -1286,15 +1318,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> NetworkStatusResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData NetworkStatusResponse::_class_data_ = { - NetworkStatusResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* NetworkStatusResponse::GetClassData() const { - return &_class_data_; -} -void NetworkStatusResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void NetworkStatusResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.NetworkStatusResponse) @@ -1303,13 +1328,13 @@ void NetworkStatusResponse::MergeImpl(::google::protobuf::Message& to_msg, const (void) cached_has_bits; if (from._internal_status() != 0) { - _this->_internal_set_status(from._internal_status()); + _this->_impl_.status_ = from._impl_.status_; } if (from._internal_avg_latency_ms() != 0) { - _this->_internal_set_avg_latency_ms(from._internal_avg_latency_ms()); + _this->_impl_.avg_latency_ms_ = from._impl_.avg_latency_ms_; } if (from._internal_num_node_connections() != 0) { - _this->_internal_set_num_node_connections(from._internal_num_node_connections()); + _this->_impl_.num_node_connections_ = from._impl_.num_node_connections_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1325,9 +1350,6 @@ PROTOBUF_NOINLINE bool NetworkStatusResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* NetworkStatusResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void NetworkStatusResponse::InternalSwap(NetworkStatusResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1340,9 +1362,9 @@ void NetworkStatusResponse::InternalSwap(NetworkStatusResponse* PROTOBUF_RESTRIC } ::google::protobuf::Metadata NetworkStatusResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_network_2eproto_getter, &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[2]); + return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, + &descriptor_table_network_2eproto_once, + file_level_metadata_network_2eproto[2]); } // =================================================================== @@ -1409,6 +1431,20 @@ inline void Address::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +Address::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Address, _impl_._cached_size_), + false, + }, + &Address::MergeImpl, + &Address::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void Address::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.Address) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1445,6 +1481,9 @@ const ::_pbi::TcParseTable<3, 4, 0, 34, 2> Address::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_Address_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::Address>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes address = 1; @@ -1565,15 +1604,8 @@ const ::_pbi::TcParseTable<3, 4, 0, 34, 2> Address::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData Address::_class_data_ = { - Address::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Address::GetClassData() const { - return &_class_data_; -} -void Address::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void Address::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.Address) @@ -1588,10 +1620,10 @@ void Address::MergeImpl(::google::protobuf::Message& to_msg, const ::google::pro _this->_internal_set_last_seen(from._internal_last_seen()); } if (from._internal_avg_latency() != 0) { - _this->_internal_set_avg_latency(from._internal_avg_latency()); + _this->_impl_.avg_latency_ = from._impl_.avg_latency_; } if (from._internal_connection_attempts() != 0) { - _this->_internal_set_connection_attempts(from._internal_connection_attempts()); + _this->_impl_.connection_attempts_ = from._impl_.connection_attempts_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1607,9 +1639,6 @@ PROTOBUF_NOINLINE bool Address::IsInitialized() const { return true; } -::_pbi::CachedSize* Address::AccessCachedSize() const { - return &_impl_._cached_size_; -} void Address::InternalSwap(Address* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -1626,9 +1655,9 @@ void Address::InternalSwap(Address* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata Address::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_network_2eproto_getter, &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[3]); + return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, + &descriptor_table_network_2eproto_once, + file_level_metadata_network_2eproto[3]); } // =================================================================== @@ -1678,6 +1707,20 @@ inline void ListConnectedPeersResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +ListConnectedPeersResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(ListConnectedPeersResponse, _impl_._cached_size_), + false, + }, + &ListConnectedPeersResponse::MergeImpl, + &ListConnectedPeersResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void ListConnectedPeersResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.ListConnectedPeersResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1710,6 +1753,9 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListConnectedPeersResponse::_table_ = offsetof(decltype(_table_), aux_entries), &_ListConnectedPeersResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ListConnectedPeersResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated .tari.rpc.Peer connected_peers = 1; {::_pbi::TcParser::FastMtR1, @@ -1734,11 +1780,14 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListConnectedPeersResponse::_table_ = (void)cached_has_bits; // repeated .tari.rpc.Peer connected_peers = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_connected_peers_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_connected_peers_size()); + i < n; i++) { const auto& repfield = this->_internal_connected_peers().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1761,21 +1810,13 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListConnectedPeersResponse::_table_ = // repeated .tari.rpc.Peer connected_peers = 1; total_size += 1UL * this->_internal_connected_peers_size(); for (const auto& msg : this->_internal_connected_peers()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData ListConnectedPeersResponse::_class_data_ = { - ListConnectedPeersResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ListConnectedPeersResponse::GetClassData() const { - return &_class_data_; -} -void ListConnectedPeersResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void ListConnectedPeersResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.ListConnectedPeersResponse) @@ -1799,9 +1840,6 @@ PROTOBUF_NOINLINE bool ListConnectedPeersResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* ListConnectedPeersResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ListConnectedPeersResponse::InternalSwap(ListConnectedPeersResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1809,9 +1847,9 @@ void ListConnectedPeersResponse::InternalSwap(ListConnectedPeersResponse* PROTOB } ::google::protobuf::Metadata ListConnectedPeersResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_network_2eproto_getter, &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[4]); + return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, + &descriptor_table_network_2eproto_once, + file_level_metadata_network_2eproto[4]); } // =================================================================== @@ -1870,6 +1908,20 @@ inline void SoftwareUpdate::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +SoftwareUpdate::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_._cached_size_), + false, + }, + &SoftwareUpdate::MergeImpl, + &SoftwareUpdate::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void SoftwareUpdate::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.SoftwareUpdate) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1905,6 +1957,9 @@ const ::_pbi::TcParseTable<2, 4, 0, 54, 2> SoftwareUpdate::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_SoftwareUpdate_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SoftwareUpdate>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // string download_url = 4; {::_pbi::TcParser::FastUS1, @@ -2025,15 +2080,8 @@ const ::_pbi::TcParseTable<2, 4, 0, 54, 2> SoftwareUpdate::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData SoftwareUpdate::_class_data_ = { - SoftwareUpdate::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SoftwareUpdate::GetClassData() const { - return &_class_data_; -} -void SoftwareUpdate::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void SoftwareUpdate::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.SoftwareUpdate) @@ -2051,7 +2099,7 @@ void SoftwareUpdate::MergeImpl(::google::protobuf::Message& to_msg, const ::goog _this->_internal_set_download_url(from._internal_download_url()); } if (from._internal_has_update() != 0) { - _this->_internal_set_has_update(from._internal_has_update()); + _this->_impl_.has_update_ = from._impl_.has_update_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2067,9 +2115,6 @@ PROTOBUF_NOINLINE bool SoftwareUpdate::IsInitialized() const { return true; } -::_pbi::CachedSize* SoftwareUpdate::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SoftwareUpdate::InternalSwap(SoftwareUpdate* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -2082,9 +2127,9 @@ void SoftwareUpdate::InternalSwap(SoftwareUpdate* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata SoftwareUpdate::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_network_2eproto_getter, &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[5]); + return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, + &descriptor_table_network_2eproto_once, + file_level_metadata_network_2eproto[5]); } // =================================================================== @@ -2117,9 +2162,9 @@ GetIdentityRequest::GetIdentityRequest( ::google::protobuf::Metadata GetIdentityRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_network_2eproto_getter, &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[6]); + return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, + &descriptor_table_network_2eproto_once, + file_level_metadata_network_2eproto[6]); } // =================================================================== @@ -2176,6 +2221,20 @@ inline void GetIdentityResponse::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetIdentityResponse::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_._cached_size_), + false, + }, + &GetIdentityResponse::MergeImpl, + &GetIdentityResponse::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetIdentityResponse::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetIdentityResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2210,6 +2269,9 @@ const ::_pbi::TcParseTable<2, 3, 0, 51, 2> GetIdentityResponse::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_GetIdentityResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetIdentityResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes public_key = 1; @@ -2307,15 +2369,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 51, 2> GetIdentityResponse::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetIdentityResponse::_class_data_ = { - GetIdentityResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetIdentityResponse::GetClassData() const { - return &_class_data_; -} -void GetIdentityResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetIdentityResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.GetIdentityResponse) @@ -2346,9 +2401,6 @@ PROTOBUF_NOINLINE bool GetIdentityResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetIdentityResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetIdentityResponse::InternalSwap(GetIdentityResponse* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -2360,9 +2412,9 @@ void GetIdentityResponse::InternalSwap(GetIdentityResponse* PROTOBUF_RESTRICT ot } ::google::protobuf::Metadata GetIdentityResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_network_2eproto_getter, &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[7]); + return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, + &descriptor_table_network_2eproto_once, + file_level_metadata_network_2eproto[7]); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -2372,4 +2424,8 @@ namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::std::false_type _static_init_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_network_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/external/src/Tari/proto/gRPC/network.pb.h b/external/src/Tari/proto/gRPC/network.pb.h index f9cfdf7..4d97f2a 100644 --- a/external/src/Tari/proto/gRPC/network.pb.h +++ b/external/src/Tari/proto/gRPC/network.pb.h @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: network.proto -// Protobuf C++ Version: 4.25.2 +// Protobuf C++ Version: 5.26.0-rc1 #ifndef GOOGLE_PROTOBUF_INCLUDED_network_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_network_2eproto_2epb_2eh @@ -11,17 +11,11 @@ #include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#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 // PROTOBUF_VERSION - -#if 4025002 < 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 // PROTOBUF_MIN_PROTOC_VERSION +#if PROTOBUF_VERSION != 5026000 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" @@ -134,21 +128,18 @@ inline bool ConnectivityStatus_Parse(absl::string_view name, ConnectivityStatus* // ------------------------------------------------------------------- -class SoftwareUpdate final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SoftwareUpdate) */ { +class SoftwareUpdate final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SoftwareUpdate) */ { public: inline SoftwareUpdate() : SoftwareUpdate(nullptr) {} ~SoftwareUpdate() override; - template - explicit PROTOBUF_CONSTEXPR SoftwareUpdate(::google::protobuf::internal::ConstantInitialized); - - inline SoftwareUpdate(const SoftwareUpdate& from) - : SoftwareUpdate(nullptr, from) {} - SoftwareUpdate(SoftwareUpdate&& from) noexcept - : SoftwareUpdate() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR SoftwareUpdate( + ::google::protobuf::internal::ConstantInitialized); + inline SoftwareUpdate(const SoftwareUpdate& from) : SoftwareUpdate(nullptr, from) {} + inline SoftwareUpdate(SoftwareUpdate&& from) noexcept + : SoftwareUpdate(nullptr, std::move(from)) {} inline SoftwareUpdate& operator=(const SoftwareUpdate& from) { CopyFrom(from); return *this; @@ -156,9 +147,9 @@ class SoftwareUpdate final : inline SoftwareUpdate& operator=(SoftwareUpdate&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -190,22 +181,17 @@ class SoftwareUpdate final : } static inline const SoftwareUpdate* internal_default_instance() { return reinterpret_cast( - &_SoftwareUpdate_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(SoftwareUpdate& a, SoftwareUpdate& b) { - a.Swap(&b); + &_SoftwareUpdate_default_instance_); } + static constexpr int kIndexInFileMessages = 5; + friend void swap(SoftwareUpdate& a, SoftwareUpdate& b) { a.Swap(&b); } inline void Swap(SoftwareUpdate* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -220,51 +206,52 @@ class SoftwareUpdate final : // implements Message ---------------------------------------------- SoftwareUpdate* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SoftwareUpdate& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SoftwareUpdate& from) { - SoftwareUpdate::MergeImpl(*this, from); - } + void MergeFrom(const SoftwareUpdate& from) { SoftwareUpdate::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(SoftwareUpdate* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.SoftwareUpdate"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.SoftwareUpdate"; } + + protected: explicit SoftwareUpdate(::google::protobuf::Arena* arena); SoftwareUpdate(::google::protobuf::Arena* arena, const SoftwareUpdate& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + SoftwareUpdate(::google::protobuf::Arena* arena, SoftwareUpdate&& from) noexcept + : SoftwareUpdate(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kVersionFieldNumber = 2, kShaFieldNumber = 3, @@ -332,7 +319,6 @@ class SoftwareUpdate final : // @@protoc_insertion_point(class_scope:tari.rpc.SoftwareUpdate) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 4, 0, @@ -345,13 +331,12 @@ class SoftwareUpdate final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr version_; ::google::protobuf::internal::ArenaStringPtr sha_; ::google::protobuf::internal::ArenaStringPtr download_url_; @@ -361,23 +346,21 @@ class SoftwareUpdate final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NodeIdentity final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NodeIdentity) */ { +class NodeIdentity final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.NodeIdentity) */ { public: inline NodeIdentity() : NodeIdentity(nullptr) {} ~NodeIdentity() override; - template - explicit PROTOBUF_CONSTEXPR NodeIdentity(::google::protobuf::internal::ConstantInitialized); - - inline NodeIdentity(const NodeIdentity& from) - : NodeIdentity(nullptr, from) {} - NodeIdentity(NodeIdentity&& from) noexcept - : NodeIdentity() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR NodeIdentity( + ::google::protobuf::internal::ConstantInitialized); + inline NodeIdentity(const NodeIdentity& from) : NodeIdentity(nullptr, from) {} + inline NodeIdentity(NodeIdentity&& from) noexcept + : NodeIdentity(nullptr, std::move(from)) {} inline NodeIdentity& operator=(const NodeIdentity& from) { CopyFrom(from); return *this; @@ -385,9 +368,9 @@ class NodeIdentity final : inline NodeIdentity& operator=(NodeIdentity&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -419,22 +402,17 @@ class NodeIdentity final : } static inline const NodeIdentity* internal_default_instance() { return reinterpret_cast( - &_NodeIdentity_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(NodeIdentity& a, NodeIdentity& b) { - a.Swap(&b); + &_NodeIdentity_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(NodeIdentity& a, NodeIdentity& b) { a.Swap(&b); } inline void Swap(NodeIdentity* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -449,51 +427,52 @@ class NodeIdentity final : // implements Message ---------------------------------------------- NodeIdentity* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const NodeIdentity& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NodeIdentity& from) { - NodeIdentity::MergeImpl(*this, from); - } + void MergeFrom(const NodeIdentity& from) { NodeIdentity::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(NodeIdentity* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.NodeIdentity"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.NodeIdentity"; } + + protected: explicit NodeIdentity(::google::protobuf::Arena* arena); NodeIdentity(::google::protobuf::Arena* arena, const NodeIdentity& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + NodeIdentity(::google::protobuf::Arena* arena, NodeIdentity&& from) noexcept + : NodeIdentity(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kPublicAddressesFieldNumber = 2, kPublicKeyFieldNumber = 1, @@ -562,7 +541,6 @@ class NodeIdentity final : // @@protoc_insertion_point(class_scope:tari.rpc.NodeIdentity) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, @@ -575,13 +553,12 @@ class NodeIdentity final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField public_addresses_; ::google::protobuf::internal::ArenaStringPtr public_key_; ::google::protobuf::internal::ArenaStringPtr node_id_; @@ -590,23 +567,21 @@ class NodeIdentity final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class NetworkStatusResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NetworkStatusResponse) */ { +class NetworkStatusResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.NetworkStatusResponse) */ { public: inline NetworkStatusResponse() : NetworkStatusResponse(nullptr) {} ~NetworkStatusResponse() override; - template - explicit PROTOBUF_CONSTEXPR NetworkStatusResponse(::google::protobuf::internal::ConstantInitialized); - - inline NetworkStatusResponse(const NetworkStatusResponse& from) - : NetworkStatusResponse(nullptr, from) {} - NetworkStatusResponse(NetworkStatusResponse&& from) noexcept - : NetworkStatusResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR NetworkStatusResponse( + ::google::protobuf::internal::ConstantInitialized); + inline NetworkStatusResponse(const NetworkStatusResponse& from) : NetworkStatusResponse(nullptr, from) {} + inline NetworkStatusResponse(NetworkStatusResponse&& from) noexcept + : NetworkStatusResponse(nullptr, std::move(from)) {} inline NetworkStatusResponse& operator=(const NetworkStatusResponse& from) { CopyFrom(from); return *this; @@ -614,9 +589,9 @@ class NetworkStatusResponse final : inline NetworkStatusResponse& operator=(NetworkStatusResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -648,22 +623,17 @@ class NetworkStatusResponse final : } static inline const NetworkStatusResponse* internal_default_instance() { return reinterpret_cast( - &_NetworkStatusResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(NetworkStatusResponse& a, NetworkStatusResponse& b) { - a.Swap(&b); + &_NetworkStatusResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(NetworkStatusResponse& a, NetworkStatusResponse& b) { a.Swap(&b); } inline void Swap(NetworkStatusResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -678,51 +648,52 @@ class NetworkStatusResponse final : // implements Message ---------------------------------------------- NetworkStatusResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const NetworkStatusResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NetworkStatusResponse& from) { - NetworkStatusResponse::MergeImpl(*this, from); - } + void MergeFrom(const NetworkStatusResponse& from) { NetworkStatusResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(NetworkStatusResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.NetworkStatusResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.NetworkStatusResponse"; } + + protected: explicit NetworkStatusResponse(::google::protobuf::Arena* arena); NetworkStatusResponse(::google::protobuf::Arena* arena, const NetworkStatusResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + NetworkStatusResponse(::google::protobuf::Arena* arena, NetworkStatusResponse&& from) noexcept + : NetworkStatusResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kStatusFieldNumber = 1, kAvgLatencyMsFieldNumber = 2, @@ -761,7 +732,6 @@ class NetworkStatusResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.NetworkStatusResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, @@ -774,13 +744,12 @@ class NetworkStatusResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); int status_; ::uint32_t avg_latency_ms_; ::uint32_t num_node_connections_; @@ -789,23 +758,21 @@ class NetworkStatusResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetIdentityResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetIdentityResponse) */ { +class GetIdentityResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetIdentityResponse) */ { public: inline GetIdentityResponse() : GetIdentityResponse(nullptr) {} ~GetIdentityResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetIdentityResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetIdentityResponse(const GetIdentityResponse& from) - : GetIdentityResponse(nullptr, from) {} - GetIdentityResponse(GetIdentityResponse&& from) noexcept - : GetIdentityResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetIdentityResponse( + ::google::protobuf::internal::ConstantInitialized); + inline GetIdentityResponse(const GetIdentityResponse& from) : GetIdentityResponse(nullptr, from) {} + inline GetIdentityResponse(GetIdentityResponse&& from) noexcept + : GetIdentityResponse(nullptr, std::move(from)) {} inline GetIdentityResponse& operator=(const GetIdentityResponse& from) { CopyFrom(from); return *this; @@ -813,9 +780,9 @@ class GetIdentityResponse final : inline GetIdentityResponse& operator=(GetIdentityResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -847,22 +814,17 @@ class GetIdentityResponse final : } static inline const GetIdentityResponse* internal_default_instance() { return reinterpret_cast( - &_GetIdentityResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(GetIdentityResponse& a, GetIdentityResponse& b) { - a.Swap(&b); + &_GetIdentityResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 7; + friend void swap(GetIdentityResponse& a, GetIdentityResponse& b) { a.Swap(&b); } inline void Swap(GetIdentityResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -877,51 +839,52 @@ class GetIdentityResponse final : // implements Message ---------------------------------------------- GetIdentityResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetIdentityResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetIdentityResponse& from) { - GetIdentityResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetIdentityResponse& from) { GetIdentityResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(GetIdentityResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetIdentityResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetIdentityResponse"; } + + protected: explicit GetIdentityResponse(::google::protobuf::Arena* arena); GetIdentityResponse(::google::protobuf::Arena* arena, const GetIdentityResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetIdentityResponse(::google::protobuf::Arena* arena, GetIdentityResponse&& from) noexcept + : GetIdentityResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kPublicKeyFieldNumber = 1, kPublicAddressFieldNumber = 2, @@ -978,7 +941,6 @@ class GetIdentityResponse final : // @@protoc_insertion_point(class_scope:tari.rpc.GetIdentityResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, @@ -991,13 +953,12 @@ class GetIdentityResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr public_key_; ::google::protobuf::internal::ArenaStringPtr public_address_; ::google::protobuf::internal::ArenaStringPtr node_id_; @@ -1006,22 +967,20 @@ class GetIdentityResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetIdentityRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:tari.rpc.GetIdentityRequest) */ { +class GetIdentityRequest final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:tari.rpc.GetIdentityRequest) */ { public: inline GetIdentityRequest() : GetIdentityRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetIdentityRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetIdentityRequest(const GetIdentityRequest& from) - : GetIdentityRequest(nullptr, from) {} - GetIdentityRequest(GetIdentityRequest&& from) noexcept - : GetIdentityRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetIdentityRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetIdentityRequest(const GetIdentityRequest& from) : GetIdentityRequest(nullptr, from) {} + inline GetIdentityRequest(GetIdentityRequest&& from) noexcept + : GetIdentityRequest(nullptr, std::move(from)) {} inline GetIdentityRequest& operator=(const GetIdentityRequest& from) { CopyFrom(from); return *this; @@ -1029,9 +988,9 @@ class GetIdentityRequest final : inline GetIdentityRequest& operator=(GetIdentityRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1063,22 +1022,17 @@ class GetIdentityRequest final : } static inline const GetIdentityRequest* internal_default_instance() { return reinterpret_cast( - &_GetIdentityRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(GetIdentityRequest& a, GetIdentityRequest& b) { - a.Swap(&b); + &_GetIdentityRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 6; + friend void swap(GetIdentityRequest& a, GetIdentityRequest& b) { a.Swap(&b); } inline void Swap(GetIdentityRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1093,7 +1047,7 @@ class GetIdentityRequest final : // implements Message ---------------------------------------------- GetIdentityRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const GetIdentityRequest& from) { @@ -1103,28 +1057,28 @@ class GetIdentityRequest final : void MergeFrom(const GetIdentityRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: + public: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetIdentityRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetIdentityRequest"; } + + protected: explicit GetIdentityRequest(::google::protobuf::Arena* arena); GetIdentityRequest(::google::protobuf::Arena* arena, const GetIdentityRequest& from); - public: + GetIdentityRequest(::google::protobuf::Arena* arena, GetIdentityRequest&& from) noexcept + : GetIdentityRequest(arena) { + *this = ::std::move(from); + } + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:tari.rpc.GetIdentityRequest) private: class _Internal; - friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1132,33 +1086,30 @@ class GetIdentityRequest final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_network_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Address final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.Address) */ { +class Address final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.Address) */ { public: inline Address() : Address(nullptr) {} ~Address() override; - template - explicit PROTOBUF_CONSTEXPR Address(::google::protobuf::internal::ConstantInitialized); - - inline Address(const Address& from) - : Address(nullptr, from) {} - Address(Address&& from) noexcept - : Address() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR Address( + ::google::protobuf::internal::ConstantInitialized); + inline Address(const Address& from) : Address(nullptr, from) {} + inline Address(Address&& from) noexcept + : Address(nullptr, std::move(from)) {} inline Address& operator=(const Address& from) { CopyFrom(from); return *this; @@ -1166,9 +1117,9 @@ class Address final : inline Address& operator=(Address&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1200,22 +1151,17 @@ class Address final : } static inline const Address* internal_default_instance() { return reinterpret_cast( - &_Address_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(Address& a, Address& b) { - a.Swap(&b); + &_Address_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(Address& a, Address& b) { a.Swap(&b); } inline void Swap(Address* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1230,51 +1176,52 @@ class Address final : // implements Message ---------------------------------------------- Address* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage
(arena); + return ::google::protobuf::Message::DefaultConstruct
(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Address& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Address& from) { - Address::MergeImpl(*this, from); - } + void MergeFrom(const Address& from) { Address::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(Address* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.Address"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.Address"; } + + protected: explicit Address(::google::protobuf::Arena* arena); Address(::google::protobuf::Arena* arena, const Address& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + Address(::google::protobuf::Arena* arena, Address&& from) noexcept + : Address(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAddressFieldNumber = 1, kLastSeenFieldNumber = 2, @@ -1336,7 +1283,6 @@ class Address final : // @@protoc_insertion_point(class_scope:tari.rpc.Address) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 4, 0, @@ -1349,13 +1295,12 @@ class Address final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr address_; ::google::protobuf::internal::ArenaStringPtr last_seen_; ::uint64_t avg_latency_; @@ -1365,23 +1310,21 @@ class Address final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Peer final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.Peer) */ { +class Peer final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.Peer) */ { public: inline Peer() : Peer(nullptr) {} ~Peer() override; - template - explicit PROTOBUF_CONSTEXPR Peer(::google::protobuf::internal::ConstantInitialized); - - inline Peer(const Peer& from) - : Peer(nullptr, from) {} - Peer(Peer&& from) noexcept - : Peer() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR Peer( + ::google::protobuf::internal::ConstantInitialized); + inline Peer(const Peer& from) : Peer(nullptr, from) {} + inline Peer(Peer&& from) noexcept + : Peer(nullptr, std::move(from)) {} inline Peer& operator=(const Peer& from) { CopyFrom(from); return *this; @@ -1389,9 +1332,9 @@ class Peer final : inline Peer& operator=(Peer&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1423,22 +1366,17 @@ class Peer final : } static inline const Peer* internal_default_instance() { return reinterpret_cast( - &_Peer_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Peer& a, Peer& b) { - a.Swap(&b); + &_Peer_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(Peer& a, Peer& b) { a.Swap(&b); } inline void Swap(Peer* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1453,51 +1391,52 @@ class Peer final : // implements Message ---------------------------------------------- Peer* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Peer& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Peer& from) { - Peer::MergeImpl(*this, from); - } + void MergeFrom(const Peer& from) { Peer::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(Peer* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.Peer"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.Peer"; } + + protected: explicit Peer(::google::protobuf::Arena* arena); Peer(::google::protobuf::Arena* arena, const Peer& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + Peer(::google::protobuf::Arena* arena, Peer&& from) noexcept + : Peer(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAddressesFieldNumber = 3, kSupportedProtocolsFieldNumber = 11, @@ -1519,16 +1458,15 @@ class Peer final : public: void clear_addresses() ; ::tari::rpc::Address* mutable_addresses(int index); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::Address >* - mutable_addresses(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* mutable_addresses(); + private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>& _internal_addresses() const; ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* _internal_mutable_addresses(); public: const ::tari::rpc::Address& addresses(int index) const; ::tari::rpc::Address* add_addresses(); - const ::google::protobuf::RepeatedPtrField< ::tari::rpc::Address >& - addresses() const; + const ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>& addresses() const; // repeated bytes supported_protocols = 11; int supported_protocols_size() const; private: @@ -1674,7 +1612,6 @@ class Peer final : // @@protoc_insertion_point(class_scope:tari.rpc.Peer) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 4, 11, 1, @@ -1687,13 +1624,12 @@ class Peer final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField< ::tari::rpc::Address > addresses_; ::google::protobuf::RepeatedPtrField supported_protocols_; ::google::protobuf::internal::ArenaStringPtr public_key_; @@ -1710,23 +1646,21 @@ class Peer final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ListConnectedPeersResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ListConnectedPeersResponse) */ { +class ListConnectedPeersResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ListConnectedPeersResponse) */ { public: inline ListConnectedPeersResponse() : ListConnectedPeersResponse(nullptr) {} ~ListConnectedPeersResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListConnectedPeersResponse(::google::protobuf::internal::ConstantInitialized); - - inline ListConnectedPeersResponse(const ListConnectedPeersResponse& from) - : ListConnectedPeersResponse(nullptr, from) {} - ListConnectedPeersResponse(ListConnectedPeersResponse&& from) noexcept - : ListConnectedPeersResponse() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR ListConnectedPeersResponse( + ::google::protobuf::internal::ConstantInitialized); + inline ListConnectedPeersResponse(const ListConnectedPeersResponse& from) : ListConnectedPeersResponse(nullptr, from) {} + inline ListConnectedPeersResponse(ListConnectedPeersResponse&& from) noexcept + : ListConnectedPeersResponse(nullptr, std::move(from)) {} inline ListConnectedPeersResponse& operator=(const ListConnectedPeersResponse& from) { CopyFrom(from); return *this; @@ -1734,9 +1668,9 @@ class ListConnectedPeersResponse final : inline ListConnectedPeersResponse& operator=(ListConnectedPeersResponse&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1768,22 +1702,17 @@ class ListConnectedPeersResponse final : } static inline const ListConnectedPeersResponse* internal_default_instance() { return reinterpret_cast( - &_ListConnectedPeersResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(ListConnectedPeersResponse& a, ListConnectedPeersResponse& b) { - a.Swap(&b); + &_ListConnectedPeersResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 4; + friend void swap(ListConnectedPeersResponse& a, ListConnectedPeersResponse& b) { a.Swap(&b); } inline void Swap(ListConnectedPeersResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1798,51 +1727,52 @@ class ListConnectedPeersResponse final : // implements Message ---------------------------------------------- ListConnectedPeersResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ListConnectedPeersResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ListConnectedPeersResponse& from) { - ListConnectedPeersResponse::MergeImpl(*this, from); - } + void MergeFrom(const ListConnectedPeersResponse& from) { ListConnectedPeersResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(ListConnectedPeersResponse* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.ListConnectedPeersResponse"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.ListConnectedPeersResponse"; } + + protected: explicit ListConnectedPeersResponse(::google::protobuf::Arena* arena); ListConnectedPeersResponse(::google::protobuf::Arena* arena, const ListConnectedPeersResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + ListConnectedPeersResponse(::google::protobuf::Arena* arena, ListConnectedPeersResponse&& from) noexcept + : ListConnectedPeersResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kConnectedPeersFieldNumber = 1, }; @@ -1854,20 +1784,18 @@ class ListConnectedPeersResponse final : public: void clear_connected_peers() ; ::tari::rpc::Peer* mutable_connected_peers(int index); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::Peer >* - mutable_connected_peers(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* mutable_connected_peers(); + private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>& _internal_connected_peers() const; ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* _internal_mutable_connected_peers(); public: const ::tari::rpc::Peer& connected_peers(int index) const; ::tari::rpc::Peer* add_connected_peers(); - const ::google::protobuf::RepeatedPtrField< ::tari::rpc::Peer >& - connected_peers() const; + const ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>& connected_peers() const; // @@protoc_insertion_point(class_scope:tari.rpc.ListConnectedPeersResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, @@ -1880,13 +1808,12 @@ class ListConnectedPeersResponse final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField< ::tari::rpc::Peer > connected_peers_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER @@ -1925,7 +1852,6 @@ template inline PROTOBUF_ALWAYS_INLINE void NodeIdentity::set_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NodeIdentity.public_key) } @@ -1940,12 +1866,10 @@ inline const std::string& NodeIdentity::_internal_public_key() const { } inline void NodeIdentity::_internal_set_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_key_.Set(value, GetArena()); } inline std::string* NodeIdentity::_internal_mutable_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.public_key_.Mutable( GetArena()); } inline std::string* NodeIdentity::release_public_key() { @@ -2012,8 +1936,8 @@ inline void NodeIdentity::set_public_addresses(int index, const char* value, // @@protoc_insertion_point(field_set_pointer:tari.rpc.NodeIdentity.public_addresses) } inline void NodeIdentity::set_public_addresses(int index, absl::string_view value) { - _internal_mutable_public_addresses()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_public_addresses()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:tari.rpc.NodeIdentity.public_addresses) } inline void NodeIdentity::add_public_addresses(const std::string& value) { @@ -2040,7 +1964,8 @@ inline void NodeIdentity::add_public_addresses(const char* value, std::size_t si } inline void NodeIdentity::add_public_addresses(absl::string_view value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_addresses()->Add()->assign(value.data(), value.size()); + _internal_mutable_public_addresses()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:tari.rpc.NodeIdentity.public_addresses) } inline const ::google::protobuf::RepeatedPtrField& @@ -2079,7 +2004,6 @@ template inline PROTOBUF_ALWAYS_INLINE void NodeIdentity::set_node_id(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.node_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NodeIdentity.node_id) } @@ -2094,12 +2018,10 @@ inline const std::string& NodeIdentity::_internal_node_id() const { } inline void NodeIdentity::_internal_set_node_id(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.node_id_.Set(value, GetArena()); } inline std::string* NodeIdentity::_internal_mutable_node_id() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.node_id_.Mutable( GetArena()); } inline std::string* NodeIdentity::release_node_id() { @@ -2136,7 +2058,6 @@ template inline PROTOBUF_ALWAYS_INLINE void Peer::set_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Peer.public_key) } @@ -2151,12 +2072,10 @@ inline const std::string& Peer::_internal_public_key() const { } inline void Peer::_internal_set_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_key_.Set(value, GetArena()); } inline std::string* Peer::_internal_mutable_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.public_key_.Mutable( GetArena()); } inline std::string* Peer::release_public_key() { @@ -2189,7 +2108,6 @@ template inline PROTOBUF_ALWAYS_INLINE void Peer::set_node_id(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.node_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Peer.node_id) } @@ -2204,12 +2122,10 @@ inline const std::string& Peer::_internal_node_id() const { } inline void Peer::_internal_set_node_id(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.node_id_.Set(value, GetArena()); } inline std::string* Peer::_internal_mutable_node_id() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.node_id_.Mutable( GetArena()); } inline std::string* Peer::release_node_id() { @@ -2296,7 +2212,6 @@ inline ::uint64_t Peer::_internal_last_connection() const { } inline void Peer::_internal_set_last_connection(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.last_connection_ = value; } @@ -2319,7 +2234,6 @@ inline ::uint32_t Peer::_internal_flags() const { } inline void Peer::_internal_set_flags(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.flags_ = value; } @@ -2342,7 +2256,6 @@ inline ::uint64_t Peer::_internal_banned_until() const { } inline void Peer::_internal_set_banned_until(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.banned_until_ = value; } @@ -2360,7 +2273,6 @@ template inline PROTOBUF_ALWAYS_INLINE void Peer::set_banned_reason(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.banned_reason_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Peer.banned_reason) } @@ -2375,12 +2287,10 @@ inline const std::string& Peer::_internal_banned_reason() const { } inline void Peer::_internal_set_banned_reason(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.banned_reason_.Set(value, GetArena()); } inline std::string* Peer::_internal_mutable_banned_reason() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.banned_reason_.Mutable( GetArena()); } inline std::string* Peer::release_banned_reason() { @@ -2418,7 +2328,6 @@ inline ::uint64_t Peer::_internal_offline_at() const { } inline void Peer::_internal_set_offline_at(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.offline_at_ = value; } @@ -2441,7 +2350,6 @@ inline ::uint32_t Peer::_internal_features() const { } inline void Peer::_internal_set_features(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.features_ = value; } @@ -2493,8 +2401,8 @@ inline void Peer::set_supported_protocols(int index, const void* value, // @@protoc_insertion_point(field_set_pointer:tari.rpc.Peer.supported_protocols) } inline void Peer::set_supported_protocols(int index, absl::string_view value) { - _internal_mutable_supported_protocols()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_supported_protocols()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:tari.rpc.Peer.supported_protocols) } inline void Peer::add_supported_protocols(const std::string& value) { @@ -2521,7 +2429,8 @@ inline void Peer::add_supported_protocols(const void* value, std::size_t size) { } inline void Peer::add_supported_protocols(absl::string_view value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_supported_protocols()->Add()->assign(value.data(), value.size()); + _internal_mutable_supported_protocols()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:tari.rpc.Peer.supported_protocols) } inline const ::google::protobuf::RepeatedPtrField& @@ -2560,7 +2469,6 @@ template inline PROTOBUF_ALWAYS_INLINE void Peer::set_user_agent(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.user_agent_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Peer.user_agent) } @@ -2575,12 +2483,10 @@ inline const std::string& Peer::_internal_user_agent() const { } inline void Peer::_internal_set_user_agent(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.user_agent_.Set(value, GetArena()); } inline std::string* Peer::_internal_mutable_user_agent() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.user_agent_.Mutable( GetArena()); } inline std::string* Peer::release_user_agent() { @@ -2622,7 +2528,6 @@ inline ::tari::rpc::ConnectivityStatus NetworkStatusResponse::_internal_status() } inline void NetworkStatusResponse::_internal_set_status(::tari::rpc::ConnectivityStatus value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.status_ = value; } @@ -2645,7 +2550,6 @@ inline ::uint32_t NetworkStatusResponse::_internal_avg_latency_ms() const { } inline void NetworkStatusResponse::_internal_set_avg_latency_ms(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.avg_latency_ms_ = value; } @@ -2668,7 +2572,6 @@ inline ::uint32_t NetworkStatusResponse::_internal_num_node_connections() const } inline void NetworkStatusResponse::_internal_set_num_node_connections(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.num_node_connections_ = value; } @@ -2690,7 +2593,6 @@ template inline PROTOBUF_ALWAYS_INLINE void Address::set_address(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.address_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Address.address) } @@ -2705,12 +2607,10 @@ inline const std::string& Address::_internal_address() const { } inline void Address::_internal_set_address(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.address_.Set(value, GetArena()); } inline std::string* Address::_internal_mutable_address() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.address_.Mutable( GetArena()); } inline std::string* Address::release_address() { @@ -2743,7 +2643,6 @@ template inline PROTOBUF_ALWAYS_INLINE void Address::set_last_seen(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.last_seen_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Address.last_seen) } @@ -2758,12 +2657,10 @@ inline const std::string& Address::_internal_last_seen() const { } inline void Address::_internal_set_last_seen(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.last_seen_.Set(value, GetArena()); } inline std::string* Address::_internal_mutable_last_seen() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.last_seen_.Mutable( GetArena()); } inline std::string* Address::release_last_seen() { @@ -2801,7 +2698,6 @@ inline ::uint32_t Address::_internal_connection_attempts() const { } inline void Address::_internal_set_connection_attempts(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.connection_attempts_ = value; } @@ -2824,7 +2720,6 @@ inline ::uint64_t Address::_internal_avg_latency() const { } inline void Address::_internal_set_avg_latency(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.avg_latency_ = value; } @@ -2904,7 +2799,6 @@ inline bool SoftwareUpdate::_internal_has_update() const { } inline void SoftwareUpdate::_internal_set_has_update(bool value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.has_update_ = value; } @@ -2922,7 +2816,6 @@ template inline PROTOBUF_ALWAYS_INLINE void SoftwareUpdate::set_version(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.SoftwareUpdate.version) } @@ -2937,12 +2830,10 @@ inline const std::string& SoftwareUpdate::_internal_version() const { } inline void SoftwareUpdate::_internal_set_version(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.version_.Set(value, GetArena()); } inline std::string* SoftwareUpdate::_internal_mutable_version() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.version_.Mutable( GetArena()); } inline std::string* SoftwareUpdate::release_version() { @@ -2975,7 +2866,6 @@ template inline PROTOBUF_ALWAYS_INLINE void SoftwareUpdate::set_sha(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.sha_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.SoftwareUpdate.sha) } @@ -2990,12 +2880,10 @@ inline const std::string& SoftwareUpdate::_internal_sha() const { } inline void SoftwareUpdate::_internal_set_sha(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.sha_.Set(value, GetArena()); } inline std::string* SoftwareUpdate::_internal_mutable_sha() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.sha_.Mutable( GetArena()); } inline std::string* SoftwareUpdate::release_sha() { @@ -3028,7 +2916,6 @@ template inline PROTOBUF_ALWAYS_INLINE void SoftwareUpdate::set_download_url(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.download_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.SoftwareUpdate.download_url) } @@ -3043,12 +2930,10 @@ inline const std::string& SoftwareUpdate::_internal_download_url() const { } inline void SoftwareUpdate::_internal_set_download_url(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.download_url_.Set(value, GetArena()); } inline std::string* SoftwareUpdate::_internal_mutable_download_url() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.download_url_.Mutable( GetArena()); } inline std::string* SoftwareUpdate::release_download_url() { @@ -3089,7 +2974,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetIdentityResponse::set_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetIdentityResponse.public_key) } @@ -3104,12 +2988,10 @@ inline const std::string& GetIdentityResponse::_internal_public_key() const { } inline void GetIdentityResponse::_internal_set_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_key_.Set(value, GetArena()); } inline std::string* GetIdentityResponse::_internal_mutable_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.public_key_.Mutable( GetArena()); } inline std::string* GetIdentityResponse::release_public_key() { @@ -3142,7 +3024,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetIdentityResponse::set_public_address(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_address_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetIdentityResponse.public_address) } @@ -3157,12 +3038,10 @@ inline const std::string& GetIdentityResponse::_internal_public_address() const } inline void GetIdentityResponse::_internal_set_public_address(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_address_.Set(value, GetArena()); } inline std::string* GetIdentityResponse::_internal_mutable_public_address() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.public_address_.Mutable( GetArena()); } inline std::string* GetIdentityResponse::release_public_address() { @@ -3195,7 +3074,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetIdentityResponse::set_node_id(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.node_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetIdentityResponse.node_id) } @@ -3210,12 +3088,10 @@ inline const std::string& GetIdentityResponse::_internal_node_id() const { } inline void GetIdentityResponse::_internal_set_node_id(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.node_id_.Set(value, GetArena()); } inline std::string* GetIdentityResponse::_internal_mutable_node_id() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.node_id_.Mutable( GetArena()); } inline std::string* GetIdentityResponse::release_node_id() { diff --git a/external/src/Tari/proto/gRPC/sidechain_types.pb.cc b/external/src/Tari/proto/gRPC/sidechain_types.pb.cc index 20563ed..0699c5a 100644 --- a/external/src/Tari/proto/gRPC/sidechain_types.pb.cc +++ b/external/src/Tari/proto/gRPC/sidechain_types.pb.cc @@ -1,5 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: sidechain_types.proto +// Protobuf C++ Version: 5.26.0-rc1 #include "sidechain_types.pb.h" @@ -213,116 +214,117 @@ static constexpr const ::_pb::EnumDescriptor** file_level_enum_descriptors_sidechain_5ftypes_2eproto = nullptr; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_sidechain_5ftypes_2eproto = nullptr; -const ::uint32_t TableStruct_sidechain_5ftypes_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _impl_.side_chain_feature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_.public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_.signature_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.author_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.author_signature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.template_name_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.template_version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.template_type_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.build_info_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.binary_sha_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.binary_url_), - ~0u, - 0, - ~0u, - ~0u, - 1, - 2, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConfidentialOutputData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConfidentialOutputData, _impl_.claim_public_key_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _impl_.template_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::WasmInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::WasmInfo, _impl_.abi_version_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::FlowInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ManifestInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::BuildInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::BuildInfo, _impl_.repo_url_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BuildInfo, _impl_.commit_hash_), +const ::uint32_t + TableStruct_sidechain_5ftypes_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _impl_.side_chain_feature_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_.public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_.signature_), + ~0u, + 0, + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.author_public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.author_signature_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.template_name_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.template_version_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.template_type_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.build_info_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.binary_sha_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.binary_url_), + ~0u, + 0, + ~0u, + ~0u, + 1, + 2, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConfidentialOutputData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConfidentialOutputData, _impl_.claim_public_key_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _impl_.template_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::WasmInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::WasmInfo, _impl_.abi_version_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::FlowInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::ManifestInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::BuildInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::BuildInfo, _impl_.repo_url_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BuildInfo, _impl_.commit_hash_), }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::tari::rpc::SideChainFeature)}, {12, 22, -1, sizeof(::tari::rpc::ValidatorNodeRegistration)}, {24, 40, -1, sizeof(::tari::rpc::TemplateRegistration)}, @@ -333,7 +335,6 @@ static const ::_pbi::MigrationSchema {86, -1, -1, sizeof(::tari::rpc::ManifestInfo)}, {94, -1, -1, sizeof(::tari::rpc::BuildInfo)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_SideChainFeature_default_instance_._instance, &::tari::rpc::_ValidatorNodeRegistration_default_instance_._instance, @@ -345,7 +346,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_ManifestInfo_default_instance_._instance, &::tari::rpc::_BuildInfo_default_instance_._instance, }; -const char descriptor_table_protodef_sidechain_5ftypes_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_sidechain_5ftypes_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\025sidechain_types.proto\022\010tari.rpc\032\013types" ".proto\"\366\001\n\020SideChainFeature\022J\n\033validator" "_node_registration\030\001 \001(\0132#.tari.rpc.Vali" @@ -409,9 +411,6 @@ const ::_pbi::DescriptorTable descriptor_table_sidechain_5ftypes_2eproto = { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_sidechain_5ftypes_2eproto_getter() { return &descriptor_table_sidechain_5ftypes_2eproto; } -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_sidechain_5ftypes_2eproto(&descriptor_table_sidechain_5ftypes_2eproto); namespace tari { namespace rpc { // =================================================================== @@ -420,20 +419,8 @@ class SideChainFeature::_Internal { public: static constexpr ::int32_t kOneofCaseOffset = PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _impl_._oneof_case_); - static const ::tari::rpc::ValidatorNodeRegistration& validator_node_registration(const SideChainFeature* msg); - static const ::tari::rpc::TemplateRegistration& template_registration(const SideChainFeature* msg); - static const ::tari::rpc::ConfidentialOutputData& confidential_output(const SideChainFeature* msg); }; -const ::tari::rpc::ValidatorNodeRegistration& SideChainFeature::_Internal::validator_node_registration(const SideChainFeature* msg) { - return *msg->_impl_.side_chain_feature_.validator_node_registration_; -} -const ::tari::rpc::TemplateRegistration& SideChainFeature::_Internal::template_registration(const SideChainFeature* msg) { - return *msg->_impl_.side_chain_feature_.template_registration_; -} -const ::tari::rpc::ConfidentialOutputData& SideChainFeature::_Internal::confidential_output(const SideChainFeature* msg) { - return *msg->_impl_.side_chain_feature_.confidential_output_; -} void SideChainFeature::set_allocated_validator_node_registration(::tari::rpc::ValidatorNodeRegistration* validator_node_registration) { ::google::protobuf::Arena* message_arena = GetArena(); clear_side_chain_feature(); @@ -498,13 +485,13 @@ SideChainFeature::SideChainFeature( case SIDE_CHAIN_FEATURE_NOT_SET: break; case kValidatorNodeRegistration: - _impl_.side_chain_feature_.validator_node_registration_ = CreateMaybeMessage<::tari::rpc::ValidatorNodeRegistration>(arena, *from._impl_.side_chain_feature_.validator_node_registration_); + _impl_.side_chain_feature_.validator_node_registration_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::ValidatorNodeRegistration>(arena, *from._impl_.side_chain_feature_.validator_node_registration_); break; case kTemplateRegistration: - _impl_.side_chain_feature_.template_registration_ = CreateMaybeMessage<::tari::rpc::TemplateRegistration>(arena, *from._impl_.side_chain_feature_.template_registration_); + _impl_.side_chain_feature_.template_registration_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateRegistration>(arena, *from._impl_.side_chain_feature_.template_registration_); break; case kConfidentialOutput: - _impl_.side_chain_feature_.confidential_output_ = CreateMaybeMessage<::tari::rpc::ConfidentialOutputData>(arena, *from._impl_.side_chain_feature_.confidential_output_); + _impl_.side_chain_feature_.confidential_output_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::ConfidentialOutputData>(arena, *from._impl_.side_chain_feature_.confidential_output_); break; } @@ -563,6 +550,20 @@ void SideChainFeature::clear_side_chain_feature() { } +const ::google::protobuf::MessageLite::ClassData* +SideChainFeature::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_._cached_size_), + false, + }, + &SideChainFeature::MergeImpl, + &SideChainFeature::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void SideChainFeature::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.SideChainFeature) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -595,6 +596,9 @@ const ::_pbi::TcParseTable<0, 3, 3, 0, 2> SideChainFeature::_table_ = { offsetof(decltype(_table_), aux_entries), &_SideChainFeature_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SideChainFeature>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, }}, {{ @@ -627,20 +631,17 @@ const ::_pbi::TcParseTable<0, 3, 3, 0, 2> SideChainFeature::_table_ = { switch (side_chain_feature_case()) { case kValidatorNodeRegistration: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::validator_node_registration(this), - _Internal::validator_node_registration(this).GetCachedSize(), target, stream); + 1, *_impl_.side_chain_feature_.validator_node_registration_, _impl_.side_chain_feature_.validator_node_registration_->GetCachedSize(), target, stream); break; } case kTemplateRegistration: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::template_registration(this), - _Internal::template_registration(this).GetCachedSize(), target, stream); + 2, *_impl_.side_chain_feature_.template_registration_, _impl_.side_chain_feature_.template_registration_->GetCachedSize(), target, stream); break; } case kConfidentialOutput: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::confidential_output(this), - _Internal::confidential_output(this).GetCachedSize(), target, stream); + 3, *_impl_.side_chain_feature_.confidential_output_, _impl_.side_chain_feature_.confidential_output_->GetCachedSize(), target, stream); break; } default: @@ -689,40 +690,56 @@ const ::_pbi::TcParseTable<0, 3, 3, 0, 2> SideChainFeature::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData SideChainFeature::_class_data_ = { - SideChainFeature::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SideChainFeature::GetClassData() const { - return &_class_data_; -} -void SideChainFeature::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void SideChainFeature::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.SideChainFeature) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - switch (from.side_chain_feature_case()) { - case kValidatorNodeRegistration: { - _this->_internal_mutable_validator_node_registration()->::tari::rpc::ValidatorNodeRegistration::MergeFrom( - from._internal_validator_node_registration()); - break; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_side_chain_feature(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - case kTemplateRegistration: { - _this->_internal_mutable_template_registration()->::tari::rpc::TemplateRegistration::MergeFrom( - from._internal_template_registration()); - break; - } - case kConfidentialOutput: { - _this->_internal_mutable_confidential_output()->::tari::rpc::ConfidentialOutputData::MergeFrom( - from._internal_confidential_output()); - break; - } - case SIDE_CHAIN_FEATURE_NOT_SET: { - break; + + switch (oneof_from_case) { + case kValidatorNodeRegistration: { + if (oneof_needs_init) { + _this->_impl_.side_chain_feature_.validator_node_registration_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::ValidatorNodeRegistration>(arena, *from._impl_.side_chain_feature_.validator_node_registration_); + } else { + _this->_impl_.side_chain_feature_.validator_node_registration_->MergeFrom(from._internal_validator_node_registration()); + } + break; + } + case kTemplateRegistration: { + if (oneof_needs_init) { + _this->_impl_.side_chain_feature_.template_registration_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateRegistration>(arena, *from._impl_.side_chain_feature_.template_registration_); + } else { + _this->_impl_.side_chain_feature_.template_registration_->MergeFrom(from._internal_template_registration()); + } + break; + } + case kConfidentialOutput: { + if (oneof_needs_init) { + _this->_impl_.side_chain_feature_.confidential_output_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::ConfidentialOutputData>(arena, *from._impl_.side_chain_feature_.confidential_output_); + } else { + _this->_impl_.side_chain_feature_.confidential_output_->MergeFrom(from._internal_confidential_output()); + } + break; + } + case SIDE_CHAIN_FEATURE_NOT_SET: + break; } } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); @@ -739,9 +756,6 @@ PROTOBUF_NOINLINE bool SideChainFeature::IsInitialized() const { return true; } -::_pbi::CachedSize* SideChainFeature::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SideChainFeature::InternalSwap(SideChainFeature* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -750,9 +764,9 @@ void SideChainFeature::InternalSwap(SideChainFeature* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata SideChainFeature::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sidechain_5ftypes_2eproto_getter, &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[0]); + return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, + &descriptor_table_sidechain_5ftypes_2eproto_once, + file_level_metadata_sidechain_5ftypes_2eproto[0]); } // =================================================================== @@ -761,15 +775,8 @@ class ValidatorNodeRegistration::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_._has_bits_); - static const ::tari::rpc::Signature& signature(const ValidatorNodeRegistration* msg); - static void set_has_signature(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::Signature& ValidatorNodeRegistration::_Internal::signature(const ValidatorNodeRegistration* msg) { - return *msg->_impl_.signature_; -} void ValidatorNodeRegistration::clear_signature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.signature_ != nullptr) _impl_.signature_->Clear(); @@ -797,9 +804,9 @@ ValidatorNodeRegistration::ValidatorNodeRegistration( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.signature_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::Signature>(arena, *from._impl_.signature_) - : nullptr; + _impl_.signature_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>( + arena, *from._impl_.signature_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.ValidatorNodeRegistration) } @@ -825,6 +832,20 @@ inline void ValidatorNodeRegistration::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +ValidatorNodeRegistration::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_._cached_size_), + false, + }, + &ValidatorNodeRegistration::MergeImpl, + &ValidatorNodeRegistration::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void ValidatorNodeRegistration::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.ValidatorNodeRegistration) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -863,6 +884,9 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ValidatorNodeRegistration::_table_ = { offsetof(decltype(_table_), aux_entries), &_ValidatorNodeRegistration_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeRegistration>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.Signature signature = 2; {::_pbi::TcParser::FastMtS1, @@ -902,8 +926,7 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ValidatorNodeRegistration::_table_ = { // .tari.rpc.Signature signature = 2; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::signature(this), - _Internal::signature(this).GetCachedSize(), target, stream); + 2, *_impl_.signature_, _impl_.signature_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -939,17 +962,11 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ValidatorNodeRegistration::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData ValidatorNodeRegistration::_class_data_ = { - ValidatorNodeRegistration::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ValidatorNodeRegistration::GetClassData() const { - return &_class_data_; -} -void ValidatorNodeRegistration::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void ValidatorNodeRegistration::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.ValidatorNodeRegistration) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -958,10 +975,17 @@ void ValidatorNodeRegistration::MergeImpl(::google::protobuf::Message& to_msg, c if (!from._internal_public_key().empty()) { _this->_internal_set_public_key(from._internal_public_key()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_signature()->::tari::rpc::Signature::MergeFrom( - from._internal_signature()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.signature_ != nullptr); + if (_this->_impl_.signature_ == nullptr) { + _this->_impl_.signature_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>(arena, *from._impl_.signature_); + } else { + _this->_impl_.signature_->MergeFrom(*from._impl_.signature_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -976,9 +1000,6 @@ PROTOBUF_NOINLINE bool ValidatorNodeRegistration::IsInitialized() const { return true; } -::_pbi::CachedSize* ValidatorNodeRegistration::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ValidatorNodeRegistration::InternalSwap(ValidatorNodeRegistration* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -990,9 +1011,9 @@ void ValidatorNodeRegistration::InternalSwap(ValidatorNodeRegistration* PROTOBUF } ::google::protobuf::Metadata ValidatorNodeRegistration::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sidechain_5ftypes_2eproto_getter, &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[1]); + return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, + &descriptor_table_sidechain_5ftypes_2eproto_once, + file_level_metadata_sidechain_5ftypes_2eproto[1]); } // =================================================================== @@ -1001,29 +1022,8 @@ class TemplateRegistration::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_._has_bits_); - static const ::tari::rpc::Signature& author_signature(const TemplateRegistration* msg); - static void set_has_author_signature(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::tari::rpc::TemplateType& template_type(const TemplateRegistration* msg); - static void set_has_template_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::tari::rpc::BuildInfo& build_info(const TemplateRegistration* msg); - static void set_has_build_info(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } }; -const ::tari::rpc::Signature& TemplateRegistration::_Internal::author_signature(const TemplateRegistration* msg) { - return *msg->_impl_.author_signature_; -} -const ::tari::rpc::TemplateType& TemplateRegistration::_Internal::template_type(const TemplateRegistration* msg) { - return *msg->_impl_.template_type_; -} -const ::tari::rpc::BuildInfo& TemplateRegistration::_Internal::build_info(const TemplateRegistration* msg) { - return *msg->_impl_.build_info_; -} void TemplateRegistration::clear_author_signature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.author_signature_ != nullptr) _impl_.author_signature_->Clear(); @@ -1054,15 +1054,15 @@ TemplateRegistration::TemplateRegistration( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.author_signature_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::Signature>(arena, *from._impl_.author_signature_) - : nullptr; - _impl_.template_type_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::tari::rpc::TemplateType>(arena, *from._impl_.template_type_) - : nullptr; - _impl_.build_info_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::tari::rpc::BuildInfo>(arena, *from._impl_.build_info_) - : nullptr; + _impl_.author_signature_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>( + arena, *from._impl_.author_signature_) + : nullptr; + _impl_.template_type_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateType>( + arena, *from._impl_.template_type_) + : nullptr; + _impl_.build_info_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::BuildInfo>( + arena, *from._impl_.build_info_) + : nullptr; _impl_.template_version_ = from._impl_.template_version_; // @@protoc_insertion_point(copy_constructor:tari.rpc.TemplateRegistration) @@ -1102,6 +1102,20 @@ inline void TemplateRegistration::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +TemplateRegistration::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_._cached_size_), + false, + }, + &TemplateRegistration::MergeImpl, + &TemplateRegistration::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void TemplateRegistration::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.TemplateRegistration) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1154,6 +1168,9 @@ const ::_pbi::TcParseTable<3, 8, 3, 69, 2> TemplateRegistration::_table_ = { offsetof(decltype(_table_), aux_entries), &_TemplateRegistration_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::TemplateRegistration>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // string binary_url = 8; {::_pbi::TcParser::FastUS1, @@ -1235,8 +1252,7 @@ const ::_pbi::TcParseTable<3, 8, 3, 69, 2> TemplateRegistration::_table_ = { // .tari.rpc.Signature author_signature = 2; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::author_signature(this), - _Internal::author_signature(this).GetCachedSize(), target, stream); + 2, *_impl_.author_signature_, _impl_.author_signature_->GetCachedSize(), target, stream); } // string template_name = 3; @@ -1257,15 +1273,13 @@ const ::_pbi::TcParseTable<3, 8, 3, 69, 2> TemplateRegistration::_table_ = { // .tari.rpc.TemplateType template_type = 5; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::template_type(this), - _Internal::template_type(this).GetCachedSize(), target, stream); + 5, *_impl_.template_type_, _impl_.template_type_->GetCachedSize(), target, stream); } // .tari.rpc.BuildInfo build_info = 6; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, _Internal::build_info(this), - _Internal::build_info(this).GetCachedSize(), target, stream); + 6, *_impl_.build_info_, _impl_.build_info_->GetCachedSize(), target, stream); } // bytes binary_sha = 7; @@ -1353,17 +1367,11 @@ const ::_pbi::TcParseTable<3, 8, 3, 69, 2> TemplateRegistration::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData TemplateRegistration::_class_data_ = { - TemplateRegistration::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TemplateRegistration::GetClassData() const { - return &_class_data_; -} -void TemplateRegistration::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void TemplateRegistration::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.TemplateRegistration) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -1384,21 +1392,37 @@ void TemplateRegistration::MergeImpl(::google::protobuf::Message& to_msg, const cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_author_signature()->::tari::rpc::Signature::MergeFrom( - from._internal_author_signature()); + ABSL_DCHECK(from._impl_.author_signature_ != nullptr); + if (_this->_impl_.author_signature_ == nullptr) { + _this->_impl_.author_signature_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>(arena, *from._impl_.author_signature_); + } else { + _this->_impl_.author_signature_->MergeFrom(*from._impl_.author_signature_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_template_type()->::tari::rpc::TemplateType::MergeFrom( - from._internal_template_type()); + ABSL_DCHECK(from._impl_.template_type_ != nullptr); + if (_this->_impl_.template_type_ == nullptr) { + _this->_impl_.template_type_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateType>(arena, *from._impl_.template_type_); + } else { + _this->_impl_.template_type_->MergeFrom(*from._impl_.template_type_); + } } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_build_info()->::tari::rpc::BuildInfo::MergeFrom( - from._internal_build_info()); + ABSL_DCHECK(from._impl_.build_info_ != nullptr); + if (_this->_impl_.build_info_ == nullptr) { + _this->_impl_.build_info_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::BuildInfo>(arena, *from._impl_.build_info_); + } else { + _this->_impl_.build_info_->MergeFrom(*from._impl_.build_info_); + } } } if (from._internal_template_version() != 0) { - _this->_internal_set_template_version(from._internal_template_version()); + _this->_impl_.template_version_ = from._impl_.template_version_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1413,9 +1437,6 @@ PROTOBUF_NOINLINE bool TemplateRegistration::IsInitialized() const { return true; } -::_pbi::CachedSize* TemplateRegistration::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TemplateRegistration::InternalSwap(TemplateRegistration* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -1435,9 +1456,9 @@ void TemplateRegistration::InternalSwap(TemplateRegistration* PROTOBUF_RESTRICT } ::google::protobuf::Metadata TemplateRegistration::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sidechain_5ftypes_2eproto_getter, &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[2]); + return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, + &descriptor_table_sidechain_5ftypes_2eproto_once, + file_level_metadata_sidechain_5ftypes_2eproto[2]); } // =================================================================== @@ -1488,6 +1509,20 @@ inline void ConfidentialOutputData::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +ConfidentialOutputData::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(ConfidentialOutputData, _impl_._cached_size_), + false, + }, + &ConfidentialOutputData::MergeImpl, + &ConfidentialOutputData::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void ConfidentialOutputData::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.ConfidentialOutputData) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1520,6 +1555,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ConfidentialOutputData::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_ConfidentialOutputData_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ConfidentialOutputData>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes claim_public_key = 1; {::_pbi::TcParser::FastBS1, @@ -1575,15 +1613,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ConfidentialOutputData::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData ConfidentialOutputData::_class_data_ = { - ConfidentialOutputData::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ConfidentialOutputData::GetClassData() const { - return &_class_data_; -} -void ConfidentialOutputData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void ConfidentialOutputData::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.ConfidentialOutputData) @@ -1608,9 +1639,6 @@ PROTOBUF_NOINLINE bool ConfidentialOutputData::IsInitialized() const { return true; } -::_pbi::CachedSize* ConfidentialOutputData::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ConfidentialOutputData::InternalSwap(ConfidentialOutputData* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -1620,9 +1648,9 @@ void ConfidentialOutputData::InternalSwap(ConfidentialOutputData* PROTOBUF_RESTR } ::google::protobuf::Metadata ConfidentialOutputData::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sidechain_5ftypes_2eproto_getter, &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[3]); + return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, + &descriptor_table_sidechain_5ftypes_2eproto_once, + file_level_metadata_sidechain_5ftypes_2eproto[3]); } // =================================================================== @@ -1630,20 +1658,8 @@ class TemplateType::_Internal { public: static constexpr ::int32_t kOneofCaseOffset = PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _impl_._oneof_case_); - static const ::tari::rpc::WasmInfo& wasm(const TemplateType* msg); - static const ::tari::rpc::FlowInfo& flow(const TemplateType* msg); - static const ::tari::rpc::ManifestInfo& manifest(const TemplateType* msg); }; -const ::tari::rpc::WasmInfo& TemplateType::_Internal::wasm(const TemplateType* msg) { - return *msg->_impl_.template_type_.wasm_; -} -const ::tari::rpc::FlowInfo& TemplateType::_Internal::flow(const TemplateType* msg) { - return *msg->_impl_.template_type_.flow_; -} -const ::tari::rpc::ManifestInfo& TemplateType::_Internal::manifest(const TemplateType* msg) { - return *msg->_impl_.template_type_.manifest_; -} void TemplateType::set_allocated_wasm(::tari::rpc::WasmInfo* wasm) { ::google::protobuf::Arena* message_arena = GetArena(); clear_template_type(); @@ -1708,13 +1724,13 @@ TemplateType::TemplateType( case TEMPLATE_TYPE_NOT_SET: break; case kWasm: - _impl_.template_type_.wasm_ = CreateMaybeMessage<::tari::rpc::WasmInfo>(arena, *from._impl_.template_type_.wasm_); + _impl_.template_type_.wasm_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::WasmInfo>(arena, *from._impl_.template_type_.wasm_); break; case kFlow: - _impl_.template_type_.flow_ = CreateMaybeMessage<::tari::rpc::FlowInfo>(arena, *from._impl_.template_type_.flow_); + _impl_.template_type_.flow_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::FlowInfo>(arena, *from._impl_.template_type_.flow_); break; case kManifest: - _impl_.template_type_.manifest_ = CreateMaybeMessage<::tari::rpc::ManifestInfo>(arena, *from._impl_.template_type_.manifest_); + _impl_.template_type_.manifest_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::ManifestInfo>(arena, *from._impl_.template_type_.manifest_); break; } @@ -1773,6 +1789,20 @@ void TemplateType::clear_template_type() { } +const ::google::protobuf::MessageLite::ClassData* +TemplateType::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(TemplateType, _impl_._cached_size_), + false, + }, + &TemplateType::MergeImpl, + &TemplateType::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void TemplateType::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.TemplateType) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1805,6 +1835,9 @@ const ::_pbi::TcParseTable<0, 3, 3, 0, 2> TemplateType::_table_ = { offsetof(decltype(_table_), aux_entries), &_TemplateType_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::TemplateType>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, }}, {{ @@ -1837,20 +1870,17 @@ const ::_pbi::TcParseTable<0, 3, 3, 0, 2> TemplateType::_table_ = { switch (template_type_case()) { case kWasm: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::wasm(this), - _Internal::wasm(this).GetCachedSize(), target, stream); + 1, *_impl_.template_type_.wasm_, _impl_.template_type_.wasm_->GetCachedSize(), target, stream); break; } case kFlow: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::flow(this), - _Internal::flow(this).GetCachedSize(), target, stream); + 2, *_impl_.template_type_.flow_, _impl_.template_type_.flow_->GetCachedSize(), target, stream); break; } case kManifest: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::manifest(this), - _Internal::manifest(this).GetCachedSize(), target, stream); + 3, *_impl_.template_type_.manifest_, _impl_.template_type_.manifest_->GetCachedSize(), target, stream); break; } default: @@ -1899,40 +1929,56 @@ const ::_pbi::TcParseTable<0, 3, 3, 0, 2> TemplateType::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData TemplateType::_class_data_ = { - TemplateType::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TemplateType::GetClassData() const { - return &_class_data_; -} -void TemplateType::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void TemplateType::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.TemplateType) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - switch (from.template_type_case()) { - case kWasm: { - _this->_internal_mutable_wasm()->::tari::rpc::WasmInfo::MergeFrom( - from._internal_wasm()); - break; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_template_type(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - case kFlow: { - _this->_internal_mutable_flow()->::tari::rpc::FlowInfo::MergeFrom( - from._internal_flow()); - break; - } - case kManifest: { - _this->_internal_mutable_manifest()->::tari::rpc::ManifestInfo::MergeFrom( - from._internal_manifest()); - break; - } - case TEMPLATE_TYPE_NOT_SET: { - break; + + switch (oneof_from_case) { + case kWasm: { + if (oneof_needs_init) { + _this->_impl_.template_type_.wasm_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::WasmInfo>(arena, *from._impl_.template_type_.wasm_); + } else { + _this->_impl_.template_type_.wasm_->MergeFrom(from._internal_wasm()); + } + break; + } + case kFlow: { + if (oneof_needs_init) { + _this->_impl_.template_type_.flow_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::FlowInfo>(arena, *from._impl_.template_type_.flow_); + } else { + _this->_impl_.template_type_.flow_->MergeFrom(from._internal_flow()); + } + break; + } + case kManifest: { + if (oneof_needs_init) { + _this->_impl_.template_type_.manifest_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::ManifestInfo>(arena, *from._impl_.template_type_.manifest_); + } else { + _this->_impl_.template_type_.manifest_->MergeFrom(from._internal_manifest()); + } + break; + } + case TEMPLATE_TYPE_NOT_SET: + break; } } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); @@ -1949,9 +1995,6 @@ PROTOBUF_NOINLINE bool TemplateType::IsInitialized() const { return true; } -::_pbi::CachedSize* TemplateType::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TemplateType::InternalSwap(TemplateType* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1960,9 +2003,9 @@ void TemplateType::InternalSwap(TemplateType* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata TemplateType::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sidechain_5ftypes_2eproto_getter, &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[4]); + return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, + &descriptor_table_sidechain_5ftypes_2eproto_once, + file_level_metadata_sidechain_5ftypes_2eproto[4]); } // =================================================================== @@ -1999,6 +2042,20 @@ inline void WasmInfo::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +WasmInfo::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(WasmInfo, _impl_._cached_size_), + false, + }, + &WasmInfo::MergeImpl, + &WasmInfo::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void WasmInfo::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.WasmInfo) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2031,6 +2088,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> WasmInfo::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_WasmInfo_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::WasmInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint32 abi_version = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WasmInfo, _impl_.abi_version_), 63>(), @@ -2087,15 +2147,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> WasmInfo::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData WasmInfo::_class_data_ = { - WasmInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* WasmInfo::GetClassData() const { - return &_class_data_; -} -void WasmInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void WasmInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.WasmInfo) @@ -2104,7 +2157,7 @@ void WasmInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::pr (void) cached_has_bits; if (from._internal_abi_version() != 0) { - _this->_internal_set_abi_version(from._internal_abi_version()); + _this->_impl_.abi_version_ = from._impl_.abi_version_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2120,9 +2173,6 @@ PROTOBUF_NOINLINE bool WasmInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* WasmInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} void WasmInfo::InternalSwap(WasmInfo* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2130,9 +2180,9 @@ void WasmInfo::InternalSwap(WasmInfo* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata WasmInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sidechain_5ftypes_2eproto_getter, &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[5]); + return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, + &descriptor_table_sidechain_5ftypes_2eproto_once, + file_level_metadata_sidechain_5ftypes_2eproto[5]); } // =================================================================== @@ -2165,9 +2215,9 @@ FlowInfo::FlowInfo( ::google::protobuf::Metadata FlowInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sidechain_5ftypes_2eproto_getter, &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[6]); + return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, + &descriptor_table_sidechain_5ftypes_2eproto_once, + file_level_metadata_sidechain_5ftypes_2eproto[6]); } // =================================================================== @@ -2200,9 +2250,9 @@ ManifestInfo::ManifestInfo( ::google::protobuf::Metadata ManifestInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sidechain_5ftypes_2eproto_getter, &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[7]); + return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, + &descriptor_table_sidechain_5ftypes_2eproto_once, + file_level_metadata_sidechain_5ftypes_2eproto[7]); } // =================================================================== @@ -2256,6 +2306,20 @@ inline void BuildInfo::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +BuildInfo::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_._cached_size_), + false, + }, + &BuildInfo::MergeImpl, + &BuildInfo::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void BuildInfo::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.BuildInfo) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2289,6 +2353,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 35, 2> BuildInfo::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_BuildInfo_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::BuildInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes commit_hash = 2; {::_pbi::TcParser::FastBS1, @@ -2367,15 +2434,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 35, 2> BuildInfo::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData BuildInfo::_class_data_ = { - BuildInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* BuildInfo::GetClassData() const { - return &_class_data_; -} -void BuildInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void BuildInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.BuildInfo) @@ -2403,9 +2463,6 @@ PROTOBUF_NOINLINE bool BuildInfo::IsInitialized() const { return true; } -::_pbi::CachedSize* BuildInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} void BuildInfo::InternalSwap(BuildInfo* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -2416,9 +2473,9 @@ void BuildInfo::InternalSwap(BuildInfo* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata BuildInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sidechain_5ftypes_2eproto_getter, &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[8]); + return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, + &descriptor_table_sidechain_5ftypes_2eproto_once, + file_level_metadata_sidechain_5ftypes_2eproto[8]); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -2428,4 +2485,8 @@ namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::std::false_type _static_init_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_sidechain_5ftypes_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/external/src/Tari/proto/gRPC/sidechain_types.pb.h b/external/src/Tari/proto/gRPC/sidechain_types.pb.h index c4b2bc7..249ba8d 100644 --- a/external/src/Tari/proto/gRPC/sidechain_types.pb.h +++ b/external/src/Tari/proto/gRPC/sidechain_types.pb.h @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: sidechain_types.proto -// Protobuf C++ Version: 4.25.2 +// Protobuf C++ Version: 5.26.0-rc1 #ifndef GOOGLE_PROTOBUF_INCLUDED_sidechain_5ftypes_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_sidechain_5ftypes_2eproto_2epb_2eh @@ -11,17 +11,11 @@ #include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#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 // PROTOBUF_VERSION - -#if 4025002 < 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 // PROTOBUF_MIN_PROTOC_VERSION +#if PROTOBUF_VERSION != 5026000 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" @@ -101,21 +95,18 @@ namespace rpc { // ------------------------------------------------------------------- -class WasmInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.WasmInfo) */ { +class WasmInfo final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.WasmInfo) */ { public: inline WasmInfo() : WasmInfo(nullptr) {} ~WasmInfo() override; - template - explicit PROTOBUF_CONSTEXPR WasmInfo(::google::protobuf::internal::ConstantInitialized); - - inline WasmInfo(const WasmInfo& from) - : WasmInfo(nullptr, from) {} - WasmInfo(WasmInfo&& from) noexcept - : WasmInfo() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR WasmInfo( + ::google::protobuf::internal::ConstantInitialized); + inline WasmInfo(const WasmInfo& from) : WasmInfo(nullptr, from) {} + inline WasmInfo(WasmInfo&& from) noexcept + : WasmInfo(nullptr, std::move(from)) {} inline WasmInfo& operator=(const WasmInfo& from) { CopyFrom(from); return *this; @@ -123,9 +114,9 @@ class WasmInfo final : inline WasmInfo& operator=(WasmInfo&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -157,22 +148,17 @@ class WasmInfo final : } static inline const WasmInfo* internal_default_instance() { return reinterpret_cast( - &_WasmInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(WasmInfo& a, WasmInfo& b) { - a.Swap(&b); + &_WasmInfo_default_instance_); } + static constexpr int kIndexInFileMessages = 5; + friend void swap(WasmInfo& a, WasmInfo& b) { a.Swap(&b); } inline void Swap(WasmInfo* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -187,51 +173,52 @@ class WasmInfo final : // implements Message ---------------------------------------------- WasmInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const WasmInfo& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const WasmInfo& from) { - WasmInfo::MergeImpl(*this, from); - } + void MergeFrom(const WasmInfo& from) { WasmInfo::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(WasmInfo* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.WasmInfo"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.WasmInfo"; } + + protected: explicit WasmInfo(::google::protobuf::Arena* arena); WasmInfo(::google::protobuf::Arena* arena, const WasmInfo& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + WasmInfo(::google::protobuf::Arena* arena, WasmInfo&& from) noexcept + : WasmInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAbiVersionFieldNumber = 1, }; @@ -248,7 +235,6 @@ class WasmInfo final : // @@protoc_insertion_point(class_scope:tari.rpc.WasmInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -261,35 +247,32 @@ class WasmInfo final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint32_t abi_version_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ManifestInfo final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:tari.rpc.ManifestInfo) */ { +class ManifestInfo final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:tari.rpc.ManifestInfo) */ { public: inline ManifestInfo() : ManifestInfo(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ManifestInfo(::google::protobuf::internal::ConstantInitialized); - - inline ManifestInfo(const ManifestInfo& from) - : ManifestInfo(nullptr, from) {} - ManifestInfo(ManifestInfo&& from) noexcept - : ManifestInfo() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR ManifestInfo( + ::google::protobuf::internal::ConstantInitialized); + inline ManifestInfo(const ManifestInfo& from) : ManifestInfo(nullptr, from) {} + inline ManifestInfo(ManifestInfo&& from) noexcept + : ManifestInfo(nullptr, std::move(from)) {} inline ManifestInfo& operator=(const ManifestInfo& from) { CopyFrom(from); return *this; @@ -297,9 +280,9 @@ class ManifestInfo final : inline ManifestInfo& operator=(ManifestInfo&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -331,22 +314,17 @@ class ManifestInfo final : } static inline const ManifestInfo* internal_default_instance() { return reinterpret_cast( - &_ManifestInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(ManifestInfo& a, ManifestInfo& b) { - a.Swap(&b); + &_ManifestInfo_default_instance_); } + static constexpr int kIndexInFileMessages = 7; + friend void swap(ManifestInfo& a, ManifestInfo& b) { a.Swap(&b); } inline void Swap(ManifestInfo* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -361,7 +339,7 @@ class ManifestInfo final : // implements Message ---------------------------------------------- ManifestInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const ManifestInfo& from) { @@ -371,28 +349,28 @@ class ManifestInfo final : void MergeFrom(const ManifestInfo& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: + public: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.ManifestInfo"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.ManifestInfo"; } + + protected: explicit ManifestInfo(::google::protobuf::Arena* arena); ManifestInfo(::google::protobuf::Arena* arena, const ManifestInfo& from); - public: + ManifestInfo(::google::protobuf::Arena* arena, ManifestInfo&& from) noexcept + : ManifestInfo(arena) { + *this = ::std::move(from); + } + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:tari.rpc.ManifestInfo) private: class _Internal; - friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -400,32 +378,29 @@ class ManifestInfo final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlowInfo final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:tari.rpc.FlowInfo) */ { +class FlowInfo final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:tari.rpc.FlowInfo) */ { public: inline FlowInfo() : FlowInfo(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR FlowInfo(::google::protobuf::internal::ConstantInitialized); - - inline FlowInfo(const FlowInfo& from) - : FlowInfo(nullptr, from) {} - FlowInfo(FlowInfo&& from) noexcept - : FlowInfo() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR FlowInfo( + ::google::protobuf::internal::ConstantInitialized); + inline FlowInfo(const FlowInfo& from) : FlowInfo(nullptr, from) {} + inline FlowInfo(FlowInfo&& from) noexcept + : FlowInfo(nullptr, std::move(from)) {} inline FlowInfo& operator=(const FlowInfo& from) { CopyFrom(from); return *this; @@ -433,9 +408,9 @@ class FlowInfo final : inline FlowInfo& operator=(FlowInfo&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -467,22 +442,17 @@ class FlowInfo final : } static inline const FlowInfo* internal_default_instance() { return reinterpret_cast( - &_FlowInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(FlowInfo& a, FlowInfo& b) { - a.Swap(&b); + &_FlowInfo_default_instance_); } + static constexpr int kIndexInFileMessages = 6; + friend void swap(FlowInfo& a, FlowInfo& b) { a.Swap(&b); } inline void Swap(FlowInfo* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -497,7 +467,7 @@ class FlowInfo final : // implements Message ---------------------------------------------- FlowInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const FlowInfo& from) { @@ -507,28 +477,28 @@ class FlowInfo final : void MergeFrom(const FlowInfo& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: + public: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.FlowInfo"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.FlowInfo"; } + + protected: explicit FlowInfo(::google::protobuf::Arena* arena); FlowInfo(::google::protobuf::Arena* arena, const FlowInfo& from); - public: + FlowInfo(::google::protobuf::Arena* arena, FlowInfo&& from) noexcept + : FlowInfo(arena) { + *this = ::std::move(from); + } + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:tari.rpc.FlowInfo) private: class _Internal; - friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -536,33 +506,30 @@ class FlowInfo final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ConfidentialOutputData final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ConfidentialOutputData) */ { +class ConfidentialOutputData final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ConfidentialOutputData) */ { public: inline ConfidentialOutputData() : ConfidentialOutputData(nullptr) {} ~ConfidentialOutputData() override; - template - explicit PROTOBUF_CONSTEXPR ConfidentialOutputData(::google::protobuf::internal::ConstantInitialized); - - inline ConfidentialOutputData(const ConfidentialOutputData& from) - : ConfidentialOutputData(nullptr, from) {} - ConfidentialOutputData(ConfidentialOutputData&& from) noexcept - : ConfidentialOutputData() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR ConfidentialOutputData( + ::google::protobuf::internal::ConstantInitialized); + inline ConfidentialOutputData(const ConfidentialOutputData& from) : ConfidentialOutputData(nullptr, from) {} + inline ConfidentialOutputData(ConfidentialOutputData&& from) noexcept + : ConfidentialOutputData(nullptr, std::move(from)) {} inline ConfidentialOutputData& operator=(const ConfidentialOutputData& from) { CopyFrom(from); return *this; @@ -570,9 +537,9 @@ class ConfidentialOutputData final : inline ConfidentialOutputData& operator=(ConfidentialOutputData&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -604,22 +571,17 @@ class ConfidentialOutputData final : } static inline const ConfidentialOutputData* internal_default_instance() { return reinterpret_cast( - &_ConfidentialOutputData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ConfidentialOutputData& a, ConfidentialOutputData& b) { - a.Swap(&b); + &_ConfidentialOutputData_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(ConfidentialOutputData& a, ConfidentialOutputData& b) { a.Swap(&b); } inline void Swap(ConfidentialOutputData* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -634,51 +596,52 @@ class ConfidentialOutputData final : // implements Message ---------------------------------------------- ConfidentialOutputData* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ConfidentialOutputData& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ConfidentialOutputData& from) { - ConfidentialOutputData::MergeImpl(*this, from); - } + void MergeFrom(const ConfidentialOutputData& from) { ConfidentialOutputData::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(ConfidentialOutputData* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.ConfidentialOutputData"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.ConfidentialOutputData"; } + + protected: explicit ConfidentialOutputData(::google::protobuf::Arena* arena); ConfidentialOutputData(::google::protobuf::Arena* arena, const ConfidentialOutputData& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + ConfidentialOutputData(::google::protobuf::Arena* arena, ConfidentialOutputData&& from) noexcept + : ConfidentialOutputData(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kClaimPublicKeyFieldNumber = 1, }; @@ -701,7 +664,6 @@ class ConfidentialOutputData final : // @@protoc_insertion_point(class_scope:tari.rpc.ConfidentialOutputData) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -714,36 +676,33 @@ class ConfidentialOutputData final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr claim_public_key_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BuildInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BuildInfo) */ { +class BuildInfo final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.BuildInfo) */ { public: inline BuildInfo() : BuildInfo(nullptr) {} ~BuildInfo() override; - template - explicit PROTOBUF_CONSTEXPR BuildInfo(::google::protobuf::internal::ConstantInitialized); - - inline BuildInfo(const BuildInfo& from) - : BuildInfo(nullptr, from) {} - BuildInfo(BuildInfo&& from) noexcept - : BuildInfo() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR BuildInfo( + ::google::protobuf::internal::ConstantInitialized); + inline BuildInfo(const BuildInfo& from) : BuildInfo(nullptr, from) {} + inline BuildInfo(BuildInfo&& from) noexcept + : BuildInfo(nullptr, std::move(from)) {} inline BuildInfo& operator=(const BuildInfo& from) { CopyFrom(from); return *this; @@ -751,9 +710,9 @@ class BuildInfo final : inline BuildInfo& operator=(BuildInfo&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -785,22 +744,17 @@ class BuildInfo final : } static inline const BuildInfo* internal_default_instance() { return reinterpret_cast( - &_BuildInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(BuildInfo& a, BuildInfo& b) { - a.Swap(&b); + &_BuildInfo_default_instance_); } + static constexpr int kIndexInFileMessages = 8; + friend void swap(BuildInfo& a, BuildInfo& b) { a.Swap(&b); } inline void Swap(BuildInfo* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -815,51 +769,52 @@ class BuildInfo final : // implements Message ---------------------------------------------- BuildInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const BuildInfo& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BuildInfo& from) { - BuildInfo::MergeImpl(*this, from); - } + void MergeFrom(const BuildInfo& from) { BuildInfo::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(BuildInfo* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.BuildInfo"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.BuildInfo"; } + + protected: explicit BuildInfo(::google::protobuf::Arena* arena); BuildInfo(::google::protobuf::Arena* arena, const BuildInfo& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + BuildInfo(::google::protobuf::Arena* arena, BuildInfo&& from) noexcept + : BuildInfo(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kRepoUrlFieldNumber = 1, kCommitHashFieldNumber = 2, @@ -899,7 +854,6 @@ class BuildInfo final : // @@protoc_insertion_point(class_scope:tari.rpc.BuildInfo) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -912,13 +866,12 @@ class BuildInfo final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr repo_url_; ::google::protobuf::internal::ArenaStringPtr commit_hash_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -926,23 +879,21 @@ class BuildInfo final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ValidatorNodeRegistration final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ValidatorNodeRegistration) */ { +class ValidatorNodeRegistration final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ValidatorNodeRegistration) */ { public: inline ValidatorNodeRegistration() : ValidatorNodeRegistration(nullptr) {} ~ValidatorNodeRegistration() override; - template - explicit PROTOBUF_CONSTEXPR ValidatorNodeRegistration(::google::protobuf::internal::ConstantInitialized); - - inline ValidatorNodeRegistration(const ValidatorNodeRegistration& from) - : ValidatorNodeRegistration(nullptr, from) {} - ValidatorNodeRegistration(ValidatorNodeRegistration&& from) noexcept - : ValidatorNodeRegistration() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR ValidatorNodeRegistration( + ::google::protobuf::internal::ConstantInitialized); + inline ValidatorNodeRegistration(const ValidatorNodeRegistration& from) : ValidatorNodeRegistration(nullptr, from) {} + inline ValidatorNodeRegistration(ValidatorNodeRegistration&& from) noexcept + : ValidatorNodeRegistration(nullptr, std::move(from)) {} inline ValidatorNodeRegistration& operator=(const ValidatorNodeRegistration& from) { CopyFrom(from); return *this; @@ -950,9 +901,9 @@ class ValidatorNodeRegistration final : inline ValidatorNodeRegistration& operator=(ValidatorNodeRegistration&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -984,22 +935,17 @@ class ValidatorNodeRegistration final : } static inline const ValidatorNodeRegistration* internal_default_instance() { return reinterpret_cast( - &_ValidatorNodeRegistration_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(ValidatorNodeRegistration& a, ValidatorNodeRegistration& b) { - a.Swap(&b); + &_ValidatorNodeRegistration_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(ValidatorNodeRegistration& a, ValidatorNodeRegistration& b) { a.Swap(&b); } inline void Swap(ValidatorNodeRegistration* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1014,51 +960,52 @@ class ValidatorNodeRegistration final : // implements Message ---------------------------------------------- ValidatorNodeRegistration* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ValidatorNodeRegistration& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ValidatorNodeRegistration& from) { - ValidatorNodeRegistration::MergeImpl(*this, from); - } + void MergeFrom(const ValidatorNodeRegistration& from) { ValidatorNodeRegistration::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(ValidatorNodeRegistration* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.ValidatorNodeRegistration"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.ValidatorNodeRegistration"; } + + protected: explicit ValidatorNodeRegistration(::google::protobuf::Arena* arena); ValidatorNodeRegistration(::google::protobuf::Arena* arena, const ValidatorNodeRegistration& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + ValidatorNodeRegistration(::google::protobuf::Arena* arena, ValidatorNodeRegistration&& from) noexcept + : ValidatorNodeRegistration(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kPublicKeyFieldNumber = 1, kSignatureFieldNumber = 2, @@ -1097,7 +1044,6 @@ class ValidatorNodeRegistration final : // @@protoc_insertion_point(class_scope:tari.rpc.ValidatorNodeRegistration) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, @@ -1110,13 +1056,12 @@ class ValidatorNodeRegistration final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr public_key_; @@ -1125,23 +1070,21 @@ class ValidatorNodeRegistration final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TemplateType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.TemplateType) */ { +class TemplateType final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.TemplateType) */ { public: inline TemplateType() : TemplateType(nullptr) {} ~TemplateType() override; - template - explicit PROTOBUF_CONSTEXPR TemplateType(::google::protobuf::internal::ConstantInitialized); - - inline TemplateType(const TemplateType& from) - : TemplateType(nullptr, from) {} - TemplateType(TemplateType&& from) noexcept - : TemplateType() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR TemplateType( + ::google::protobuf::internal::ConstantInitialized); + inline TemplateType(const TemplateType& from) : TemplateType(nullptr, from) {} + inline TemplateType(TemplateType&& from) noexcept + : TemplateType(nullptr, std::move(from)) {} inline TemplateType& operator=(const TemplateType& from) { CopyFrom(from); return *this; @@ -1149,9 +1092,9 @@ class TemplateType final : inline TemplateType& operator=(TemplateType&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1187,25 +1130,19 @@ class TemplateType final : kManifest = 3, TEMPLATE_TYPE_NOT_SET = 0, }; - static inline const TemplateType* internal_default_instance() { return reinterpret_cast( - &_TemplateType_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(TemplateType& a, TemplateType& b) { - a.Swap(&b); + &_TemplateType_default_instance_); } + static constexpr int kIndexInFileMessages = 4; + friend void swap(TemplateType& a, TemplateType& b) { a.Swap(&b); } inline void Swap(TemplateType* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1220,51 +1157,52 @@ class TemplateType final : // implements Message ---------------------------------------------- TemplateType* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TemplateType& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TemplateType& from) { - TemplateType::MergeImpl(*this, from); - } + void MergeFrom(const TemplateType& from) { TemplateType::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(TemplateType* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.TemplateType"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.TemplateType"; } + + protected: explicit TemplateType(::google::protobuf::Arena* arena); TemplateType(::google::protobuf::Arena* arena, const TemplateType& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + TemplateType(::google::protobuf::Arena* arena, TemplateType&& from) noexcept + : TemplateType(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kWasmFieldNumber = 1, kFlowFieldNumber = 2, @@ -1335,10 +1273,8 @@ class TemplateType final : void set_has_wasm(); void set_has_flow(); void set_has_manifest(); - inline bool has_template_type() const; inline void clear_has_template_type(); - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 3, 3, @@ -1351,44 +1287,40 @@ class TemplateType final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); union TemplateTypeUnion { constexpr TemplateTypeUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::internal::ConstantInitialized _constinit_; ::tari::rpc::WasmInfo* wasm_; ::tari::rpc::FlowInfo* flow_; ::tari::rpc::ManifestInfo* manifest_; } template_type_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TemplateRegistration final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.TemplateRegistration) */ { +class TemplateRegistration final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.TemplateRegistration) */ { public: inline TemplateRegistration() : TemplateRegistration(nullptr) {} ~TemplateRegistration() override; - template - explicit PROTOBUF_CONSTEXPR TemplateRegistration(::google::protobuf::internal::ConstantInitialized); - - inline TemplateRegistration(const TemplateRegistration& from) - : TemplateRegistration(nullptr, from) {} - TemplateRegistration(TemplateRegistration&& from) noexcept - : TemplateRegistration() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR TemplateRegistration( + ::google::protobuf::internal::ConstantInitialized); + inline TemplateRegistration(const TemplateRegistration& from) : TemplateRegistration(nullptr, from) {} + inline TemplateRegistration(TemplateRegistration&& from) noexcept + : TemplateRegistration(nullptr, std::move(from)) {} inline TemplateRegistration& operator=(const TemplateRegistration& from) { CopyFrom(from); return *this; @@ -1396,9 +1328,9 @@ class TemplateRegistration final : inline TemplateRegistration& operator=(TemplateRegistration&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1430,22 +1362,17 @@ class TemplateRegistration final : } static inline const TemplateRegistration* internal_default_instance() { return reinterpret_cast( - &_TemplateRegistration_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(TemplateRegistration& a, TemplateRegistration& b) { - a.Swap(&b); + &_TemplateRegistration_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(TemplateRegistration& a, TemplateRegistration& b) { a.Swap(&b); } inline void Swap(TemplateRegistration* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1460,51 +1387,52 @@ class TemplateRegistration final : // implements Message ---------------------------------------------- TemplateRegistration* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TemplateRegistration& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TemplateRegistration& from) { - TemplateRegistration::MergeImpl(*this, from); - } + void MergeFrom(const TemplateRegistration& from) { TemplateRegistration::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(TemplateRegistration* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.TemplateRegistration"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.TemplateRegistration"; } + + protected: explicit TemplateRegistration(::google::protobuf::Arena* arena); TemplateRegistration(::google::protobuf::Arena* arena, const TemplateRegistration& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + TemplateRegistration(::google::protobuf::Arena* arena, TemplateRegistration&& from) noexcept + : TemplateRegistration(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAuthorPublicKeyFieldNumber = 1, kTemplateNameFieldNumber = 3, @@ -1637,7 +1565,6 @@ class TemplateRegistration final : // @@protoc_insertion_point(class_scope:tari.rpc.TemplateRegistration) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 8, 3, @@ -1650,13 +1577,12 @@ class TemplateRegistration final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr author_public_key_; @@ -1671,23 +1597,21 @@ class TemplateRegistration final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SideChainFeature final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SideChainFeature) */ { +class SideChainFeature final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SideChainFeature) */ { public: inline SideChainFeature() : SideChainFeature(nullptr) {} ~SideChainFeature() override; - template - explicit PROTOBUF_CONSTEXPR SideChainFeature(::google::protobuf::internal::ConstantInitialized); - - inline SideChainFeature(const SideChainFeature& from) - : SideChainFeature(nullptr, from) {} - SideChainFeature(SideChainFeature&& from) noexcept - : SideChainFeature() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR SideChainFeature( + ::google::protobuf::internal::ConstantInitialized); + inline SideChainFeature(const SideChainFeature& from) : SideChainFeature(nullptr, from) {} + inline SideChainFeature(SideChainFeature&& from) noexcept + : SideChainFeature(nullptr, std::move(from)) {} inline SideChainFeature& operator=(const SideChainFeature& from) { CopyFrom(from); return *this; @@ -1695,9 +1619,9 @@ class SideChainFeature final : inline SideChainFeature& operator=(SideChainFeature&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1733,25 +1657,19 @@ class SideChainFeature final : kConfidentialOutput = 3, SIDE_CHAIN_FEATURE_NOT_SET = 0, }; - static inline const SideChainFeature* internal_default_instance() { return reinterpret_cast( - &_SideChainFeature_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SideChainFeature& a, SideChainFeature& b) { - a.Swap(&b); + &_SideChainFeature_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(SideChainFeature& a, SideChainFeature& b) { a.Swap(&b); } inline void Swap(SideChainFeature* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1766,51 +1684,52 @@ class SideChainFeature final : // implements Message ---------------------------------------------- SideChainFeature* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SideChainFeature& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SideChainFeature& from) { - SideChainFeature::MergeImpl(*this, from); - } + void MergeFrom(const SideChainFeature& from) { SideChainFeature::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(SideChainFeature* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.SideChainFeature"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.SideChainFeature"; } + + protected: explicit SideChainFeature(::google::protobuf::Arena* arena); SideChainFeature(::google::protobuf::Arena* arena, const SideChainFeature& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + SideChainFeature(::google::protobuf::Arena* arena, SideChainFeature&& from) noexcept + : SideChainFeature(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kValidatorNodeRegistrationFieldNumber = 1, kTemplateRegistrationFieldNumber = 2, @@ -1881,10 +1800,8 @@ class SideChainFeature final : void set_has_validator_node_registration(); void set_has_template_registration(); void set_has_confidential_output(); - inline bool has_side_chain_feature() const; inline void clear_has_side_chain_feature(); - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 3, 3, @@ -1897,23 +1814,21 @@ class SideChainFeature final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); union SideChainFeatureUnion { constexpr SideChainFeatureUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::internal::ConstantInitialized _constinit_; ::tari::rpc::ValidatorNodeRegistration* validator_node_registration_; ::tari::rpc::TemplateRegistration* template_registration_; ::tari::rpc::ConfidentialOutputData* confidential_output_; } side_chain_feature_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; @@ -2002,7 +1917,8 @@ inline ::tari::rpc::ValidatorNodeRegistration* SideChainFeature::_internal_mutab if (side_chain_feature_case() != kValidatorNodeRegistration) { clear_side_chain_feature(); set_has_validator_node_registration(); - _impl_.side_chain_feature_.validator_node_registration_ = CreateMaybeMessage<::tari::rpc::ValidatorNodeRegistration>(GetArena()); + _impl_.side_chain_feature_.validator_node_registration_ = + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ValidatorNodeRegistration>(GetArena()); } return _impl_.side_chain_feature_.validator_node_registration_; } @@ -2078,7 +1994,8 @@ inline ::tari::rpc::TemplateRegistration* SideChainFeature::_internal_mutable_te if (side_chain_feature_case() != kTemplateRegistration) { clear_side_chain_feature(); set_has_template_registration(); - _impl_.side_chain_feature_.template_registration_ = CreateMaybeMessage<::tari::rpc::TemplateRegistration>(GetArena()); + _impl_.side_chain_feature_.template_registration_ = + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::TemplateRegistration>(GetArena()); } return _impl_.side_chain_feature_.template_registration_; } @@ -2154,7 +2071,8 @@ inline ::tari::rpc::ConfidentialOutputData* SideChainFeature::_internal_mutable_ if (side_chain_feature_case() != kConfidentialOutput) { clear_side_chain_feature(); set_has_confidential_output(); - _impl_.side_chain_feature_.confidential_output_ = CreateMaybeMessage<::tari::rpc::ConfidentialOutputData>(GetArena()); + _impl_.side_chain_feature_.confidential_output_ = + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ConfidentialOutputData>(GetArena()); } return _impl_.side_chain_feature_.confidential_output_; } @@ -2191,7 +2109,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ValidatorNodeRegistration::set_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ValidatorNodeRegistration.public_key) } @@ -2206,12 +2123,10 @@ inline const std::string& ValidatorNodeRegistration::_internal_public_key() cons } inline void ValidatorNodeRegistration::_internal_set_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_key_.Set(value, GetArena()); } inline std::string* ValidatorNodeRegistration::_internal_mutable_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.public_key_.Mutable( GetArena()); } inline std::string* ValidatorNodeRegistration::release_public_key() { @@ -2288,14 +2203,14 @@ inline ::tari::rpc::Signature* ValidatorNodeRegistration::unsafe_arena_release_s } inline ::tari::rpc::Signature* ValidatorNodeRegistration::_internal_mutable_signature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.signature_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Signature>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Signature>(GetArena()); _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(p); } return _impl_.signature_; } inline ::tari::rpc::Signature* ValidatorNodeRegistration::mutable_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::Signature* _msg = _internal_mutable_signature(); // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeRegistration.signature) return _msg; @@ -2339,7 +2254,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_author_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.author_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.author_public_key) } @@ -2354,12 +2268,10 @@ inline const std::string& TemplateRegistration::_internal_author_public_key() co } inline void TemplateRegistration::_internal_set_author_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.author_public_key_.Set(value, GetArena()); } inline std::string* TemplateRegistration::_internal_mutable_author_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.author_public_key_.Mutable( GetArena()); } inline std::string* TemplateRegistration::release_author_public_key() { @@ -2436,14 +2348,14 @@ inline ::tari::rpc::Signature* TemplateRegistration::unsafe_arena_release_author } inline ::tari::rpc::Signature* TemplateRegistration::_internal_mutable_author_signature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.author_signature_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Signature>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Signature>(GetArena()); _impl_.author_signature_ = reinterpret_cast<::tari::rpc::Signature*>(p); } return _impl_.author_signature_; } inline ::tari::rpc::Signature* TemplateRegistration::mutable_author_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::Signature* _msg = _internal_mutable_author_signature(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.author_signature) return _msg; @@ -2483,7 +2395,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_template_name(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.template_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.template_name) } @@ -2498,12 +2409,10 @@ inline const std::string& TemplateRegistration::_internal_template_name() const } inline void TemplateRegistration::_internal_set_template_name(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.template_name_.Set(value, GetArena()); } inline std::string* TemplateRegistration::_internal_mutable_template_name() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.template_name_.Mutable( GetArena()); } inline std::string* TemplateRegistration::release_template_name() { @@ -2541,7 +2450,6 @@ inline ::uint32_t TemplateRegistration::_internal_template_version() const { } inline void TemplateRegistration::_internal_set_template_version(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.template_version_ = value; } @@ -2608,14 +2516,14 @@ inline ::tari::rpc::TemplateType* TemplateRegistration::unsafe_arena_release_tem } inline ::tari::rpc::TemplateType* TemplateRegistration::_internal_mutable_template_type() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; if (_impl_.template_type_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::TemplateType>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::TemplateType>(GetArena()); _impl_.template_type_ = reinterpret_cast<::tari::rpc::TemplateType*>(p); } return _impl_.template_type_; } inline ::tari::rpc::TemplateType* TemplateRegistration::mutable_template_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::tari::rpc::TemplateType* _msg = _internal_mutable_template_type(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.template_type) return _msg; @@ -2624,11 +2532,11 @@ inline void TemplateRegistration::set_allocated_template_type(::tari::rpc::Templ ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::TemplateType*>(_impl_.template_type_); + delete (_impl_.template_type_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::TemplateType*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2704,14 +2612,14 @@ inline ::tari::rpc::BuildInfo* TemplateRegistration::unsafe_arena_release_build_ } inline ::tari::rpc::BuildInfo* TemplateRegistration::_internal_mutable_build_info() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; if (_impl_.build_info_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::BuildInfo>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::BuildInfo>(GetArena()); _impl_.build_info_ = reinterpret_cast<::tari::rpc::BuildInfo*>(p); } return _impl_.build_info_; } inline ::tari::rpc::BuildInfo* TemplateRegistration::mutable_build_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::tari::rpc::BuildInfo* _msg = _internal_mutable_build_info(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.build_info) return _msg; @@ -2720,11 +2628,11 @@ inline void TemplateRegistration::set_allocated_build_info(::tari::rpc::BuildInf ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::BuildInfo*>(_impl_.build_info_); + delete (_impl_.build_info_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::BuildInfo*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2751,7 +2659,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_binary_sha(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.binary_sha_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.binary_sha) } @@ -2766,12 +2673,10 @@ inline const std::string& TemplateRegistration::_internal_binary_sha() const { } inline void TemplateRegistration::_internal_set_binary_sha(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.binary_sha_.Set(value, GetArena()); } inline std::string* TemplateRegistration::_internal_mutable_binary_sha() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.binary_sha_.Mutable( GetArena()); } inline std::string* TemplateRegistration::release_binary_sha() { @@ -2804,7 +2709,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_binary_url(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.binary_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.binary_url) } @@ -2819,12 +2723,10 @@ inline const std::string& TemplateRegistration::_internal_binary_url() const { } inline void TemplateRegistration::_internal_set_binary_url(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.binary_url_.Set(value, GetArena()); } inline std::string* TemplateRegistration::_internal_mutable_binary_url() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.binary_url_.Mutable( GetArena()); } inline std::string* TemplateRegistration::release_binary_url() { @@ -2861,7 +2763,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ConfidentialOutputData::set_claim_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.claim_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ConfidentialOutputData.claim_public_key) } @@ -2876,12 +2777,10 @@ inline const std::string& ConfidentialOutputData::_internal_claim_public_key() c } inline void ConfidentialOutputData::_internal_set_claim_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.claim_public_key_.Set(value, GetArena()); } inline std::string* ConfidentialOutputData::_internal_mutable_claim_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.claim_public_key_.Mutable( GetArena()); } inline std::string* ConfidentialOutputData::release_claim_public_key() { @@ -2970,7 +2869,8 @@ inline ::tari::rpc::WasmInfo* TemplateType::_internal_mutable_wasm() { if (template_type_case() != kWasm) { clear_template_type(); set_has_wasm(); - _impl_.template_type_.wasm_ = CreateMaybeMessage<::tari::rpc::WasmInfo>(GetArena()); + _impl_.template_type_.wasm_ = + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::WasmInfo>(GetArena()); } return _impl_.template_type_.wasm_; } @@ -3046,7 +2946,8 @@ inline ::tari::rpc::FlowInfo* TemplateType::_internal_mutable_flow() { if (template_type_case() != kFlow) { clear_template_type(); set_has_flow(); - _impl_.template_type_.flow_ = CreateMaybeMessage<::tari::rpc::FlowInfo>(GetArena()); + _impl_.template_type_.flow_ = + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::FlowInfo>(GetArena()); } return _impl_.template_type_.flow_; } @@ -3122,7 +3023,8 @@ inline ::tari::rpc::ManifestInfo* TemplateType::_internal_mutable_manifest() { if (template_type_case() != kManifest) { clear_template_type(); set_has_manifest(); - _impl_.template_type_.manifest_ = CreateMaybeMessage<::tari::rpc::ManifestInfo>(GetArena()); + _impl_.template_type_.manifest_ = + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ManifestInfo>(GetArena()); } return _impl_.template_type_.manifest_; } @@ -3164,7 +3066,6 @@ inline ::uint32_t WasmInfo::_internal_abi_version() const { } inline void WasmInfo::_internal_set_abi_version(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.abi_version_ = value; } @@ -3194,7 +3095,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BuildInfo::set_repo_url(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.repo_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BuildInfo.repo_url) } @@ -3209,12 +3109,10 @@ inline const std::string& BuildInfo::_internal_repo_url() const { } inline void BuildInfo::_internal_set_repo_url(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.repo_url_.Set(value, GetArena()); } inline std::string* BuildInfo::_internal_mutable_repo_url() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.repo_url_.Mutable( GetArena()); } inline std::string* BuildInfo::release_repo_url() { @@ -3247,7 +3145,6 @@ template inline PROTOBUF_ALWAYS_INLINE void BuildInfo::set_commit_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.commit_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BuildInfo.commit_hash) } @@ -3262,12 +3159,10 @@ inline const std::string& BuildInfo::_internal_commit_hash() const { } inline void BuildInfo::_internal_set_commit_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.commit_hash_.Set(value, GetArena()); } inline std::string* BuildInfo::_internal_mutable_commit_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.commit_hash_.Mutable( GetArena()); } inline std::string* BuildInfo::release_commit_hash() { diff --git a/external/src/Tari/proto/gRPC/transaction.pb.cc b/external/src/Tari/proto/gRPC/transaction.pb.cc index 855e285..0fb2beb 100644 --- a/external/src/Tari/proto/gRPC/transaction.pb.cc +++ b/external/src/Tari/proto/gRPC/transaction.pb.cc @@ -1,5 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: transaction.proto +// Protobuf C++ Version: 5.26.0-rc1 #include "transaction.pb.h" @@ -268,179 +269,180 @@ static constexpr const ::_pb::EnumDescriptor** file_level_enum_descriptors_transaction_2eproto = nullptr; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_transaction_2eproto = nullptr; -const ::uint32_t TableStruct_transaction_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.fee_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.lock_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.excess_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.excess_sig_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.burn_commitment_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.commitment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.script_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.input_data_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.script_signature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.sender_offset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.output_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.covenant_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.encrypted_data_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.minimum_value_promise_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.metadata_signature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.rangeproof_hash_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, - 1, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 2, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.commitment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.range_proof_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.script_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.sender_offset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.metadata_signature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.covenant_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.encrypted_data_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.minimum_value_promise_), - 0, - ~0u, - 1, - ~0u, - ~0u, - ~0u, - 2, - ~0u, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.output_type_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.maturity_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.coinbase_extra_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.sidechain_feature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.range_proof_type_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _impl_.inputs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _impl_.outputs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _impl_.kernels_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _impl_.offset_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _impl_.body_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _impl_.script_offset_), - ~0u, - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.spending_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.script_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.input_data_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.script_private_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.sender_offset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.metadata_signature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.script_lock_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.covenant_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.encrypted_data_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.minimum_value_promise_), - ~0u, - ~0u, - 0, - ~0u, - ~0u, - ~0u, - ~0u, - 1, - ~0u, - ~0u, - ~0u, - ~0u, +const ::uint32_t + TableStruct_transaction_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.features_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.fee_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.lock_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.excess_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.excess_sig_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.burn_commitment_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, + ~0u, + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.features_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.commitment_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.script_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.input_data_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.script_signature_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.sender_offset_public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.output_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.covenant_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.encrypted_data_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.minimum_value_promise_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.metadata_signature_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.rangeproof_hash_), + 0, + ~0u, + ~0u, + ~0u, + ~0u, + 1, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 2, + ~0u, + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.features_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.commitment_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.range_proof_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.script_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.sender_offset_public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.metadata_signature_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.covenant_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.encrypted_data_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.minimum_value_promise_), + 0, + ~0u, + 1, + ~0u, + ~0u, + ~0u, + 2, + ~0u, + ~0u, + ~0u, + ~0u, + PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.output_type_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.maturity_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.coinbase_extra_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.sidechain_feature_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.range_proof_type_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _impl_.inputs_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _impl_.outputs_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _impl_.kernels_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _impl_.offset_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _impl_.body_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _impl_.script_offset_), + ~0u, + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.spending_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.features_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.script_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.input_data_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.script_private_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.sender_offset_public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.metadata_signature_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.script_lock_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.covenant_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.encrypted_data_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.minimum_value_promise_), + ~0u, + ~0u, + 0, + ~0u, + ~0u, + ~0u, + ~0u, + 1, + ~0u, + ~0u, + ~0u, + ~0u, }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, 16, -1, sizeof(::tari::rpc::TransactionKernel)}, {24, 46, -1, sizeof(::tari::rpc::TransactionInput)}, {60, 79, -1, sizeof(::tari::rpc::TransactionOutput)}, @@ -449,7 +451,6 @@ static const ::_pbi::MigrationSchema {121, 132, -1, sizeof(::tari::rpc::Transaction)}, {135, 155, -1, sizeof(::tari::rpc::UnblindedOutput)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_TransactionKernel_default_instance_._instance, &::tari::rpc::_TransactionInput_default_instance_._instance, @@ -459,7 +460,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_Transaction_default_instance_._instance, &::tari::rpc::_UnblindedOutput_default_instance_._instance, }; -const char descriptor_table_protodef_transaction_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_transaction_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\021transaction.proto\022\010tari.rpc\032\013types.pro" "to\032\025sidechain_types.proto\"\270\001\n\021Transactio" "nKernel\022\020\n\010features\030\001 \001(\r\022\013\n\003fee\030\002 \001(\004\022\023" @@ -545,9 +547,6 @@ const ::_pbi::DescriptorTable descriptor_table_transaction_2eproto = { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_transaction_2eproto_getter() { return &descriptor_table_transaction_2eproto; } -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_transaction_2eproto(&descriptor_table_transaction_2eproto); namespace tari { namespace rpc { // =================================================================== @@ -557,15 +556,8 @@ class TransactionKernel::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_._has_bits_); - static const ::tari::rpc::Signature& excess_sig(const TransactionKernel* msg); - static void set_has_excess_sig(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::Signature& TransactionKernel::_Internal::excess_sig(const TransactionKernel* msg) { - return *msg->_impl_.excess_sig_; -} void TransactionKernel::clear_excess_sig() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.excess_sig_ != nullptr) _impl_.excess_sig_->Clear(); @@ -595,9 +587,9 @@ TransactionKernel::TransactionKernel( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.excess_sig_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::Signature>(arena, *from._impl_.excess_sig_) - : nullptr; + _impl_.excess_sig_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>( + arena, *from._impl_.excess_sig_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, fee_), reinterpret_cast(&from._impl_) + @@ -639,6 +631,20 @@ inline void TransactionKernel::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +TransactionKernel::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_._cached_size_), + false, + }, + &TransactionKernel::MergeImpl, + &TransactionKernel::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void TransactionKernel::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionKernel) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -682,6 +688,9 @@ const ::_pbi::TcParseTable<4, 8, 1, 0, 2> TransactionKernel::_table_ = { offsetof(decltype(_table_), aux_entries), &_TransactionKernel_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::TransactionKernel>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint32 features = 1; @@ -786,8 +795,7 @@ const ::_pbi::TcParseTable<4, 8, 1, 0, 2> TransactionKernel::_table_ = { // .tari.rpc.Signature excess_sig = 7; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::excess_sig(this), - _Internal::excess_sig(this).GetCachedSize(), target, stream); + 7, *_impl_.excess_sig_, _impl_.excess_sig_->GetCachedSize(), target, stream); } // bytes hash = 8; @@ -878,17 +886,11 @@ const ::_pbi::TcParseTable<4, 8, 1, 0, 2> TransactionKernel::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData TransactionKernel::_class_data_ = { - TransactionKernel::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TransactionKernel::GetClassData() const { - return &_class_data_; -} -void TransactionKernel::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void TransactionKernel::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.TransactionKernel) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -903,22 +905,29 @@ void TransactionKernel::MergeImpl(::google::protobuf::Message& to_msg, const ::g if (!from._internal_burn_commitment().empty()) { _this->_internal_set_burn_commitment(from._internal_burn_commitment()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_excess_sig()->::tari::rpc::Signature::MergeFrom( - from._internal_excess_sig()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.excess_sig_ != nullptr); + if (_this->_impl_.excess_sig_ == nullptr) { + _this->_impl_.excess_sig_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>(arena, *from._impl_.excess_sig_); + } else { + _this->_impl_.excess_sig_->MergeFrom(*from._impl_.excess_sig_); + } } if (from._internal_fee() != 0) { - _this->_internal_set_fee(from._internal_fee()); + _this->_impl_.fee_ = from._impl_.fee_; } if (from._internal_lock_height() != 0) { - _this->_internal_set_lock_height(from._internal_lock_height()); + _this->_impl_.lock_height_ = from._impl_.lock_height_; } if (from._internal_features() != 0) { - _this->_internal_set_features(from._internal_features()); + _this->_impl_.features_ = from._impl_.features_; } if (from._internal_version() != 0) { - _this->_internal_set_version(from._internal_version()); + _this->_impl_.version_ = from._impl_.version_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -933,9 +942,6 @@ PROTOBUF_NOINLINE bool TransactionKernel::IsInitialized() const { return true; } -::_pbi::CachedSize* TransactionKernel::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TransactionKernel::InternalSwap(TransactionKernel* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -954,9 +960,9 @@ void TransactionKernel::InternalSwap(TransactionKernel* PROTOBUF_RESTRICT other) } ::google::protobuf::Metadata TransactionKernel::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_transaction_2eproto_getter, &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[0]); + return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, + &descriptor_table_transaction_2eproto_once, + file_level_metadata_transaction_2eproto[0]); } // =================================================================== @@ -965,29 +971,8 @@ class TransactionInput::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_._has_bits_); - static const ::tari::rpc::OutputFeatures& features(const TransactionInput* msg); - static void set_has_features(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::tari::rpc::ComAndPubSignature& script_signature(const TransactionInput* msg); - static void set_has_script_signature(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::tari::rpc::ComAndPubSignature& metadata_signature(const TransactionInput* msg); - static void set_has_metadata_signature(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } }; -const ::tari::rpc::OutputFeatures& TransactionInput::_Internal::features(const TransactionInput* msg) { - return *msg->_impl_.features_; -} -const ::tari::rpc::ComAndPubSignature& TransactionInput::_Internal::script_signature(const TransactionInput* msg) { - return *msg->_impl_.script_signature_; -} -const ::tari::rpc::ComAndPubSignature& TransactionInput::_Internal::metadata_signature(const TransactionInput* msg) { - return *msg->_impl_.metadata_signature_; -} void TransactionInput::clear_script_signature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.script_signature_ != nullptr) _impl_.script_signature_->Clear(); @@ -1028,15 +1013,15 @@ TransactionInput::TransactionInput( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_) - : nullptr; - _impl_.script_signature_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.script_signature_) - : nullptr; - _impl_.metadata_signature_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.metadata_signature_) - : nullptr; + _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( + arena, *from._impl_.features_) + : nullptr; + _impl_.script_signature_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>( + arena, *from._impl_.script_signature_) + : nullptr; + _impl_.metadata_signature_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>( + arena, *from._impl_.metadata_signature_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, minimum_value_promise_), reinterpret_cast(&from._impl_) + @@ -1092,6 +1077,20 @@ inline void TransactionInput::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +TransactionInput::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_._cached_size_), + false, + }, + &TransactionInput::MergeImpl, + &TransactionInput::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void TransactionInput::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionInput) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1151,6 +1150,9 @@ const ::_pbi::TcParseTable<4, 14, 3, 0, 2> TransactionInput::_table_ = { offsetof(decltype(_table_), aux_entries), &_TransactionInput_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::TransactionInput>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // .tari.rpc.OutputFeatures features = 1; @@ -1260,8 +1262,7 @@ const ::_pbi::TcParseTable<4, 14, 3, 0, 2> TransactionInput::_table_ = { // .tari.rpc.OutputFeatures features = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::features(this), - _Internal::features(this).GetCachedSize(), target, stream); + 1, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); } // bytes commitment = 2; @@ -1291,8 +1292,7 @@ const ::_pbi::TcParseTable<4, 14, 3, 0, 2> TransactionInput::_table_ = { // .tari.rpc.ComAndPubSignature script_signature = 7; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::script_signature(this), - _Internal::script_signature(this).GetCachedSize(), target, stream); + 7, *_impl_.script_signature_, _impl_.script_signature_->GetCachedSize(), target, stream); } // bytes sender_offset_public_key = 8; @@ -1336,8 +1336,7 @@ const ::_pbi::TcParseTable<4, 14, 3, 0, 2> TransactionInput::_table_ = { // .tari.rpc.ComAndPubSignature metadata_signature = 14; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 14, _Internal::metadata_signature(this), - _Internal::metadata_signature(this).GetCachedSize(), target, stream); + 14, *_impl_.metadata_signature_, _impl_.metadata_signature_->GetCachedSize(), target, stream); } // bytes rangeproof_hash = 15; @@ -1453,17 +1452,11 @@ const ::_pbi::TcParseTable<4, 14, 3, 0, 2> TransactionInput::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData TransactionInput::_class_data_ = { - TransactionInput::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TransactionInput::GetClassData() const { - return &_class_data_; -} -void TransactionInput::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void TransactionInput::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.TransactionInput) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -1499,24 +1492,40 @@ void TransactionInput::MergeImpl(::google::protobuf::Message& to_msg, const ::go cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_features()->::tari::rpc::OutputFeatures::MergeFrom( - from._internal_features()); + ABSL_DCHECK(from._impl_.features_ != nullptr); + if (_this->_impl_.features_ == nullptr) { + _this->_impl_.features_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_); + } else { + _this->_impl_.features_->MergeFrom(*from._impl_.features_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_script_signature()->::tari::rpc::ComAndPubSignature::MergeFrom( - from._internal_script_signature()); + ABSL_DCHECK(from._impl_.script_signature_ != nullptr); + if (_this->_impl_.script_signature_ == nullptr) { + _this->_impl_.script_signature_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.script_signature_); + } else { + _this->_impl_.script_signature_->MergeFrom(*from._impl_.script_signature_); + } } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_metadata_signature()->::tari::rpc::ComAndPubSignature::MergeFrom( - from._internal_metadata_signature()); + ABSL_DCHECK(from._impl_.metadata_signature_ != nullptr); + if (_this->_impl_.metadata_signature_ == nullptr) { + _this->_impl_.metadata_signature_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.metadata_signature_); + } else { + _this->_impl_.metadata_signature_->MergeFrom(*from._impl_.metadata_signature_); + } } } if (from._internal_minimum_value_promise() != 0) { - _this->_internal_set_minimum_value_promise(from._internal_minimum_value_promise()); + _this->_impl_.minimum_value_promise_ = from._impl_.minimum_value_promise_; } if (from._internal_version() != 0) { - _this->_internal_set_version(from._internal_version()); + _this->_impl_.version_ = from._impl_.version_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1531,9 +1540,6 @@ PROTOBUF_NOINLINE bool TransactionInput::IsInitialized() const { return true; } -::_pbi::CachedSize* TransactionInput::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TransactionInput::InternalSwap(TransactionInput* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -1558,9 +1564,9 @@ void TransactionInput::InternalSwap(TransactionInput* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata TransactionInput::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_transaction_2eproto_getter, &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[1]); + return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, + &descriptor_table_transaction_2eproto_once, + file_level_metadata_transaction_2eproto[1]); } // =================================================================== @@ -1569,29 +1575,8 @@ class TransactionOutput::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_._has_bits_); - static const ::tari::rpc::OutputFeatures& features(const TransactionOutput* msg); - static void set_has_features(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::tari::rpc::RangeProof& range_proof(const TransactionOutput* msg); - static void set_has_range_proof(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::tari::rpc::ComAndPubSignature& metadata_signature(const TransactionOutput* msg); - static void set_has_metadata_signature(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } }; -const ::tari::rpc::OutputFeatures& TransactionOutput::_Internal::features(const TransactionOutput* msg) { - return *msg->_impl_.features_; -} -const ::tari::rpc::RangeProof& TransactionOutput::_Internal::range_proof(const TransactionOutput* msg) { - return *msg->_impl_.range_proof_; -} -const ::tari::rpc::ComAndPubSignature& TransactionOutput::_Internal::metadata_signature(const TransactionOutput* msg) { - return *msg->_impl_.metadata_signature_; -} void TransactionOutput::clear_range_proof() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.range_proof_ != nullptr) _impl_.range_proof_->Clear(); @@ -1629,15 +1614,15 @@ TransactionOutput::TransactionOutput( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_) - : nullptr; - _impl_.range_proof_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::tari::rpc::RangeProof>(arena, *from._impl_.range_proof_) - : nullptr; - _impl_.metadata_signature_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.metadata_signature_) - : nullptr; + _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( + arena, *from._impl_.features_) + : nullptr; + _impl_.range_proof_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::RangeProof>( + arena, *from._impl_.range_proof_) + : nullptr; + _impl_.metadata_signature_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>( + arena, *from._impl_.metadata_signature_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, minimum_value_promise_), reinterpret_cast(&from._impl_) + @@ -1687,6 +1672,20 @@ inline void TransactionOutput::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +TransactionOutput::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_._cached_size_), + false, + }, + &TransactionOutput::MergeImpl, + &TransactionOutput::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void TransactionOutput::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionOutput) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1743,6 +1742,9 @@ const ::_pbi::TcParseTable<4, 11, 3, 0, 2> TransactionOutput::_table_ = { offsetof(decltype(_table_), aux_entries), &_TransactionOutput_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::TransactionOutput>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // .tari.rpc.OutputFeatures features = 1; @@ -1837,8 +1839,7 @@ const ::_pbi::TcParseTable<4, 11, 3, 0, 2> TransactionOutput::_table_ = { // .tari.rpc.OutputFeatures features = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::features(this), - _Internal::features(this).GetCachedSize(), target, stream); + 1, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); } // bytes commitment = 2; @@ -1850,8 +1851,7 @@ const ::_pbi::TcParseTable<4, 11, 3, 0, 2> TransactionOutput::_table_ = { // .tari.rpc.RangeProof range_proof = 3; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::range_proof(this), - _Internal::range_proof(this).GetCachedSize(), target, stream); + 3, *_impl_.range_proof_, _impl_.range_proof_->GetCachedSize(), target, stream); } // bytes hash = 4; @@ -1875,8 +1875,7 @@ const ::_pbi::TcParseTable<4, 11, 3, 0, 2> TransactionOutput::_table_ = { // .tari.rpc.ComAndPubSignature metadata_signature = 7; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, _Internal::metadata_signature(this), - _Internal::metadata_signature(this).GetCachedSize(), target, stream); + 7, *_impl_.metadata_signature_, _impl_.metadata_signature_->GetCachedSize(), target, stream); } // bytes covenant = 8; @@ -1994,17 +1993,11 @@ const ::_pbi::TcParseTable<4, 11, 3, 0, 2> TransactionOutput::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData TransactionOutput::_class_data_ = { - TransactionOutput::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TransactionOutput::GetClassData() const { - return &_class_data_; -} -void TransactionOutput::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void TransactionOutput::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.TransactionOutput) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -2031,24 +2024,40 @@ void TransactionOutput::MergeImpl(::google::protobuf::Message& to_msg, const ::g cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_features()->::tari::rpc::OutputFeatures::MergeFrom( - from._internal_features()); + ABSL_DCHECK(from._impl_.features_ != nullptr); + if (_this->_impl_.features_ == nullptr) { + _this->_impl_.features_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_); + } else { + _this->_impl_.features_->MergeFrom(*from._impl_.features_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_range_proof()->::tari::rpc::RangeProof::MergeFrom( - from._internal_range_proof()); + ABSL_DCHECK(from._impl_.range_proof_ != nullptr); + if (_this->_impl_.range_proof_ == nullptr) { + _this->_impl_.range_proof_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::RangeProof>(arena, *from._impl_.range_proof_); + } else { + _this->_impl_.range_proof_->MergeFrom(*from._impl_.range_proof_); + } } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_metadata_signature()->::tari::rpc::ComAndPubSignature::MergeFrom( - from._internal_metadata_signature()); + ABSL_DCHECK(from._impl_.metadata_signature_ != nullptr); + if (_this->_impl_.metadata_signature_ == nullptr) { + _this->_impl_.metadata_signature_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.metadata_signature_); + } else { + _this->_impl_.metadata_signature_->MergeFrom(*from._impl_.metadata_signature_); + } } } if (from._internal_minimum_value_promise() != 0) { - _this->_internal_set_minimum_value_promise(from._internal_minimum_value_promise()); + _this->_impl_.minimum_value_promise_ = from._impl_.minimum_value_promise_; } if (from._internal_version() != 0) { - _this->_internal_set_version(from._internal_version()); + _this->_impl_.version_ = from._impl_.version_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2063,9 +2072,6 @@ PROTOBUF_NOINLINE bool TransactionOutput::IsInitialized() const { return true; } -::_pbi::CachedSize* TransactionOutput::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TransactionOutput::InternalSwap(TransactionOutput* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -2087,9 +2093,9 @@ void TransactionOutput::InternalSwap(TransactionOutput* PROTOBUF_RESTRICT other) } ::google::protobuf::Metadata TransactionOutput::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_transaction_2eproto_getter, &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[2]); + return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, + &descriptor_table_transaction_2eproto_once, + file_level_metadata_transaction_2eproto[2]); } // =================================================================== @@ -2098,15 +2104,8 @@ class OutputFeatures::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_._has_bits_); - static const ::tari::rpc::SideChainFeature& sidechain_feature(const OutputFeatures* msg); - static void set_has_sidechain_feature(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::SideChainFeature& OutputFeatures::_Internal::sidechain_feature(const OutputFeatures* msg) { - return *msg->_impl_.sidechain_feature_; -} void OutputFeatures::clear_sidechain_feature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.sidechain_feature_ != nullptr) _impl_.sidechain_feature_->Clear(); @@ -2134,9 +2133,9 @@ OutputFeatures::OutputFeatures( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.sidechain_feature_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::SideChainFeature>(arena, *from._impl_.sidechain_feature_) - : nullptr; + _impl_.sidechain_feature_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::SideChainFeature>( + arena, *from._impl_.sidechain_feature_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, version_), reinterpret_cast(&from._impl_) + @@ -2174,6 +2173,20 @@ inline void OutputFeatures::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +OutputFeatures::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_._cached_size_), + false, + }, + &OutputFeatures::MergeImpl, + &OutputFeatures::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void OutputFeatures::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.OutputFeatures) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2215,6 +2228,9 @@ const ::_pbi::TcParseTable<3, 6, 1, 0, 2> OutputFeatures::_table_ = { offsetof(decltype(_table_), aux_entries), &_OutputFeatures_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint32 version = 1; @@ -2301,8 +2317,7 @@ const ::_pbi::TcParseTable<3, 6, 1, 0, 2> OutputFeatures::_table_ = { // .tari.rpc.SideChainFeature sidechain_feature = 5; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::sidechain_feature(this), - _Internal::sidechain_feature(this).GetCachedSize(), target, stream); + 5, *_impl_.sidechain_feature_, _impl_.sidechain_feature_->GetCachedSize(), target, stream); } // uint32 range_proof_type = 6; @@ -2369,17 +2384,11 @@ const ::_pbi::TcParseTable<3, 6, 1, 0, 2> OutputFeatures::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData OutputFeatures::_class_data_ = { - OutputFeatures::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* OutputFeatures::GetClassData() const { - return &_class_data_; -} -void OutputFeatures::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void OutputFeatures::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.OutputFeatures) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -2388,22 +2397,29 @@ void OutputFeatures::MergeImpl(::google::protobuf::Message& to_msg, const ::goog if (!from._internal_coinbase_extra().empty()) { _this->_internal_set_coinbase_extra(from._internal_coinbase_extra()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_sidechain_feature()->::tari::rpc::SideChainFeature::MergeFrom( - from._internal_sidechain_feature()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.sidechain_feature_ != nullptr); + if (_this->_impl_.sidechain_feature_ == nullptr) { + _this->_impl_.sidechain_feature_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::SideChainFeature>(arena, *from._impl_.sidechain_feature_); + } else { + _this->_impl_.sidechain_feature_->MergeFrom(*from._impl_.sidechain_feature_); + } } if (from._internal_version() != 0) { - _this->_internal_set_version(from._internal_version()); + _this->_impl_.version_ = from._impl_.version_; } if (from._internal_output_type() != 0) { - _this->_internal_set_output_type(from._internal_output_type()); + _this->_impl_.output_type_ = from._impl_.output_type_; } if (from._internal_maturity() != 0) { - _this->_internal_set_maturity(from._internal_maturity()); + _this->_impl_.maturity_ = from._impl_.maturity_; } if (from._internal_range_proof_type() != 0) { - _this->_internal_set_range_proof_type(from._internal_range_proof_type()); + _this->_impl_.range_proof_type_ = from._impl_.range_proof_type_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2418,9 +2434,6 @@ PROTOBUF_NOINLINE bool OutputFeatures::IsInitialized() const { return true; } -::_pbi::CachedSize* OutputFeatures::AccessCachedSize() const { - return &_impl_._cached_size_; -} void OutputFeatures::InternalSwap(OutputFeatures* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -2437,9 +2450,9 @@ void OutputFeatures::InternalSwap(OutputFeatures* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata OutputFeatures::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_transaction_2eproto_getter, &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[3]); + return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, + &descriptor_table_transaction_2eproto_once, + file_level_metadata_transaction_2eproto[3]); } // =================================================================== @@ -2493,6 +2506,20 @@ inline void AggregateBody::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +AggregateBody::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_._cached_size_), + false, + }, + &AggregateBody::MergeImpl, + &AggregateBody::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void AggregateBody::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.AggregateBody) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2527,6 +2554,9 @@ const ::_pbi::TcParseTable<2, 3, 3, 0, 2> AggregateBody::_table_ = { offsetof(decltype(_table_), aux_entries), &_AggregateBody_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::AggregateBody>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // repeated .tari.rpc.TransactionInput inputs = 1; @@ -2566,27 +2596,36 @@ const ::_pbi::TcParseTable<2, 3, 3, 0, 2> AggregateBody::_table_ = { (void)cached_has_bits; // repeated .tari.rpc.TransactionInput inputs = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_inputs_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_inputs_size()); + i < n; i++) { const auto& repfield = this->_internal_inputs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); } // repeated .tari.rpc.TransactionOutput outputs = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_outputs_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_outputs_size()); + i < n; i++) { const auto& repfield = this->_internal_outputs().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); } // repeated .tari.rpc.TransactionKernel kernels = 3; - for (unsigned i = 0, - n = static_cast(this->_internal_kernels_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_kernels_size()); + i < n; i++) { const auto& repfield = this->_internal_kernels().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2609,33 +2648,23 @@ const ::_pbi::TcParseTable<2, 3, 3, 0, 2> AggregateBody::_table_ = { // repeated .tari.rpc.TransactionInput inputs = 1; total_size += 1UL * this->_internal_inputs_size(); for (const auto& msg : this->_internal_inputs()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // repeated .tari.rpc.TransactionOutput outputs = 2; total_size += 1UL * this->_internal_outputs_size(); for (const auto& msg : this->_internal_outputs()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // repeated .tari.rpc.TransactionKernel kernels = 3; total_size += 1UL * this->_internal_kernels_size(); for (const auto& msg : this->_internal_kernels()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData AggregateBody::_class_data_ = { - AggregateBody::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AggregateBody::GetClassData() const { - return &_class_data_; -} -void AggregateBody::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void AggregateBody::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.AggregateBody) @@ -2663,9 +2692,6 @@ PROTOBUF_NOINLINE bool AggregateBody::IsInitialized() const { return true; } -::_pbi::CachedSize* AggregateBody::AccessCachedSize() const { - return &_impl_._cached_size_; -} void AggregateBody::InternalSwap(AggregateBody* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2675,9 +2701,9 @@ void AggregateBody::InternalSwap(AggregateBody* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata AggregateBody::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_transaction_2eproto_getter, &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[4]); + return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, + &descriptor_table_transaction_2eproto_once, + file_level_metadata_transaction_2eproto[4]); } // =================================================================== @@ -2686,15 +2712,8 @@ class Transaction::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Transaction, _impl_._has_bits_); - static const ::tari::rpc::AggregateBody& body(const Transaction* msg); - static void set_has_body(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::AggregateBody& Transaction::_Internal::body(const Transaction* msg) { - return *msg->_impl_.body_; -} Transaction::Transaction(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); @@ -2718,9 +2737,9 @@ Transaction::Transaction( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.body_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::AggregateBody>(arena, *from._impl_.body_) - : nullptr; + _impl_.body_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>( + arena, *from._impl_.body_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.Transaction) } @@ -2748,6 +2767,20 @@ inline void Transaction::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +Transaction::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Transaction, _impl_._cached_size_), + false, + }, + &Transaction::MergeImpl, + &Transaction::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void Transaction::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.Transaction) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2787,6 +2820,9 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> Transaction::_table_ = { offsetof(decltype(_table_), aux_entries), &_Transaction_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::Transaction>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes offset = 1; @@ -2833,8 +2869,7 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> Transaction::_table_ = { // .tari.rpc.AggregateBody body = 2; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::body(this), - _Internal::body(this).GetCachedSize(), target, stream); + 2, *_impl_.body_, _impl_.body_->GetCachedSize(), target, stream); } // bytes script_offset = 3; @@ -2882,17 +2917,11 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> Transaction::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData Transaction::_class_data_ = { - Transaction::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Transaction::GetClassData() const { - return &_class_data_; -} -void Transaction::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void Transaction::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.Transaction) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -2904,10 +2933,17 @@ void Transaction::MergeImpl(::google::protobuf::Message& to_msg, const ::google: if (!from._internal_script_offset().empty()) { _this->_internal_set_script_offset(from._internal_script_offset()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_body()->::tari::rpc::AggregateBody::MergeFrom( - from._internal_body()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.body_ != nullptr); + if (_this->_impl_.body_ == nullptr) { + _this->_impl_.body_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>(arena, *from._impl_.body_); + } else { + _this->_impl_.body_->MergeFrom(*from._impl_.body_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2922,9 +2958,6 @@ PROTOBUF_NOINLINE bool Transaction::IsInitialized() const { return true; } -::_pbi::CachedSize* Transaction::AccessCachedSize() const { - return &_impl_._cached_size_; -} void Transaction::InternalSwap(Transaction* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -2937,9 +2970,9 @@ void Transaction::InternalSwap(Transaction* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata Transaction::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_transaction_2eproto_getter, &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[5]); + return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, + &descriptor_table_transaction_2eproto_once, + file_level_metadata_transaction_2eproto[5]); } // =================================================================== @@ -2948,22 +2981,8 @@ class UnblindedOutput::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_._has_bits_); - static const ::tari::rpc::OutputFeatures& features(const UnblindedOutput* msg); - static void set_has_features(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::tari::rpc::ComAndPubSignature& metadata_signature(const UnblindedOutput* msg); - static void set_has_metadata_signature(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::tari::rpc::OutputFeatures& UnblindedOutput::_Internal::features(const UnblindedOutput* msg) { - return *msg->_impl_.features_; -} -const ::tari::rpc::ComAndPubSignature& UnblindedOutput::_Internal::metadata_signature(const UnblindedOutput* msg) { - return *msg->_impl_.metadata_signature_; -} void UnblindedOutput::clear_metadata_signature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.metadata_signature_ != nullptr) _impl_.metadata_signature_->Clear(); @@ -2997,12 +3016,12 @@ UnblindedOutput::UnblindedOutput( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_) - : nullptr; - _impl_.metadata_signature_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.metadata_signature_) - : nullptr; + _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( + arena, *from._impl_.features_) + : nullptr; + _impl_.metadata_signature_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>( + arena, *from._impl_.metadata_signature_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, value_), reinterpret_cast(&from._impl_) + @@ -3053,6 +3072,20 @@ inline void UnblindedOutput::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +UnblindedOutput::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_._cached_size_), + false, + }, + &UnblindedOutput::MergeImpl, + &UnblindedOutput::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void UnblindedOutput::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.UnblindedOutput) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -3106,6 +3139,9 @@ const ::_pbi::TcParseTable<4, 12, 2, 0, 2> UnblindedOutput::_table_ = { offsetof(decltype(_table_), aux_entries), &_UnblindedOutput_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::UnblindedOutput>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 value = 1; @@ -3217,8 +3253,7 @@ const ::_pbi::TcParseTable<4, 12, 2, 0, 2> UnblindedOutput::_table_ = { // .tari.rpc.OutputFeatures features = 3; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::features(this), - _Internal::features(this).GetCachedSize(), target, stream); + 3, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); } // bytes script = 4; @@ -3248,8 +3283,7 @@ const ::_pbi::TcParseTable<4, 12, 2, 0, 2> UnblindedOutput::_table_ = { // .tari.rpc.ComAndPubSignature metadata_signature = 9; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, _Internal::metadata_signature(this), - _Internal::metadata_signature(this).GetCachedSize(), target, stream); + 9, *_impl_.metadata_signature_, _impl_.metadata_signature_->GetCachedSize(), target, stream); } // uint64 script_lock_height = 10; @@ -3373,17 +3407,11 @@ const ::_pbi::TcParseTable<4, 12, 2, 0, 2> UnblindedOutput::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData UnblindedOutput::_class_data_ = { - UnblindedOutput::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* UnblindedOutput::GetClassData() const { - return &_class_data_; -} -void UnblindedOutput::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void UnblindedOutput::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.UnblindedOutput) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -3413,23 +3441,34 @@ void UnblindedOutput::MergeImpl(::google::protobuf::Message& to_msg, const ::goo cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_features()->::tari::rpc::OutputFeatures::MergeFrom( - from._internal_features()); + ABSL_DCHECK(from._impl_.features_ != nullptr); + if (_this->_impl_.features_ == nullptr) { + _this->_impl_.features_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_); + } else { + _this->_impl_.features_->MergeFrom(*from._impl_.features_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_metadata_signature()->::tari::rpc::ComAndPubSignature::MergeFrom( - from._internal_metadata_signature()); + ABSL_DCHECK(from._impl_.metadata_signature_ != nullptr); + if (_this->_impl_.metadata_signature_ == nullptr) { + _this->_impl_.metadata_signature_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.metadata_signature_); + } else { + _this->_impl_.metadata_signature_->MergeFrom(*from._impl_.metadata_signature_); + } } } if (from._internal_value() != 0) { - _this->_internal_set_value(from._internal_value()); + _this->_impl_.value_ = from._impl_.value_; } if (from._internal_script_lock_height() != 0) { - _this->_internal_set_script_lock_height(from._internal_script_lock_height()); + _this->_impl_.script_lock_height_ = from._impl_.script_lock_height_; } if (from._internal_minimum_value_promise() != 0) { - _this->_internal_set_minimum_value_promise(from._internal_minimum_value_promise()); + _this->_impl_.minimum_value_promise_ = from._impl_.minimum_value_promise_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3444,9 +3483,6 @@ PROTOBUF_NOINLINE bool UnblindedOutput::IsInitialized() const { return true; } -::_pbi::CachedSize* UnblindedOutput::AccessCachedSize() const { - return &_impl_._cached_size_; -} void UnblindedOutput::InternalSwap(UnblindedOutput* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -3469,9 +3505,9 @@ void UnblindedOutput::InternalSwap(UnblindedOutput* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata UnblindedOutput::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_transaction_2eproto_getter, &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[6]); + return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, + &descriptor_table_transaction_2eproto_once, + file_level_metadata_transaction_2eproto[6]); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -3481,4 +3517,8 @@ namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::std::false_type _static_init_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_transaction_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/external/src/Tari/proto/gRPC/transaction.pb.h b/external/src/Tari/proto/gRPC/transaction.pb.h index 28bc13e..6105b91 100644 --- a/external/src/Tari/proto/gRPC/transaction.pb.h +++ b/external/src/Tari/proto/gRPC/transaction.pb.h @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: transaction.proto -// Protobuf C++ Version: 4.25.2 +// Protobuf C++ Version: 5.26.0-rc1 #ifndef GOOGLE_PROTOBUF_INCLUDED_transaction_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_transaction_2eproto_2epb_2eh @@ -11,17 +11,11 @@ #include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#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 // PROTOBUF_VERSION - -#if 4025002 < 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 // PROTOBUF_MIN_PROTOC_VERSION +#if PROTOBUF_VERSION != 5026000 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" @@ -95,21 +89,18 @@ namespace rpc { // ------------------------------------------------------------------- -class TransactionKernel final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.TransactionKernel) */ { +class TransactionKernel final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionKernel) */ { public: inline TransactionKernel() : TransactionKernel(nullptr) {} ~TransactionKernel() override; - template - explicit PROTOBUF_CONSTEXPR TransactionKernel(::google::protobuf::internal::ConstantInitialized); - - inline TransactionKernel(const TransactionKernel& from) - : TransactionKernel(nullptr, from) {} - TransactionKernel(TransactionKernel&& from) noexcept - : TransactionKernel() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR TransactionKernel( + ::google::protobuf::internal::ConstantInitialized); + inline TransactionKernel(const TransactionKernel& from) : TransactionKernel(nullptr, from) {} + inline TransactionKernel(TransactionKernel&& from) noexcept + : TransactionKernel(nullptr, std::move(from)) {} inline TransactionKernel& operator=(const TransactionKernel& from) { CopyFrom(from); return *this; @@ -117,9 +108,9 @@ class TransactionKernel final : inline TransactionKernel& operator=(TransactionKernel&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -151,22 +142,17 @@ class TransactionKernel final : } static inline const TransactionKernel* internal_default_instance() { return reinterpret_cast( - &_TransactionKernel_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(TransactionKernel& a, TransactionKernel& b) { - a.Swap(&b); + &_TransactionKernel_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(TransactionKernel& a, TransactionKernel& b) { a.Swap(&b); } inline void Swap(TransactionKernel* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -181,51 +167,52 @@ class TransactionKernel final : // implements Message ---------------------------------------------- TransactionKernel* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TransactionKernel& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransactionKernel& from) { - TransactionKernel::MergeImpl(*this, from); - } + void MergeFrom(const TransactionKernel& from) { TransactionKernel::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(TransactionKernel* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.TransactionKernel"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionKernel"; } + + protected: explicit TransactionKernel(::google::protobuf::Arena* arena); TransactionKernel(::google::protobuf::Arena* arena, const TransactionKernel& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + TransactionKernel(::google::protobuf::Arena* arena, TransactionKernel&& from) noexcept + : TransactionKernel(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kExcessFieldNumber = 6, kHashFieldNumber = 8, @@ -342,7 +329,6 @@ class TransactionKernel final : // @@protoc_insertion_point(class_scope:tari.rpc.TransactionKernel) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 4, 8, 1, @@ -355,13 +341,12 @@ class TransactionKernel final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr excess_; @@ -376,23 +361,21 @@ class TransactionKernel final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OutputFeatures final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.OutputFeatures) */ { +class OutputFeatures final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.OutputFeatures) */ { public: inline OutputFeatures() : OutputFeatures(nullptr) {} ~OutputFeatures() override; - template - explicit PROTOBUF_CONSTEXPR OutputFeatures(::google::protobuf::internal::ConstantInitialized); - - inline OutputFeatures(const OutputFeatures& from) - : OutputFeatures(nullptr, from) {} - OutputFeatures(OutputFeatures&& from) noexcept - : OutputFeatures() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR OutputFeatures( + ::google::protobuf::internal::ConstantInitialized); + inline OutputFeatures(const OutputFeatures& from) : OutputFeatures(nullptr, from) {} + inline OutputFeatures(OutputFeatures&& from) noexcept + : OutputFeatures(nullptr, std::move(from)) {} inline OutputFeatures& operator=(const OutputFeatures& from) { CopyFrom(from); return *this; @@ -400,9 +383,9 @@ class OutputFeatures final : inline OutputFeatures& operator=(OutputFeatures&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -434,22 +417,17 @@ class OutputFeatures final : } static inline const OutputFeatures* internal_default_instance() { return reinterpret_cast( - &_OutputFeatures_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(OutputFeatures& a, OutputFeatures& b) { - a.Swap(&b); + &_OutputFeatures_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(OutputFeatures& a, OutputFeatures& b) { a.Swap(&b); } inline void Swap(OutputFeatures* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -464,51 +442,52 @@ class OutputFeatures final : // implements Message ---------------------------------------------- OutputFeatures* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const OutputFeatures& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const OutputFeatures& from) { - OutputFeatures::MergeImpl(*this, from); - } + void MergeFrom(const OutputFeatures& from) { OutputFeatures::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(OutputFeatures* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.OutputFeatures"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.OutputFeatures"; } + + protected: explicit OutputFeatures(::google::protobuf::Arena* arena); OutputFeatures(::google::protobuf::Arena* arena, const OutputFeatures& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + OutputFeatures(::google::protobuf::Arena* arena, OutputFeatures&& from) noexcept + : OutputFeatures(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCoinbaseExtraFieldNumber = 4, kSidechainFeatureFieldNumber = 5, @@ -591,7 +570,6 @@ class OutputFeatures final : // @@protoc_insertion_point(class_scope:tari.rpc.OutputFeatures) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 6, 1, @@ -604,13 +582,12 @@ class OutputFeatures final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr coinbase_extra_; @@ -623,23 +600,21 @@ class OutputFeatures final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class UnblindedOutput final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.UnblindedOutput) */ { +class UnblindedOutput final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.UnblindedOutput) */ { public: inline UnblindedOutput() : UnblindedOutput(nullptr) {} ~UnblindedOutput() override; - template - explicit PROTOBUF_CONSTEXPR UnblindedOutput(::google::protobuf::internal::ConstantInitialized); - - inline UnblindedOutput(const UnblindedOutput& from) - : UnblindedOutput(nullptr, from) {} - UnblindedOutput(UnblindedOutput&& from) noexcept - : UnblindedOutput() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR UnblindedOutput( + ::google::protobuf::internal::ConstantInitialized); + inline UnblindedOutput(const UnblindedOutput& from) : UnblindedOutput(nullptr, from) {} + inline UnblindedOutput(UnblindedOutput&& from) noexcept + : UnblindedOutput(nullptr, std::move(from)) {} inline UnblindedOutput& operator=(const UnblindedOutput& from) { CopyFrom(from); return *this; @@ -647,9 +622,9 @@ class UnblindedOutput final : inline UnblindedOutput& operator=(UnblindedOutput&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -681,22 +656,17 @@ class UnblindedOutput final : } static inline const UnblindedOutput* internal_default_instance() { return reinterpret_cast( - &_UnblindedOutput_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(UnblindedOutput& a, UnblindedOutput& b) { - a.Swap(&b); + &_UnblindedOutput_default_instance_); } + static constexpr int kIndexInFileMessages = 6; + friend void swap(UnblindedOutput& a, UnblindedOutput& b) { a.Swap(&b); } inline void Swap(UnblindedOutput* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -711,51 +681,52 @@ class UnblindedOutput final : // implements Message ---------------------------------------------- UnblindedOutput* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const UnblindedOutput& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const UnblindedOutput& from) { - UnblindedOutput::MergeImpl(*this, from); - } + void MergeFrom(const UnblindedOutput& from) { UnblindedOutput::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(UnblindedOutput* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.UnblindedOutput"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.UnblindedOutput"; } + + protected: explicit UnblindedOutput(::google::protobuf::Arena* arena); UnblindedOutput(::google::protobuf::Arena* arena, const UnblindedOutput& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + UnblindedOutput(::google::protobuf::Arena* arena, UnblindedOutput&& from) noexcept + : UnblindedOutput(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kSpendingKeyFieldNumber = 2, kScriptFieldNumber = 4, @@ -945,7 +916,6 @@ class UnblindedOutput final : // @@protoc_insertion_point(class_scope:tari.rpc.UnblindedOutput) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 4, 12, 2, @@ -958,13 +928,12 @@ class UnblindedOutput final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr spending_key_; @@ -983,23 +952,21 @@ class UnblindedOutput final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TransactionOutput final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.TransactionOutput) */ { +class TransactionOutput final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionOutput) */ { public: inline TransactionOutput() : TransactionOutput(nullptr) {} ~TransactionOutput() override; - template - explicit PROTOBUF_CONSTEXPR TransactionOutput(::google::protobuf::internal::ConstantInitialized); - - inline TransactionOutput(const TransactionOutput& from) - : TransactionOutput(nullptr, from) {} - TransactionOutput(TransactionOutput&& from) noexcept - : TransactionOutput() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR TransactionOutput( + ::google::protobuf::internal::ConstantInitialized); + inline TransactionOutput(const TransactionOutput& from) : TransactionOutput(nullptr, from) {} + inline TransactionOutput(TransactionOutput&& from) noexcept + : TransactionOutput(nullptr, std::move(from)) {} inline TransactionOutput& operator=(const TransactionOutput& from) { CopyFrom(from); return *this; @@ -1007,9 +974,9 @@ class TransactionOutput final : inline TransactionOutput& operator=(TransactionOutput&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1041,22 +1008,17 @@ class TransactionOutput final : } static inline const TransactionOutput* internal_default_instance() { return reinterpret_cast( - &_TransactionOutput_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(TransactionOutput& a, TransactionOutput& b) { - a.Swap(&b); + &_TransactionOutput_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(TransactionOutput& a, TransactionOutput& b) { a.Swap(&b); } inline void Swap(TransactionOutput* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1071,51 +1033,52 @@ class TransactionOutput final : // implements Message ---------------------------------------------- TransactionOutput* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TransactionOutput& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransactionOutput& from) { - TransactionOutput::MergeImpl(*this, from); - } + void MergeFrom(const TransactionOutput& from) { TransactionOutput::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(TransactionOutput* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.TransactionOutput"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionOutput"; } + + protected: explicit TransactionOutput(::google::protobuf::Arena* arena); TransactionOutput(::google::protobuf::Arena* arena, const TransactionOutput& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + TransactionOutput(::google::protobuf::Arena* arena, TransactionOutput&& from) noexcept + : TransactionOutput(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCommitmentFieldNumber = 2, kHashFieldNumber = 4, @@ -1293,7 +1256,6 @@ class TransactionOutput final : // @@protoc_insertion_point(class_scope:tari.rpc.TransactionOutput) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 4, 11, 3, @@ -1306,13 +1268,12 @@ class TransactionOutput final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr commitment_; @@ -1330,23 +1291,21 @@ class TransactionOutput final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TransactionInput final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.TransactionInput) */ { +class TransactionInput final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionInput) */ { public: inline TransactionInput() : TransactionInput(nullptr) {} ~TransactionInput() override; - template - explicit PROTOBUF_CONSTEXPR TransactionInput(::google::protobuf::internal::ConstantInitialized); - - inline TransactionInput(const TransactionInput& from) - : TransactionInput(nullptr, from) {} - TransactionInput(TransactionInput&& from) noexcept - : TransactionInput() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR TransactionInput( + ::google::protobuf::internal::ConstantInitialized); + inline TransactionInput(const TransactionInput& from) : TransactionInput(nullptr, from) {} + inline TransactionInput(TransactionInput&& from) noexcept + : TransactionInput(nullptr, std::move(from)) {} inline TransactionInput& operator=(const TransactionInput& from) { CopyFrom(from); return *this; @@ -1354,9 +1313,9 @@ class TransactionInput final : inline TransactionInput& operator=(TransactionInput&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1388,22 +1347,17 @@ class TransactionInput final : } static inline const TransactionInput* internal_default_instance() { return reinterpret_cast( - &_TransactionInput_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(TransactionInput& a, TransactionInput& b) { - a.Swap(&b); + &_TransactionInput_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(TransactionInput& a, TransactionInput& b) { a.Swap(&b); } inline void Swap(TransactionInput* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1418,51 +1372,52 @@ class TransactionInput final : // implements Message ---------------------------------------------- TransactionInput* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TransactionInput& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransactionInput& from) { - TransactionInput::MergeImpl(*this, from); - } + void MergeFrom(const TransactionInput& from) { TransactionInput::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(TransactionInput* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.TransactionInput"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionInput"; } + + protected: explicit TransactionInput(::google::protobuf::Arena* arena); TransactionInput(::google::protobuf::Arena* arena, const TransactionInput& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + TransactionInput(::google::protobuf::Arena* arena, TransactionInput&& from) noexcept + : TransactionInput(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCommitmentFieldNumber = 2, kHashFieldNumber = 3, @@ -1691,7 +1646,6 @@ class TransactionInput final : // @@protoc_insertion_point(class_scope:tari.rpc.TransactionInput) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 4, 14, 3, @@ -1704,13 +1658,12 @@ class TransactionInput final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr commitment_; @@ -1731,23 +1684,21 @@ class TransactionInput final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AggregateBody final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.AggregateBody) */ { +class AggregateBody final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.AggregateBody) */ { public: inline AggregateBody() : AggregateBody(nullptr) {} ~AggregateBody() override; - template - explicit PROTOBUF_CONSTEXPR AggregateBody(::google::protobuf::internal::ConstantInitialized); - - inline AggregateBody(const AggregateBody& from) - : AggregateBody(nullptr, from) {} - AggregateBody(AggregateBody&& from) noexcept - : AggregateBody() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR AggregateBody( + ::google::protobuf::internal::ConstantInitialized); + inline AggregateBody(const AggregateBody& from) : AggregateBody(nullptr, from) {} + inline AggregateBody(AggregateBody&& from) noexcept + : AggregateBody(nullptr, std::move(from)) {} inline AggregateBody& operator=(const AggregateBody& from) { CopyFrom(from); return *this; @@ -1755,9 +1706,9 @@ class AggregateBody final : inline AggregateBody& operator=(AggregateBody&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1789,22 +1740,17 @@ class AggregateBody final : } static inline const AggregateBody* internal_default_instance() { return reinterpret_cast( - &_AggregateBody_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(AggregateBody& a, AggregateBody& b) { - a.Swap(&b); + &_AggregateBody_default_instance_); } + static constexpr int kIndexInFileMessages = 4; + friend void swap(AggregateBody& a, AggregateBody& b) { a.Swap(&b); } inline void Swap(AggregateBody* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1819,51 +1765,52 @@ class AggregateBody final : // implements Message ---------------------------------------------- AggregateBody* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const AggregateBody& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AggregateBody& from) { - AggregateBody::MergeImpl(*this, from); - } + void MergeFrom(const AggregateBody& from) { AggregateBody::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(AggregateBody* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.AggregateBody"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.AggregateBody"; } + + protected: explicit AggregateBody(::google::protobuf::Arena* arena); AggregateBody(::google::protobuf::Arena* arena, const AggregateBody& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + AggregateBody(::google::protobuf::Arena* arena, AggregateBody&& from) noexcept + : AggregateBody(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kInputsFieldNumber = 1, kOutputsFieldNumber = 2, @@ -1877,16 +1824,15 @@ class AggregateBody final : public: void clear_inputs() ; ::tari::rpc::TransactionInput* mutable_inputs(int index); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionInput >* - mutable_inputs(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* mutable_inputs(); + private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>& _internal_inputs() const; ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* _internal_mutable_inputs(); public: const ::tari::rpc::TransactionInput& inputs(int index) const; ::tari::rpc::TransactionInput* add_inputs(); - const ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionInput >& - inputs() const; + const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>& inputs() const; // repeated .tari.rpc.TransactionOutput outputs = 2; int outputs_size() const; private: @@ -1895,16 +1841,15 @@ class AggregateBody final : public: void clear_outputs() ; ::tari::rpc::TransactionOutput* mutable_outputs(int index); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionOutput >* - mutable_outputs(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* mutable_outputs(); + private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& _internal_outputs() const; ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* _internal_mutable_outputs(); public: const ::tari::rpc::TransactionOutput& outputs(int index) const; ::tari::rpc::TransactionOutput* add_outputs(); - const ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionOutput >& - outputs() const; + const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& outputs() const; // repeated .tari.rpc.TransactionKernel kernels = 3; int kernels_size() const; private: @@ -1913,20 +1858,18 @@ class AggregateBody final : public: void clear_kernels() ; ::tari::rpc::TransactionKernel* mutable_kernels(int index); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionKernel >* - mutable_kernels(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* mutable_kernels(); + private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>& _internal_kernels() const; ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* _internal_mutable_kernels(); public: const ::tari::rpc::TransactionKernel& kernels(int index) const; ::tari::rpc::TransactionKernel* add_kernels(); - const ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionKernel >& - kernels() const; + const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>& kernels() const; // @@protoc_insertion_point(class_scope:tari.rpc.AggregateBody) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 3, @@ -1939,13 +1882,12 @@ class AggregateBody final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionInput > inputs_; ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionOutput > outputs_; ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionKernel > kernels_; @@ -1954,23 +1896,21 @@ class AggregateBody final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Transaction final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.Transaction) */ { +class Transaction final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.Transaction) */ { public: inline Transaction() : Transaction(nullptr) {} ~Transaction() override; - template - explicit PROTOBUF_CONSTEXPR Transaction(::google::protobuf::internal::ConstantInitialized); - - inline Transaction(const Transaction& from) - : Transaction(nullptr, from) {} - Transaction(Transaction&& from) noexcept - : Transaction() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR Transaction( + ::google::protobuf::internal::ConstantInitialized); + inline Transaction(const Transaction& from) : Transaction(nullptr, from) {} + inline Transaction(Transaction&& from) noexcept + : Transaction(nullptr, std::move(from)) {} inline Transaction& operator=(const Transaction& from) { CopyFrom(from); return *this; @@ -1978,9 +1918,9 @@ class Transaction final : inline Transaction& operator=(Transaction&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2012,22 +1952,17 @@ class Transaction final : } static inline const Transaction* internal_default_instance() { return reinterpret_cast( - &_Transaction_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(Transaction& a, Transaction& b) { - a.Swap(&b); + &_Transaction_default_instance_); } + static constexpr int kIndexInFileMessages = 5; + friend void swap(Transaction& a, Transaction& b) { a.Swap(&b); } inline void Swap(Transaction* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2042,51 +1977,52 @@ class Transaction final : // implements Message ---------------------------------------------- Transaction* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Transaction& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Transaction& from) { - Transaction::MergeImpl(*this, from); - } + void MergeFrom(const Transaction& from) { Transaction::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(Transaction* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.Transaction"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.Transaction"; } + + protected: explicit Transaction(::google::protobuf::Arena* arena); Transaction(::google::protobuf::Arena* arena, const Transaction& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + Transaction(::google::protobuf::Arena* arena, Transaction&& from) noexcept + : Transaction(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kOffsetFieldNumber = 1, kScriptOffsetFieldNumber = 3, @@ -2142,7 +2078,6 @@ class Transaction final : // @@protoc_insertion_point(class_scope:tari.rpc.Transaction) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 1, @@ -2155,13 +2090,12 @@ class Transaction final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr offset_; @@ -2208,7 +2142,6 @@ inline ::uint32_t TransactionKernel::_internal_features() const { } inline void TransactionKernel::_internal_set_features(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.features_ = value; } @@ -2231,7 +2164,6 @@ inline ::uint64_t TransactionKernel::_internal_fee() const { } inline void TransactionKernel::_internal_set_fee(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.fee_ = value; } @@ -2254,7 +2186,6 @@ inline ::uint64_t TransactionKernel::_internal_lock_height() const { } inline void TransactionKernel::_internal_set_lock_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.lock_height_ = value; } @@ -2272,7 +2203,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionKernel::set_excess(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.excess_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.excess) } @@ -2287,12 +2217,10 @@ inline const std::string& TransactionKernel::_internal_excess() const { } inline void TransactionKernel::_internal_set_excess(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.excess_.Set(value, GetArena()); } inline std::string* TransactionKernel::_internal_mutable_excess() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.excess_.Mutable( GetArena()); } inline std::string* TransactionKernel::release_excess() { @@ -2369,14 +2297,14 @@ inline ::tari::rpc::Signature* TransactionKernel::unsafe_arena_release_excess_si } inline ::tari::rpc::Signature* TransactionKernel::_internal_mutable_excess_sig() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.excess_sig_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Signature>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Signature>(GetArena()); _impl_.excess_sig_ = reinterpret_cast<::tari::rpc::Signature*>(p); } return _impl_.excess_sig_; } inline ::tari::rpc::Signature* TransactionKernel::mutable_excess_sig() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::Signature* _msg = _internal_mutable_excess_sig(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionKernel.excess_sig) return _msg; @@ -2416,7 +2344,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionKernel::set_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.hash) } @@ -2431,12 +2358,10 @@ inline const std::string& TransactionKernel::_internal_hash() const { } inline void TransactionKernel::_internal_set_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.hash_.Set(value, GetArena()); } inline std::string* TransactionKernel::_internal_mutable_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.hash_.Mutable( GetArena()); } inline std::string* TransactionKernel::release_hash() { @@ -2474,7 +2399,6 @@ inline ::uint32_t TransactionKernel::_internal_version() const { } inline void TransactionKernel::_internal_set_version(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.version_ = value; } @@ -2492,7 +2416,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionKernel::set_burn_commitment(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.burn_commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.burn_commitment) } @@ -2507,12 +2430,10 @@ inline const std::string& TransactionKernel::_internal_burn_commitment() const { } inline void TransactionKernel::_internal_set_burn_commitment(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.burn_commitment_.Set(value, GetArena()); } inline std::string* TransactionKernel::_internal_mutable_burn_commitment() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.burn_commitment_.Mutable( GetArena()); } inline std::string* TransactionKernel::release_burn_commitment() { @@ -2598,14 +2519,14 @@ inline ::tari::rpc::OutputFeatures* TransactionInput::unsafe_arena_release_featu } inline ::tari::rpc::OutputFeatures* TransactionInput::_internal_mutable_features() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.features_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::OutputFeatures>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputFeatures>(GetArena()); _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(p); } return _impl_.features_; } inline ::tari::rpc::OutputFeatures* TransactionInput::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.features) return _msg; @@ -2614,11 +2535,11 @@ inline void TransactionInput::set_allocated_features(::tari::rpc::OutputFeatures ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::OutputFeatures*>(_impl_.features_); + delete (_impl_.features_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::OutputFeatures*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2645,7 +2566,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_commitment(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.commitment) } @@ -2660,12 +2580,10 @@ inline const std::string& TransactionInput::_internal_commitment() const { } inline void TransactionInput::_internal_set_commitment(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.commitment_.Set(value, GetArena()); } inline std::string* TransactionInput::_internal_mutable_commitment() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.commitment_.Mutable( GetArena()); } inline std::string* TransactionInput::release_commitment() { @@ -2698,7 +2616,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.hash) } @@ -2713,12 +2630,10 @@ inline const std::string& TransactionInput::_internal_hash() const { } inline void TransactionInput::_internal_set_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.hash_.Set(value, GetArena()); } inline std::string* TransactionInput::_internal_mutable_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.hash_.Mutable( GetArena()); } inline std::string* TransactionInput::release_hash() { @@ -2751,7 +2666,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_script(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.script) } @@ -2766,12 +2680,10 @@ inline const std::string& TransactionInput::_internal_script() const { } inline void TransactionInput::_internal_set_script(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_.Set(value, GetArena()); } inline std::string* TransactionInput::_internal_mutable_script() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.script_.Mutable( GetArena()); } inline std::string* TransactionInput::release_script() { @@ -2804,7 +2716,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_input_data(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.input_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.input_data) } @@ -2819,12 +2730,10 @@ inline const std::string& TransactionInput::_internal_input_data() const { } inline void TransactionInput::_internal_set_input_data(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.input_data_.Set(value, GetArena()); } inline std::string* TransactionInput::_internal_mutable_input_data() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.input_data_.Mutable( GetArena()); } inline std::string* TransactionInput::release_input_data() { @@ -2901,14 +2810,14 @@ inline ::tari::rpc::ComAndPubSignature* TransactionInput::unsafe_arena_release_s } inline ::tari::rpc::ComAndPubSignature* TransactionInput::_internal_mutable_script_signature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; if (_impl_.script_signature_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::ComAndPubSignature>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ComAndPubSignature>(GetArena()); _impl_.script_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(p); } return _impl_.script_signature_; } inline ::tari::rpc::ComAndPubSignature* TransactionInput::mutable_script_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::tari::rpc::ComAndPubSignature* _msg = _internal_mutable_script_signature(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.script_signature) return _msg; @@ -2948,7 +2857,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_sender_offset_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.sender_offset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.sender_offset_public_key) } @@ -2963,12 +2871,10 @@ inline const std::string& TransactionInput::_internal_sender_offset_public_key() } inline void TransactionInput::_internal_set_sender_offset_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.sender_offset_public_key_.Set(value, GetArena()); } inline std::string* TransactionInput::_internal_mutable_sender_offset_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.sender_offset_public_key_.Mutable( GetArena()); } inline std::string* TransactionInput::release_sender_offset_public_key() { @@ -3001,7 +2907,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_output_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.output_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.output_hash) } @@ -3016,12 +2921,10 @@ inline const std::string& TransactionInput::_internal_output_hash() const { } inline void TransactionInput::_internal_set_output_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.output_hash_.Set(value, GetArena()); } inline std::string* TransactionInput::_internal_mutable_output_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.output_hash_.Mutable( GetArena()); } inline std::string* TransactionInput::release_output_hash() { @@ -3054,7 +2957,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_covenant(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.covenant_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.covenant) } @@ -3069,12 +2971,10 @@ inline const std::string& TransactionInput::_internal_covenant() const { } inline void TransactionInput::_internal_set_covenant(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.covenant_.Set(value, GetArena()); } inline std::string* TransactionInput::_internal_mutable_covenant() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.covenant_.Mutable( GetArena()); } inline std::string* TransactionInput::release_covenant() { @@ -3112,7 +3012,6 @@ inline ::uint32_t TransactionInput::_internal_version() const { } inline void TransactionInput::_internal_set_version(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.version_ = value; } @@ -3130,7 +3029,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_encrypted_data(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.encrypted_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.encrypted_data) } @@ -3145,12 +3043,10 @@ inline const std::string& TransactionInput::_internal_encrypted_data() const { } inline void TransactionInput::_internal_set_encrypted_data(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.encrypted_data_.Set(value, GetArena()); } inline std::string* TransactionInput::_internal_mutable_encrypted_data() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.encrypted_data_.Mutable( GetArena()); } inline std::string* TransactionInput::release_encrypted_data() { @@ -3188,7 +3084,6 @@ inline ::uint64_t TransactionInput::_internal_minimum_value_promise() const { } inline void TransactionInput::_internal_set_minimum_value_promise(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.minimum_value_promise_ = value; } @@ -3250,14 +3145,14 @@ inline ::tari::rpc::ComAndPubSignature* TransactionInput::unsafe_arena_release_m } inline ::tari::rpc::ComAndPubSignature* TransactionInput::_internal_mutable_metadata_signature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; if (_impl_.metadata_signature_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::ComAndPubSignature>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ComAndPubSignature>(GetArena()); _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(p); } return _impl_.metadata_signature_; } inline ::tari::rpc::ComAndPubSignature* TransactionInput::mutable_metadata_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::tari::rpc::ComAndPubSignature* _msg = _internal_mutable_metadata_signature(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.metadata_signature) return _msg; @@ -3297,7 +3192,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_rangeproof_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.rangeproof_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.rangeproof_hash) } @@ -3312,12 +3206,10 @@ inline const std::string& TransactionInput::_internal_rangeproof_hash() const { } inline void TransactionInput::_internal_set_rangeproof_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.rangeproof_hash_.Set(value, GetArena()); } inline std::string* TransactionInput::_internal_mutable_rangeproof_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.rangeproof_hash_.Mutable( GetArena()); } inline std::string* TransactionInput::release_rangeproof_hash() { @@ -3403,14 +3295,14 @@ inline ::tari::rpc::OutputFeatures* TransactionOutput::unsafe_arena_release_feat } inline ::tari::rpc::OutputFeatures* TransactionOutput::_internal_mutable_features() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.features_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::OutputFeatures>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputFeatures>(GetArena()); _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(p); } return _impl_.features_; } inline ::tari::rpc::OutputFeatures* TransactionOutput::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.features) return _msg; @@ -3419,11 +3311,11 @@ inline void TransactionOutput::set_allocated_features(::tari::rpc::OutputFeature ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::OutputFeatures*>(_impl_.features_); + delete (_impl_.features_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::OutputFeatures*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3450,7 +3342,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_commitment(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.commitment) } @@ -3465,12 +3356,10 @@ inline const std::string& TransactionOutput::_internal_commitment() const { } inline void TransactionOutput::_internal_set_commitment(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.commitment_.Set(value, GetArena()); } inline std::string* TransactionOutput::_internal_mutable_commitment() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.commitment_.Mutable( GetArena()); } inline std::string* TransactionOutput::release_commitment() { @@ -3547,14 +3436,14 @@ inline ::tari::rpc::RangeProof* TransactionOutput::unsafe_arena_release_range_pr } inline ::tari::rpc::RangeProof* TransactionOutput::_internal_mutable_range_proof() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; if (_impl_.range_proof_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::RangeProof>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::RangeProof>(GetArena()); _impl_.range_proof_ = reinterpret_cast<::tari::rpc::RangeProof*>(p); } return _impl_.range_proof_; } inline ::tari::rpc::RangeProof* TransactionOutput::mutable_range_proof() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::tari::rpc::RangeProof* _msg = _internal_mutable_range_proof(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.range_proof) return _msg; @@ -3594,7 +3483,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.hash) } @@ -3609,12 +3497,10 @@ inline const std::string& TransactionOutput::_internal_hash() const { } inline void TransactionOutput::_internal_set_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.hash_.Set(value, GetArena()); } inline std::string* TransactionOutput::_internal_mutable_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.hash_.Mutable( GetArena()); } inline std::string* TransactionOutput::release_hash() { @@ -3647,7 +3533,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_script(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.script) } @@ -3662,12 +3547,10 @@ inline const std::string& TransactionOutput::_internal_script() const { } inline void TransactionOutput::_internal_set_script(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_.Set(value, GetArena()); } inline std::string* TransactionOutput::_internal_mutable_script() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.script_.Mutable( GetArena()); } inline std::string* TransactionOutput::release_script() { @@ -3700,7 +3583,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_sender_offset_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.sender_offset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.sender_offset_public_key) } @@ -3715,12 +3597,10 @@ inline const std::string& TransactionOutput::_internal_sender_offset_public_key( } inline void TransactionOutput::_internal_set_sender_offset_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.sender_offset_public_key_.Set(value, GetArena()); } inline std::string* TransactionOutput::_internal_mutable_sender_offset_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.sender_offset_public_key_.Mutable( GetArena()); } inline std::string* TransactionOutput::release_sender_offset_public_key() { @@ -3797,14 +3677,14 @@ inline ::tari::rpc::ComAndPubSignature* TransactionOutput::unsafe_arena_release_ } inline ::tari::rpc::ComAndPubSignature* TransactionOutput::_internal_mutable_metadata_signature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; if (_impl_.metadata_signature_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::ComAndPubSignature>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ComAndPubSignature>(GetArena()); _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(p); } return _impl_.metadata_signature_; } inline ::tari::rpc::ComAndPubSignature* TransactionOutput::mutable_metadata_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::tari::rpc::ComAndPubSignature* _msg = _internal_mutable_metadata_signature(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.metadata_signature) return _msg; @@ -3844,7 +3724,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_covenant(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.covenant_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.covenant) } @@ -3859,12 +3738,10 @@ inline const std::string& TransactionOutput::_internal_covenant() const { } inline void TransactionOutput::_internal_set_covenant(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.covenant_.Set(value, GetArena()); } inline std::string* TransactionOutput::_internal_mutable_covenant() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.covenant_.Mutable( GetArena()); } inline std::string* TransactionOutput::release_covenant() { @@ -3902,7 +3779,6 @@ inline ::uint32_t TransactionOutput::_internal_version() const { } inline void TransactionOutput::_internal_set_version(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.version_ = value; } @@ -3920,7 +3796,6 @@ template inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_encrypted_data(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.encrypted_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.encrypted_data) } @@ -3935,12 +3810,10 @@ inline const std::string& TransactionOutput::_internal_encrypted_data() const { } inline void TransactionOutput::_internal_set_encrypted_data(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.encrypted_data_.Set(value, GetArena()); } inline std::string* TransactionOutput::_internal_mutable_encrypted_data() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.encrypted_data_.Mutable( GetArena()); } inline std::string* TransactionOutput::release_encrypted_data() { @@ -3978,7 +3851,6 @@ inline ::uint64_t TransactionOutput::_internal_minimum_value_promise() const { } inline void TransactionOutput::_internal_set_minimum_value_promise(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.minimum_value_promise_ = value; } @@ -4005,7 +3877,6 @@ inline ::uint32_t OutputFeatures::_internal_version() const { } inline void OutputFeatures::_internal_set_version(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.version_ = value; } @@ -4028,7 +3899,6 @@ inline ::uint32_t OutputFeatures::_internal_output_type() const { } inline void OutputFeatures::_internal_set_output_type(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.output_type_ = value; } @@ -4051,7 +3921,6 @@ inline ::uint64_t OutputFeatures::_internal_maturity() const { } inline void OutputFeatures::_internal_set_maturity(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.maturity_ = value; } @@ -4069,7 +3938,6 @@ template inline PROTOBUF_ALWAYS_INLINE void OutputFeatures::set_coinbase_extra(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.coinbase_extra_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.OutputFeatures.coinbase_extra) } @@ -4084,12 +3952,10 @@ inline const std::string& OutputFeatures::_internal_coinbase_extra() const { } inline void OutputFeatures::_internal_set_coinbase_extra(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.coinbase_extra_.Set(value, GetArena()); } inline std::string* OutputFeatures::_internal_mutable_coinbase_extra() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.coinbase_extra_.Mutable( GetArena()); } inline std::string* OutputFeatures::release_coinbase_extra() { @@ -4166,14 +4032,14 @@ inline ::tari::rpc::SideChainFeature* OutputFeatures::unsafe_arena_release_sidec } inline ::tari::rpc::SideChainFeature* OutputFeatures::_internal_mutable_sidechain_feature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.sidechain_feature_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::SideChainFeature>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::SideChainFeature>(GetArena()); _impl_.sidechain_feature_ = reinterpret_cast<::tari::rpc::SideChainFeature*>(p); } return _impl_.sidechain_feature_; } inline ::tari::rpc::SideChainFeature* OutputFeatures::mutable_sidechain_feature() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::SideChainFeature* _msg = _internal_mutable_sidechain_feature(); // @@protoc_insertion_point(field_mutable:tari.rpc.OutputFeatures.sidechain_feature) return _msg; @@ -4218,7 +4084,6 @@ inline ::uint32_t OutputFeatures::_internal_range_proof_type() const { } inline void OutputFeatures::_internal_set_range_proof_type(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.range_proof_type_ = value; } @@ -4391,7 +4256,6 @@ template inline PROTOBUF_ALWAYS_INLINE void Transaction::set_offset(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.offset_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Transaction.offset) } @@ -4406,12 +4270,10 @@ inline const std::string& Transaction::_internal_offset() const { } inline void Transaction::_internal_set_offset(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.offset_.Set(value, GetArena()); } inline std::string* Transaction::_internal_mutable_offset() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.offset_.Mutable( GetArena()); } inline std::string* Transaction::release_offset() { @@ -4493,14 +4355,14 @@ inline ::tari::rpc::AggregateBody* Transaction::unsafe_arena_release_body() { } inline ::tari::rpc::AggregateBody* Transaction::_internal_mutable_body() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.body_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::AggregateBody>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::AggregateBody>(GetArena()); _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(p); } return _impl_.body_; } inline ::tari::rpc::AggregateBody* Transaction::mutable_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::AggregateBody* _msg = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:tari.rpc.Transaction.body) return _msg; @@ -4509,11 +4371,11 @@ inline void Transaction::set_allocated_body(::tari::rpc::AggregateBody* value) { ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::AggregateBody*>(_impl_.body_); + delete (_impl_.body_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::AggregateBody*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -4540,7 +4402,6 @@ template inline PROTOBUF_ALWAYS_INLINE void Transaction::set_script_offset(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_offset_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Transaction.script_offset) } @@ -4555,12 +4416,10 @@ inline const std::string& Transaction::_internal_script_offset() const { } inline void Transaction::_internal_set_script_offset(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_offset_.Set(value, GetArena()); } inline std::string* Transaction::_internal_mutable_script_offset() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.script_offset_.Mutable( GetArena()); } inline std::string* Transaction::release_script_offset() { @@ -4602,7 +4461,6 @@ inline ::uint64_t UnblindedOutput::_internal_value() const { } inline void UnblindedOutput::_internal_set_value(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.value_ = value; } @@ -4620,7 +4478,6 @@ template inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_spending_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.spending_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.spending_key) } @@ -4635,12 +4492,10 @@ inline const std::string& UnblindedOutput::_internal_spending_key() const { } inline void UnblindedOutput::_internal_set_spending_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.spending_key_.Set(value, GetArena()); } inline std::string* UnblindedOutput::_internal_mutable_spending_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.spending_key_.Mutable( GetArena()); } inline std::string* UnblindedOutput::release_spending_key() { @@ -4722,14 +4577,14 @@ inline ::tari::rpc::OutputFeatures* UnblindedOutput::unsafe_arena_release_featur } inline ::tari::rpc::OutputFeatures* UnblindedOutput::_internal_mutable_features() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.features_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::OutputFeatures>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputFeatures>(GetArena()); _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(p); } return _impl_.features_; } inline ::tari::rpc::OutputFeatures* UnblindedOutput::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.features) return _msg; @@ -4738,11 +4593,11 @@ inline void UnblindedOutput::set_allocated_features(::tari::rpc::OutputFeatures* ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::OutputFeatures*>(_impl_.features_); + delete (_impl_.features_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::OutputFeatures*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -4769,7 +4624,6 @@ template inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_script(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.script) } @@ -4784,12 +4638,10 @@ inline const std::string& UnblindedOutput::_internal_script() const { } inline void UnblindedOutput::_internal_set_script(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_.Set(value, GetArena()); } inline std::string* UnblindedOutput::_internal_mutable_script() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.script_.Mutable( GetArena()); } inline std::string* UnblindedOutput::release_script() { @@ -4822,7 +4674,6 @@ template inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_input_data(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.input_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.input_data) } @@ -4837,12 +4688,10 @@ inline const std::string& UnblindedOutput::_internal_input_data() const { } inline void UnblindedOutput::_internal_set_input_data(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.input_data_.Set(value, GetArena()); } inline std::string* UnblindedOutput::_internal_mutable_input_data() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.input_data_.Mutable( GetArena()); } inline std::string* UnblindedOutput::release_input_data() { @@ -4875,7 +4724,6 @@ template inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_script_private_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_private_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.script_private_key) } @@ -4890,12 +4738,10 @@ inline const std::string& UnblindedOutput::_internal_script_private_key() const } inline void UnblindedOutput::_internal_set_script_private_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_private_key_.Set(value, GetArena()); } inline std::string* UnblindedOutput::_internal_mutable_script_private_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.script_private_key_.Mutable( GetArena()); } inline std::string* UnblindedOutput::release_script_private_key() { @@ -4928,7 +4774,6 @@ template inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_sender_offset_public_key(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.sender_offset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.sender_offset_public_key) } @@ -4943,12 +4788,10 @@ inline const std::string& UnblindedOutput::_internal_sender_offset_public_key() } inline void UnblindedOutput::_internal_set_sender_offset_public_key(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.sender_offset_public_key_.Set(value, GetArena()); } inline std::string* UnblindedOutput::_internal_mutable_sender_offset_public_key() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.sender_offset_public_key_.Mutable( GetArena()); } inline std::string* UnblindedOutput::release_sender_offset_public_key() { @@ -5025,14 +4868,14 @@ inline ::tari::rpc::ComAndPubSignature* UnblindedOutput::unsafe_arena_release_me } inline ::tari::rpc::ComAndPubSignature* UnblindedOutput::_internal_mutable_metadata_signature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; if (_impl_.metadata_signature_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::ComAndPubSignature>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ComAndPubSignature>(GetArena()); _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(p); } return _impl_.metadata_signature_; } inline ::tari::rpc::ComAndPubSignature* UnblindedOutput::mutable_metadata_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::tari::rpc::ComAndPubSignature* _msg = _internal_mutable_metadata_signature(); // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.metadata_signature) return _msg; @@ -5077,7 +4920,6 @@ inline ::uint64_t UnblindedOutput::_internal_script_lock_height() const { } inline void UnblindedOutput::_internal_set_script_lock_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.script_lock_height_ = value; } @@ -5095,7 +4937,6 @@ template inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_covenant(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.covenant_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.covenant) } @@ -5110,12 +4951,10 @@ inline const std::string& UnblindedOutput::_internal_covenant() const { } inline void UnblindedOutput::_internal_set_covenant(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.covenant_.Set(value, GetArena()); } inline std::string* UnblindedOutput::_internal_mutable_covenant() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.covenant_.Mutable( GetArena()); } inline std::string* UnblindedOutput::release_covenant() { @@ -5148,7 +4987,6 @@ template inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_encrypted_data(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.encrypted_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.encrypted_data) } @@ -5163,12 +5001,10 @@ inline const std::string& UnblindedOutput::_internal_encrypted_data() const { } inline void UnblindedOutput::_internal_set_encrypted_data(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.encrypted_data_.Set(value, GetArena()); } inline std::string* UnblindedOutput::_internal_mutable_encrypted_data() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.encrypted_data_.Mutable( GetArena()); } inline std::string* UnblindedOutput::release_encrypted_data() { @@ -5206,7 +5042,6 @@ inline ::uint64_t UnblindedOutput::_internal_minimum_value_promise() const { } inline void UnblindedOutput::_internal_set_minimum_value_promise(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.minimum_value_promise_ = value; } diff --git a/external/src/Tari/proto/gRPC/types.pb.cc b/external/src/Tari/proto/gRPC/types.pb.cc index 81e3f9a..7dd586a 100644 --- a/external/src/Tari/proto/gRPC/types.pb.cc +++ b/external/src/Tari/proto/gRPC/types.pb.cc @@ -1,5 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: types.proto +// Protobuf C++ Version: 5.26.0-rc1 #include "types.pb.h" @@ -331,209 +332,210 @@ static ::_pb::Metadata file_level_metadata_types_2eproto[13]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_types_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_types_2eproto = nullptr; -const ::uint32_t TableStruct_types_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::Range, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::Range, _impl_.min_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Range, _impl_.max_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::Empty, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeight, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeight, _impl_.block_height_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::Signature, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::Signature, _impl_.public_nonce_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Signature, _impl_.signature_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.ephemeral_commitment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.ephemeral_pubkey_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.u_a_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.u_x_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.u_y_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitmentSignature, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitmentSignature, _impl_.public_nonce_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitmentSignature, _impl_.u_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitmentSignature, _impl_.v_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgorithmConstants, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgorithmConstants, _impl_.min_difficulty_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgorithmConstants, _impl_.max_difficulty_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgorithmConstants, _impl_.target_time_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _impl_.kernel_weight_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _impl_.input_weight_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _impl_.output_weight_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _impl_.features_and_scripts_bytes_per_gram_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputsVersion, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputsVersion, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputsVersion, _impl_.outputs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputsVersion, _impl_.features_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::PermittedRangeProofs, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::PermittedRangeProofs, _impl_.output_type_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::PermittedRangeProofs, _impl_.range_proof_types_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::RangeProof, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::RangeProof, _impl_.proof_bytes_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.coinbase_min_maturity_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.blockchain_version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.future_time_limit_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.difficulty_block_window_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.max_block_transaction_weight_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.pow_algo_count_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.median_timestamp_count_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.emission_initial_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.emission_decay_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.emission_tail_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.min_sha3x_pow_difficulty_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.block_weight_inputs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.block_weight_outputs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.block_weight_kernels_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.faucet_value_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.max_script_byte_size_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.validator_node_validity_period_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.effective_from_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.valid_blockchain_version_range_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.max_randomx_seed_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.proof_of_work_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.transaction_weight_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.input_version_range_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.output_version_range_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.kernel_version_range_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.permitted_output_types_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.epoch_length_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.validator_node_registration_min_deposit_amount_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.validator_node_registration_min_lock_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.validator_node_registration_shuffle_interval_epoch_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.permitted_range_proof_types_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - 1, - 2, - 3, - 4, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, +const ::uint32_t + TableStruct_types_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::Range, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::Range, _impl_.min_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Range, _impl_.max_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::Empty, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeight, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeight, _impl_.block_height_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::Signature, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::Signature, _impl_.public_nonce_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Signature, _impl_.signature_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.ephemeral_commitment_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.ephemeral_pubkey_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.u_a_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.u_x_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.u_y_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitmentSignature, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitmentSignature, _impl_.public_nonce_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitmentSignature, _impl_.u_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitmentSignature, _impl_.v_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgorithmConstants, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgorithmConstants, _impl_.min_difficulty_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgorithmConstants, _impl_.max_difficulty_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgorithmConstants, _impl_.target_time_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _impl_.kernel_weight_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _impl_.input_weight_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _impl_.output_weight_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _impl_.features_and_scripts_bytes_per_gram_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputsVersion, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputsVersion, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputsVersion, _impl_.outputs_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputsVersion, _impl_.features_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::PermittedRangeProofs, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::PermittedRangeProofs, _impl_.output_type_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PermittedRangeProofs, _impl_.range_proof_types_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::RangeProof, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::RangeProof, _impl_.proof_bytes_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.coinbase_min_maturity_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.blockchain_version_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.future_time_limit_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.difficulty_block_window_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.max_block_transaction_weight_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.pow_algo_count_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.median_timestamp_count_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.emission_initial_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.emission_decay_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.emission_tail_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.min_sha3x_pow_difficulty_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.block_weight_inputs_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.block_weight_outputs_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.block_weight_kernels_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.faucet_value_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.max_script_byte_size_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.validator_node_validity_period_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.effective_from_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.valid_blockchain_version_range_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.max_randomx_seed_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.proof_of_work_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.transaction_weight_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.input_version_range_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.output_version_range_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.kernel_version_range_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.permitted_output_types_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.epoch_length_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.validator_node_registration_min_deposit_amount_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.validator_node_registration_min_lock_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.validator_node_registration_shuffle_interval_epoch_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.permitted_range_proof_types_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, + 1, + 2, + 3, + 4, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::tari::rpc::Range)}, {10, -1, -1, sizeof(::tari::rpc::Empty)}, {18, -1, -1, sizeof(::tari::rpc::BlockHeight)}, @@ -548,7 +550,6 @@ static const ::_pbi::MigrationSchema {115, 125, -1, sizeof(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse)}, {127, 166, -1, sizeof(::tari::rpc::ConsensusConstants)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_Range_default_instance_._instance, &::tari::rpc::_Empty_default_instance_._instance, @@ -564,7 +565,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_ConsensusConstants_ProofOfWorkEntry_DoNotUse_default_instance_._instance, &::tari::rpc::_ConsensusConstants_default_instance_._instance, }; -const char descriptor_table_protodef_types_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_types_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\013types.proto\022\010tari.rpc\"!\n\005Range\022\013\n\003min\030" "\001 \001(\004\022\013\n\003max\030\002 \001(\004\"\007\n\005Empty\"#\n\013BlockHeig" "ht\022\024\n\014block_height\030\001 \001(\004\"4\n\tSignature\022\024\n" @@ -657,9 +659,6 @@ const ::_pbi::DescriptorTable descriptor_table_types_2eproto = { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_types_2eproto_getter() { return &descriptor_table_types_2eproto; } -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_types_2eproto(&descriptor_table_types_2eproto); namespace tari { namespace rpc { const ::google::protobuf::EnumDescriptor* OutputType_descriptor() { @@ -720,6 +719,20 @@ inline void Range::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +Range::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Range, _impl_._cached_size_), + false, + }, + &Range::MergeImpl, + &Range::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void Range::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.Range) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -754,6 +767,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Range::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_Range_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::Range>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 max = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Range, _impl_.max_), 63>(), @@ -829,15 +845,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Range::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData Range::_class_data_ = { - Range::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Range::GetClassData() const { - return &_class_data_; -} -void Range::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void Range::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.Range) @@ -846,10 +855,10 @@ void Range::MergeImpl(::google::protobuf::Message& to_msg, const ::google::proto (void) cached_has_bits; if (from._internal_min() != 0) { - _this->_internal_set_min(from._internal_min()); + _this->_impl_.min_ = from._impl_.min_; } if (from._internal_max() != 0) { - _this->_internal_set_max(from._internal_max()); + _this->_impl_.max_ = from._impl_.max_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -865,9 +874,6 @@ PROTOBUF_NOINLINE bool Range::IsInitialized() const { return true; } -::_pbi::CachedSize* Range::AccessCachedSize() const { - return &_impl_._cached_size_; -} void Range::InternalSwap(Range* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -880,9 +886,9 @@ void Range::InternalSwap(Range* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata Range::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[0]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[0]); } // =================================================================== @@ -915,9 +921,9 @@ Empty::Empty( ::google::protobuf::Metadata Empty::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[1]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[1]); } // =================================================================== @@ -954,6 +960,20 @@ inline void BlockHeight::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +BlockHeight::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(BlockHeight, _impl_._cached_size_), + false, + }, + &BlockHeight::MergeImpl, + &BlockHeight::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void BlockHeight::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.BlockHeight) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -986,6 +1006,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> BlockHeight::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_BlockHeight_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::BlockHeight>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 block_height = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeight, _impl_.block_height_), 63>(), @@ -1042,15 +1065,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> BlockHeight::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData BlockHeight::_class_data_ = { - BlockHeight::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* BlockHeight::GetClassData() const { - return &_class_data_; -} -void BlockHeight::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void BlockHeight::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.BlockHeight) @@ -1059,7 +1075,7 @@ void BlockHeight::MergeImpl(::google::protobuf::Message& to_msg, const ::google: (void) cached_has_bits; if (from._internal_block_height() != 0) { - _this->_internal_set_block_height(from._internal_block_height()); + _this->_impl_.block_height_ = from._impl_.block_height_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1075,9 +1091,6 @@ PROTOBUF_NOINLINE bool BlockHeight::IsInitialized() const { return true; } -::_pbi::CachedSize* BlockHeight::AccessCachedSize() const { - return &_impl_._cached_size_; -} void BlockHeight::InternalSwap(BlockHeight* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1085,9 +1098,9 @@ void BlockHeight::InternalSwap(BlockHeight* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata BlockHeight::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[2]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[2]); } // =================================================================== @@ -1141,6 +1154,20 @@ inline void Signature::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +Signature::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Signature, _impl_._cached_size_), + false, + }, + &Signature::MergeImpl, + &Signature::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void Signature::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.Signature) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1174,6 +1201,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Signature::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_Signature_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::Signature>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes signature = 2; {::_pbi::TcParser::FastBS1, @@ -1247,15 +1277,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Signature::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData Signature::_class_data_ = { - Signature::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Signature::GetClassData() const { - return &_class_data_; -} -void Signature::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void Signature::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.Signature) @@ -1283,9 +1306,6 @@ PROTOBUF_NOINLINE bool Signature::IsInitialized() const { return true; } -::_pbi::CachedSize* Signature::AccessCachedSize() const { - return &_impl_._cached_size_; -} void Signature::InternalSwap(Signature* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -1296,9 +1316,9 @@ void Signature::InternalSwap(Signature* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata Signature::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[3]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[3]); } // =================================================================== @@ -1361,6 +1381,20 @@ inline void ComAndPubSignature::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +ComAndPubSignature::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_._cached_size_), + false, + }, + &ComAndPubSignature::MergeImpl, + &ComAndPubSignature::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void ComAndPubSignature::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.ComAndPubSignature) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1397,6 +1431,9 @@ const ::_pbi::TcParseTable<3, 5, 0, 0, 2> ComAndPubSignature::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_ComAndPubSignature_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes ephemeral_commitment = 1; @@ -1527,15 +1564,8 @@ const ::_pbi::TcParseTable<3, 5, 0, 0, 2> ComAndPubSignature::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData ComAndPubSignature::_class_data_ = { - ComAndPubSignature::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ComAndPubSignature::GetClassData() const { - return &_class_data_; -} -void ComAndPubSignature::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void ComAndPubSignature::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.ComAndPubSignature) @@ -1572,9 +1602,6 @@ PROTOBUF_NOINLINE bool ComAndPubSignature::IsInitialized() const { return true; } -::_pbi::CachedSize* ComAndPubSignature::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ComAndPubSignature::InternalSwap(ComAndPubSignature* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -1588,9 +1615,9 @@ void ComAndPubSignature::InternalSwap(ComAndPubSignature* PROTOBUF_RESTRICT othe } ::google::protobuf::Metadata ComAndPubSignature::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[4]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[4]); } // =================================================================== @@ -1647,6 +1674,20 @@ inline void CommitmentSignature::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +CommitmentSignature::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_._cached_size_), + false, + }, + &CommitmentSignature::MergeImpl, + &CommitmentSignature::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void CommitmentSignature::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.CommitmentSignature) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1681,6 +1722,9 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> CommitmentSignature::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_CommitmentSignature_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::CommitmentSignature>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes public_nonce = 1; @@ -1773,15 +1817,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> CommitmentSignature::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData CommitmentSignature::_class_data_ = { - CommitmentSignature::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CommitmentSignature::GetClassData() const { - return &_class_data_; -} -void CommitmentSignature::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void CommitmentSignature::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.CommitmentSignature) @@ -1812,9 +1849,6 @@ PROTOBUF_NOINLINE bool CommitmentSignature::IsInitialized() const { return true; } -::_pbi::CachedSize* CommitmentSignature::AccessCachedSize() const { - return &_impl_._cached_size_; -} void CommitmentSignature::InternalSwap(CommitmentSignature* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -1826,9 +1860,9 @@ void CommitmentSignature::InternalSwap(CommitmentSignature* PROTOBUF_RESTRICT ot } ::google::protobuf::Metadata CommitmentSignature::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[5]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[5]); } // =================================================================== @@ -1870,6 +1904,20 @@ inline void PowAlgorithmConstants::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +PowAlgorithmConstants::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_._cached_size_), + false, + }, + &PowAlgorithmConstants::MergeImpl, + &PowAlgorithmConstants::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void PowAlgorithmConstants::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.PowAlgorithmConstants) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1904,6 +1952,9 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> PowAlgorithmConstants::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_PowAlgorithmConstants_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::PowAlgorithmConstants>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 target_time = 4; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PowAlgorithmConstants, _impl_.target_time_), 63>(), @@ -1999,15 +2050,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> PowAlgorithmConstants::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData PowAlgorithmConstants::_class_data_ = { - PowAlgorithmConstants::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* PowAlgorithmConstants::GetClassData() const { - return &_class_data_; -} -void PowAlgorithmConstants::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void PowAlgorithmConstants::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.PowAlgorithmConstants) @@ -2016,13 +2060,13 @@ void PowAlgorithmConstants::MergeImpl(::google::protobuf::Message& to_msg, const (void) cached_has_bits; if (from._internal_min_difficulty() != 0) { - _this->_internal_set_min_difficulty(from._internal_min_difficulty()); + _this->_impl_.min_difficulty_ = from._impl_.min_difficulty_; } if (from._internal_max_difficulty() != 0) { - _this->_internal_set_max_difficulty(from._internal_max_difficulty()); + _this->_impl_.max_difficulty_ = from._impl_.max_difficulty_; } if (from._internal_target_time() != 0) { - _this->_internal_set_target_time(from._internal_target_time()); + _this->_impl_.target_time_ = from._impl_.target_time_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2038,9 +2082,6 @@ PROTOBUF_NOINLINE bool PowAlgorithmConstants::IsInitialized() const { return true; } -::_pbi::CachedSize* PowAlgorithmConstants::AccessCachedSize() const { - return &_impl_._cached_size_; -} void PowAlgorithmConstants::InternalSwap(PowAlgorithmConstants* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2053,9 +2094,9 @@ void PowAlgorithmConstants::InternalSwap(PowAlgorithmConstants* PROTOBUF_RESTRIC } ::google::protobuf::Metadata PowAlgorithmConstants::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[6]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[6]); } // =================================================================== @@ -2097,6 +2138,20 @@ inline void WeightParams::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +WeightParams::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(WeightParams, _impl_._cached_size_), + false, + }, + &WeightParams::MergeImpl, + &WeightParams::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void WeightParams::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.WeightParams) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2131,6 +2186,9 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> WeightParams::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_WeightParams_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::WeightParams>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 features_and_scripts_bytes_per_gram = 4; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(WeightParams, _impl_.features_and_scripts_bytes_per_gram_), 63>(), @@ -2244,15 +2302,8 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> WeightParams::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData WeightParams::_class_data_ = { - WeightParams::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* WeightParams::GetClassData() const { - return &_class_data_; -} -void WeightParams::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void WeightParams::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.WeightParams) @@ -2261,16 +2312,16 @@ void WeightParams::MergeImpl(::google::protobuf::Message& to_msg, const ::google (void) cached_has_bits; if (from._internal_kernel_weight() != 0) { - _this->_internal_set_kernel_weight(from._internal_kernel_weight()); + _this->_impl_.kernel_weight_ = from._impl_.kernel_weight_; } if (from._internal_input_weight() != 0) { - _this->_internal_set_input_weight(from._internal_input_weight()); + _this->_impl_.input_weight_ = from._impl_.input_weight_; } if (from._internal_output_weight() != 0) { - _this->_internal_set_output_weight(from._internal_output_weight()); + _this->_impl_.output_weight_ = from._impl_.output_weight_; } if (from._internal_features_and_scripts_bytes_per_gram() != 0) { - _this->_internal_set_features_and_scripts_bytes_per_gram(from._internal_features_and_scripts_bytes_per_gram()); + _this->_impl_.features_and_scripts_bytes_per_gram_ = from._impl_.features_and_scripts_bytes_per_gram_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2286,9 +2337,6 @@ PROTOBUF_NOINLINE bool WeightParams::IsInitialized() const { return true; } -::_pbi::CachedSize* WeightParams::AccessCachedSize() const { - return &_impl_._cached_size_; -} void WeightParams::InternalSwap(WeightParams* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2301,9 +2349,9 @@ void WeightParams::InternalSwap(WeightParams* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata WeightParams::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[7]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[7]); } // =================================================================== @@ -2312,22 +2360,8 @@ class OutputsVersion::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_._has_bits_); - static const ::tari::rpc::Range& outputs(const OutputsVersion* msg); - static void set_has_outputs(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::tari::rpc::Range& features(const OutputsVersion* msg); - static void set_has_features(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::tari::rpc::Range& OutputsVersion::_Internal::outputs(const OutputsVersion* msg) { - return *msg->_impl_.outputs_; -} -const ::tari::rpc::Range& OutputsVersion::_Internal::features(const OutputsVersion* msg) { - return *msg->_impl_.features_; -} OutputsVersion::OutputsVersion(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); @@ -2349,12 +2383,12 @@ OutputsVersion::OutputsVersion( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.outputs_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::Range>(arena, *from._impl_.outputs_) - : nullptr; - _impl_.features_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::tari::rpc::Range>(arena, *from._impl_.features_) - : nullptr; + _impl_.outputs_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>( + arena, *from._impl_.outputs_) + : nullptr; + _impl_.features_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>( + arena, *from._impl_.features_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.OutputsVersion) } @@ -2384,6 +2418,20 @@ inline void OutputsVersion::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +OutputsVersion::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_._cached_size_), + false, + }, + &OutputsVersion::MergeImpl, + &OutputsVersion::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void OutputsVersion::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.OutputsVersion) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2427,6 +2475,9 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> OutputsVersion::_table_ = { offsetof(decltype(_table_), aux_entries), &_OutputsVersion_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::OutputsVersion>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .tari.rpc.Range features = 2; {::_pbi::TcParser::FastMtS1, @@ -2461,15 +2512,13 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> OutputsVersion::_table_ = { // .tari.rpc.Range outputs = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::outputs(this), - _Internal::outputs(this).GetCachedSize(), target, stream); + 1, *_impl_.outputs_, _impl_.outputs_->GetCachedSize(), target, stream); } // .tari.rpc.Range features = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::features(this), - _Internal::features(this).GetCachedSize(), target, stream); + 2, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2507,17 +2556,11 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> OutputsVersion::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData OutputsVersion::_class_data_ = { - OutputsVersion::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* OutputsVersion::GetClassData() const { - return &_class_data_; -} -void OutputsVersion::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void OutputsVersion::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.OutputsVersion) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -2526,14 +2569,25 @@ void OutputsVersion::MergeImpl(::google::protobuf::Message& to_msg, const ::goog cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_outputs()->::tari::rpc::Range::MergeFrom( - from._internal_outputs()); + ABSL_DCHECK(from._impl_.outputs_ != nullptr); + if (_this->_impl_.outputs_ == nullptr) { + _this->_impl_.outputs_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>(arena, *from._impl_.outputs_); + } else { + _this->_impl_.outputs_->MergeFrom(*from._impl_.outputs_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_features()->::tari::rpc::Range::MergeFrom( - from._internal_features()); + ABSL_DCHECK(from._impl_.features_ != nullptr); + if (_this->_impl_.features_ == nullptr) { + _this->_impl_.features_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>(arena, *from._impl_.features_); + } else { + _this->_impl_.features_->MergeFrom(*from._impl_.features_); + } } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2548,9 +2602,6 @@ PROTOBUF_NOINLINE bool OutputsVersion::IsInitialized() const { return true; } -::_pbi::CachedSize* OutputsVersion::AccessCachedSize() const { - return &_impl_._cached_size_; -} void OutputsVersion::InternalSwap(OutputsVersion* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2564,9 +2615,9 @@ void OutputsVersion::InternalSwap(OutputsVersion* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata OutputsVersion::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[8]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[8]); } // =================================================================== @@ -2620,6 +2671,20 @@ inline void PermittedRangeProofs::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +PermittedRangeProofs::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_._cached_size_), + false, + }, + &PermittedRangeProofs::MergeImpl, + &PermittedRangeProofs::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void PermittedRangeProofs::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.PermittedRangeProofs) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2653,6 +2718,9 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> PermittedRangeProofs::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_PermittedRangeProofs_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::PermittedRangeProofs>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated .tari.rpc.RangeProofType range_proof_types = 2; {::_pbi::TcParser::FastV32P1, @@ -2741,15 +2809,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> PermittedRangeProofs::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData PermittedRangeProofs::_class_data_ = { - PermittedRangeProofs::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* PermittedRangeProofs::GetClassData() const { - return &_class_data_; -} -void PermittedRangeProofs::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void PermittedRangeProofs::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.PermittedRangeProofs) @@ -2759,7 +2820,7 @@ void PermittedRangeProofs::MergeImpl(::google::protobuf::Message& to_msg, const _this->_internal_mutable_range_proof_types()->MergeFrom(from._internal_range_proof_types()); if (from._internal_output_type() != 0) { - _this->_internal_set_output_type(from._internal_output_type()); + _this->_impl_.output_type_ = from._impl_.output_type_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2775,9 +2836,6 @@ PROTOBUF_NOINLINE bool PermittedRangeProofs::IsInitialized() const { return true; } -::_pbi::CachedSize* PermittedRangeProofs::AccessCachedSize() const { - return &_impl_._cached_size_; -} void PermittedRangeProofs::InternalSwap(PermittedRangeProofs* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2786,9 +2844,9 @@ void PermittedRangeProofs::InternalSwap(PermittedRangeProofs* PROTOBUF_RESTRICT } ::google::protobuf::Metadata PermittedRangeProofs::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[9]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[9]); } // =================================================================== @@ -2839,6 +2897,20 @@ inline void RangeProof::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +RangeProof::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(RangeProof, _impl_._cached_size_), + false, + }, + &RangeProof::MergeImpl, + &RangeProof::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void RangeProof::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.RangeProof) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -2871,6 +2943,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RangeProof::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_RangeProof_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::RangeProof>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes proof_bytes = 1; {::_pbi::TcParser::FastBS1, @@ -2926,15 +3001,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RangeProof::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData RangeProof::_class_data_ = { - RangeProof::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* RangeProof::GetClassData() const { - return &_class_data_; -} -void RangeProof::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void RangeProof::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.RangeProof) @@ -2959,9 +3027,6 @@ PROTOBUF_NOINLINE bool RangeProof::IsInitialized() const { return true; } -::_pbi::CachedSize* RangeProof::AccessCachedSize() const { - return &_impl_._cached_size_; -} void RangeProof::InternalSwap(RangeProof* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -2971,9 +3036,9 @@ void RangeProof::InternalSwap(RangeProof* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata RangeProof::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[10]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[10]); } // =================================================================== @@ -2981,9 +3046,9 @@ ConsensusConstants_ProofOfWorkEntry_DoNotUse::ConsensusConstants_ProofOfWorkEntr ConsensusConstants_ProofOfWorkEntry_DoNotUse::ConsensusConstants_ProofOfWorkEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} ::google::protobuf::Metadata ConsensusConstants_ProofOfWorkEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[11]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[11]); } // =================================================================== @@ -2992,43 +3057,8 @@ class ConsensusConstants::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_._has_bits_); - static const ::tari::rpc::Range& valid_blockchain_version_range(const ConsensusConstants* msg); - static void set_has_valid_blockchain_version_range(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::tari::rpc::WeightParams& transaction_weight(const ConsensusConstants* msg); - static void set_has_transaction_weight(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::tari::rpc::Range& input_version_range(const ConsensusConstants* msg); - static void set_has_input_version_range(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::tari::rpc::OutputsVersion& output_version_range(const ConsensusConstants* msg); - static void set_has_output_version_range(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::tari::rpc::Range& kernel_version_range(const ConsensusConstants* msg); - static void set_has_kernel_version_range(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } }; -const ::tari::rpc::Range& ConsensusConstants::_Internal::valid_blockchain_version_range(const ConsensusConstants* msg) { - return *msg->_impl_.valid_blockchain_version_range_; -} -const ::tari::rpc::WeightParams& ConsensusConstants::_Internal::transaction_weight(const ConsensusConstants* msg) { - return *msg->_impl_.transaction_weight_; -} -const ::tari::rpc::Range& ConsensusConstants::_Internal::input_version_range(const ConsensusConstants* msg) { - return *msg->_impl_.input_version_range_; -} -const ::tari::rpc::OutputsVersion& ConsensusConstants::_Internal::output_version_range(const ConsensusConstants* msg) { - return *msg->_impl_.output_version_range_; -} -const ::tari::rpc::Range& ConsensusConstants::_Internal::kernel_version_range(const ConsensusConstants* msg) { - return *msg->_impl_.kernel_version_range_; -} ConsensusConstants::ConsensusConstants(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); @@ -3056,21 +3086,21 @@ ConsensusConstants::ConsensusConstants( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.valid_blockchain_version_range_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::Range>(arena, *from._impl_.valid_blockchain_version_range_) - : nullptr; - _impl_.transaction_weight_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::tari::rpc::WeightParams>(arena, *from._impl_.transaction_weight_) - : nullptr; - _impl_.input_version_range_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::tari::rpc::Range>(arena, *from._impl_.input_version_range_) - : nullptr; - _impl_.output_version_range_ = (cached_has_bits & 0x00000008u) - ? CreateMaybeMessage<::tari::rpc::OutputsVersion>(arena, *from._impl_.output_version_range_) - : nullptr; - _impl_.kernel_version_range_ = (cached_has_bits & 0x00000010u) - ? CreateMaybeMessage<::tari::rpc::Range>(arena, *from._impl_.kernel_version_range_) - : nullptr; + _impl_.valid_blockchain_version_range_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>( + arena, *from._impl_.valid_blockchain_version_range_) + : nullptr; + _impl_.transaction_weight_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::WeightParams>( + arena, *from._impl_.transaction_weight_) + : nullptr; + _impl_.input_version_range_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>( + arena, *from._impl_.input_version_range_) + : nullptr; + _impl_.output_version_range_ = (cached_has_bits & 0x00000008u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputsVersion>( + arena, *from._impl_.output_version_range_) + : nullptr; + _impl_.kernel_version_range_ = (cached_has_bits & 0x00000010u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>( + arena, *from._impl_.kernel_version_range_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, coinbase_min_maturity_), reinterpret_cast(&from._impl_) + @@ -3116,6 +3146,20 @@ inline void ConsensusConstants::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +ConsensusConstants::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_._cached_size_), + false, + }, + &ConsensusConstants::MergeImpl, + &ConsensusConstants::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void ConsensusConstants::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.ConsensusConstants) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -3178,6 +3222,9 @@ const ::_pbi::TcParseTable<5, 31, 8, 0, 7> ConsensusConstants::_table_ = { offsetof(decltype(_table_), aux_entries), &_ConsensusConstants_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ConsensusConstants>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 coinbase_min_maturity = 1; @@ -3367,7 +3414,7 @@ const ::_pbi::TcParseTable<5, 31, 8, 0, 7> ConsensusConstants::_table_ = { {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, {::_pbi::TcParser::GetMapAuxInfo< decltype(ConsensusConstants()._impl_.proof_of_work_)>( - 1, 0, 0, 13, + 0, 0, 0, 13, 11)}, {::_pbi::TcParser::CreateInArenaStorageCb<::tari::rpc::PowAlgorithmConstants>}, {::_pbi::TcParser::GetTable<::tari::rpc::WeightParams>()}, @@ -3518,8 +3565,7 @@ const ::_pbi::TcParseTable<5, 31, 8, 0, 7> ConsensusConstants::_table_ = { // .tari.rpc.Range valid_blockchain_version_range = 21; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 21, _Internal::valid_blockchain_version_range(this), - _Internal::valid_blockchain_version_range(this).GetCachedSize(), target, stream); + 21, *_impl_.valid_blockchain_version_range_, _impl_.valid_blockchain_version_range_->GetCachedSize(), target, stream); } // uint64 max_randomx_seed_height = 22; @@ -3553,29 +3599,25 @@ const ::_pbi::TcParseTable<5, 31, 8, 0, 7> ConsensusConstants::_table_ = { // .tari.rpc.WeightParams transaction_weight = 24; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 24, _Internal::transaction_weight(this), - _Internal::transaction_weight(this).GetCachedSize(), target, stream); + 24, *_impl_.transaction_weight_, _impl_.transaction_weight_->GetCachedSize(), target, stream); } // .tari.rpc.Range input_version_range = 26; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 26, _Internal::input_version_range(this), - _Internal::input_version_range(this).GetCachedSize(), target, stream); + 26, *_impl_.input_version_range_, _impl_.input_version_range_->GetCachedSize(), target, stream); } // .tari.rpc.OutputsVersion output_version_range = 27; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 27, _Internal::output_version_range(this), - _Internal::output_version_range(this).GetCachedSize(), target, stream); + 27, *_impl_.output_version_range_, _impl_.output_version_range_->GetCachedSize(), target, stream); } // .tari.rpc.Range kernel_version_range = 28; if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 28, _Internal::kernel_version_range(this), - _Internal::kernel_version_range(this).GetCachedSize(), target, stream); + 28, *_impl_.kernel_version_range_, _impl_.kernel_version_range_->GetCachedSize(), target, stream); } // repeated .tari.rpc.OutputType permitted_output_types = 29; @@ -3616,11 +3658,14 @@ const ::_pbi::TcParseTable<5, 31, 8, 0, 7> ConsensusConstants::_table_ = { } // repeated .tari.rpc.PermittedRangeProofs permitted_range_proof_types = 34; - for (unsigned i = 0, - n = static_cast(this->_internal_permitted_range_proof_types_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_permitted_range_proof_types_size()); + i < n; i++) { const auto& repfield = this->_internal_permitted_range_proof_types().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(34, repfield, repfield.GetCachedSize(), target, stream); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 34, repfield, repfield.GetCachedSize(), + target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3680,8 +3725,7 @@ const ::_pbi::TcParseTable<5, 31, 8, 0, 7> ConsensusConstants::_table_ = { // repeated .tari.rpc.PermittedRangeProofs permitted_range_proof_types = 34; total_size += 2UL * this->_internal_permitted_range_proof_types_size(); for (const auto& msg : this->_internal_permitted_range_proof_types()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { @@ -3851,17 +3895,11 @@ const ::_pbi::TcParseTable<5, 31, 8, 0, 7> ConsensusConstants::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData ConsensusConstants::_class_data_ = { - ConsensusConstants::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ConsensusConstants::GetClassData() const { - return &_class_data_; -} -void ConsensusConstants::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void ConsensusConstants::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.ConsensusConstants) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -3875,92 +3913,118 @@ void ConsensusConstants::MergeImpl(::google::protobuf::Message& to_msg, const :: cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_valid_blockchain_version_range()->::tari::rpc::Range::MergeFrom( - from._internal_valid_blockchain_version_range()); + ABSL_DCHECK(from._impl_.valid_blockchain_version_range_ != nullptr); + if (_this->_impl_.valid_blockchain_version_range_ == nullptr) { + _this->_impl_.valid_blockchain_version_range_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>(arena, *from._impl_.valid_blockchain_version_range_); + } else { + _this->_impl_.valid_blockchain_version_range_->MergeFrom(*from._impl_.valid_blockchain_version_range_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_transaction_weight()->::tari::rpc::WeightParams::MergeFrom( - from._internal_transaction_weight()); + ABSL_DCHECK(from._impl_.transaction_weight_ != nullptr); + if (_this->_impl_.transaction_weight_ == nullptr) { + _this->_impl_.transaction_weight_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::WeightParams>(arena, *from._impl_.transaction_weight_); + } else { + _this->_impl_.transaction_weight_->MergeFrom(*from._impl_.transaction_weight_); + } } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_input_version_range()->::tari::rpc::Range::MergeFrom( - from._internal_input_version_range()); + ABSL_DCHECK(from._impl_.input_version_range_ != nullptr); + if (_this->_impl_.input_version_range_ == nullptr) { + _this->_impl_.input_version_range_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>(arena, *from._impl_.input_version_range_); + } else { + _this->_impl_.input_version_range_->MergeFrom(*from._impl_.input_version_range_); + } } if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_output_version_range()->::tari::rpc::OutputsVersion::MergeFrom( - from._internal_output_version_range()); + ABSL_DCHECK(from._impl_.output_version_range_ != nullptr); + if (_this->_impl_.output_version_range_ == nullptr) { + _this->_impl_.output_version_range_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputsVersion>(arena, *from._impl_.output_version_range_); + } else { + _this->_impl_.output_version_range_->MergeFrom(*from._impl_.output_version_range_); + } } if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_kernel_version_range()->::tari::rpc::Range::MergeFrom( - from._internal_kernel_version_range()); + ABSL_DCHECK(from._impl_.kernel_version_range_ != nullptr); + if (_this->_impl_.kernel_version_range_ == nullptr) { + _this->_impl_.kernel_version_range_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>(arena, *from._impl_.kernel_version_range_); + } else { + _this->_impl_.kernel_version_range_->MergeFrom(*from._impl_.kernel_version_range_); + } } } if (from._internal_coinbase_min_maturity() != 0) { - _this->_internal_set_coinbase_min_maturity(from._internal_coinbase_min_maturity()); + _this->_impl_.coinbase_min_maturity_ = from._impl_.coinbase_min_maturity_; } if (from._internal_future_time_limit() != 0) { - _this->_internal_set_future_time_limit(from._internal_future_time_limit()); + _this->_impl_.future_time_limit_ = from._impl_.future_time_limit_; } if (from._internal_difficulty_block_window() != 0) { - _this->_internal_set_difficulty_block_window(from._internal_difficulty_block_window()); + _this->_impl_.difficulty_block_window_ = from._impl_.difficulty_block_window_; } if (from._internal_max_block_transaction_weight() != 0) { - _this->_internal_set_max_block_transaction_weight(from._internal_max_block_transaction_weight()); + _this->_impl_.max_block_transaction_weight_ = from._impl_.max_block_transaction_weight_; } if (from._internal_pow_algo_count() != 0) { - _this->_internal_set_pow_algo_count(from._internal_pow_algo_count()); + _this->_impl_.pow_algo_count_ = from._impl_.pow_algo_count_; } if (from._internal_median_timestamp_count() != 0) { - _this->_internal_set_median_timestamp_count(from._internal_median_timestamp_count()); + _this->_impl_.median_timestamp_count_ = from._impl_.median_timestamp_count_; } if (from._internal_emission_initial() != 0) { - _this->_internal_set_emission_initial(from._internal_emission_initial()); + _this->_impl_.emission_initial_ = from._impl_.emission_initial_; } if (from._internal_emission_tail() != 0) { - _this->_internal_set_emission_tail(from._internal_emission_tail()); + _this->_impl_.emission_tail_ = from._impl_.emission_tail_; } if (from._internal_min_sha3x_pow_difficulty() != 0) { - _this->_internal_set_min_sha3x_pow_difficulty(from._internal_min_sha3x_pow_difficulty()); + _this->_impl_.min_sha3x_pow_difficulty_ = from._impl_.min_sha3x_pow_difficulty_; } if (from._internal_block_weight_inputs() != 0) { - _this->_internal_set_block_weight_inputs(from._internal_block_weight_inputs()); + _this->_impl_.block_weight_inputs_ = from._impl_.block_weight_inputs_; } if (from._internal_block_weight_outputs() != 0) { - _this->_internal_set_block_weight_outputs(from._internal_block_weight_outputs()); + _this->_impl_.block_weight_outputs_ = from._impl_.block_weight_outputs_; } if (from._internal_block_weight_kernels() != 0) { - _this->_internal_set_block_weight_kernels(from._internal_block_weight_kernels()); + _this->_impl_.block_weight_kernels_ = from._impl_.block_weight_kernels_; } if (from._internal_faucet_value() != 0) { - _this->_internal_set_faucet_value(from._internal_faucet_value()); + _this->_impl_.faucet_value_ = from._impl_.faucet_value_; } if (from._internal_max_script_byte_size() != 0) { - _this->_internal_set_max_script_byte_size(from._internal_max_script_byte_size()); + _this->_impl_.max_script_byte_size_ = from._impl_.max_script_byte_size_; } if (from._internal_validator_node_validity_period() != 0) { - _this->_internal_set_validator_node_validity_period(from._internal_validator_node_validity_period()); + _this->_impl_.validator_node_validity_period_ = from._impl_.validator_node_validity_period_; } if (from._internal_effective_from_height() != 0) { - _this->_internal_set_effective_from_height(from._internal_effective_from_height()); + _this->_impl_.effective_from_height_ = from._impl_.effective_from_height_; } if (from._internal_max_randomx_seed_height() != 0) { - _this->_internal_set_max_randomx_seed_height(from._internal_max_randomx_seed_height()); + _this->_impl_.max_randomx_seed_height_ = from._impl_.max_randomx_seed_height_; } if (from._internal_epoch_length() != 0) { - _this->_internal_set_epoch_length(from._internal_epoch_length()); + _this->_impl_.epoch_length_ = from._impl_.epoch_length_; } if (from._internal_validator_node_registration_min_deposit_amount() != 0) { - _this->_internal_set_validator_node_registration_min_deposit_amount(from._internal_validator_node_registration_min_deposit_amount()); + _this->_impl_.validator_node_registration_min_deposit_amount_ = from._impl_.validator_node_registration_min_deposit_amount_; } if (from._internal_validator_node_registration_min_lock_height() != 0) { - _this->_internal_set_validator_node_registration_min_lock_height(from._internal_validator_node_registration_min_lock_height()); + _this->_impl_.validator_node_registration_min_lock_height_ = from._impl_.validator_node_registration_min_lock_height_; } if (from._internal_validator_node_registration_shuffle_interval_epoch() != 0) { - _this->_internal_set_validator_node_registration_shuffle_interval_epoch(from._internal_validator_node_registration_shuffle_interval_epoch()); + _this->_impl_.validator_node_registration_shuffle_interval_epoch_ = from._impl_.validator_node_registration_shuffle_interval_epoch_; } if (from._internal_blockchain_version() != 0) { - _this->_internal_set_blockchain_version(from._internal_blockchain_version()); + _this->_impl_.blockchain_version_ = from._impl_.blockchain_version_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3975,9 +4039,6 @@ PROTOBUF_NOINLINE bool ConsensusConstants::IsInitialized() const { return true; } -::_pbi::CachedSize* ConsensusConstants::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ConsensusConstants::InternalSwap(ConsensusConstants* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -3995,9 +4056,9 @@ void ConsensusConstants::InternalSwap(ConsensusConstants* PROTOBUF_RESTRICT othe } ::google::protobuf::Metadata ConsensusConstants::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_types_2eproto_getter, &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[12]); + return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, + &descriptor_table_types_2eproto_once, + file_level_metadata_types_2eproto[12]); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -4007,4 +4068,8 @@ namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::std::false_type _static_init_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_types_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/external/src/Tari/proto/gRPC/types.pb.h b/external/src/Tari/proto/gRPC/types.pb.h index f60bf6b..77b848b 100644 --- a/external/src/Tari/proto/gRPC/types.pb.h +++ b/external/src/Tari/proto/gRPC/types.pb.h @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: types.proto -// Protobuf C++ Version: 4.25.2 +// Protobuf C++ Version: 5.26.0-rc1 #ifndef GOOGLE_PROTOBUF_INCLUDED_types_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_types_2eproto_2epb_2eh @@ -11,17 +11,11 @@ #include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#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 // PROTOBUF_VERSION - -#if 4025002 < 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 // PROTOBUF_MIN_PROTOC_VERSION +#if PROTOBUF_VERSION != 5026000 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" @@ -185,21 +179,18 @@ inline bool RangeProofType_Parse(absl::string_view name, RangeProofType* value) // ------------------------------------------------------------------- -class WeightParams final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.WeightParams) */ { +class WeightParams final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.WeightParams) */ { public: inline WeightParams() : WeightParams(nullptr) {} ~WeightParams() override; - template - explicit PROTOBUF_CONSTEXPR WeightParams(::google::protobuf::internal::ConstantInitialized); - - inline WeightParams(const WeightParams& from) - : WeightParams(nullptr, from) {} - WeightParams(WeightParams&& from) noexcept - : WeightParams() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR WeightParams( + ::google::protobuf::internal::ConstantInitialized); + inline WeightParams(const WeightParams& from) : WeightParams(nullptr, from) {} + inline WeightParams(WeightParams&& from) noexcept + : WeightParams(nullptr, std::move(from)) {} inline WeightParams& operator=(const WeightParams& from) { CopyFrom(from); return *this; @@ -207,9 +198,9 @@ class WeightParams final : inline WeightParams& operator=(WeightParams&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -241,22 +232,17 @@ class WeightParams final : } static inline const WeightParams* internal_default_instance() { return reinterpret_cast( - &_WeightParams_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(WeightParams& a, WeightParams& b) { - a.Swap(&b); + &_WeightParams_default_instance_); } + static constexpr int kIndexInFileMessages = 7; + friend void swap(WeightParams& a, WeightParams& b) { a.Swap(&b); } inline void Swap(WeightParams* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -271,51 +257,52 @@ class WeightParams final : // implements Message ---------------------------------------------- WeightParams* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const WeightParams& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const WeightParams& from) { - WeightParams::MergeImpl(*this, from); - } + void MergeFrom(const WeightParams& from) { WeightParams::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(WeightParams* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.WeightParams"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.WeightParams"; } + + protected: explicit WeightParams(::google::protobuf::Arena* arena); WeightParams(::google::protobuf::Arena* arena, const WeightParams& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + WeightParams(::google::protobuf::Arena* arena, WeightParams&& from) noexcept + : WeightParams(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kKernelWeightFieldNumber = 1, kInputWeightFieldNumber = 2, @@ -365,7 +352,6 @@ class WeightParams final : // @@protoc_insertion_point(class_scope:tari.rpc.WeightParams) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 4, 0, @@ -378,13 +364,12 @@ class WeightParams final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t kernel_weight_; ::uint64_t input_weight_; ::uint64_t output_weight_; @@ -394,23 +379,21 @@ class WeightParams final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Signature final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.Signature) */ { +class Signature final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.Signature) */ { public: inline Signature() : Signature(nullptr) {} ~Signature() override; - template - explicit PROTOBUF_CONSTEXPR Signature(::google::protobuf::internal::ConstantInitialized); - - inline Signature(const Signature& from) - : Signature(nullptr, from) {} - Signature(Signature&& from) noexcept - : Signature() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR Signature( + ::google::protobuf::internal::ConstantInitialized); + inline Signature(const Signature& from) : Signature(nullptr, from) {} + inline Signature(Signature&& from) noexcept + : Signature(nullptr, std::move(from)) {} inline Signature& operator=(const Signature& from) { CopyFrom(from); return *this; @@ -418,9 +401,9 @@ class Signature final : inline Signature& operator=(Signature&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -452,22 +435,17 @@ class Signature final : } static inline const Signature* internal_default_instance() { return reinterpret_cast( - &_Signature_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(Signature& a, Signature& b) { - a.Swap(&b); + &_Signature_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(Signature& a, Signature& b) { a.Swap(&b); } inline void Swap(Signature* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -482,51 +460,52 @@ class Signature final : // implements Message ---------------------------------------------- Signature* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Signature& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Signature& from) { - Signature::MergeImpl(*this, from); - } + void MergeFrom(const Signature& from) { Signature::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(Signature* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.Signature"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.Signature"; } + + protected: explicit Signature(::google::protobuf::Arena* arena); Signature(::google::protobuf::Arena* arena, const Signature& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + Signature(::google::protobuf::Arena* arena, Signature&& from) noexcept + : Signature(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kPublicNonceFieldNumber = 1, kSignatureFieldNumber = 2, @@ -566,7 +545,6 @@ class Signature final : // @@protoc_insertion_point(class_scope:tari.rpc.Signature) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -579,13 +557,12 @@ class Signature final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr public_nonce_; ::google::protobuf::internal::ArenaStringPtr signature_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -593,23 +570,21 @@ class Signature final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RangeProof final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.RangeProof) */ { +class RangeProof final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.RangeProof) */ { public: inline RangeProof() : RangeProof(nullptr) {} ~RangeProof() override; - template - explicit PROTOBUF_CONSTEXPR RangeProof(::google::protobuf::internal::ConstantInitialized); - - inline RangeProof(const RangeProof& from) - : RangeProof(nullptr, from) {} - RangeProof(RangeProof&& from) noexcept - : RangeProof() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR RangeProof( + ::google::protobuf::internal::ConstantInitialized); + inline RangeProof(const RangeProof& from) : RangeProof(nullptr, from) {} + inline RangeProof(RangeProof&& from) noexcept + : RangeProof(nullptr, std::move(from)) {} inline RangeProof& operator=(const RangeProof& from) { CopyFrom(from); return *this; @@ -617,9 +592,9 @@ class RangeProof final : inline RangeProof& operator=(RangeProof&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -651,22 +626,17 @@ class RangeProof final : } static inline const RangeProof* internal_default_instance() { return reinterpret_cast( - &_RangeProof_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(RangeProof& a, RangeProof& b) { - a.Swap(&b); + &_RangeProof_default_instance_); } + static constexpr int kIndexInFileMessages = 10; + friend void swap(RangeProof& a, RangeProof& b) { a.Swap(&b); } inline void Swap(RangeProof* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -681,51 +651,52 @@ class RangeProof final : // implements Message ---------------------------------------------- RangeProof* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const RangeProof& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RangeProof& from) { - RangeProof::MergeImpl(*this, from); - } + void MergeFrom(const RangeProof& from) { RangeProof::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(RangeProof* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.RangeProof"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.RangeProof"; } + + protected: explicit RangeProof(::google::protobuf::Arena* arena); RangeProof(::google::protobuf::Arena* arena, const RangeProof& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + RangeProof(::google::protobuf::Arena* arena, RangeProof&& from) noexcept + : RangeProof(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kProofBytesFieldNumber = 1, }; @@ -748,7 +719,6 @@ class RangeProof final : // @@protoc_insertion_point(class_scope:tari.rpc.RangeProof) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -761,36 +731,33 @@ class RangeProof final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr proof_bytes_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Range final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.Range) */ { +class Range final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.Range) */ { public: inline Range() : Range(nullptr) {} ~Range() override; - template - explicit PROTOBUF_CONSTEXPR Range(::google::protobuf::internal::ConstantInitialized); - - inline Range(const Range& from) - : Range(nullptr, from) {} - Range(Range&& from) noexcept - : Range() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR Range( + ::google::protobuf::internal::ConstantInitialized); + inline Range(const Range& from) : Range(nullptr, from) {} + inline Range(Range&& from) noexcept + : Range(nullptr, std::move(from)) {} inline Range& operator=(const Range& from) { CopyFrom(from); return *this; @@ -798,9 +765,9 @@ class Range final : inline Range& operator=(Range&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -832,22 +799,17 @@ class Range final : } static inline const Range* internal_default_instance() { return reinterpret_cast( - &_Range_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Range& a, Range& b) { - a.Swap(&b); + &_Range_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(Range& a, Range& b) { a.Swap(&b); } inline void Swap(Range* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -862,51 +824,52 @@ class Range final : // implements Message ---------------------------------------------- Range* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Range& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const Range& from) { - Range::MergeImpl(*this, from); - } + void MergeFrom(const Range& from) { Range::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(Range* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.Range"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.Range"; } + + protected: explicit Range(::google::protobuf::Arena* arena); Range(::google::protobuf::Arena* arena, const Range& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + Range(::google::protobuf::Arena* arena, Range&& from) noexcept + : Range(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kMinFieldNumber = 1, kMaxFieldNumber = 2, @@ -934,7 +897,6 @@ class Range final : // @@protoc_insertion_point(class_scope:tari.rpc.Range) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -947,13 +909,12 @@ class Range final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t min_; ::uint64_t max_; mutable ::google::protobuf::internal::CachedSize _cached_size_; @@ -961,23 +922,21 @@ class Range final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PowAlgorithmConstants final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.PowAlgorithmConstants) */ { +class PowAlgorithmConstants final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.PowAlgorithmConstants) */ { public: inline PowAlgorithmConstants() : PowAlgorithmConstants(nullptr) {} ~PowAlgorithmConstants() override; - template - explicit PROTOBUF_CONSTEXPR PowAlgorithmConstants(::google::protobuf::internal::ConstantInitialized); - - inline PowAlgorithmConstants(const PowAlgorithmConstants& from) - : PowAlgorithmConstants(nullptr, from) {} - PowAlgorithmConstants(PowAlgorithmConstants&& from) noexcept - : PowAlgorithmConstants() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR PowAlgorithmConstants( + ::google::protobuf::internal::ConstantInitialized); + inline PowAlgorithmConstants(const PowAlgorithmConstants& from) : PowAlgorithmConstants(nullptr, from) {} + inline PowAlgorithmConstants(PowAlgorithmConstants&& from) noexcept + : PowAlgorithmConstants(nullptr, std::move(from)) {} inline PowAlgorithmConstants& operator=(const PowAlgorithmConstants& from) { CopyFrom(from); return *this; @@ -985,9 +944,9 @@ class PowAlgorithmConstants final : inline PowAlgorithmConstants& operator=(PowAlgorithmConstants&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1019,22 +978,17 @@ class PowAlgorithmConstants final : } static inline const PowAlgorithmConstants* internal_default_instance() { return reinterpret_cast( - &_PowAlgorithmConstants_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(PowAlgorithmConstants& a, PowAlgorithmConstants& b) { - a.Swap(&b); + &_PowAlgorithmConstants_default_instance_); } + static constexpr int kIndexInFileMessages = 6; + friend void swap(PowAlgorithmConstants& a, PowAlgorithmConstants& b) { a.Swap(&b); } inline void Swap(PowAlgorithmConstants* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1049,51 +1003,52 @@ class PowAlgorithmConstants final : // implements Message ---------------------------------------------- PowAlgorithmConstants* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const PowAlgorithmConstants& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PowAlgorithmConstants& from) { - PowAlgorithmConstants::MergeImpl(*this, from); - } + void MergeFrom(const PowAlgorithmConstants& from) { PowAlgorithmConstants::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(PowAlgorithmConstants* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.PowAlgorithmConstants"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.PowAlgorithmConstants"; } + + protected: explicit PowAlgorithmConstants(::google::protobuf::Arena* arena); PowAlgorithmConstants(::google::protobuf::Arena* arena, const PowAlgorithmConstants& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + PowAlgorithmConstants(::google::protobuf::Arena* arena, PowAlgorithmConstants&& from) noexcept + : PowAlgorithmConstants(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kMinDifficultyFieldNumber = 2, kMaxDifficultyFieldNumber = 3, @@ -1132,7 +1087,6 @@ class PowAlgorithmConstants final : // @@protoc_insertion_point(class_scope:tari.rpc.PowAlgorithmConstants) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, @@ -1145,13 +1099,12 @@ class PowAlgorithmConstants final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t min_difficulty_; ::uint64_t max_difficulty_; ::uint64_t target_time_; @@ -1160,23 +1113,21 @@ class PowAlgorithmConstants final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class PermittedRangeProofs final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.PermittedRangeProofs) */ { +class PermittedRangeProofs final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.PermittedRangeProofs) */ { public: inline PermittedRangeProofs() : PermittedRangeProofs(nullptr) {} ~PermittedRangeProofs() override; - template - explicit PROTOBUF_CONSTEXPR PermittedRangeProofs(::google::protobuf::internal::ConstantInitialized); - - inline PermittedRangeProofs(const PermittedRangeProofs& from) - : PermittedRangeProofs(nullptr, from) {} - PermittedRangeProofs(PermittedRangeProofs&& from) noexcept - : PermittedRangeProofs() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR PermittedRangeProofs( + ::google::protobuf::internal::ConstantInitialized); + inline PermittedRangeProofs(const PermittedRangeProofs& from) : PermittedRangeProofs(nullptr, from) {} + inline PermittedRangeProofs(PermittedRangeProofs&& from) noexcept + : PermittedRangeProofs(nullptr, std::move(from)) {} inline PermittedRangeProofs& operator=(const PermittedRangeProofs& from) { CopyFrom(from); return *this; @@ -1184,9 +1135,9 @@ class PermittedRangeProofs final : inline PermittedRangeProofs& operator=(PermittedRangeProofs&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1218,22 +1169,17 @@ class PermittedRangeProofs final : } static inline const PermittedRangeProofs* internal_default_instance() { return reinterpret_cast( - &_PermittedRangeProofs_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(PermittedRangeProofs& a, PermittedRangeProofs& b) { - a.Swap(&b); + &_PermittedRangeProofs_default_instance_); } + static constexpr int kIndexInFileMessages = 9; + friend void swap(PermittedRangeProofs& a, PermittedRangeProofs& b) { a.Swap(&b); } inline void Swap(PermittedRangeProofs* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1248,51 +1194,52 @@ class PermittedRangeProofs final : // implements Message ---------------------------------------------- PermittedRangeProofs* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const PermittedRangeProofs& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const PermittedRangeProofs& from) { - PermittedRangeProofs::MergeImpl(*this, from); - } + void MergeFrom(const PermittedRangeProofs& from) { PermittedRangeProofs::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(PermittedRangeProofs* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.PermittedRangeProofs"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.PermittedRangeProofs"; } + + protected: explicit PermittedRangeProofs(::google::protobuf::Arena* arena); PermittedRangeProofs(::google::protobuf::Arena* arena, const PermittedRangeProofs& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + PermittedRangeProofs(::google::protobuf::Arena* arena, PermittedRangeProofs&& from) noexcept + : PermittedRangeProofs(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kRangeProofTypesFieldNumber = 2, kOutputTypeFieldNumber = 1, @@ -1329,7 +1276,6 @@ class PermittedRangeProofs final : // @@protoc_insertion_point(class_scope:tari.rpc.PermittedRangeProofs) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, @@ -1342,13 +1288,12 @@ class PermittedRangeProofs final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedField range_proof_types_; mutable ::google::protobuf::internal::CachedSize _range_proof_types_cached_byte_size_; int output_type_; @@ -1357,22 +1302,20 @@ class PermittedRangeProofs final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class Empty final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:tari.rpc.Empty) */ { +class Empty final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:tari.rpc.Empty) */ { public: inline Empty() : Empty(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR Empty(::google::protobuf::internal::ConstantInitialized); - - inline Empty(const Empty& from) - : Empty(nullptr, from) {} - Empty(Empty&& from) noexcept - : Empty() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR Empty( + ::google::protobuf::internal::ConstantInitialized); + inline Empty(const Empty& from) : Empty(nullptr, from) {} + inline Empty(Empty&& from) noexcept + : Empty(nullptr, std::move(from)) {} inline Empty& operator=(const Empty& from) { CopyFrom(from); return *this; @@ -1380,9 +1323,9 @@ class Empty final : inline Empty& operator=(Empty&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1414,22 +1357,17 @@ class Empty final : } static inline const Empty* internal_default_instance() { return reinterpret_cast( - &_Empty_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Empty& a, Empty& b) { - a.Swap(&b); + &_Empty_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(Empty& a, Empty& b) { a.Swap(&b); } inline void Swap(Empty* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1444,7 +1382,7 @@ class Empty final : // implements Message ---------------------------------------------- Empty* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const Empty& from) { @@ -1454,28 +1392,28 @@ class Empty final : void MergeFrom(const Empty& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: + public: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.Empty"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.Empty"; } + + protected: explicit Empty(::google::protobuf::Arena* arena); Empty(::google::protobuf::Arena* arena, const Empty& from); - public: + Empty(::google::protobuf::Arena* arena, Empty&& from) noexcept + : Empty(arena) { + *this = ::std::move(from); + } + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:tari.rpc.Empty) private: class _Internal; - friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1483,33 +1421,30 @@ class Empty final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_types_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CommitmentSignature final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.CommitmentSignature) */ { +class CommitmentSignature final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.CommitmentSignature) */ { public: inline CommitmentSignature() : CommitmentSignature(nullptr) {} ~CommitmentSignature() override; - template - explicit PROTOBUF_CONSTEXPR CommitmentSignature(::google::protobuf::internal::ConstantInitialized); - - inline CommitmentSignature(const CommitmentSignature& from) - : CommitmentSignature(nullptr, from) {} - CommitmentSignature(CommitmentSignature&& from) noexcept - : CommitmentSignature() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR CommitmentSignature( + ::google::protobuf::internal::ConstantInitialized); + inline CommitmentSignature(const CommitmentSignature& from) : CommitmentSignature(nullptr, from) {} + inline CommitmentSignature(CommitmentSignature&& from) noexcept + : CommitmentSignature(nullptr, std::move(from)) {} inline CommitmentSignature& operator=(const CommitmentSignature& from) { CopyFrom(from); return *this; @@ -1517,9 +1452,9 @@ class CommitmentSignature final : inline CommitmentSignature& operator=(CommitmentSignature&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1551,22 +1486,17 @@ class CommitmentSignature final : } static inline const CommitmentSignature* internal_default_instance() { return reinterpret_cast( - &_CommitmentSignature_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(CommitmentSignature& a, CommitmentSignature& b) { - a.Swap(&b); + &_CommitmentSignature_default_instance_); } + static constexpr int kIndexInFileMessages = 5; + friend void swap(CommitmentSignature& a, CommitmentSignature& b) { a.Swap(&b); } inline void Swap(CommitmentSignature* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1581,51 +1511,52 @@ class CommitmentSignature final : // implements Message ---------------------------------------------- CommitmentSignature* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const CommitmentSignature& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CommitmentSignature& from) { - CommitmentSignature::MergeImpl(*this, from); - } + void MergeFrom(const CommitmentSignature& from) { CommitmentSignature::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(CommitmentSignature* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.CommitmentSignature"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.CommitmentSignature"; } + + protected: explicit CommitmentSignature(::google::protobuf::Arena* arena); CommitmentSignature(::google::protobuf::Arena* arena, const CommitmentSignature& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + CommitmentSignature(::google::protobuf::Arena* arena, CommitmentSignature&& from) noexcept + : CommitmentSignature(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kPublicNonceFieldNumber = 1, kUFieldNumber = 2, @@ -1682,7 +1613,6 @@ class CommitmentSignature final : // @@protoc_insertion_point(class_scope:tari.rpc.CommitmentSignature) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, @@ -1695,13 +1625,12 @@ class CommitmentSignature final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr public_nonce_; ::google::protobuf::internal::ArenaStringPtr u_; ::google::protobuf::internal::ArenaStringPtr v_; @@ -1710,23 +1639,21 @@ class CommitmentSignature final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ComAndPubSignature final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ComAndPubSignature) */ { +class ComAndPubSignature final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ComAndPubSignature) */ { public: inline ComAndPubSignature() : ComAndPubSignature(nullptr) {} ~ComAndPubSignature() override; - template - explicit PROTOBUF_CONSTEXPR ComAndPubSignature(::google::protobuf::internal::ConstantInitialized); - - inline ComAndPubSignature(const ComAndPubSignature& from) - : ComAndPubSignature(nullptr, from) {} - ComAndPubSignature(ComAndPubSignature&& from) noexcept - : ComAndPubSignature() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR ComAndPubSignature( + ::google::protobuf::internal::ConstantInitialized); + inline ComAndPubSignature(const ComAndPubSignature& from) : ComAndPubSignature(nullptr, from) {} + inline ComAndPubSignature(ComAndPubSignature&& from) noexcept + : ComAndPubSignature(nullptr, std::move(from)) {} inline ComAndPubSignature& operator=(const ComAndPubSignature& from) { CopyFrom(from); return *this; @@ -1734,9 +1661,9 @@ class ComAndPubSignature final : inline ComAndPubSignature& operator=(ComAndPubSignature&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1768,22 +1695,17 @@ class ComAndPubSignature final : } static inline const ComAndPubSignature* internal_default_instance() { return reinterpret_cast( - &_ComAndPubSignature_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(ComAndPubSignature& a, ComAndPubSignature& b) { - a.Swap(&b); + &_ComAndPubSignature_default_instance_); } + static constexpr int kIndexInFileMessages = 4; + friend void swap(ComAndPubSignature& a, ComAndPubSignature& b) { a.Swap(&b); } inline void Swap(ComAndPubSignature* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1798,51 +1720,52 @@ class ComAndPubSignature final : // implements Message ---------------------------------------------- ComAndPubSignature* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ComAndPubSignature& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ComAndPubSignature& from) { - ComAndPubSignature::MergeImpl(*this, from); - } + void MergeFrom(const ComAndPubSignature& from) { ComAndPubSignature::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(ComAndPubSignature* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.ComAndPubSignature"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.ComAndPubSignature"; } + + protected: explicit ComAndPubSignature(::google::protobuf::Arena* arena); ComAndPubSignature(::google::protobuf::Arena* arena, const ComAndPubSignature& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + ComAndPubSignature(::google::protobuf::Arena* arena, ComAndPubSignature&& from) noexcept + : ComAndPubSignature(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kEphemeralCommitmentFieldNumber = 1, kEphemeralPubkeyFieldNumber = 2, @@ -1933,7 +1856,6 @@ class ComAndPubSignature final : // @@protoc_insertion_point(class_scope:tari.rpc.ComAndPubSignature) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 5, 0, @@ -1946,13 +1868,12 @@ class ComAndPubSignature final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ArenaStringPtr ephemeral_commitment_; ::google::protobuf::internal::ArenaStringPtr ephemeral_pubkey_; ::google::protobuf::internal::ArenaStringPtr u_a_; @@ -1963,23 +1884,21 @@ class ComAndPubSignature final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class BlockHeight final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockHeight) */ { +class BlockHeight final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.BlockHeight) */ { public: inline BlockHeight() : BlockHeight(nullptr) {} ~BlockHeight() override; - template - explicit PROTOBUF_CONSTEXPR BlockHeight(::google::protobuf::internal::ConstantInitialized); - - inline BlockHeight(const BlockHeight& from) - : BlockHeight(nullptr, from) {} - BlockHeight(BlockHeight&& from) noexcept - : BlockHeight() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR BlockHeight( + ::google::protobuf::internal::ConstantInitialized); + inline BlockHeight(const BlockHeight& from) : BlockHeight(nullptr, from) {} + inline BlockHeight(BlockHeight&& from) noexcept + : BlockHeight(nullptr, std::move(from)) {} inline BlockHeight& operator=(const BlockHeight& from) { CopyFrom(from); return *this; @@ -1987,9 +1906,9 @@ class BlockHeight final : inline BlockHeight& operator=(BlockHeight&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2021,22 +1940,17 @@ class BlockHeight final : } static inline const BlockHeight* internal_default_instance() { return reinterpret_cast( - &_BlockHeight_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(BlockHeight& a, BlockHeight& b) { - a.Swap(&b); + &_BlockHeight_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(BlockHeight& a, BlockHeight& b) { a.Swap(&b); } inline void Swap(BlockHeight* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2051,51 +1965,52 @@ class BlockHeight final : // implements Message ---------------------------------------------- BlockHeight* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const BlockHeight& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const BlockHeight& from) { - BlockHeight::MergeImpl(*this, from); - } + void MergeFrom(const BlockHeight& from) { BlockHeight::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(BlockHeight* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.BlockHeight"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.BlockHeight"; } + + protected: explicit BlockHeight(::google::protobuf::Arena* arena); BlockHeight(::google::protobuf::Arena* arena, const BlockHeight& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + BlockHeight(::google::protobuf::Arena* arena, BlockHeight&& from) noexcept + : BlockHeight(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kBlockHeightFieldNumber = 1, }; @@ -2112,7 +2027,6 @@ class BlockHeight final : // @@protoc_insertion_point(class_scope:tari.rpc.BlockHeight) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -2125,36 +2039,33 @@ class BlockHeight final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::uint64_t block_height_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class OutputsVersion final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.OutputsVersion) */ { +class OutputsVersion final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.OutputsVersion) */ { public: inline OutputsVersion() : OutputsVersion(nullptr) {} ~OutputsVersion() override; - template - explicit PROTOBUF_CONSTEXPR OutputsVersion(::google::protobuf::internal::ConstantInitialized); - - inline OutputsVersion(const OutputsVersion& from) - : OutputsVersion(nullptr, from) {} - OutputsVersion(OutputsVersion&& from) noexcept - : OutputsVersion() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR OutputsVersion( + ::google::protobuf::internal::ConstantInitialized); + inline OutputsVersion(const OutputsVersion& from) : OutputsVersion(nullptr, from) {} + inline OutputsVersion(OutputsVersion&& from) noexcept + : OutputsVersion(nullptr, std::move(from)) {} inline OutputsVersion& operator=(const OutputsVersion& from) { CopyFrom(from); return *this; @@ -2162,9 +2073,9 @@ class OutputsVersion final : inline OutputsVersion& operator=(OutputsVersion&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2196,22 +2107,17 @@ class OutputsVersion final : } static inline const OutputsVersion* internal_default_instance() { return reinterpret_cast( - &_OutputsVersion_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(OutputsVersion& a, OutputsVersion& b) { - a.Swap(&b); + &_OutputsVersion_default_instance_); } + static constexpr int kIndexInFileMessages = 8; + friend void swap(OutputsVersion& a, OutputsVersion& b) { a.Swap(&b); } inline void Swap(OutputsVersion* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2226,51 +2132,52 @@ class OutputsVersion final : // implements Message ---------------------------------------------- OutputsVersion* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const OutputsVersion& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const OutputsVersion& from) { - OutputsVersion::MergeImpl(*this, from); - } + void MergeFrom(const OutputsVersion& from) { OutputsVersion::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(OutputsVersion* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.OutputsVersion"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.OutputsVersion"; } + + protected: explicit OutputsVersion(::google::protobuf::Arena* arena); OutputsVersion(::google::protobuf::Arena* arena, const OutputsVersion& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + OutputsVersion(::google::protobuf::Arena* arena, OutputsVersion&& from) noexcept + : OutputsVersion(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kOutputsFieldNumber = 1, kFeaturesFieldNumber = 2, @@ -2308,7 +2215,6 @@ class OutputsVersion final : // @@protoc_insertion_point(class_scope:tari.rpc.OutputsVersion) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 2, @@ -2321,13 +2227,12 @@ class OutputsVersion final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::tari::rpc::Range* outputs_; @@ -2336,7 +2241,8 @@ class OutputsVersion final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class ConsensusConstants_ProofOfWorkEntry_DoNotUse final : public ::google::protobuf::internal::MapEntry< @@ -2364,21 +2270,18 @@ class ConsensusConstants_ProofOfWorkEntry_DoNotUse final }; // ------------------------------------------------------------------- -class ConsensusConstants final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ConsensusConstants) */ { +class ConsensusConstants final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ConsensusConstants) */ { public: inline ConsensusConstants() : ConsensusConstants(nullptr) {} ~ConsensusConstants() override; - template - explicit PROTOBUF_CONSTEXPR ConsensusConstants(::google::protobuf::internal::ConstantInitialized); - - inline ConsensusConstants(const ConsensusConstants& from) - : ConsensusConstants(nullptr, from) {} - ConsensusConstants(ConsensusConstants&& from) noexcept - : ConsensusConstants() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR ConsensusConstants( + ::google::protobuf::internal::ConstantInitialized); + inline ConsensusConstants(const ConsensusConstants& from) : ConsensusConstants(nullptr, from) {} + inline ConsensusConstants(ConsensusConstants&& from) noexcept + : ConsensusConstants(nullptr, std::move(from)) {} inline ConsensusConstants& operator=(const ConsensusConstants& from) { CopyFrom(from); return *this; @@ -2386,9 +2289,9 @@ class ConsensusConstants final : inline ConsensusConstants& operator=(ConsensusConstants&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2420,22 +2323,17 @@ class ConsensusConstants final : } static inline const ConsensusConstants* internal_default_instance() { return reinterpret_cast( - &_ConsensusConstants_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(ConsensusConstants& a, ConsensusConstants& b) { - a.Swap(&b); + &_ConsensusConstants_default_instance_); } + static constexpr int kIndexInFileMessages = 12; + friend void swap(ConsensusConstants& a, ConsensusConstants& b) { a.Swap(&b); } inline void Swap(ConsensusConstants* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2450,52 +2348,52 @@ class ConsensusConstants final : // implements Message ---------------------------------------------- ConsensusConstants* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ConsensusConstants& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ConsensusConstants& from) { - ConsensusConstants::MergeImpl(*this, from); - } + void MergeFrom(const ConsensusConstants& from) { ConsensusConstants::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void InternalSwap(ConsensusConstants* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.ConsensusConstants"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.ConsensusConstants"; } + + protected: explicit ConsensusConstants(::google::protobuf::Arena* arena); ConsensusConstants(::google::protobuf::Arena* arena, const ConsensusConstants& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + ConsensusConstants(::google::protobuf::Arena* arena, ConsensusConstants&& from) noexcept + : ConsensusConstants(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - enum : int { kEmissionDecayFieldNumber = 11, kProofOfWorkFieldNumber = 23, @@ -2589,16 +2487,15 @@ class ConsensusConstants final : public: void clear_permitted_range_proof_types() ; ::tari::rpc::PermittedRangeProofs* mutable_permitted_range_proof_types(int index); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::PermittedRangeProofs >* - mutable_permitted_range_proof_types(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>* mutable_permitted_range_proof_types(); + private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>& _internal_permitted_range_proof_types() const; ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>* _internal_mutable_permitted_range_proof_types(); public: const ::tari::rpc::PermittedRangeProofs& permitted_range_proof_types(int index) const; ::tari::rpc::PermittedRangeProofs* add_permitted_range_proof_types(); - const ::google::protobuf::RepeatedPtrField< ::tari::rpc::PermittedRangeProofs >& - permitted_range_proof_types() const; + const ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>& permitted_range_proof_types() const; // .tari.rpc.Range valid_blockchain_version_range = 21; bool has_valid_blockchain_version_range() const; void clear_valid_blockchain_version_range() ; @@ -2897,7 +2794,6 @@ class ConsensusConstants final : // @@protoc_insertion_point(class_scope:tari.rpc.ConsensusConstants) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 5, 31, 8, @@ -2910,13 +2806,12 @@ class ConsensusConstants final : using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedField<::uint64_t> emission_decay_; @@ -2996,7 +2891,6 @@ inline ::uint64_t Range::_internal_min() const { } inline void Range::_internal_set_min(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.min_ = value; } @@ -3019,7 +2913,6 @@ inline ::uint64_t Range::_internal_max() const { } inline void Range::_internal_set_max(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.max_ = value; } @@ -3050,7 +2943,6 @@ inline ::uint64_t BlockHeight::_internal_block_height() const { } inline void BlockHeight::_internal_set_block_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.block_height_ = value; } @@ -3072,7 +2964,6 @@ template inline PROTOBUF_ALWAYS_INLINE void Signature::set_public_nonce(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_nonce_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Signature.public_nonce) } @@ -3087,12 +2978,10 @@ inline const std::string& Signature::_internal_public_nonce() const { } inline void Signature::_internal_set_public_nonce(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_nonce_.Set(value, GetArena()); } inline std::string* Signature::_internal_mutable_public_nonce() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.public_nonce_.Mutable( GetArena()); } inline std::string* Signature::release_public_nonce() { @@ -3125,7 +3014,6 @@ template inline PROTOBUF_ALWAYS_INLINE void Signature::set_signature(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.signature_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Signature.signature) } @@ -3140,12 +3028,10 @@ inline const std::string& Signature::_internal_signature() const { } inline void Signature::_internal_set_signature(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.signature_.Set(value, GetArena()); } inline std::string* Signature::_internal_mutable_signature() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.signature_.Mutable( GetArena()); } inline std::string* Signature::release_signature() { @@ -3182,7 +3068,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_ephemeral_commitment(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.ephemeral_commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.ephemeral_commitment) } @@ -3197,12 +3082,10 @@ inline const std::string& ComAndPubSignature::_internal_ephemeral_commitment() c } inline void ComAndPubSignature::_internal_set_ephemeral_commitment(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.ephemeral_commitment_.Set(value, GetArena()); } inline std::string* ComAndPubSignature::_internal_mutable_ephemeral_commitment() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.ephemeral_commitment_.Mutable( GetArena()); } inline std::string* ComAndPubSignature::release_ephemeral_commitment() { @@ -3235,7 +3118,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_ephemeral_pubkey(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.ephemeral_pubkey_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.ephemeral_pubkey) } @@ -3250,12 +3132,10 @@ inline const std::string& ComAndPubSignature::_internal_ephemeral_pubkey() const } inline void ComAndPubSignature::_internal_set_ephemeral_pubkey(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.ephemeral_pubkey_.Set(value, GetArena()); } inline std::string* ComAndPubSignature::_internal_mutable_ephemeral_pubkey() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.ephemeral_pubkey_.Mutable( GetArena()); } inline std::string* ComAndPubSignature::release_ephemeral_pubkey() { @@ -3288,7 +3168,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_u_a(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.u_a_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.u_a) } @@ -3303,12 +3182,10 @@ inline const std::string& ComAndPubSignature::_internal_u_a() const { } inline void ComAndPubSignature::_internal_set_u_a(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.u_a_.Set(value, GetArena()); } inline std::string* ComAndPubSignature::_internal_mutable_u_a() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.u_a_.Mutable( GetArena()); } inline std::string* ComAndPubSignature::release_u_a() { @@ -3341,7 +3218,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_u_x(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.u_x_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.u_x) } @@ -3356,12 +3232,10 @@ inline const std::string& ComAndPubSignature::_internal_u_x() const { } inline void ComAndPubSignature::_internal_set_u_x(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.u_x_.Set(value, GetArena()); } inline std::string* ComAndPubSignature::_internal_mutable_u_x() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.u_x_.Mutable( GetArena()); } inline std::string* ComAndPubSignature::release_u_x() { @@ -3394,7 +3268,6 @@ template inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_u_y(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.u_y_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.u_y) } @@ -3409,12 +3282,10 @@ inline const std::string& ComAndPubSignature::_internal_u_y() const { } inline void ComAndPubSignature::_internal_set_u_y(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.u_y_.Set(value, GetArena()); } inline std::string* ComAndPubSignature::_internal_mutable_u_y() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.u_y_.Mutable( GetArena()); } inline std::string* ComAndPubSignature::release_u_y() { @@ -3451,7 +3322,6 @@ template inline PROTOBUF_ALWAYS_INLINE void CommitmentSignature::set_public_nonce(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_nonce_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.CommitmentSignature.public_nonce) } @@ -3466,12 +3336,10 @@ inline const std::string& CommitmentSignature::_internal_public_nonce() const { } inline void CommitmentSignature::_internal_set_public_nonce(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.public_nonce_.Set(value, GetArena()); } inline std::string* CommitmentSignature::_internal_mutable_public_nonce() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.public_nonce_.Mutable( GetArena()); } inline std::string* CommitmentSignature::release_public_nonce() { @@ -3504,7 +3372,6 @@ template inline PROTOBUF_ALWAYS_INLINE void CommitmentSignature::set_u(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.u_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.CommitmentSignature.u) } @@ -3519,12 +3386,10 @@ inline const std::string& CommitmentSignature::_internal_u() const { } inline void CommitmentSignature::_internal_set_u(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.u_.Set(value, GetArena()); } inline std::string* CommitmentSignature::_internal_mutable_u() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.u_.Mutable( GetArena()); } inline std::string* CommitmentSignature::release_u() { @@ -3557,7 +3422,6 @@ template inline PROTOBUF_ALWAYS_INLINE void CommitmentSignature::set_v(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.v_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.CommitmentSignature.v) } @@ -3572,12 +3436,10 @@ inline const std::string& CommitmentSignature::_internal_v() const { } inline void CommitmentSignature::_internal_set_v(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.v_.Set(value, GetArena()); } inline std::string* CommitmentSignature::_internal_mutable_v() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.v_.Mutable( GetArena()); } inline std::string* CommitmentSignature::release_v() { @@ -3619,7 +3481,6 @@ inline ::uint64_t PowAlgorithmConstants::_internal_min_difficulty() const { } inline void PowAlgorithmConstants::_internal_set_min_difficulty(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.min_difficulty_ = value; } @@ -3642,7 +3503,6 @@ inline ::uint64_t PowAlgorithmConstants::_internal_max_difficulty() const { } inline void PowAlgorithmConstants::_internal_set_max_difficulty(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.max_difficulty_ = value; } @@ -3665,7 +3525,6 @@ inline ::uint64_t PowAlgorithmConstants::_internal_target_time() const { } inline void PowAlgorithmConstants::_internal_set_target_time(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.target_time_ = value; } @@ -3692,7 +3551,6 @@ inline ::uint64_t WeightParams::_internal_kernel_weight() const { } inline void WeightParams::_internal_set_kernel_weight(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.kernel_weight_ = value; } @@ -3715,7 +3573,6 @@ inline ::uint64_t WeightParams::_internal_input_weight() const { } inline void WeightParams::_internal_set_input_weight(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.input_weight_ = value; } @@ -3738,7 +3595,6 @@ inline ::uint64_t WeightParams::_internal_output_weight() const { } inline void WeightParams::_internal_set_output_weight(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.output_weight_ = value; } @@ -3761,7 +3617,6 @@ inline ::uint64_t WeightParams::_internal_features_and_scripts_bytes_per_gram() } inline void WeightParams::_internal_set_features_and_scripts_bytes_per_gram(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.features_and_scripts_bytes_per_gram_ = value; } @@ -3832,14 +3687,14 @@ inline ::tari::rpc::Range* OutputsVersion::unsafe_arena_release_outputs() { } inline ::tari::rpc::Range* OutputsVersion::_internal_mutable_outputs() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Range>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Range>(GetArena()); _impl_.outputs_ = reinterpret_cast<::tari::rpc::Range*>(p); } return _impl_.outputs_; } inline ::tari::rpc::Range* OutputsVersion::mutable_outputs() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::Range* _msg = _internal_mutable_outputs(); // @@protoc_insertion_point(field_mutable:tari.rpc.OutputsVersion.outputs) return _msg; @@ -3848,11 +3703,11 @@ inline void OutputsVersion::set_allocated_outputs(::tari::rpc::Range* value) { ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::Range*>(_impl_.outputs_); + delete (_impl_.outputs_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::Range*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3928,14 +3783,14 @@ inline ::tari::rpc::Range* OutputsVersion::unsafe_arena_release_features() { } inline ::tari::rpc::Range* OutputsVersion::_internal_mutable_features() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; if (_impl_.features_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Range>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Range>(GetArena()); _impl_.features_ = reinterpret_cast<::tari::rpc::Range*>(p); } return _impl_.features_; } inline ::tari::rpc::Range* OutputsVersion::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::tari::rpc::Range* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.OutputsVersion.features) return _msg; @@ -3944,11 +3799,11 @@ inline void OutputsVersion::set_allocated_features(::tari::rpc::Range* value) { ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::Range*>(_impl_.features_); + delete (_impl_.features_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::Range*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3984,7 +3839,6 @@ inline ::tari::rpc::OutputType PermittedRangeProofs::_internal_output_type() con } inline void PermittedRangeProofs::_internal_set_output_type(::tari::rpc::OutputType value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.output_type_ = value; } @@ -4023,7 +3877,8 @@ inline ::google::protobuf::RepeatedField* PermittedRangeProofs::mutable_ran PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_range_proof_types(); } -inline const ::google::protobuf::RepeatedField& PermittedRangeProofs::_internal_range_proof_types() const { +inline const ::google::protobuf::RepeatedField& PermittedRangeProofs::_internal_range_proof_types() + const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.range_proof_types_; } @@ -4050,7 +3905,6 @@ template inline PROTOBUF_ALWAYS_INLINE void RangeProof::set_proof_bytes(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.proof_bytes_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.RangeProof.proof_bytes) } @@ -4065,12 +3919,10 @@ inline const std::string& RangeProof::_internal_proof_bytes() const { } inline void RangeProof::_internal_set_proof_bytes(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.proof_bytes_.Set(value, GetArena()); } inline std::string* RangeProof::_internal_mutable_proof_bytes() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.proof_bytes_.Mutable( GetArena()); } inline std::string* RangeProof::release_proof_bytes() { @@ -4114,7 +3966,6 @@ inline ::uint64_t ConsensusConstants::_internal_coinbase_min_maturity() const { } inline void ConsensusConstants::_internal_set_coinbase_min_maturity(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.coinbase_min_maturity_ = value; } @@ -4137,7 +3988,6 @@ inline ::uint32_t ConsensusConstants::_internal_blockchain_version() const { } inline void ConsensusConstants::_internal_set_blockchain_version(::uint32_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.blockchain_version_ = value; } @@ -4160,7 +4010,6 @@ inline ::uint64_t ConsensusConstants::_internal_future_time_limit() const { } inline void ConsensusConstants::_internal_set_future_time_limit(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.future_time_limit_ = value; } @@ -4183,7 +4032,6 @@ inline ::uint64_t ConsensusConstants::_internal_difficulty_block_window() const } inline void ConsensusConstants::_internal_set_difficulty_block_window(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.difficulty_block_window_ = value; } @@ -4206,7 +4054,6 @@ inline ::uint64_t ConsensusConstants::_internal_max_block_transaction_weight() c } inline void ConsensusConstants::_internal_set_max_block_transaction_weight(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.max_block_transaction_weight_ = value; } @@ -4229,7 +4076,6 @@ inline ::uint64_t ConsensusConstants::_internal_pow_algo_count() const { } inline void ConsensusConstants::_internal_set_pow_algo_count(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.pow_algo_count_ = value; } @@ -4252,7 +4098,6 @@ inline ::uint64_t ConsensusConstants::_internal_median_timestamp_count() const { } inline void ConsensusConstants::_internal_set_median_timestamp_count(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.median_timestamp_count_ = value; } @@ -4275,7 +4120,6 @@ inline ::uint64_t ConsensusConstants::_internal_emission_initial() const { } inline void ConsensusConstants::_internal_set_emission_initial(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.emission_initial_ = value; } @@ -4314,8 +4158,8 @@ inline ::google::protobuf::RepeatedField<::uint64_t>* ConsensusConstants::mutabl PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_emission_decay(); } -inline const ::google::protobuf::RepeatedField<::uint64_t>& ConsensusConstants::_internal_emission_decay() - const { +inline const ::google::protobuf::RepeatedField<::uint64_t>& +ConsensusConstants::_internal_emission_decay() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.emission_decay_; } @@ -4343,7 +4187,6 @@ inline ::uint64_t ConsensusConstants::_internal_emission_tail() const { } inline void ConsensusConstants::_internal_set_emission_tail(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.emission_tail_ = value; } @@ -4366,7 +4209,6 @@ inline ::uint64_t ConsensusConstants::_internal_min_sha3x_pow_difficulty() const } inline void ConsensusConstants::_internal_set_min_sha3x_pow_difficulty(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.min_sha3x_pow_difficulty_ = value; } @@ -4389,7 +4231,6 @@ inline ::uint64_t ConsensusConstants::_internal_block_weight_inputs() const { } inline void ConsensusConstants::_internal_set_block_weight_inputs(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.block_weight_inputs_ = value; } @@ -4412,7 +4253,6 @@ inline ::uint64_t ConsensusConstants::_internal_block_weight_outputs() const { } inline void ConsensusConstants::_internal_set_block_weight_outputs(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.block_weight_outputs_ = value; } @@ -4435,7 +4275,6 @@ inline ::uint64_t ConsensusConstants::_internal_block_weight_kernels() const { } inline void ConsensusConstants::_internal_set_block_weight_kernels(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.block_weight_kernels_ = value; } @@ -4458,7 +4297,6 @@ inline ::uint64_t ConsensusConstants::_internal_faucet_value() const { } inline void ConsensusConstants::_internal_set_faucet_value(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.faucet_value_ = value; } @@ -4481,7 +4319,6 @@ inline ::uint64_t ConsensusConstants::_internal_max_script_byte_size() const { } inline void ConsensusConstants::_internal_set_max_script_byte_size(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.max_script_byte_size_ = value; } @@ -4504,7 +4341,6 @@ inline ::uint64_t ConsensusConstants::_internal_validator_node_validity_period() } inline void ConsensusConstants::_internal_set_validator_node_validity_period(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.validator_node_validity_period_ = value; } @@ -4527,7 +4363,6 @@ inline ::uint64_t ConsensusConstants::_internal_effective_from_height() const { } inline void ConsensusConstants::_internal_set_effective_from_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.effective_from_height_ = value; } @@ -4594,14 +4429,14 @@ inline ::tari::rpc::Range* ConsensusConstants::unsafe_arena_release_valid_blockc } inline ::tari::rpc::Range* ConsensusConstants::_internal_mutable_valid_blockchain_version_range() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.valid_blockchain_version_range_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Range>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Range>(GetArena()); _impl_.valid_blockchain_version_range_ = reinterpret_cast<::tari::rpc::Range*>(p); } return _impl_.valid_blockchain_version_range_; } inline ::tari::rpc::Range* ConsensusConstants::mutable_valid_blockchain_version_range() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::Range* _msg = _internal_mutable_valid_blockchain_version_range(); // @@protoc_insertion_point(field_mutable:tari.rpc.ConsensusConstants.valid_blockchain_version_range) return _msg; @@ -4610,11 +4445,11 @@ inline void ConsensusConstants::set_allocated_valid_blockchain_version_range(::t ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::Range*>(_impl_.valid_blockchain_version_range_); + delete (_impl_.valid_blockchain_version_range_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::Range*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -4646,7 +4481,6 @@ inline ::uint64_t ConsensusConstants::_internal_max_randomx_seed_height() const } inline void ConsensusConstants::_internal_set_max_randomx_seed_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.max_randomx_seed_height_ = value; } @@ -4741,14 +4575,14 @@ inline ::tari::rpc::WeightParams* ConsensusConstants::unsafe_arena_release_trans } inline ::tari::rpc::WeightParams* ConsensusConstants::_internal_mutable_transaction_weight() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; if (_impl_.transaction_weight_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::WeightParams>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::WeightParams>(GetArena()); _impl_.transaction_weight_ = reinterpret_cast<::tari::rpc::WeightParams*>(p); } return _impl_.transaction_weight_; } inline ::tari::rpc::WeightParams* ConsensusConstants::mutable_transaction_weight() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::tari::rpc::WeightParams* _msg = _internal_mutable_transaction_weight(); // @@protoc_insertion_point(field_mutable:tari.rpc.ConsensusConstants.transaction_weight) return _msg; @@ -4757,11 +4591,11 @@ inline void ConsensusConstants::set_allocated_transaction_weight(::tari::rpc::We ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::WeightParams*>(_impl_.transaction_weight_); + delete (_impl_.transaction_weight_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::WeightParams*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -4837,14 +4671,14 @@ inline ::tari::rpc::Range* ConsensusConstants::unsafe_arena_release_input_versio } inline ::tari::rpc::Range* ConsensusConstants::_internal_mutable_input_version_range() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000004u; if (_impl_.input_version_range_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Range>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Range>(GetArena()); _impl_.input_version_range_ = reinterpret_cast<::tari::rpc::Range*>(p); } return _impl_.input_version_range_; } inline ::tari::rpc::Range* ConsensusConstants::mutable_input_version_range() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::tari::rpc::Range* _msg = _internal_mutable_input_version_range(); // @@protoc_insertion_point(field_mutable:tari.rpc.ConsensusConstants.input_version_range) return _msg; @@ -4853,11 +4687,11 @@ inline void ConsensusConstants::set_allocated_input_version_range(::tari::rpc::R ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::Range*>(_impl_.input_version_range_); + delete (_impl_.input_version_range_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::Range*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -4933,14 +4767,14 @@ inline ::tari::rpc::OutputsVersion* ConsensusConstants::unsafe_arena_release_out } inline ::tari::rpc::OutputsVersion* ConsensusConstants::_internal_mutable_output_version_range() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000008u; if (_impl_.output_version_range_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::OutputsVersion>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputsVersion>(GetArena()); _impl_.output_version_range_ = reinterpret_cast<::tari::rpc::OutputsVersion*>(p); } return _impl_.output_version_range_; } inline ::tari::rpc::OutputsVersion* ConsensusConstants::mutable_output_version_range() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000008u; ::tari::rpc::OutputsVersion* _msg = _internal_mutable_output_version_range(); // @@protoc_insertion_point(field_mutable:tari.rpc.ConsensusConstants.output_version_range) return _msg; @@ -4949,11 +4783,11 @@ inline void ConsensusConstants::set_allocated_output_version_range(::tari::rpc:: ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::OutputsVersion*>(_impl_.output_version_range_); + delete (_impl_.output_version_range_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::OutputsVersion*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -5029,14 +4863,14 @@ inline ::tari::rpc::Range* ConsensusConstants::unsafe_arena_release_kernel_versi } inline ::tari::rpc::Range* ConsensusConstants::_internal_mutable_kernel_version_range() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000010u; if (_impl_.kernel_version_range_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::Range>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Range>(GetArena()); _impl_.kernel_version_range_ = reinterpret_cast<::tari::rpc::Range*>(p); } return _impl_.kernel_version_range_; } inline ::tari::rpc::Range* ConsensusConstants::mutable_kernel_version_range() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000010u; ::tari::rpc::Range* _msg = _internal_mutable_kernel_version_range(); // @@protoc_insertion_point(field_mutable:tari.rpc.ConsensusConstants.kernel_version_range) return _msg; @@ -5045,11 +4879,11 @@ inline void ConsensusConstants::set_allocated_kernel_version_range(::tari::rpc:: ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::Range*>(_impl_.kernel_version_range_); + delete (_impl_.kernel_version_range_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::Range*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -5097,7 +4931,8 @@ inline ::google::protobuf::RepeatedField* ConsensusConstants::mutable_permi PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_permitted_output_types(); } -inline const ::google::protobuf::RepeatedField& ConsensusConstants::_internal_permitted_output_types() const { +inline const ::google::protobuf::RepeatedField& ConsensusConstants::_internal_permitted_output_types() + const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.permitted_output_types_; } @@ -5125,7 +4960,6 @@ inline ::uint64_t ConsensusConstants::_internal_epoch_length() const { } inline void ConsensusConstants::_internal_set_epoch_length(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.epoch_length_ = value; } @@ -5148,7 +4982,6 @@ inline ::uint64_t ConsensusConstants::_internal_validator_node_registration_min_ } inline void ConsensusConstants::_internal_set_validator_node_registration_min_deposit_amount(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.validator_node_registration_min_deposit_amount_ = value; } @@ -5171,7 +5004,6 @@ inline ::uint64_t ConsensusConstants::_internal_validator_node_registration_min_ } inline void ConsensusConstants::_internal_set_validator_node_registration_min_lock_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.validator_node_registration_min_lock_height_ = value; } @@ -5194,7 +5026,6 @@ inline ::uint64_t ConsensusConstants::_internal_validator_node_registration_shuf } inline void ConsensusConstants::_internal_set_validator_node_registration_shuffle_interval_epoch(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.validator_node_registration_shuffle_interval_epoch_ = value; } diff --git a/external/src/protobuf b/external/src/protobuf index b052f43..ce25215 160000 --- a/external/src/protobuf +++ b/external/src/protobuf @@ -1 +1 @@ -Subproject commit b052f432fa7162f5ad946dc7b6c62969e0172610 +Subproject commit ce25215aa1b7396f16b75a9077cdfeeaf5fa8b4e