diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 765cdcd..3464a39 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -355,8 +355,6 @@ jobs: - name: Apply patch run: | - cd external/src/grpc/third_party/boringssl-with-bazel - git apply --verbose --ignore-whitespace ../../../../../patches/msys2/gcc14_boringssl.patch cd / git apply --verbose --ignore-whitespace --directory=mingw64/include/c++/`ls mingw64/include/c++`/ /d/a/p2pool/p2pool/patches/msys2/typeinfo.patch diff --git a/cmake/grpc.cmake b/cmake/grpc.cmake index bc39049..dbafb60 100644 --- a/cmake/grpc.cmake +++ b/cmake/grpc.cmake @@ -2,6 +2,7 @@ set(protobuf_INSTALL OFF CACHE BOOL "Install protobuf binaries and files") set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests") set(protobuf_BUILD_PROTOC_BINARIES OFF CACHE BOOL "Build libprotoc and protoc compiler") set(protobuf_BUILD_SHARED_LIBS OFF CACHE BOOL "Build protobuf Shared Libraries") +set(protobuf_DISABLE_RTTI ON CACHE BOOL "Remove runtime type information in the binaries") set(utf8_range_ENABLE_TESTS OFF CACHE BOOL "Build test suite") set(utf8_range_ENABLE_INSTALL OFF CACHE BOOL "Configure installation") @@ -9,6 +10,7 @@ set(utf8_range_ENABLE_INSTALL OFF CACHE BOOL "Configure installation") set(RE2_BUILD_TESTING OFF CACHE BOOL "enable testing for RE2") set(gRPC_BUILD_CODEGEN OFF CACHE BOOL "Build codegen") +set(gRPC_DOWNLOAD_ARCHIVES OFF CACHE BOOL "Download archives for empty 3rd party directories") set(gRPC_BUILD_GRPC_CPP_PLUGIN OFF CACHE BOOL "Build grpc_cpp_plugin") set(gRPC_BUILD_GRPC_CSHARP_PLUGIN OFF CACHE BOOL "Build grpc_csharp_plugin") set(gRPC_BUILD_GRPC_NODE_PLUGIN OFF CACHE BOOL "Build grpc_node_plugin") diff --git a/external/src/Tari/proto/gRPC/base_node.pb.cc b/external/src/Tari/proto/gRPC/base_node.pb.cc index b7e6fa1..2d0b87c 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.1 #include "base_node.pb.h" @@ -892,25 +893,6 @@ struct GetNewBlockTemplateWithCoinbasesRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetNewBlockTemplateWithCoinbasesRequestDefaultTypeInternal _GetNewBlockTemplateWithCoinbasesRequest_default_instance_; -inline constexpr GetPeersResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - peer_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPeersResponse::GetPeersResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPeersResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPeersResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPeersResponseDefaultTypeInternal() {} - union { - GetPeersResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPeersResponseDefaultTypeInternal _GetPeersResponse_default_instance_; - inline constexpr BlockHeaderResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -956,6 +938,25 @@ struct GetTemplateRegistrationResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTemplateRegistrationResponseDefaultTypeInternal _GetTemplateRegistrationResponse_default_instance_; +inline constexpr GetPeersResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + peer_{nullptr} {} + +template +PROTOBUF_CONSTEXPR GetPeersResponse::GetPeersResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GetPeersResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetPeersResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetPeersResponseDefaultTypeInternal() {} + union { + GetPeersResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPeersResponseDefaultTypeInternal _GetPeersResponse_default_instance_; + inline constexpr ListAssetRegistrationsResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -1232,646 +1233,647 @@ static ::_pb::Metadata file_level_metadata_base_5fnode_2eproto[55]; 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, - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest, _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::GetNewBlockTemplateWithCoinbasesRequest, _impl_.algo_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest, _impl_.max_weight_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest, _impl_.coinbases_), - 0, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockWithCoinbasesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockWithCoinbasesRequest, _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::GetNewBlockWithCoinbasesRequest, _impl_.new_template_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockWithCoinbasesRequest, _impl_.coinbases_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockCoinbase, _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::NewBlockCoinbase, _impl_.address_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockCoinbase, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockCoinbase, _impl_.stealth_payment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockCoinbase, _impl_.revealed_value_proof_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockCoinbase, _impl_.coinbase_extra_), - ~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_.best_block_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.best_block_hash_), - 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_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.tari_unique_id_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.miner_data_), - ~0u, - 0, - ~0u, - ~0u, - 1, - ~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::GetNewBlockBlobResult, _impl_.tari_unique_id_), - 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, + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest, _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::GetNewBlockTemplateWithCoinbasesRequest, _impl_.algo_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest, _impl_.max_weight_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest, _impl_.coinbases_), + 0, + ~0u, + ~0u, + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockWithCoinbasesRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockWithCoinbasesRequest, _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::GetNewBlockWithCoinbasesRequest, _impl_.new_template_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockWithCoinbasesRequest, _impl_.coinbases_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockCoinbase, _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::NewBlockCoinbase, _impl_.address_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockCoinbase, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockCoinbase, _impl_.stealth_payment_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockCoinbase, _impl_.revealed_value_proof_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockCoinbase, _impl_.coinbase_extra_), + ~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_.best_block_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.best_block_hash_), + 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_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.tari_unique_id_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.miner_data_), + ~0u, + 0, + ~0u, + ~0u, + 1, + ~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::GetNewBlockBlobResult, _impl_.tari_unique_id_), + 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)}, @@ -1928,7 +1930,6 @@ static const ::_pbi::MigrationSchema {612, -1, -1, sizeof(::tari::rpc::GetSideChainUtxosRequest)}, {622, 632, -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, @@ -1986,7 +1987,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" @@ -2241,9 +2243,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() { @@ -2349,6 +2348,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); @@ -2381,6 +2394,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, @@ -2436,15 +2452,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) @@ -2469,9 +2478,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(); @@ -2481,9 +2487,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]); } // =================================================================== @@ -2492,15 +2498,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(); @@ -2532,9 +2531,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) @@ -2574,6 +2573,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); @@ -2617,6 +2630,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, @@ -2716,8 +2732,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; @@ -2796,17 +2811,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; @@ -2827,13 +2836,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_); } @@ -2848,9 +2864,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(); @@ -2871,9 +2884,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]); } // =================================================================== @@ -2915,6 +2928,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); @@ -2949,6 +2976,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>(), @@ -3024,15 +3054,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) @@ -3041,10 +3064,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_); } @@ -3060,9 +3083,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_); @@ -3075,9 +3095,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]); } // =================================================================== @@ -3086,15 +3106,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(); @@ -3126,9 +3139,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) @@ -3168,6 +3181,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); @@ -3211,6 +3238,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; @@ -3306,8 +3336,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; @@ -3379,17 +3408,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; @@ -3410,13 +3433,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_); } @@ -3431,9 +3461,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(); @@ -3454,9 +3481,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]); } // =================================================================== @@ -3509,6 +3536,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); @@ -3542,6 +3583,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, @@ -3615,15 +3659,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) @@ -3649,9 +3686,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(); @@ -3662,9 +3696,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]); } // =================================================================== @@ -3673,15 +3707,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(); @@ -3713,9 +3740,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) @@ -3755,6 +3782,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); @@ -3798,6 +3839,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; @@ -3893,8 +3937,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; @@ -3966,17 +4009,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; @@ -3997,13 +4034,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_); } @@ -4018,9 +4062,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(); @@ -4041,9 +4082,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]); } // =================================================================== @@ -4094,6 +4135,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); @@ -4126,6 +4181,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, @@ -4181,15 +4239,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) @@ -4214,9 +4265,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(); @@ -4226,9 +4274,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]); } // =================================================================== @@ -4282,6 +4330,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); @@ -4315,6 +4377,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, @@ -4388,15 +4453,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) @@ -4424,9 +4482,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(); @@ -4437,9 +4492,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]); } // =================================================================== @@ -4448,15 +4503,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); @@ -4478,9 +4526,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_) + @@ -4516,6 +4564,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); @@ -4556,6 +4618,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; @@ -4596,8 +4661,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; @@ -4652,32 +4716,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_); } @@ -4692,9 +4757,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_); @@ -4708,9 +4770,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]); } // =================================================================== @@ -4719,22 +4781,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(); @@ -4761,12 +4809,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) @@ -4797,6 +4845,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); @@ -4841,6 +4903,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, @@ -4882,8 +4947,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; @@ -4896,8 +4960,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())) { @@ -4940,17 +5003,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; @@ -4959,17 +5016,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_); } @@ -4984,9 +5052,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_); @@ -5000,9 +5065,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]); } // =================================================================== @@ -5011,15 +5076,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(); @@ -5046,9 +5104,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) @@ -5078,6 +5136,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); @@ -5116,6 +5188,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>(), @@ -5149,8 +5224,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; @@ -5193,29 +5267,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_); } @@ -5230,9 +5305,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_); @@ -5246,9 +5318,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]); } // =================================================================== @@ -5257,15 +5329,8 @@ class GetNewBlockTemplateWithCoinbasesRequest::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_._has_bits_); - static const ::tari::rpc::PowAlgo& algo(const GetNewBlockTemplateWithCoinbasesRequest* msg); - static void set_has_algo(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::PowAlgo& GetNewBlockTemplateWithCoinbasesRequest::_Internal::algo(const GetNewBlockTemplateWithCoinbasesRequest* msg) { - return *msg->_impl_.algo_; -} void GetNewBlockTemplateWithCoinbasesRequest::clear_algo() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.algo_ != nullptr) _impl_.algo_->Clear(); @@ -5293,9 +5358,9 @@ GetNewBlockTemplateWithCoinbasesRequest::GetNewBlockTemplateWithCoinbasesRequest 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.GetNewBlockTemplateWithCoinbasesRequest) @@ -5326,6 +5391,20 @@ inline void GetNewBlockTemplateWithCoinbasesRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetNewBlockTemplateWithCoinbasesRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_._cached_size_), + false, + }, + &GetNewBlockTemplateWithCoinbasesRequest::MergeImpl, + &GetNewBlockTemplateWithCoinbasesRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetNewBlockTemplateWithCoinbasesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -5365,6 +5444,9 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> GetNewBlockTemplateWithCoinbasesReques offsetof(decltype(_table_), aux_entries), &_GetNewBlockTemplateWithCoinbasesRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // .tari.rpc.PowAlgo algo = 1; @@ -5406,8 +5488,7 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> GetNewBlockTemplateWithCoinbasesReques // .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; @@ -5418,11 +5499,14 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> GetNewBlockTemplateWithCoinbasesReques } // repeated .tari.rpc.NewBlockCoinbase coinbases = 3; - for (unsigned i = 0, - n = static_cast(this->_internal_coinbases_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_coinbases_size()); + i < n; i++) { const auto& repfield = this->_internal_coinbases().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())) { @@ -5445,8 +5529,7 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> GetNewBlockTemplateWithCoinbasesReques // repeated .tari.rpc.NewBlockCoinbase coinbases = 3; total_size += 1UL * this->_internal_coinbases_size(); for (const auto& msg : this->_internal_coinbases()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // .tari.rpc.PowAlgo algo = 1; cached_has_bits = _impl_._has_bits_[0]; @@ -5464,17 +5547,11 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> GetNewBlockTemplateWithCoinbasesReques return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetNewBlockTemplateWithCoinbasesRequest::_class_data_ = { - GetNewBlockTemplateWithCoinbasesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetNewBlockTemplateWithCoinbasesRequest::GetClassData() const { - return &_class_data_; -} -void GetNewBlockTemplateWithCoinbasesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetNewBlockTemplateWithCoinbasesRequest::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.GetNewBlockTemplateWithCoinbasesRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -5482,13 +5559,20 @@ void GetNewBlockTemplateWithCoinbasesRequest::MergeImpl(::google::protobuf::Mess _this->_internal_mutable_coinbases()->MergeFrom( from._internal_coinbases()); - 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_); } @@ -5503,9 +5587,6 @@ PROTOBUF_NOINLINE bool GetNewBlockTemplateWithCoinbasesRequest::IsInitialized() return true; } -::_pbi::CachedSize* GetNewBlockTemplateWithCoinbasesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetNewBlockTemplateWithCoinbasesRequest::InternalSwap(GetNewBlockTemplateWithCoinbasesRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -5520,9 +5601,9 @@ void GetNewBlockTemplateWithCoinbasesRequest::InternalSwap(GetNewBlockTemplateWi } ::google::protobuf::Metadata GetNewBlockTemplateWithCoinbasesRequest::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]); } // =================================================================== @@ -5531,15 +5612,8 @@ class GetNewBlockWithCoinbasesRequest::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetNewBlockWithCoinbasesRequest, _impl_._has_bits_); - static const ::tari::rpc::NewBlockTemplate& new_template(const GetNewBlockWithCoinbasesRequest* msg); - static void set_has_new_template(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::NewBlockTemplate& GetNewBlockWithCoinbasesRequest::_Internal::new_template(const GetNewBlockWithCoinbasesRequest* msg) { - return *msg->_impl_.new_template_; -} void GetNewBlockWithCoinbasesRequest::clear_new_template() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.new_template_ != nullptr) _impl_.new_template_->Clear(); @@ -5567,9 +5641,9 @@ GetNewBlockWithCoinbasesRequest::GetNewBlockWithCoinbasesRequest( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.new_template_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::NewBlockTemplate>(arena, *from._impl_.new_template_) - : nullptr; + _impl_.new_template_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::NewBlockTemplate>( + arena, *from._impl_.new_template_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetNewBlockWithCoinbasesRequest) } @@ -5594,6 +5668,20 @@ inline void GetNewBlockWithCoinbasesRequest::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +GetNewBlockWithCoinbasesRequest::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GetNewBlockWithCoinbasesRequest, _impl_._cached_size_), + false, + }, + &GetNewBlockWithCoinbasesRequest::MergeImpl, + &GetNewBlockWithCoinbasesRequest::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void GetNewBlockWithCoinbasesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.GetNewBlockWithCoinbasesRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -5632,6 +5720,9 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetNewBlockWithCoinbasesRequest::_tabl offsetof(decltype(_table_), aux_entries), &_GetNewBlockWithCoinbasesRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetNewBlockWithCoinbasesRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated .tari.rpc.NewBlockCoinbase coinbases = 2; {::_pbi::TcParser::FastMtR1, @@ -5666,16 +5757,18 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetNewBlockWithCoinbasesRequest::_tabl // .tari.rpc.NewBlockTemplate new_template = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::new_template(this), - _Internal::new_template(this).GetCachedSize(), target, stream); + 1, *_impl_.new_template_, _impl_.new_template_->GetCachedSize(), target, stream); } // repeated .tari.rpc.NewBlockCoinbase coinbases = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_coinbases_size()); i < n; i++) { + for (unsigned i = 0, n = static_cast( + this->_internal_coinbases_size()); + i < n; i++) { const auto& repfield = this->_internal_coinbases().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())) { @@ -5698,8 +5791,7 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetNewBlockWithCoinbasesRequest::_tabl // repeated .tari.rpc.NewBlockCoinbase coinbases = 2; total_size += 1UL * this->_internal_coinbases_size(); for (const auto& msg : this->_internal_coinbases()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // .tari.rpc.NewBlockTemplate new_template = 1; cached_has_bits = _impl_._has_bits_[0]; @@ -5711,17 +5803,11 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetNewBlockWithCoinbasesRequest::_tabl return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetNewBlockWithCoinbasesRequest::_class_data_ = { - GetNewBlockWithCoinbasesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetNewBlockWithCoinbasesRequest::GetClassData() const { - return &_class_data_; -} -void GetNewBlockWithCoinbasesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void GetNewBlockWithCoinbasesRequest::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.GetNewBlockWithCoinbasesRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -5729,10 +5815,17 @@ void GetNewBlockWithCoinbasesRequest::MergeImpl(::google::protobuf::Message& to_ _this->_internal_mutable_coinbases()->MergeFrom( from._internal_coinbases()); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_new_template()->::tari::rpc::NewBlockTemplate::MergeFrom( - from._internal_new_template()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.new_template_ != nullptr); + if (_this->_impl_.new_template_ == nullptr) { + _this->_impl_.new_template_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::NewBlockTemplate>(arena, *from._impl_.new_template_); + } else { + _this->_impl_.new_template_->MergeFrom(*from._impl_.new_template_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5747,9 +5840,6 @@ PROTOBUF_NOINLINE bool GetNewBlockWithCoinbasesRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* GetNewBlockWithCoinbasesRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetNewBlockWithCoinbasesRequest::InternalSwap(GetNewBlockWithCoinbasesRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -5759,9 +5849,9 @@ void GetNewBlockWithCoinbasesRequest::InternalSwap(GetNewBlockWithCoinbasesReque } ::google::protobuf::Metadata GetNewBlockWithCoinbasesRequest::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]); } // =================================================================== @@ -5828,6 +5918,20 @@ inline void NewBlockCoinbase::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +NewBlockCoinbase::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_._cached_size_), + false, + }, + &NewBlockCoinbase::MergeImpl, + &NewBlockCoinbase::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void NewBlockCoinbase::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockCoinbase) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -5864,6 +5968,9 @@ const ::_pbi::TcParseTable<3, 5, 0, 41, 2> NewBlockCoinbase::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_NewBlockCoinbase_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockCoinbase>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // string address = 1; @@ -6000,15 +6107,8 @@ const ::_pbi::TcParseTable<3, 5, 0, 41, 2> NewBlockCoinbase::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData NewBlockCoinbase::_class_data_ = { - NewBlockCoinbase::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* NewBlockCoinbase::GetClassData() const { - return &_class_data_; -} -void NewBlockCoinbase::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void NewBlockCoinbase::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.NewBlockCoinbase) @@ -6023,13 +6123,13 @@ void NewBlockCoinbase::MergeImpl(::google::protobuf::Message& to_msg, const ::go _this->_internal_set_coinbase_extra(from._internal_coinbase_extra()); } if (from._internal_value() != 0) { - _this->_internal_set_value(from._internal_value()); + _this->_impl_.value_ = from._impl_.value_; } if (from._internal_stealth_payment() != 0) { - _this->_internal_set_stealth_payment(from._internal_stealth_payment()); + _this->_impl_.stealth_payment_ = from._impl_.stealth_payment_; } if (from._internal_revealed_value_proof() != 0) { - _this->_internal_set_revealed_value_proof(from._internal_revealed_value_proof()); + _this->_impl_.revealed_value_proof_ = from._impl_.revealed_value_proof_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6045,9 +6145,6 @@ PROTOBUF_NOINLINE bool NewBlockCoinbase::IsInitialized() const { return true; } -::_pbi::CachedSize* NewBlockCoinbase::AccessCachedSize() const { - return &_impl_._cached_size_; -} void NewBlockCoinbase::InternalSwap(NewBlockCoinbase* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -6064,9 +6161,9 @@ void NewBlockCoinbase::InternalSwap(NewBlockCoinbase* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata NewBlockCoinbase::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]); } // =================================================================== @@ -6108,6 +6205,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); @@ -6142,6 +6253,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; @@ -6313,15 +6427,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) @@ -6330,25 +6437,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_); } @@ -6364,9 +6471,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_); @@ -6379,9 +6483,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[14]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[14]); } // =================================================================== @@ -6423,6 +6527,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); @@ -6457,6 +6575,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>(), @@ -6532,15 +6653,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) @@ -6549,10 +6663,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_); } @@ -6568,9 +6682,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_); @@ -6583,9 +6694,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[15]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[15]); } // =================================================================== @@ -6622,6 +6733,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); @@ -6654,6 +6779,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>(), @@ -6710,15 +6838,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) @@ -6727,7 +6848,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_); } @@ -6743,9 +6864,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_); @@ -6753,9 +6871,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[16]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[16]); } // =================================================================== @@ -6806,6 +6924,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); @@ -6838,6 +6970,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, @@ -6898,15 +7033,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) @@ -6931,9 +7059,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(); @@ -6943,9 +7068,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[17]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[17]); } // =================================================================== @@ -6987,6 +7112,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); @@ -7021,6 +7160,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>(), @@ -7134,15 +7276,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) @@ -7151,16 +7286,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_); } @@ -7176,9 +7311,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_); @@ -7191,9 +7323,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[18]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[18]); } // =================================================================== @@ -7245,6 +7377,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); @@ -7278,6 +7424,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>(), @@ -7357,15 +7506,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) @@ -7375,7 +7517,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_); } @@ -7391,9 +7533,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_); @@ -7402,9 +7541,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[19]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[19]); } // =================================================================== @@ -7446,6 +7585,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); @@ -7480,6 +7633,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; @@ -7575,15 +7731,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) @@ -7592,13 +7741,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_); } @@ -7614,9 +7763,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_); @@ -7629,9 +7775,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[20]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[20]); } // =================================================================== @@ -7673,6 +7819,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); @@ -7707,6 +7867,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; @@ -7811,15 +7974,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) @@ -7828,10 +7984,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."); @@ -7839,7 +7995,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_); } @@ -7855,9 +8011,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_); @@ -7870,9 +8023,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[21]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[21]); } // =================================================================== @@ -7923,6 +8076,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); @@ -7955,6 +8122,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, @@ -8010,15 +8180,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) @@ -8043,9 +8206,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(); @@ -8055,9 +8215,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[22]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[22]); } // =================================================================== @@ -8066,15 +8226,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(); @@ -8101,9 +8254,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_) + @@ -8139,6 +8292,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); @@ -8179,6 +8346,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; @@ -8233,8 +8403,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; @@ -8316,38 +8485,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_); } @@ -8362,9 +8532,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_); @@ -8378,9 +8545,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[23]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[23]); } // =================================================================== @@ -8422,6 +8589,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); @@ -8456,6 +8637,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; @@ -8551,15 +8735,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) @@ -8568,13 +8745,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_); } @@ -8590,9 +8767,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_); @@ -8605,9 +8779,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[24]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[24]); } // =================================================================== @@ -8659,6 +8833,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); @@ -8691,6 +8879,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, @@ -8756,15 +8947,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) @@ -8787,9 +8971,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_); @@ -8797,9 +8978,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[25]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[25]); } // =================================================================== @@ -8853,6 +9034,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); @@ -8885,6 +9080,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, @@ -8909,11 +9107,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())) { @@ -8936,21 +9137,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) @@ -8974,9 +9167,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_); @@ -8984,9 +9174,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[26]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[26]); } // =================================================================== @@ -9053,6 +9243,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); @@ -9089,6 +9293,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 best_block_height = 1; @@ -9204,15 +9411,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) @@ -9227,10 +9427,10 @@ void MetaData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::pr _this->_internal_set_accumulated_difficulty(from._internal_accumulated_difficulty()); } if (from._internal_best_block_height() != 0) { - _this->_internal_set_best_block_height(from._internal_best_block_height()); + _this->_impl_.best_block_height_ = from._impl_.best_block_height_; } 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_); } @@ -9246,9 +9446,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(); @@ -9265,9 +9462,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[27]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[27]); } // =================================================================== @@ -9330,6 +9527,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); @@ -9365,6 +9576,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; @@ -9459,15 +9673,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) @@ -9477,10 +9684,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_); } @@ -9496,9 +9703,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_); @@ -9512,9 +9716,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[28]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[28]); } // =================================================================== @@ -9556,6 +9760,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); @@ -9590,6 +9808,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; @@ -9685,15 +9906,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) @@ -9702,13 +9916,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_); } @@ -9724,9 +9938,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_); @@ -9739,9 +9950,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[29]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[29]); } // =================================================================== @@ -9750,22 +9961,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; - } - static const ::tari::rpc::MinerData& miner_data(const GetNewBlockResult* msg); - static void set_has_miner_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::tari::rpc::Block& GetNewBlockResult::_Internal::block(const GetNewBlockResult* msg) { - return *msg->_impl_.block_; -} -const ::tari::rpc::MinerData& GetNewBlockResult::_Internal::miner_data(const GetNewBlockResult* msg) { - return *msg->_impl_.miner_data_; -} void GetNewBlockResult::clear_block() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.block_ != nullptr) _impl_.block_->Clear(); @@ -9795,12 +9992,12 @@ 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_.miner_data_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::tari::rpc::MinerData>(arena, *from._impl_.miner_data_) - : nullptr; + _impl_.block_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Block>( + arena, *from._impl_.block_) + : nullptr; + _impl_.miner_data_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::MinerData>( + arena, *from._impl_.miner_data_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetNewBlockResult) } @@ -9836,6 +10033,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); @@ -9882,6 +10093,9 @@ const ::_pbi::TcParseTable<3, 5, 2, 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; @@ -9943,8 +10157,7 @@ const ::_pbi::TcParseTable<3, 5, 2, 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; @@ -9962,8 +10175,7 @@ const ::_pbi::TcParseTable<3, 5, 2, 0, 2> GetNewBlockResult::_table_ = { // .tari.rpc.MinerData miner_data = 5; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::miner_data(this), - _Internal::miner_data(this).GetCachedSize(), target, stream); + 5, *_impl_.miner_data_, _impl_.miner_data_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -10019,17 +10231,11 @@ const ::_pbi::TcParseTable<3, 5, 2, 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; @@ -10047,14 +10253,25 @@ void GetNewBlockResult::MergeImpl(::google::protobuf::Message& to_msg, const ::g cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_block()->::tari::rpc::Block::MergeFrom( - from._internal_block()); + 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 (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_); + } } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -10069,9 +10286,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(); @@ -10090,9 +10304,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[30]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[30]); } // =================================================================== @@ -10158,6 +10372,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); @@ -10195,6 +10423,9 @@ const ::_pbi::TcParseTable<3, 6, 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; @@ -10342,15 +10573,8 @@ const ::_pbi::TcParseTable<3, 6, 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) @@ -10390,9 +10614,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(); @@ -10407,9 +10628,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[31]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[31]); } // =================================================================== @@ -10418,15 +10639,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(); @@ -10453,9 +10667,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_) + @@ -10491,6 +10705,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); @@ -10531,6 +10759,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; @@ -10580,8 +10811,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; @@ -10650,35 +10880,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_); } @@ -10693,9 +10924,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_); @@ -10709,9 +10937,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[32]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[32]); } // =================================================================== @@ -10765,6 +10993,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); @@ -10797,6 +11039,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, @@ -10821,11 +11066,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())) { @@ -10848,21 +11096,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) @@ -10886,9 +11126,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_); @@ -10896,9 +11133,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[33]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[33]); } // =================================================================== @@ -10948,6 +11185,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); @@ -10980,6 +11231,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, @@ -11035,15 +11289,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) @@ -11066,9 +11313,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_); @@ -11076,9 +11320,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[34]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[34]); } // =================================================================== @@ -11128,6 +11372,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); @@ -11160,6 +11418,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, @@ -11215,15 +11476,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) @@ -11246,9 +11500,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_); @@ -11256,9 +11507,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[35]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[35]); } // =================================================================== @@ -11267,15 +11518,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(); @@ -11302,9 +11546,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) } @@ -11328,6 +11572,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); @@ -11365,6 +11623,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, @@ -11392,8 +11653,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())) { @@ -11423,26 +11683,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_); } @@ -11457,9 +11718,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_); @@ -11468,9 +11726,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[36]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[36]); } // =================================================================== @@ -11479,15 +11737,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(); @@ -11514,9 +11765,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) } @@ -11540,6 +11791,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); @@ -11577,6 +11842,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, @@ -11604,8 +11872,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())) { @@ -11635,26 +11902,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_); } @@ -11669,9 +11937,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_); @@ -11680,9 +11945,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[37]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[37]); } // =================================================================== @@ -11715,9 +11980,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[38]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[38]); } // =================================================================== @@ -11726,15 +11991,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(); @@ -11761,9 +12019,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) } @@ -11787,6 +12045,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); @@ -11824,6 +12096,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, @@ -11851,8 +12126,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())) { @@ -11882,26 +12156,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_); } @@ -11916,9 +12191,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_); @@ -11927,9 +12199,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[39]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[39]); } // =================================================================== @@ -11966,6 +12238,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); @@ -11998,6 +12284,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>(), @@ -12054,15 +12343,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) @@ -12071,7 +12353,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_); } @@ -12087,9 +12369,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_); @@ -12097,9 +12376,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[40]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[40]); } // =================================================================== @@ -12132,9 +12411,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[41]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[41]); } // =================================================================== @@ -12143,15 +12422,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(); @@ -12178,9 +12450,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) } @@ -12204,6 +12476,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); @@ -12241,6 +12527,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, @@ -12268,8 +12557,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())) { @@ -12299,26 +12587,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_); } @@ -12333,9 +12622,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_); @@ -12344,9 +12630,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[42]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[42]); } // =================================================================== @@ -12355,15 +12641,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(); @@ -12390,9 +12669,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) } @@ -12416,6 +12695,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); @@ -12453,6 +12746,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, @@ -12480,8 +12776,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())) { @@ -12511,26 +12806,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_); } @@ -12545,9 +12841,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_); @@ -12556,9 +12849,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[43]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[43]); } // =================================================================== @@ -12595,6 +12888,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); @@ -12627,6 +12934,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>(), @@ -12683,15 +12993,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) @@ -12700,7 +13003,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_); } @@ -12716,9 +13019,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_); @@ -12726,9 +13026,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[44]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[44]); } // =================================================================== @@ -12770,6 +13070,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); @@ -12804,6 +13118,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>(), @@ -12899,15 +13216,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) @@ -12916,13 +13226,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_); } @@ -12938,9 +13248,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_); @@ -12953,9 +13260,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[45]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[45]); } // =================================================================== @@ -12992,6 +13299,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); @@ -13024,6 +13345,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>(), @@ -13080,15 +13404,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) @@ -13097,7 +13414,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_); } @@ -13113,9 +13430,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_); @@ -13123,9 +13437,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[46]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[46]); } // =================================================================== @@ -13179,6 +13493,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); @@ -13212,6 +13540,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, @@ -13285,15 +13616,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) @@ -13321,9 +13645,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(); @@ -13334,9 +13655,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[47]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[47]); } // =================================================================== @@ -13389,6 +13710,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); @@ -13422,6 +13757,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, @@ -13496,15 +13834,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) @@ -13516,7 +13847,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_); } @@ -13532,9 +13863,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(); @@ -13545,9 +13873,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[48]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[48]); } // =================================================================== @@ -13600,6 +13928,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); @@ -13633,6 +13975,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(), @@ -13706,15 +14051,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) @@ -13726,7 +14064,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_); } @@ -13742,9 +14080,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(); @@ -13755,9 +14090,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[49]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[49]); } // =================================================================== @@ -13810,6 +14145,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); @@ -13843,6 +14192,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>(), @@ -13917,15 +14269,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) @@ -13937,7 +14282,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_); } @@ -13953,9 +14298,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(); @@ -13966,9 +14308,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[50]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[50]); } // =================================================================== @@ -13977,15 +14319,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(); @@ -14013,9 +14348,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) } @@ -14041,6 +14376,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); @@ -14079,6 +14428,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, @@ -14118,8 +14470,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())) { @@ -14155,17 +14506,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; @@ -14174,10 +14519,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_); } @@ -14192,9 +14544,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(); @@ -14206,9 +14555,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[51]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[51]); } // =================================================================== @@ -14264,6 +14613,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); @@ -14298,6 +14661,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; @@ -14391,15 +14757,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) @@ -14414,7 +14773,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_); } @@ -14430,9 +14789,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(); @@ -14444,9 +14800,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[52]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[52]); } // =================================================================== @@ -14499,6 +14855,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); @@ -14532,6 +14902,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>(), @@ -14606,15 +14979,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) @@ -14626,7 +14992,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_); } @@ -14642,9 +15008,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(); @@ -14655,9 +15018,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[53]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[53]); } // =================================================================== @@ -14666,15 +15029,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(); @@ -14701,9 +15057,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) } @@ -14728,6 +15084,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); @@ -14766,6 +15136,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, @@ -14800,16 +15173,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())) { @@ -14832,8 +15207,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]; @@ -14845,17 +15219,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; @@ -14863,10 +15231,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_); } @@ -14881,9 +15256,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_); @@ -14893,9 +15265,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[54]); + return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, + &descriptor_table_base_5fnode_2eproto_once, + file_level_metadata_base_5fnode_2eproto[54]); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -14905,4 +15277,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 507c7c5..c23d0f4 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.1 #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 != 5026001 +#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" @@ -458,21 +452,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; @@ -480,9 +471,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 { @@ -514,22 +505,17 @@ class ValueAtHeightResponse final : } static inline const ValueAtHeightResponse* internal_default_instance() { return reinterpret_cast( - &_ValueAtHeightResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(ValueAtHeightResponse& a, ValueAtHeightResponse& b) { - a.Swap(&b); + &_ValueAtHeightResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 15; + 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); @@ -544,51 +530,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, @@ -616,7 +603,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, @@ -629,13 +615,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_; @@ -643,23 +628,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; @@ -667,9 +650,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 { @@ -701,22 +684,17 @@ class TransactionStateResponse final : } static inline const TransactionStateResponse* internal_default_instance() { return reinterpret_cast( - &_TransactionStateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 44; - - friend void swap(TransactionStateResponse& a, TransactionStateResponse& b) { - a.Swap(&b); + &_TransactionStateResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 44; + 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); @@ -731,51 +709,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, }; @@ -792,7 +771,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, @@ -805,36 +783,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; @@ -842,9 +817,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 { @@ -876,22 +851,17 @@ class SyncProgressResponse final : } static inline const SyncProgressResponse* internal_default_instance() { return reinterpret_cast( - &_SyncProgressResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - friend void swap(SyncProgressResponse& a, SyncProgressResponse& b) { - a.Swap(&b); + &_SyncProgressResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 29; + 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); @@ -906,51 +876,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, @@ -989,7 +960,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, @@ -1002,13 +972,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_; @@ -1017,23 +986,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; @@ -1041,9 +1008,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 { @@ -1075,22 +1042,17 @@ class SyncInfoResponse final : } static inline const SyncInfoResponse* internal_default_instance() { return reinterpret_cast( - &_SyncInfoResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - friend void swap(SyncInfoResponse& a, SyncInfoResponse& b) { - a.Swap(&b); + &_SyncInfoResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 28; + 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); @@ -1105,51 +1067,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, @@ -1206,7 +1169,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, @@ -1219,13 +1181,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_; @@ -1234,23 +1195,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; @@ -1258,9 +1217,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 { @@ -1292,22 +1251,17 @@ class SubmitTransactionResponse final : } static inline const SubmitTransactionResponse* internal_default_instance() { return reinterpret_cast( - &_SubmitTransactionResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 40; - - friend void swap(SubmitTransactionResponse& a, SubmitTransactionResponse& b) { - a.Swap(&b); + &_SubmitTransactionResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 40; + 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); @@ -1322,51 +1276,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, }; @@ -1383,7 +1338,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, @@ -1396,36 +1350,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; @@ -1433,9 +1384,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 { @@ -1467,22 +1418,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); @@ -1497,51 +1443,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, }; @@ -1564,7 +1511,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, @@ -1577,36 +1523,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; @@ -1614,9 +1557,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 { @@ -1648,22 +1591,17 @@ class StringValue final : } static inline const StringValue* internal_default_instance() { return reinterpret_cast( - &_StringValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(StringValue& a, StringValue& b) { - a.Swap(&b); + &_StringValue_default_instance_); } + static constexpr int kIndexInFileMessages = 17; + 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); @@ -1678,51 +1616,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, }; @@ -1745,7 +1684,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, @@ -1758,36 +1696,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; @@ -1795,9 +1730,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 { @@ -1829,22 +1764,17 @@ class SearchUtxosRequest final : } static inline const SearchUtxosRequest* internal_default_instance() { return reinterpret_cast( - &_SearchUtxosRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - - friend void swap(SearchUtxosRequest& a, SearchUtxosRequest& b) { - a.Swap(&b); + &_SearchUtxosRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 34; + 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); @@ -1859,51 +1789,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, }; @@ -1938,7 +1869,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, @@ -1951,36 +1881,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 NewBlockCoinbase final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockCoinbase) */ { +class NewBlockCoinbase final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockCoinbase) */ { public: inline NewBlockCoinbase() : NewBlockCoinbase(nullptr) {} ~NewBlockCoinbase() override; - template - explicit PROTOBUF_CONSTEXPR NewBlockCoinbase(::google::protobuf::internal::ConstantInitialized); - - inline NewBlockCoinbase(const NewBlockCoinbase& from) - : NewBlockCoinbase(nullptr, from) {} - NewBlockCoinbase(NewBlockCoinbase&& from) noexcept - : NewBlockCoinbase() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR NewBlockCoinbase( + ::google::protobuf::internal::ConstantInitialized); + inline NewBlockCoinbase(const NewBlockCoinbase& from) : NewBlockCoinbase(nullptr, from) {} + inline NewBlockCoinbase(NewBlockCoinbase&& from) noexcept + : NewBlockCoinbase(nullptr, std::move(from)) {} inline NewBlockCoinbase& operator=(const NewBlockCoinbase& from) { CopyFrom(from); return *this; @@ -1988,9 +1915,9 @@ class NewBlockCoinbase final : inline NewBlockCoinbase& operator=(NewBlockCoinbase&& 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 { @@ -2022,22 +1949,17 @@ class NewBlockCoinbase final : } static inline const NewBlockCoinbase* internal_default_instance() { return reinterpret_cast( - &_NewBlockCoinbase_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(NewBlockCoinbase& a, NewBlockCoinbase& b) { - a.Swap(&b); + &_NewBlockCoinbase_default_instance_); } + static constexpr int kIndexInFileMessages = 13; + friend void swap(NewBlockCoinbase& a, NewBlockCoinbase& b) { a.Swap(&b); } inline void Swap(NewBlockCoinbase* 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); @@ -2052,51 +1974,52 @@ class NewBlockCoinbase final : // implements Message ---------------------------------------------- NewBlockCoinbase* 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 NewBlockCoinbase& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const NewBlockCoinbase& from) { - NewBlockCoinbase::MergeImpl(*this, from); - } + void MergeFrom(const NewBlockCoinbase& from) { NewBlockCoinbase::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(NewBlockCoinbase* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.NewBlockCoinbase"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockCoinbase"; } + + protected: explicit NewBlockCoinbase(::google::protobuf::Arena* arena); NewBlockCoinbase(::google::protobuf::Arena* arena, const NewBlockCoinbase& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + NewBlockCoinbase(::google::protobuf::Arena* arena, NewBlockCoinbase&& from) noexcept + : NewBlockCoinbase(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, kCoinbaseExtraFieldNumber = 5, @@ -2169,7 +2092,6 @@ class NewBlockCoinbase final : // @@protoc_insertion_point(class_scope:tari.rpc.NewBlockCoinbase) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 5, 0, @@ -2182,13 +2104,12 @@ class NewBlockCoinbase 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 coinbase_extra_; ::uint64_t value_; @@ -2199,23 +2120,21 @@ class NewBlockCoinbase final : }; 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; @@ -2223,9 +2142,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 { @@ -2257,22 +2176,17 @@ class NetworkDifficultyResponse final : } static inline const NetworkDifficultyResponse* internal_default_instance() { return reinterpret_cast( - &_NetworkDifficultyResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(NetworkDifficultyResponse& a, NetworkDifficultyResponse& b) { - a.Swap(&b); + &_NetworkDifficultyResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 14; + 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); @@ -2287,51 +2201,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, @@ -2414,7 +2329,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, @@ -2427,13 +2341,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_; @@ -2446,23 +2359,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; @@ -2470,9 +2381,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 { @@ -2504,22 +2415,17 @@ class MetaData final : } static inline const MetaData* internal_default_instance() { return reinterpret_cast( - &_MetaData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(MetaData& a, MetaData& b) { - a.Swap(&b); + &_MetaData_default_instance_); } + static constexpr int kIndexInFileMessages = 27; + 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); @@ -2534,51 +2440,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 { kBestBlockHashFieldNumber = 2, kAccumulatedDifficultyFieldNumber = 5, @@ -2640,7 +2547,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, @@ -2653,13 +2559,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_hash_; ::google::protobuf::internal::ArenaStringPtr accumulated_difficulty_; ::uint64_t best_block_height_; @@ -2669,23 +2574,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; @@ -2693,9 +2596,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 { @@ -2727,22 +2630,17 @@ class MempoolStatsResponse final : } static inline const MempoolStatsResponse* internal_default_instance() { return reinterpret_cast( - &_MempoolStatsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 45; - - friend void swap(MempoolStatsResponse& a, MempoolStatsResponse& b) { - a.Swap(&b); + &_MempoolStatsResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 45; + 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); @@ -2757,51 +2655,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, @@ -2840,7 +2739,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, @@ -2853,13 +2751,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_; @@ -2868,23 +2765,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; @@ -2892,9 +2787,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 { @@ -2926,22 +2821,17 @@ class ListHeadersRequest final : } static inline const ListHeadersRequest* internal_default_instance() { return reinterpret_cast( - &_ListHeadersRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(ListHeadersRequest& a, ListHeadersRequest& b) { - a.Swap(&b); + &_ListHeadersRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 24; + 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); @@ -2956,51 +2846,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, @@ -3039,7 +2930,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, @@ -3052,13 +2942,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_; @@ -3067,23 +2956,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; @@ -3091,9 +2978,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 { @@ -3125,22 +3012,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); @@ -3155,51 +3037,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, @@ -3227,7 +3110,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, @@ -3240,13 +3122,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_; @@ -3254,23 +3135,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; @@ -3278,9 +3157,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 { @@ -3312,22 +3191,17 @@ class IntegerValue final : } static inline const IntegerValue* internal_default_instance() { return reinterpret_cast( - &_IntegerValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(IntegerValue& a, IntegerValue& b) { - a.Swap(&b); + &_IntegerValue_default_instance_); } + static constexpr int kIndexInFileMessages = 16; + 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); @@ -3342,51 +3216,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, }; @@ -3403,7 +3278,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, @@ -3416,36 +3290,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; @@ -3453,9 +3324,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 { @@ -3487,22 +3358,17 @@ class HeightRequest final : } static inline const HeightRequest* internal_default_instance() { return reinterpret_cast( - &_HeightRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(HeightRequest& a, HeightRequest& b) { - a.Swap(&b); + &_HeightRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 20; + 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); @@ -3517,51 +3383,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, @@ -3600,7 +3467,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, @@ -3613,13 +3479,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_; @@ -3628,23 +3493,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; @@ -3652,9 +3515,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 { @@ -3686,22 +3549,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); @@ -3716,51 +3574,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, @@ -3812,7 +3671,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, @@ -3825,13 +3683,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_; @@ -3839,23 +3696,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; @@ -3863,9 +3718,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 { @@ -3897,22 +3752,17 @@ class GetTemplateRegistrationsRequest final : } static inline const GetTemplateRegistrationsRequest* internal_default_instance() { return reinterpret_cast( - &_GetTemplateRegistrationsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 50; - - friend void swap(GetTemplateRegistrationsRequest& a, GetTemplateRegistrationsRequest& b) { - a.Swap(&b); + &_GetTemplateRegistrationsRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 50; + 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); @@ -3927,51 +3777,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, @@ -4005,7 +3856,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, @@ -4018,13 +3868,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_; @@ -4032,23 +3881,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; @@ -4056,9 +3903,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 { @@ -4090,22 +3937,17 @@ class GetSideChainUtxosRequest final : } static inline const GetSideChainUtxosRequest* internal_default_instance() { return reinterpret_cast( - &_GetSideChainUtxosRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 53; - - friend void swap(GetSideChainUtxosRequest& a, GetSideChainUtxosRequest& b) { - a.Swap(&b); + &_GetSideChainUtxosRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 53; + 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); @@ -4120,51 +3962,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, @@ -4198,7 +4041,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, @@ -4211,13 +4053,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_; @@ -4225,23 +4066,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; @@ -4249,9 +4088,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 { @@ -4283,22 +4122,17 @@ class GetShardKeyResponse final : } static inline const GetShardKeyResponse* internal_default_instance() { return reinterpret_cast( - &_GetShardKeyResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 49; - - friend void swap(GetShardKeyResponse& a, GetShardKeyResponse& b) { - a.Swap(&b); + &_GetShardKeyResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 49; + 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); @@ -4313,51 +4147,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, @@ -4391,7 +4226,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, @@ -4404,13 +4238,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_; @@ -4418,23 +4251,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; @@ -4442,9 +4273,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 { @@ -4476,22 +4307,17 @@ class GetShardKeyRequest final : } static inline const GetShardKeyRequest* internal_default_instance() { return reinterpret_cast( - &_GetShardKeyRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 48; - - friend void swap(GetShardKeyRequest& a, GetShardKeyRequest& b) { - a.Swap(&b); + &_GetShardKeyRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 48; + 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); @@ -4506,51 +4332,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, @@ -4584,7 +4411,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, @@ -4597,13 +4423,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_; @@ -4611,22 +4436,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; @@ -4634,9 +4457,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 { @@ -4668,22 +4491,17 @@ class GetPeersRequest final : } static inline const GetPeersRequest* internal_default_instance() { return reinterpret_cast( - &_GetPeersRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 38; - - friend void swap(GetPeersRequest& a, GetPeersRequest& b) { - a.Swap(&b); + &_GetPeersRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 38; + 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); @@ -4698,7 +4516,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) { @@ -4708,28 +4526,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 @@ -4737,33 +4555,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; @@ -4771,9 +4586,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 { @@ -4805,22 +4620,17 @@ class GetNewBlockBlobResult final : } static inline const GetNewBlockBlobResult* internal_default_instance() { return reinterpret_cast( - &_GetNewBlockBlobResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - - friend void swap(GetNewBlockBlobResult& a, GetNewBlockBlobResult& b) { - a.Swap(&b); + &_GetNewBlockBlobResult_default_instance_); } + static constexpr int kIndexInFileMessages = 31; + 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); @@ -4835,51 +4645,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, @@ -4987,7 +4798,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, 6, 0, @@ -5000,13 +4810,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_; @@ -5018,22 +4827,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; @@ -5041,9 +4848,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 { @@ -5075,22 +4882,17 @@ class GetMempoolTransactionsRequest final : } static inline const GetMempoolTransactionsRequest* internal_default_instance() { return reinterpret_cast( - &_GetMempoolTransactionsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 41; - - friend void swap(GetMempoolTransactionsRequest& a, GetMempoolTransactionsRequest& b) { - a.Swap(&b); + &_GetMempoolTransactionsRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 41; + 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); @@ -5105,7 +4907,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) { @@ -5115,28 +4917,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 @@ -5144,33 +4946,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; @@ -5178,9 +4977,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 { @@ -5212,22 +5011,17 @@ class GetHeaderByHashRequest final : } static inline const GetHeaderByHashRequest* internal_default_instance() { return reinterpret_cast( - &_GetHeaderByHashRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(GetHeaderByHashRequest& a, GetHeaderByHashRequest& b) { - a.Swap(&b); + &_GetHeaderByHashRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 22; + 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); @@ -5242,51 +5036,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, }; @@ -5309,7 +5104,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, @@ -5322,36 +5116,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; @@ -5359,9 +5150,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 { @@ -5393,22 +5184,17 @@ class GetBlocksRequest final : } static inline const GetBlocksRequest* internal_default_instance() { return reinterpret_cast( - &_GetBlocksRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(GetBlocksRequest& a, GetBlocksRequest& b) { - a.Swap(&b); + &_GetBlocksRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 25; + 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); @@ -5423,51 +5209,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, }; @@ -5492,7 +5279,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, @@ -5505,13 +5291,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_; @@ -5519,23 +5304,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; @@ -5543,9 +5326,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 { @@ -5577,22 +5360,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); @@ -5607,51 +5385,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, }; @@ -5674,7 +5453,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, @@ -5687,36 +5465,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; @@ -5724,9 +5499,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 { @@ -5758,22 +5533,17 @@ class GetActiveValidatorNodesResponse final : } static inline const GetActiveValidatorNodesResponse* internal_default_instance() { return reinterpret_cast( - &_GetActiveValidatorNodesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 47; - - friend void swap(GetActiveValidatorNodesResponse& a, GetActiveValidatorNodesResponse& b) { - a.Swap(&b); + &_GetActiveValidatorNodesResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 47; + 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); @@ -5788,51 +5558,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, @@ -5872,7 +5643,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, @@ -5885,13 +5655,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_; @@ -5899,23 +5668,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; @@ -5923,9 +5690,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 { @@ -5957,22 +5724,17 @@ class GetActiveValidatorNodesRequest final : } static inline const GetActiveValidatorNodesRequest* internal_default_instance() { return reinterpret_cast( - &_GetActiveValidatorNodesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 46; - - friend void swap(GetActiveValidatorNodesRequest& a, GetActiveValidatorNodesRequest& b) { - a.Swap(&b); + &_GetActiveValidatorNodesRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 46; + 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); @@ -5987,51 +5749,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, }; @@ -6048,7 +5811,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, @@ -6061,36 +5823,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; @@ -6098,9 +5857,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 { @@ -6132,22 +5891,17 @@ class FetchMatchingUtxosRequest final : } static inline const FetchMatchingUtxosRequest* internal_default_instance() { return reinterpret_cast( - &_FetchMatchingUtxosRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - - friend void swap(FetchMatchingUtxosRequest& a, FetchMatchingUtxosRequest& b) { - a.Swap(&b); + &_FetchMatchingUtxosRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 35; + 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); @@ -6162,51 +5916,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, }; @@ -6241,7 +5996,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, @@ -6254,36 +6008,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; @@ -6291,9 +6042,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 { @@ -6325,22 +6076,17 @@ class BlockTimingResponse final : } static inline const BlockTimingResponse* internal_default_instance() { return reinterpret_cast( - &_BlockTimingResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(BlockTimingResponse& a, BlockTimingResponse& b) { - a.Swap(&b); + &_BlockTimingResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 21; + 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); @@ -6355,51 +6101,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, @@ -6438,7 +6185,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, @@ -6451,13 +6197,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_; @@ -6466,23 +6211,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; @@ -6490,9 +6233,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 { @@ -6524,22 +6267,17 @@ class BlockInfo final : } static inline const BlockInfo* internal_default_instance() { return reinterpret_cast( - &_BlockInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 52; - - friend void swap(BlockInfo& a, BlockInfo& b) { - a.Swap(&b); + &_BlockInfo_default_instance_); } + static constexpr int kIndexInFileMessages = 52; + 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); @@ -6554,51 +6292,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, @@ -6649,7 +6388,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, @@ -6662,13 +6400,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_; @@ -6677,23 +6414,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; @@ -6701,9 +6436,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 { @@ -6735,22 +6470,17 @@ class BlockGroupResponse final : } static inline const BlockGroupResponse* internal_default_instance() { return reinterpret_cast( - &_BlockGroupResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(BlockGroupResponse& a, BlockGroupResponse& b) { - a.Swap(&b); + &_BlockGroupResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 19; + 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); @@ -6765,51 +6495,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, @@ -6845,7 +6576,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, @@ -6858,13 +6588,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_; @@ -6872,23 +6601,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; @@ -6896,9 +6623,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 { @@ -6930,22 +6657,17 @@ class BlockGroupRequest final : } static inline const BlockGroupRequest* internal_default_instance() { return reinterpret_cast( - &_BlockGroupRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(BlockGroupRequest& a, BlockGroupRequest& b) { - a.Swap(&b); + &_BlockGroupRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 18; + 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); @@ -6960,51 +6682,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, @@ -7054,7 +6777,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, @@ -7067,13 +6789,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_; @@ -7083,23 +6804,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; @@ -7107,9 +6826,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 { @@ -7141,22 +6860,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); @@ -7171,51 +6885,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, @@ -7255,7 +6970,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, @@ -7268,13 +6982,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_; @@ -7282,23 +6995,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; @@ -7306,9 +7017,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 { @@ -7340,22 +7051,17 @@ class TransactionStateRequest final : } static inline const TransactionStateRequest* internal_default_instance() { return reinterpret_cast( - &_TransactionStateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 43; - - friend void swap(TransactionStateRequest& a, TransactionStateRequest& b) { - a.Swap(&b); + &_TransactionStateRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 43; + 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); @@ -7370,51 +7076,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, }; @@ -7436,7 +7143,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, @@ -7449,13 +7155,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_; @@ -7463,23 +7168,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; @@ -7487,9 +7190,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 { @@ -7521,22 +7224,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); @@ -7551,51 +7249,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, @@ -7639,7 +7338,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, @@ -7652,13 +7350,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_; @@ -7668,23 +7365,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; @@ -7692,9 +7387,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 { @@ -7726,22 +7421,17 @@ class SearchKernelsRequest final : } static inline const SearchKernelsRequest* internal_default_instance() { return reinterpret_cast( - &_SearchKernelsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - - friend void swap(SearchKernelsRequest& a, SearchKernelsRequest& b) { - a.Swap(&b); + &_SearchKernelsRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 33; + 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); @@ -7756,51 +7446,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, }; @@ -7812,20 +7503,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, @@ -7838,36 +7527,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; @@ -7875,9 +7561,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 { @@ -7909,22 +7595,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); @@ -7939,51 +7620,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, @@ -8016,7 +7698,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, @@ -8029,13 +7710,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_; @@ -8044,23 +7724,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; @@ -8068,9 +7746,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 { @@ -8102,22 +7780,17 @@ class MinerData final : } static inline const MinerData* internal_default_instance() { return reinterpret_cast( - &_MinerData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - - friend void swap(MinerData& a, MinerData& b) { - a.Swap(&b); + &_MinerData_default_instance_); } + static constexpr int kIndexInFileMessages = 32; + 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); @@ -8132,51 +7805,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, @@ -8231,7 +7905,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, @@ -8244,13 +7917,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_; @@ -8261,23 +7933,21 @@ class MinerData final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetNewBlockTemplateWithCoinbasesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) */ { +class GetNewBlockTemplateWithCoinbasesRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) */ { public: inline GetNewBlockTemplateWithCoinbasesRequest() : GetNewBlockTemplateWithCoinbasesRequest(nullptr) {} ~GetNewBlockTemplateWithCoinbasesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetNewBlockTemplateWithCoinbasesRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetNewBlockTemplateWithCoinbasesRequest(const GetNewBlockTemplateWithCoinbasesRequest& from) - : GetNewBlockTemplateWithCoinbasesRequest(nullptr, from) {} - GetNewBlockTemplateWithCoinbasesRequest(GetNewBlockTemplateWithCoinbasesRequest&& from) noexcept - : GetNewBlockTemplateWithCoinbasesRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetNewBlockTemplateWithCoinbasesRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetNewBlockTemplateWithCoinbasesRequest(const GetNewBlockTemplateWithCoinbasesRequest& from) : GetNewBlockTemplateWithCoinbasesRequest(nullptr, from) {} + inline GetNewBlockTemplateWithCoinbasesRequest(GetNewBlockTemplateWithCoinbasesRequest&& from) noexcept + : GetNewBlockTemplateWithCoinbasesRequest(nullptr, std::move(from)) {} inline GetNewBlockTemplateWithCoinbasesRequest& operator=(const GetNewBlockTemplateWithCoinbasesRequest& from) { CopyFrom(from); return *this; @@ -8285,9 +7955,9 @@ class GetNewBlockTemplateWithCoinbasesRequest final : inline GetNewBlockTemplateWithCoinbasesRequest& operator=(GetNewBlockTemplateWithCoinbasesRequest&& 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 { @@ -8319,22 +7989,17 @@ class GetNewBlockTemplateWithCoinbasesRequest final : } static inline const GetNewBlockTemplateWithCoinbasesRequest* internal_default_instance() { return reinterpret_cast( - &_GetNewBlockTemplateWithCoinbasesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(GetNewBlockTemplateWithCoinbasesRequest& a, GetNewBlockTemplateWithCoinbasesRequest& b) { - a.Swap(&b); + &_GetNewBlockTemplateWithCoinbasesRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 11; + friend void swap(GetNewBlockTemplateWithCoinbasesRequest& a, GetNewBlockTemplateWithCoinbasesRequest& b) { a.Swap(&b); } inline void Swap(GetNewBlockTemplateWithCoinbasesRequest* 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); @@ -8349,51 +8014,52 @@ class GetNewBlockTemplateWithCoinbasesRequest final : // implements Message ---------------------------------------------- GetNewBlockTemplateWithCoinbasesRequest* 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 GetNewBlockTemplateWithCoinbasesRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetNewBlockTemplateWithCoinbasesRequest& from) { - GetNewBlockTemplateWithCoinbasesRequest::MergeImpl(*this, from); - } + void MergeFrom(const GetNewBlockTemplateWithCoinbasesRequest& from) { GetNewBlockTemplateWithCoinbasesRequest::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(GetNewBlockTemplateWithCoinbasesRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetNewBlockTemplateWithCoinbasesRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetNewBlockTemplateWithCoinbasesRequest"; } + + protected: explicit GetNewBlockTemplateWithCoinbasesRequest(::google::protobuf::Arena* arena); GetNewBlockTemplateWithCoinbasesRequest(::google::protobuf::Arena* arena, const GetNewBlockTemplateWithCoinbasesRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetNewBlockTemplateWithCoinbasesRequest(::google::protobuf::Arena* arena, GetNewBlockTemplateWithCoinbasesRequest&& from) noexcept + : GetNewBlockTemplateWithCoinbasesRequest(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 { kCoinbasesFieldNumber = 3, kAlgoFieldNumber = 1, @@ -8407,16 +8073,15 @@ class GetNewBlockTemplateWithCoinbasesRequest final : public: void clear_coinbases() ; ::tari::rpc::NewBlockCoinbase* mutable_coinbases(int index); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::NewBlockCoinbase >* - mutable_coinbases(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* mutable_coinbases(); + private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>& _internal_coinbases() const; ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* _internal_mutable_coinbases(); public: const ::tari::rpc::NewBlockCoinbase& coinbases(int index) const; ::tari::rpc::NewBlockCoinbase* add_coinbases(); - const ::google::protobuf::RepeatedPtrField< ::tari::rpc::NewBlockCoinbase >& - coinbases() const; + const ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>& coinbases() const; // .tari.rpc.PowAlgo algo = 1; bool has_algo() const; void clear_algo() ; @@ -8445,7 +8110,6 @@ class GetNewBlockTemplateWithCoinbasesRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 2, @@ -8458,13 +8122,12 @@ class GetNewBlockTemplateWithCoinbasesRequest 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::NewBlockCoinbase > coinbases_; @@ -8474,204 +8137,21 @@ class GetNewBlockTemplateWithCoinbasesRequest 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) */ { - 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); - } - - inline GetPeersResponse& operator=(const GetPeersResponse& from) { - CopyFrom(from); - return *this; - } - inline GetPeersResponse& operator=(GetPeersResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetPeersResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetPeersResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPeersResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - 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 - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetPeersResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetPeersResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(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); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_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; - 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: - friend class ::google::protobuf::internal::AnyMetadata; - 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; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPeerFieldNumber = 1, - }; - // .tari.rpc.Peer peer = 1; - bool has_peer() const; - void clear_peer() ; - const ::tari::rpc::Peer& peer() const; - PROTOBUF_NODISCARD ::tari::rpc::Peer* release_peer(); - ::tari::rpc::Peer* mutable_peer(); - void set_allocated_peer(::tari::rpc::Peer* value); - void unsafe_arena_set_allocated_peer(::tari::rpc::Peer* value); - ::tari::rpc::Peer* unsafe_arena_release_peer(); - - private: - const ::tari::rpc::Peer& _internal_peer() const; - ::tari::rpc::Peer* _internal_mutable_peer(); - - public: - // @@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, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - 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); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Peer* peer_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - 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; @@ -8679,9 +8159,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 { @@ -8713,22 +8193,17 @@ class BlockHeaderResponse final : } static inline const BlockHeaderResponse* internal_default_instance() { return reinterpret_cast( - &_BlockHeaderResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(BlockHeaderResponse& a, BlockHeaderResponse& b) { - a.Swap(&b); + &_BlockHeaderResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 23; + 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); @@ -8743,51 +8218,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, @@ -8853,7 +8329,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, @@ -8866,13 +8341,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_; @@ -8884,23 +8358,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; @@ -8908,9 +8380,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 { @@ -8942,22 +8414,17 @@ class GetTemplateRegistrationResponse final : } static inline const GetTemplateRegistrationResponse* internal_default_instance() { return reinterpret_cast( - &_GetTemplateRegistrationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 51; - - friend void swap(GetTemplateRegistrationResponse& a, GetTemplateRegistrationResponse& b) { - a.Swap(&b); + &_GetTemplateRegistrationResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 51; + 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); @@ -8972,51 +8439,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, @@ -9055,7 +8523,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, @@ -9068,13 +8535,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_; @@ -9083,23 +8549,194 @@ 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 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) {} + inline GetPeersResponse(GetPeersResponse&& from) noexcept + : GetPeersResponse(nullptr, std::move(from)) {} + inline GetPeersResponse& operator=(const GetPeersResponse& from) { + CopyFrom(from); + return *this; + } + inline GetPeersResponse& operator=(GetPeersResponse&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetPeersResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetPeersResponse* internal_default_instance() { + return reinterpret_cast( + &_GetPeersResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 37; + 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 + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetPeersResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetPeersResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + 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); } + + private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + 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; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GetPeersResponse* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "tari.rpc.GetPeersResponse"; } + + protected: + explicit GetPeersResponse(::google::protobuf::Arena* arena); + GetPeersResponse(::google::protobuf::Arena* arena, const GetPeersResponse& from); + 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, + }; + // .tari.rpc.Peer peer = 1; + bool has_peer() const; + void clear_peer() ; + const ::tari::rpc::Peer& peer() const; + PROTOBUF_NODISCARD ::tari::rpc::Peer* release_peer(); + ::tari::rpc::Peer* mutable_peer(); + void set_allocated_peer(::tari::rpc::Peer* value); + void unsafe_arena_set_allocated_peer(::tari::rpc::Peer* value); + ::tari::rpc::Peer* unsafe_arena_release_peer(); + + private: + const ::tari::rpc::Peer& _internal_peer() const; + ::tari::rpc::Peer* _internal_mutable_peer(); + + public: + // @@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, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + 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); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::Peer* peer_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_base_5fnode_2eproto; +}; +// ------------------------------------------------------------------- + +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; @@ -9107,9 +8744,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 { @@ -9141,22 +8778,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); @@ -9171,51 +8803,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, @@ -9333,7 +8966,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, @@ -9346,13 +8978,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_; @@ -9366,23 +8997,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; @@ -9390,9 +9019,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 { @@ -9424,22 +9053,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); @@ -9454,51 +9078,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, @@ -9616,7 +9241,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, @@ -9629,13 +9253,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_; @@ -9649,23 +9272,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; @@ -9673,9 +9294,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 { @@ -9707,22 +9328,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); @@ -9737,51 +9353,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, @@ -9899,7 +9516,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, @@ -9912,13 +9528,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_; @@ -9932,23 +9547,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; @@ -9956,9 +9569,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 { @@ -9990,22 +9603,17 @@ class GetSideChainUtxosResponse final : } static inline const GetSideChainUtxosResponse* internal_default_instance() { return reinterpret_cast( - &_GetSideChainUtxosResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 54; - - friend void swap(GetSideChainUtxosResponse& a, GetSideChainUtxosResponse& b) { - a.Swap(&b); + &_GetSideChainUtxosResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 54; + 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); @@ -10020,51 +9628,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, @@ -10077,16 +9686,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() ; @@ -10105,7 +9713,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, @@ -10118,13 +9725,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_; @@ -10133,23 +9739,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; @@ -10157,9 +9761,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 { @@ -10191,22 +9795,17 @@ class FetchMatchingUtxosResponse final : } static inline const FetchMatchingUtxosResponse* internal_default_instance() { return reinterpret_cast( - &_FetchMatchingUtxosResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - friend void swap(FetchMatchingUtxosResponse& a, FetchMatchingUtxosResponse& b) { - a.Swap(&b); + &_FetchMatchingUtxosResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 36; + 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); @@ -10221,51 +9820,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, }; @@ -10287,7 +9887,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, @@ -10300,13 +9899,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_; @@ -10314,23 +9912,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; @@ -10338,9 +9934,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 { @@ -10372,22 +9968,17 @@ class SubmitTransactionRequest final : } static inline const SubmitTransactionRequest* internal_default_instance() { return reinterpret_cast( - &_SubmitTransactionRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 39; - - friend void swap(SubmitTransactionRequest& a, SubmitTransactionRequest& b) { - a.Swap(&b); + &_SubmitTransactionRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 39; + 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); @@ -10402,51 +9993,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, }; @@ -10468,7 +10060,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, @@ -10481,13 +10072,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_; @@ -10495,23 +10085,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; @@ -10519,9 +10107,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 { @@ -10553,22 +10141,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); @@ -10583,51 +10166,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, @@ -10676,7 +10260,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, @@ -10689,13 +10272,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_; @@ -10705,23 +10287,21 @@ class NewBlockTemplateResponse final : }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetNewBlockWithCoinbasesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockWithCoinbasesRequest) */ { +class GetNewBlockWithCoinbasesRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockWithCoinbasesRequest) */ { public: inline GetNewBlockWithCoinbasesRequest() : GetNewBlockWithCoinbasesRequest(nullptr) {} ~GetNewBlockWithCoinbasesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetNewBlockWithCoinbasesRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetNewBlockWithCoinbasesRequest(const GetNewBlockWithCoinbasesRequest& from) - : GetNewBlockWithCoinbasesRequest(nullptr, from) {} - GetNewBlockWithCoinbasesRequest(GetNewBlockWithCoinbasesRequest&& from) noexcept - : GetNewBlockWithCoinbasesRequest() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GetNewBlockWithCoinbasesRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetNewBlockWithCoinbasesRequest(const GetNewBlockWithCoinbasesRequest& from) : GetNewBlockWithCoinbasesRequest(nullptr, from) {} + inline GetNewBlockWithCoinbasesRequest(GetNewBlockWithCoinbasesRequest&& from) noexcept + : GetNewBlockWithCoinbasesRequest(nullptr, std::move(from)) {} inline GetNewBlockWithCoinbasesRequest& operator=(const GetNewBlockWithCoinbasesRequest& from) { CopyFrom(from); return *this; @@ -10729,9 +10309,9 @@ class GetNewBlockWithCoinbasesRequest final : inline GetNewBlockWithCoinbasesRequest& operator=(GetNewBlockWithCoinbasesRequest&& 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 { @@ -10763,22 +10343,17 @@ class GetNewBlockWithCoinbasesRequest final : } static inline const GetNewBlockWithCoinbasesRequest* internal_default_instance() { return reinterpret_cast( - &_GetNewBlockWithCoinbasesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(GetNewBlockWithCoinbasesRequest& a, GetNewBlockWithCoinbasesRequest& b) { - a.Swap(&b); + &_GetNewBlockWithCoinbasesRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 12; + friend void swap(GetNewBlockWithCoinbasesRequest& a, GetNewBlockWithCoinbasesRequest& b) { a.Swap(&b); } inline void Swap(GetNewBlockWithCoinbasesRequest* 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); @@ -10793,51 +10368,52 @@ class GetNewBlockWithCoinbasesRequest final : // implements Message ---------------------------------------------- GetNewBlockWithCoinbasesRequest* 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 GetNewBlockWithCoinbasesRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetNewBlockWithCoinbasesRequest& from) { - GetNewBlockWithCoinbasesRequest::MergeImpl(*this, from); - } + void MergeFrom(const GetNewBlockWithCoinbasesRequest& from) { GetNewBlockWithCoinbasesRequest::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(GetNewBlockWithCoinbasesRequest* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.GetNewBlockWithCoinbasesRequest"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.GetNewBlockWithCoinbasesRequest"; } + + protected: explicit GetNewBlockWithCoinbasesRequest(::google::protobuf::Arena* arena); GetNewBlockWithCoinbasesRequest(::google::protobuf::Arena* arena, const GetNewBlockWithCoinbasesRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + GetNewBlockWithCoinbasesRequest(::google::protobuf::Arena* arena, GetNewBlockWithCoinbasesRequest&& from) noexcept + : GetNewBlockWithCoinbasesRequest(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 { kCoinbasesFieldNumber = 2, kNewTemplateFieldNumber = 1, @@ -10850,16 +10426,15 @@ class GetNewBlockWithCoinbasesRequest final : public: void clear_coinbases() ; ::tari::rpc::NewBlockCoinbase* mutable_coinbases(int index); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::NewBlockCoinbase >* - mutable_coinbases(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* mutable_coinbases(); + private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>& _internal_coinbases() const; ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* _internal_mutable_coinbases(); public: const ::tari::rpc::NewBlockCoinbase& coinbases(int index) const; ::tari::rpc::NewBlockCoinbase* add_coinbases(); - const ::google::protobuf::RepeatedPtrField< ::tari::rpc::NewBlockCoinbase >& - coinbases() const; + const ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>& coinbases() const; // .tari.rpc.NewBlockTemplate new_template = 1; bool has_new_template() const; void clear_new_template() ; @@ -10878,7 +10453,6 @@ class GetNewBlockWithCoinbasesRequest final : // @@protoc_insertion_point(class_scope:tari.rpc.GetNewBlockWithCoinbasesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 2, @@ -10891,13 +10465,12 @@ class GetNewBlockWithCoinbasesRequest 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::NewBlockCoinbase > coinbases_; @@ -10906,23 +10479,21 @@ class GetNewBlockWithCoinbasesRequest 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; @@ -10930,9 +10501,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 { @@ -10964,22 +10535,17 @@ class GetNewBlockResult final : } static inline const GetNewBlockResult* internal_default_instance() { return reinterpret_cast( - &_GetNewBlockResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - - friend void swap(GetNewBlockResult& a, GetNewBlockResult& b) { - a.Swap(&b); + &_GetNewBlockResult_default_instance_); } + static constexpr int kIndexInFileMessages = 30; + 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); @@ -10994,51 +10560,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, @@ -11127,7 +10694,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< 3, 5, 2, @@ -11140,13 +10706,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_; @@ -11158,23 +10723,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; @@ -11182,9 +10745,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 { @@ -11216,22 +10779,17 @@ class GetMempoolTransactionsResponse final : } static inline const GetMempoolTransactionsResponse* internal_default_instance() { return reinterpret_cast( - &_GetMempoolTransactionsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 42; - - friend void swap(GetMempoolTransactionsResponse& a, GetMempoolTransactionsResponse& b) { - a.Swap(&b); + &_GetMempoolTransactionsResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 42; + 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); @@ -11246,51 +10804,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, }; @@ -11312,7 +10871,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, @@ -11325,13 +10883,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_; @@ -11339,23 +10896,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; @@ -11363,9 +10918,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 { @@ -11397,22 +10952,17 @@ class GetBlocksResponse final : } static inline const GetBlocksResponse* internal_default_instance() { return reinterpret_cast( - &_GetBlocksResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(GetBlocksResponse& a, GetBlocksResponse& b) { - a.Swap(&b); + &_GetBlocksResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 26; + 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); @@ -11427,51 +10977,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, }; @@ -11483,20 +11034,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, @@ -11509,13 +11058,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 @@ -11554,7 +11102,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) } @@ -11569,12 +11116,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() { @@ -11611,7 +11156,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) } @@ -11626,12 +11170,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() { @@ -11664,7 +11206,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) } @@ -11679,12 +11220,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() { @@ -11717,7 +11256,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) } @@ -11732,12 +11270,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() { @@ -11770,7 +11306,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) } @@ -11785,12 +11320,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() { @@ -11867,14 +11400,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; @@ -11919,7 +11452,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; } @@ -11937,7 +11469,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) } @@ -11952,12 +11483,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() { @@ -11999,7 +11528,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; } @@ -12022,7 +11550,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; } @@ -12044,7 +11571,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) } @@ -12059,12 +11585,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() { @@ -12097,7 +11621,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) } @@ -12112,12 +11635,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() { @@ -12150,7 +11671,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) } @@ -12165,12 +11685,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() { @@ -12208,7 +11726,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; } @@ -12226,7 +11743,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) } @@ -12241,12 +11757,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() { @@ -12323,14 +11837,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; @@ -12370,7 +11884,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) } @@ -12385,12 +11898,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() { @@ -12427,7 +11938,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) } @@ -12442,12 +11952,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() { @@ -12514,8 +12022,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) { @@ -12542,7 +12050,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& @@ -12585,7 +12094,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) } @@ -12600,12 +12108,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() { @@ -12638,7 +12144,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) } @@ -12653,12 +12158,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() { @@ -12691,7 +12194,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) } @@ -12706,12 +12208,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() { @@ -12744,7 +12244,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) } @@ -12759,12 +12258,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() { @@ -12802,7 +12299,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; } @@ -12864,14 +12360,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; @@ -12911,7 +12407,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) } @@ -12926,12 +12421,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() { @@ -12968,7 +12461,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) } @@ -12983,12 +12475,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() { @@ -13025,7 +12515,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) } @@ -13040,12 +12529,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() { @@ -13078,7 +12565,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) } @@ -13093,12 +12579,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() { @@ -13184,14 +12668,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; @@ -13200,11 +12684,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); } @@ -13236,7 +12720,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; } @@ -13259,7 +12742,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; } @@ -13325,14 +12807,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; @@ -13377,7 +12859,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; } @@ -13444,14 +12925,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; @@ -13460,11 +12941,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); } @@ -13539,14 +13020,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; @@ -13591,7 +13072,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; } @@ -13657,14 +13137,14 @@ inline ::tari::rpc::PowAlgo* GetNewBlockTemplateWithCoinbasesRequest::unsafe_are } inline ::tari::rpc::PowAlgo* GetNewBlockTemplateWithCoinbasesRequest::_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* GetNewBlockTemplateWithCoinbasesRequest::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.GetNewBlockTemplateWithCoinbasesRequest.algo) return _msg; @@ -13709,7 +13189,6 @@ inline ::uint64_t GetNewBlockTemplateWithCoinbasesRequest::_internal_max_weight( } inline void GetNewBlockTemplateWithCoinbasesRequest::_internal_set_max_weight(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.max_weight_ = value; } @@ -13824,14 +13303,14 @@ inline ::tari::rpc::NewBlockTemplate* GetNewBlockWithCoinbasesRequest::unsafe_ar } inline ::tari::rpc::NewBlockTemplate* GetNewBlockWithCoinbasesRequest::_internal_mutable_new_template() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.new_template_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::NewBlockTemplate>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::NewBlockTemplate>(GetArena()); _impl_.new_template_ = reinterpret_cast<::tari::rpc::NewBlockTemplate*>(p); } return _impl_.new_template_; } inline ::tari::rpc::NewBlockTemplate* GetNewBlockWithCoinbasesRequest::mutable_new_template() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::NewBlockTemplate* _msg = _internal_mutable_new_template(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockWithCoinbasesRequest.new_template) return _msg; @@ -13924,7 +13403,6 @@ template inline PROTOBUF_ALWAYS_INLINE void NewBlockCoinbase::set_address(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.address_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NewBlockCoinbase.address) } @@ -13939,12 +13417,10 @@ inline const std::string& NewBlockCoinbase::_internal_address() const { } inline void NewBlockCoinbase::_internal_set_address(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.address_.Set(value, GetArena()); } inline std::string* NewBlockCoinbase::_internal_mutable_address() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.address_.Mutable( GetArena()); } inline std::string* NewBlockCoinbase::release_address() { @@ -13982,7 +13458,6 @@ inline ::uint64_t NewBlockCoinbase::_internal_value() const { } inline void NewBlockCoinbase::_internal_set_value(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.value_ = value; } @@ -14005,7 +13480,6 @@ inline bool NewBlockCoinbase::_internal_stealth_payment() const { } inline void NewBlockCoinbase::_internal_set_stealth_payment(bool value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.stealth_payment_ = value; } @@ -14028,7 +13502,6 @@ inline bool NewBlockCoinbase::_internal_revealed_value_proof() const { } inline void NewBlockCoinbase::_internal_set_revealed_value_proof(bool value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.revealed_value_proof_ = value; } @@ -14046,7 +13519,6 @@ template inline PROTOBUF_ALWAYS_INLINE void NewBlockCoinbase::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.NewBlockCoinbase.coinbase_extra) } @@ -14061,12 +13533,10 @@ inline const std::string& NewBlockCoinbase::_internal_coinbase_extra() const { } inline void NewBlockCoinbase::_internal_set_coinbase_extra(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.coinbase_extra_.Set(value, GetArena()); } inline std::string* NewBlockCoinbase::_internal_mutable_coinbase_extra() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.coinbase_extra_.Mutable( GetArena()); } inline std::string* NewBlockCoinbase::release_coinbase_extra() { @@ -14108,7 +13578,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; } @@ -14131,7 +13600,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; } @@ -14154,7 +13622,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; } @@ -14177,7 +13644,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; } @@ -14200,7 +13666,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; } @@ -14223,7 +13688,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; } @@ -14246,7 +13710,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; } @@ -14273,7 +13736,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; } @@ -14296,7 +13758,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; } @@ -14323,7 +13784,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; } @@ -14345,7 +13805,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) } @@ -14360,12 +13819,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() { @@ -14407,7 +13864,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; } @@ -14430,7 +13886,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; } @@ -14453,7 +13908,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; } @@ -14476,7 +13930,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; } @@ -14519,8 +13972,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_; } @@ -14548,7 +14001,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; } @@ -14575,7 +14027,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; } @@ -14598,7 +14049,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; } @@ -14621,7 +14071,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; } @@ -14648,7 +14097,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; } @@ -14671,7 +14119,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; } @@ -14694,7 +14141,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; } @@ -14716,7 +14162,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) } @@ -14731,12 +14176,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() { @@ -14817,14 +14260,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; @@ -14869,7 +14312,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; } @@ -14892,7 +14334,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; } @@ -14915,7 +14356,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; } @@ -14938,7 +14378,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; } @@ -14965,7 +14404,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; } @@ -14988,7 +14426,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; } @@ -15011,7 +14448,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; } @@ -15054,8 +14490,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_; } @@ -15136,7 +14572,6 @@ inline ::uint64_t MetaData::_internal_best_block_height() const { } inline void MetaData::_internal_set_best_block_height(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.best_block_height_ = value; } @@ -15154,7 +14589,6 @@ template inline PROTOBUF_ALWAYS_INLINE void MetaData::set_best_block_hash(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.best_block_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.MetaData.best_block_hash) } @@ -15169,12 +14603,10 @@ inline const std::string& MetaData::_internal_best_block_hash() const { } inline void MetaData::_internal_set_best_block_hash(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.best_block_hash_.Set(value, GetArena()); } inline std::string* MetaData::_internal_mutable_best_block_hash() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.best_block_hash_.Mutable( GetArena()); } inline std::string* MetaData::release_best_block_hash() { @@ -15212,7 +14644,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; } @@ -15230,7 +14661,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) } @@ -15245,12 +14675,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() { @@ -15292,7 +14720,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; } @@ -15315,7 +14742,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; } @@ -15367,8 +14793,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) { @@ -15395,7 +14821,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& @@ -15443,7 +14870,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; } @@ -15466,7 +14892,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; } @@ -15489,7 +14914,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; } @@ -15511,7 +14935,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) } @@ -15526,12 +14949,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() { @@ -15608,14 +15029,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; @@ -15655,7 +15076,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) } @@ -15670,12 +15090,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() { @@ -15708,7 +15126,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_tari_unique_id(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.tari_unique_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockResult.tari_unique_id) } @@ -15723,12 +15140,10 @@ inline const std::string& GetNewBlockResult::_internal_tari_unique_id() const { } inline void GetNewBlockResult::_internal_set_tari_unique_id(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.tari_unique_id_.Set(value, GetArena()); } inline std::string* GetNewBlockResult::_internal_mutable_tari_unique_id() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.tari_unique_id_.Mutable( GetArena()); } inline std::string* GetNewBlockResult::release_tari_unique_id() { @@ -15810,14 +15225,14 @@ inline ::tari::rpc::MinerData* GetNewBlockResult::unsafe_arena_release_miner_dat } inline ::tari::rpc::MinerData* GetNewBlockResult::_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* GetNewBlockResult::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.GetNewBlockResult.miner_data) return _msg; @@ -15826,11 +15241,11 @@ inline void GetNewBlockResult::set_allocated_miner_data(::tari::rpc::MinerData* ::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); } @@ -15861,7 +15276,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) } @@ -15876,12 +15290,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() { @@ -15914,7 +15326,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) } @@ -15929,12 +15340,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() { @@ -15967,7 +15376,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) } @@ -15982,12 +15390,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() { @@ -16020,7 +15426,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) } @@ -16035,12 +15440,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() { @@ -16073,7 +15476,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) } @@ -16088,12 +15490,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() { @@ -16126,7 +15526,6 @@ template inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_tari_unique_id(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.tari_unique_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.tari_unique_id) } @@ -16141,12 +15540,10 @@ inline const std::string& GetNewBlockBlobResult::_internal_tari_unique_id() cons } inline void GetNewBlockBlobResult::_internal_set_tari_unique_id(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.tari_unique_id_.Set(value, GetArena()); } inline std::string* GetNewBlockBlobResult::_internal_mutable_tari_unique_id() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; return _impl_.tari_unique_id_.Mutable( GetArena()); } inline std::string* GetNewBlockBlobResult::release_tari_unique_id() { @@ -16227,14 +15624,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; @@ -16279,7 +15676,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; } @@ -16302,7 +15698,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; } @@ -16325,7 +15720,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; } @@ -16430,8 +15824,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) { @@ -16458,7 +15852,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& @@ -16535,8 +15930,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) { @@ -16563,7 +15958,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& @@ -16650,14 +16046,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; @@ -16745,14 +16141,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; @@ -16844,14 +16240,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; @@ -16900,7 +16296,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; } @@ -16970,14 +16365,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; @@ -17065,14 +16460,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; @@ -17121,7 +16516,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; } @@ -17148,7 +16542,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; } @@ -17171,7 +16564,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; } @@ -17194,7 +16586,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; } @@ -17221,7 +16612,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; } @@ -17243,7 +16633,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) } @@ -17258,12 +16647,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() { @@ -17296,7 +16683,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) } @@ -17311,12 +16697,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() { @@ -17358,7 +16742,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; } @@ -17376,7 +16759,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) } @@ -17391,12 +16773,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() { @@ -17433,7 +16813,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) } @@ -17448,12 +16827,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() { @@ -17491,7 +16868,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; } @@ -17513,7 +16889,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) } @@ -17528,12 +16903,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() { @@ -17571,7 +16944,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; } @@ -17593,7 +16965,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) } @@ -17608,12 +16979,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() { @@ -17690,14 +17059,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; @@ -17746,7 +17115,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; } @@ -17764,7 +17132,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) } @@ -17779,12 +17146,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() { @@ -17817,7 +17182,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) } @@ -17832,12 +17196,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() { @@ -17874,7 +17236,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) } @@ -17889,12 +17250,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() { @@ -17932,7 +17291,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; } @@ -18003,14 +17361,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; @@ -18019,11 +17377,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..d623926 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.1 #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..eb542e4 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.1 #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 != 5026001 +#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 4f52091..d134d22 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.1 #include "network.pb.h" @@ -242,118 +243,119 @@ static ::_pb::Metadata file_level_metadata_network_2eproto[9]; 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_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_._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, - ~0u, - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::AverageLatency, _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::AverageLatency, _impl_.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_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_._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, + ~0u, + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::tari::rpc::AverageLatency, _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::AverageLatency, _impl_.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)}, @@ -364,7 +366,6 @@ static const ::_pbi::MigrationSchema {87, -1, -1, sizeof(::tari::rpc::GetIdentityRequest)}, {95, -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, @@ -376,7 +377,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" @@ -441,9 +443,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() { @@ -509,6 +508,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); @@ -543,6 +556,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; @@ -640,15 +656,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) @@ -677,9 +686,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(); @@ -691,9 +697,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]); } // =================================================================== @@ -770,6 +776,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); @@ -810,6 +830,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; @@ -915,11 +938,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; @@ -999,8 +1025,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()); @@ -1065,15 +1090,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) @@ -1097,19 +1115,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_); } @@ -1125,9 +1143,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(); @@ -1148,9 +1163,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]); } // =================================================================== @@ -1192,6 +1207,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); @@ -1226,6 +1255,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; @@ -1321,15 +1353,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) @@ -1338,13 +1363,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_); } @@ -1360,9 +1385,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_); @@ -1375,9 +1397,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]); } // =================================================================== @@ -1386,15 +1408,8 @@ class Address::_Internal { using HasBits = decltype(std::declval
()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Address, _impl_._has_bits_); - static const ::tari::rpc::AverageLatency& avg_latency(const Address* msg); - static void set_has_avg_latency(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::tari::rpc::AverageLatency& Address::_Internal::avg_latency(const Address* msg) { - return *msg->_impl_.avg_latency_; -} Address::Address(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); @@ -1418,9 +1433,9 @@ Address::Address( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.avg_latency_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::tari::rpc::AverageLatency>(arena, *from._impl_.avg_latency_) - : nullptr; + _impl_.avg_latency_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::AverageLatency>( + arena, *from._impl_.avg_latency_) + : nullptr; _impl_.connection_attempts_ = from._impl_.connection_attempts_; // @@protoc_insertion_point(copy_constructor:tari.rpc.Address) @@ -1454,6 +1469,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); @@ -1494,6 +1523,9 @@ const ::_pbi::TcParseTable<3, 4, 1, 34, 2> Address::_table_ = { offsetof(decltype(_table_), 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; @@ -1567,8 +1599,7 @@ const ::_pbi::TcParseTable<3, 4, 1, 34, 2> Address::_table_ = { // .tari.rpc.AverageLatency avg_latency = 5; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, _Internal::avg_latency(this), - _Internal::avg_latency(this).GetCachedSize(), target, stream); + 5, *_impl_.avg_latency_, _impl_.avg_latency_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1616,17 +1647,11 @@ const ::_pbi::TcParseTable<3, 4, 1, 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); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:tari.rpc.Address) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -1638,13 +1663,20 @@ void Address::MergeImpl(::google::protobuf::Message& to_msg, const ::google::pro if (!from._internal_last_seen().empty()) { _this->_internal_set_last_seen(from._internal_last_seen()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_avg_latency()->::tari::rpc::AverageLatency::MergeFrom( - from._internal_avg_latency()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.avg_latency_ != nullptr); + if (_this->_impl_.avg_latency_ == nullptr) { + _this->_impl_.avg_latency_ = + ::google::protobuf::Message::CopyConstruct<::tari::rpc::AverageLatency>(arena, *from._impl_.avg_latency_); + } else { + _this->_impl_.avg_latency_->MergeFrom(*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->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1659,9 +1691,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(); @@ -1679,9 +1708,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]); } // =================================================================== @@ -1718,6 +1747,20 @@ inline void AverageLatency::SharedDtor() { _impl_.~Impl_(); } +const ::google::protobuf::MessageLite::ClassData* +AverageLatency::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(AverageLatency, _impl_._cached_size_), + false, + }, + &AverageLatency::MergeImpl, + &AverageLatency::kDescriptorMethods, + }; + return &_data_; +} PROTOBUF_NOINLINE void AverageLatency::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.AverageLatency) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); @@ -1750,6 +1793,9 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AverageLatency::_table_ = { offsetof(decltype(_table_), field_names), // no aux_entries &_AverageLatency_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::AverageLatency>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 latency = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AverageLatency, _impl_.latency_), 63>(), @@ -1806,15 +1852,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AverageLatency::_table_ = { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData AverageLatency::_class_data_ = { - AverageLatency::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AverageLatency::GetClassData() const { - return &_class_data_; -} -void AverageLatency::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +void AverageLatency::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.AverageLatency) @@ -1823,7 +1862,7 @@ void AverageLatency::MergeImpl(::google::protobuf::Message& to_msg, const ::goog (void) cached_has_bits; if (from._internal_latency() != 0) { - _this->_internal_set_latency(from._internal_latency()); + _this->_impl_.latency_ = from._impl_.latency_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1839,9 +1878,6 @@ PROTOBUF_NOINLINE bool AverageLatency::IsInitialized() const { return true; } -::_pbi::CachedSize* AverageLatency::AccessCachedSize() const { - return &_impl_._cached_size_; -} void AverageLatency::InternalSwap(AverageLatency* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1849,9 +1885,9 @@ void AverageLatency::InternalSwap(AverageLatency* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata AverageLatency::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]); } // =================================================================== @@ -1901,6 +1937,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); @@ -1933,6 +1983,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, @@ -1957,11 +2010,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())) { @@ -1984,21 +2040,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) @@ -2022,9 +2070,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_); @@ -2032,9 +2077,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[5]); + return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, + &descriptor_table_network_2eproto_once, + file_level_metadata_network_2eproto[5]); } // =================================================================== @@ -2093,6 +2138,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); @@ -2128,6 +2187,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, @@ -2248,15 +2310,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) @@ -2274,7 +2329,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_); } @@ -2290,9 +2345,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(); @@ -2305,9 +2357,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[6]); + return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, + &descriptor_table_network_2eproto_once, + file_level_metadata_network_2eproto[6]); } // =================================================================== @@ -2340,9 +2392,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[7]); + return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, + &descriptor_table_network_2eproto_once, + file_level_metadata_network_2eproto[7]); } // =================================================================== @@ -2399,6 +2451,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); @@ -2433,6 +2499,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; @@ -2530,15 +2599,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) @@ -2569,9 +2631,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(); @@ -2583,9 +2642,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[8]); + return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, + &descriptor_table_network_2eproto_once, + file_level_metadata_network_2eproto[8]); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -2595,4 +2654,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 df6eaeb..28b4662 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.1 #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 != 5026001 +#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" @@ -137,21 +131,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; @@ -159,9 +150,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 { @@ -193,22 +184,17 @@ class SoftwareUpdate final : } static inline const SoftwareUpdate* internal_default_instance() { return reinterpret_cast( - &_SoftwareUpdate_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(SoftwareUpdate& a, SoftwareUpdate& b) { - a.Swap(&b); + &_SoftwareUpdate_default_instance_); } + static constexpr int kIndexInFileMessages = 6; + 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); @@ -223,51 +209,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, @@ -335,7 +322,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, @@ -348,13 +334,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_; @@ -364,23 +349,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; @@ -388,9 +371,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 { @@ -422,22 +405,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); @@ -452,51 +430,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, @@ -565,7 +544,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, @@ -578,13 +556,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_; @@ -593,23 +570,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; @@ -617,9 +592,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 { @@ -651,22 +626,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); @@ -681,51 +651,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, @@ -764,7 +735,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, @@ -777,13 +747,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_; @@ -792,23 +761,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; @@ -816,9 +783,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 { @@ -850,22 +817,17 @@ class GetIdentityResponse final : } static inline const GetIdentityResponse* internal_default_instance() { return reinterpret_cast( - &_GetIdentityResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(GetIdentityResponse& a, GetIdentityResponse& b) { - a.Swap(&b); + &_GetIdentityResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 8; + 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); @@ -880,51 +842,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, @@ -981,7 +944,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, @@ -994,13 +956,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_; @@ -1009,22 +970,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; @@ -1032,9 +991,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 { @@ -1066,22 +1025,17 @@ class GetIdentityRequest final : } static inline const GetIdentityRequest* internal_default_instance() { return reinterpret_cast( - &_GetIdentityRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(GetIdentityRequest& a, GetIdentityRequest& b) { - a.Swap(&b); + &_GetIdentityRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 7; + 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); @@ -1096,7 +1050,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) { @@ -1106,28 +1060,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 @@ -1135,33 +1089,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 AverageLatency final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.AverageLatency) */ { +class AverageLatency final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.AverageLatency) */ { public: inline AverageLatency() : AverageLatency(nullptr) {} ~AverageLatency() override; - template - explicit PROTOBUF_CONSTEXPR AverageLatency(::google::protobuf::internal::ConstantInitialized); - - inline AverageLatency(const AverageLatency& from) - : AverageLatency(nullptr, from) {} - AverageLatency(AverageLatency&& from) noexcept - : AverageLatency() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR AverageLatency( + ::google::protobuf::internal::ConstantInitialized); + inline AverageLatency(const AverageLatency& from) : AverageLatency(nullptr, from) {} + inline AverageLatency(AverageLatency&& from) noexcept + : AverageLatency(nullptr, std::move(from)) {} inline AverageLatency& operator=(const AverageLatency& from) { CopyFrom(from); return *this; @@ -1169,9 +1120,9 @@ class AverageLatency final : inline AverageLatency& operator=(AverageLatency&& 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 { @@ -1203,22 +1154,17 @@ class AverageLatency final : } static inline const AverageLatency* internal_default_instance() { return reinterpret_cast( - &_AverageLatency_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(AverageLatency& a, AverageLatency& b) { - a.Swap(&b); + &_AverageLatency_default_instance_); } + static constexpr int kIndexInFileMessages = 4; + friend void swap(AverageLatency& a, AverageLatency& b) { a.Swap(&b); } inline void Swap(AverageLatency* 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); @@ -1233,51 +1179,52 @@ class AverageLatency final : // implements Message ---------------------------------------------- AverageLatency* 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 AverageLatency& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AverageLatency& from) { - AverageLatency::MergeImpl(*this, from); - } + void MergeFrom(const AverageLatency& from) { AverageLatency::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(AverageLatency* other); - - private: + private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "tari.rpc.AverageLatency"; - } - protected: + static ::absl::string_view FullMessageName() { return "tari.rpc.AverageLatency"; } + + protected: explicit AverageLatency(::google::protobuf::Arena* arena); AverageLatency(::google::protobuf::Arena* arena, const AverageLatency& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; + AverageLatency(::google::protobuf::Arena* arena, AverageLatency&& from) noexcept + : AverageLatency(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 { kLatencyFieldNumber = 1, }; @@ -1294,7 +1241,6 @@ class AverageLatency final : // @@protoc_insertion_point(class_scope:tari.rpc.AverageLatency) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, @@ -1307,36 +1253,33 @@ class AverageLatency 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 latency_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; 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; @@ -1344,9 +1287,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 { @@ -1378,22 +1321,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); @@ -1408,51 +1346,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, @@ -1519,7 +1458,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, 1, @@ -1532,13 +1470,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::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr address_; @@ -1549,23 +1486,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; @@ -1573,9 +1508,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 { @@ -1607,22 +1542,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); @@ -1637,51 +1567,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, @@ -1703,16 +1634,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: @@ -1858,7 +1788,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, @@ -1871,13 +1800,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_; @@ -1894,23 +1822,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; @@ -1918,9 +1844,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 { @@ -1952,22 +1878,17 @@ class ListConnectedPeersResponse final : } static inline const ListConnectedPeersResponse* internal_default_instance() { return reinterpret_cast( - &_ListConnectedPeersResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(ListConnectedPeersResponse& a, ListConnectedPeersResponse& b) { - a.Swap(&b); + &_ListConnectedPeersResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 5; + 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); @@ -1982,51 +1903,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, }; @@ -2038,20 +1960,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, @@ -2064,13 +1984,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 @@ -2109,7 +2028,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) } @@ -2124,12 +2042,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() { @@ -2196,8 +2112,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) { @@ -2224,7 +2140,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& @@ -2263,7 +2180,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) } @@ -2278,12 +2194,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() { @@ -2320,7 +2234,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) } @@ -2335,12 +2248,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() { @@ -2373,7 +2284,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) } @@ -2388,12 +2298,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() { @@ -2480,7 +2388,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; } @@ -2503,7 +2410,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; } @@ -2526,7 +2432,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; } @@ -2544,7 +2449,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) } @@ -2559,12 +2463,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() { @@ -2602,7 +2504,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; } @@ -2625,7 +2526,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; } @@ -2677,8 +2577,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) { @@ -2705,7 +2605,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& @@ -2744,7 +2645,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) } @@ -2759,12 +2659,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() { @@ -2806,7 +2704,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; } @@ -2829,7 +2726,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; } @@ -2852,7 +2748,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; } @@ -2874,7 +2769,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) } @@ -2889,12 +2783,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() { @@ -2927,7 +2819,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) } @@ -2942,12 +2833,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() { @@ -2985,7 +2874,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; } @@ -3052,14 +2940,14 @@ inline ::tari::rpc::AverageLatency* Address::unsafe_arena_release_avg_latency() } inline ::tari::rpc::AverageLatency* Address::_internal_mutable_avg_latency() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.avg_latency_ == nullptr) { - auto* p = CreateMaybeMessage<::tari::rpc::AverageLatency>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::AverageLatency>(GetArena()); _impl_.avg_latency_ = reinterpret_cast<::tari::rpc::AverageLatency*>(p); } return _impl_.avg_latency_; } inline ::tari::rpc::AverageLatency* Address::mutable_avg_latency() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::tari::rpc::AverageLatency* _msg = _internal_mutable_avg_latency(); // @@protoc_insertion_point(field_mutable:tari.rpc.Address.avg_latency) return _msg; @@ -3068,11 +2956,11 @@ inline void Address::set_allocated_avg_latency(::tari::rpc::AverageLatency* valu ::google::protobuf::Arena* message_arena = GetArena(); PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete reinterpret_cast<::tari::rpc::AverageLatency*>(_impl_.avg_latency_); + delete (_impl_.avg_latency_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::AverageLatency*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3108,7 +2996,6 @@ inline ::uint64_t AverageLatency::_internal_latency() const { } inline void AverageLatency::_internal_set_latency(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.latency_ = value; } @@ -3188,7 +3075,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; } @@ -3206,7 +3092,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) } @@ -3221,12 +3106,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() { @@ -3259,7 +3142,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) } @@ -3274,12 +3156,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() { @@ -3312,7 +3192,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) } @@ -3327,12 +3206,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() { @@ -3373,7 +3250,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) } @@ -3388,12 +3264,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() { @@ -3426,7 +3300,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) } @@ -3441,12 +3314,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() { @@ -3479,7 +3350,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) } @@ -3494,12 +3364,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..7c351e9 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.1 #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..c7e4121 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.1 #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 != 5026001 +#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..0c47e42 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.1 #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..20ac1f4 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.1 #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 != 5026001 +#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 3644edc..5f2784d 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.1 #include "types.pb.h" @@ -333,213 +334,214 @@ 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_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.inflation_bips_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.tail_epoch_length_), - ~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, - ~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_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.inflation_bips_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.tail_epoch_length_), + ~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, + ~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)}, @@ -554,7 +556,6 @@ static const ::_pbi::MigrationSchema {115, 125, -1, sizeof(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse)}, {127, 168, -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, @@ -570,7 +571,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" @@ -665,9 +667,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() { @@ -728,6 +727,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); @@ -762,6 +775,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>(), @@ -837,15 +853,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) @@ -854,10 +863,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_); } @@ -873,9 +882,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_); @@ -888,9 +894,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]); } // =================================================================== @@ -923,9 +929,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]); } // =================================================================== @@ -962,6 +968,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); @@ -994,6 +1014,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>(), @@ -1050,15 +1073,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) @@ -1067,7 +1083,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_); } @@ -1083,9 +1099,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_); @@ -1093,9 +1106,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]); } // =================================================================== @@ -1149,6 +1162,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); @@ -1182,6 +1209,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, @@ -1255,15 +1285,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) @@ -1291,9 +1314,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(); @@ -1304,9 +1324,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]); } // =================================================================== @@ -1369,6 +1389,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); @@ -1405,6 +1439,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; @@ -1535,15 +1572,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) @@ -1580,9 +1610,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(); @@ -1596,9 +1623,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]); } // =================================================================== @@ -1655,6 +1682,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); @@ -1689,6 +1730,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; @@ -1781,15 +1825,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) @@ -1820,9 +1857,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(); @@ -1834,9 +1868,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]); } // =================================================================== @@ -1878,6 +1912,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); @@ -1912,6 +1960,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>(), @@ -2007,15 +2058,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) @@ -2024,13 +2068,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_); } @@ -2046,9 +2090,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_); @@ -2061,9 +2102,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]); } // =================================================================== @@ -2105,6 +2146,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); @@ -2139,6 +2194,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>(), @@ -2252,15 +2310,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) @@ -2269,16 +2320,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_); } @@ -2294,9 +2345,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_); @@ -2309,9 +2357,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]); } // =================================================================== @@ -2320,22 +2368,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); @@ -2357,12 +2391,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) } @@ -2392,6 +2426,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); @@ -2435,6 +2483,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, @@ -2469,15 +2520,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())) { @@ -2515,17 +2564,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; @@ -2534,14 +2577,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_); } @@ -2556,9 +2610,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_); @@ -2572,9 +2623,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]); } // =================================================================== @@ -2628,6 +2679,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); @@ -2661,6 +2726,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, @@ -2749,15 +2817,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) @@ -2767,7 +2828,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_); } @@ -2783,9 +2844,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_); @@ -2794,9 +2852,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]); } // =================================================================== @@ -2847,6 +2905,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); @@ -2879,6 +2951,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, @@ -2934,15 +3009,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) @@ -2967,9 +3035,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(); @@ -2979,9 +3044,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]); } // =================================================================== @@ -2989,9 +3054,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]); } // =================================================================== @@ -3000,43 +3065,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); @@ -3064,21 +3094,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_) + @@ -3124,6 +3154,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); @@ -3186,6 +3230,9 @@ const ::_pbi::TcParseTable<5, 33, 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; @@ -3381,7 +3428,7 @@ const ::_pbi::TcParseTable<5, 33, 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>()}, @@ -3532,8 +3579,7 @@ const ::_pbi::TcParseTable<5, 33, 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; @@ -3567,29 +3613,25 @@ const ::_pbi::TcParseTable<5, 33, 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; @@ -3630,11 +3672,14 @@ const ::_pbi::TcParseTable<5, 33, 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); } // uint64 inflation_bips = 35; @@ -3708,8 +3753,7 @@ const ::_pbi::TcParseTable<5, 33, 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) { @@ -3891,17 +3935,11 @@ const ::_pbi::TcParseTable<5, 33, 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; @@ -3915,98 +3953,124 @@ 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_inflation_bips() != 0) { - _this->_internal_set_inflation_bips(from._internal_inflation_bips()); + _this->_impl_.inflation_bips_ = from._impl_.inflation_bips_; } if (from._internal_tail_epoch_length() != 0) { - _this->_internal_set_tail_epoch_length(from._internal_tail_epoch_length()); + _this->_impl_.tail_epoch_length_ = from._impl_.tail_epoch_length_; } 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_); } @@ -4021,9 +4085,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_); @@ -4041,9 +4102,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 @@ -4053,4 +4114,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 8b96eb7..dddc367 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.1 #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 != 5026001 +#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, @@ -2591,16 +2489,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() ; @@ -2919,7 +2816,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, 33, 8, @@ -2932,13 +2828,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_; @@ -3020,7 +2915,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; } @@ -3043,7 +2937,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; } @@ -3074,7 +2967,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; } @@ -3096,7 +2988,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) } @@ -3111,12 +3002,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() { @@ -3149,7 +3038,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) } @@ -3164,12 +3052,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() { @@ -3206,7 +3092,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) } @@ -3221,12 +3106,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() { @@ -3259,7 +3142,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) } @@ -3274,12 +3156,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() { @@ -3312,7 +3192,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) } @@ -3327,12 +3206,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() { @@ -3365,7 +3242,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) } @@ -3380,12 +3256,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() { @@ -3418,7 +3292,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) } @@ -3433,12 +3306,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() { @@ -3475,7 +3346,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) } @@ -3490,12 +3360,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() { @@ -3528,7 +3396,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) } @@ -3543,12 +3410,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() { @@ -3581,7 +3446,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) } @@ -3596,12 +3460,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() { @@ -3643,7 +3505,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; } @@ -3666,7 +3527,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; } @@ -3689,7 +3549,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; } @@ -3716,7 +3575,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; } @@ -3739,7 +3597,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; } @@ -3762,7 +3619,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; } @@ -3785,7 +3641,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; } @@ -3856,14 +3711,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; @@ -3872,11 +3727,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); } @@ -3952,14 +3807,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; @@ -3968,11 +3823,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); } @@ -4008,7 +3863,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; } @@ -4047,7 +3901,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_; } @@ -4074,7 +3929,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) } @@ -4089,12 +3943,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() { @@ -4138,7 +3990,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; } @@ -4161,7 +4012,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; } @@ -4184,7 +4034,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; } @@ -4207,7 +4056,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; } @@ -4230,7 +4078,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; } @@ -4253,7 +4100,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; } @@ -4276,7 +4122,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; } @@ -4299,7 +4144,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; } @@ -4338,8 +4182,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_; } @@ -4367,7 +4211,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; } @@ -4390,7 +4233,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; } @@ -4413,7 +4255,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; } @@ -4436,7 +4277,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; } @@ -4459,7 +4299,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; } @@ -4482,7 +4321,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; } @@ -4505,7 +4343,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; } @@ -4528,7 +4365,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; } @@ -4551,7 +4387,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; } @@ -4618,14 +4453,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; @@ -4634,11 +4469,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); } @@ -4670,7 +4505,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; } @@ -4765,14 +4599,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; @@ -4781,11 +4615,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); } @@ -4861,14 +4695,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; @@ -4877,11 +4711,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); } @@ -4957,14 +4791,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; @@ -4973,11 +4807,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); } @@ -5053,14 +4887,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; @@ -5069,11 +4903,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); } @@ -5121,7 +4955,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_; } @@ -5149,7 +4984,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; } @@ -5172,7 +5006,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; } @@ -5195,7 +5028,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; } @@ -5218,7 +5050,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; } @@ -5290,7 +5121,6 @@ inline ::uint64_t ConsensusConstants::_internal_inflation_bips() const { } inline void ConsensusConstants::_internal_set_inflation_bips(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.inflation_bips_ = value; } @@ -5313,7 +5143,6 @@ inline ::uint64_t ConsensusConstants::_internal_tail_epoch_length() const { } inline void ConsensusConstants::_internal_set_tail_epoch_length(::uint64_t value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; _impl_.tail_epoch_length_ = value; } diff --git a/external/src/grpc b/external/src/grpc index 783e600..2a179e5 160000 --- a/external/src/grpc +++ b/external/src/grpc @@ -1 +1 @@ -Subproject commit 783e600967a2e3f2d89369860361ded673b1b41c +Subproject commit 2a179e51d66b2272515215013383e0d6dff05342 diff --git a/patches/msys2/gcc14_boringssl.patch b/patches/msys2/gcc14_boringssl.patch deleted file mode 100644 index f5d453d..0000000 --- a/patches/msys2/gcc14_boringssl.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/src/crypto/internal.h b/src/crypto/internal.h -index a77102d76..30d6826dd 100644 ---- a/src/crypto/internal.h -+++ b/src/crypto/internal.h -@@ -1176,7 +1176,7 @@ static inline uint64_t CRYPTO_rotr_u64(uint64_t value, int shift) { - - // CRYPTO_addc_* returns |x + y + carry|, and sets |*out_carry| to the carry - // bit. |carry| must be zero or one. --#if OPENSSL_HAS_BUILTIN(__builtin_addc) -+#if OPENSSL_HAS_BUILTIN(__builtin_addc) && !defined(__cplusplus) - - #define CRYPTO_GENERIC_ADDC(x, y, carry, out_carry) \ - (_Generic((x), \ -@@ -1228,7 +1228,7 @@ static inline uint64_t CRYPTO_addc_u64(uint64_t x, uint64_t y, uint64_t carry, - - // CRYPTO_subc_* returns |x - y - borrow|, and sets |*out_borrow| to the borrow - // bit. |borrow| must be zero or one. --#if OPENSSL_HAS_BUILTIN(__builtin_subc) -+#if OPENSSL_HAS_BUILTIN(__builtin_subc) && !defined(__cplusplus) - - #define CRYPTO_GENERIC_SUBC(x, y, borrow, out_borrow) \ - (_Generic((x), \ diff --git a/tests/src/check_win7.py b/tests/src/check_win7.py index fc80355..9b61653 100644 --- a/tests/src/check_win7.py +++ b/tests/src/check_win7.py @@ -285,6 +285,12 @@ allowedAPIs = { "InitOnceBeginInitialize", "BCryptOpenAlgorithmProvider", "BCryptCloseAlgorithmProvider", + "CertOpenSystemStoreW", + "CertEnumCertificatesInStore", + "CertCloseStore", + "CryptBinaryToStringW", + "DeleteFileA", + "GetFileAttributesA", } f = open(sys.argv[1], 'r')