diff --git a/external/src/Tari/proto/gRPC/README.md b/external/src/Tari/proto/gRPC/README.md new file mode 100644 index 0000000..934dd55 --- /dev/null +++ b/external/src/Tari/proto/gRPC/README.md @@ -0,0 +1,4 @@ +To update the files: + +- Build gRPC in `../../../grpc/.build` folder: `cmake .. && make -j$(nproc)` +- Run `../../../grpc/.build/third_party/protobuf/protoc --cpp_out=. --plugin=protoc-gen-grpc=../../../grpc/.build/grpc_cpp_plugin --grpc_out=. --proto_path=../../../grpc/third_party/protobuf/src --proto_path=. *.proto` \ No newline at end of file diff --git a/external/src/Tari/proto/gRPC/base_node.grpc.pb.cc b/external/src/Tari/proto/gRPC/base_node.grpc.pb.cc index 3050111..42805e5 100644 --- a/external/src/Tari/proto/gRPC/base_node.grpc.pb.cc +++ b/external/src/Tari/proto/gRPC/base_node.grpc.pb.cc @@ -19,6 +19,7 @@ #include #include #include +#include namespace tari { namespace rpc { @@ -56,10 +57,13 @@ static const char* BaseNode_method_names[] = { "/tari.rpc.BaseNode/ListConnectedPeers", "/tari.rpc.BaseNode/GetMempoolStats", "/tari.rpc.BaseNode/GetActiveValidatorNodes", + "/tari.rpc.BaseNode/GetValidatorNodeChanges", "/tari.rpc.BaseNode/GetShardKey", "/tari.rpc.BaseNode/GetTemplateRegistrations", "/tari.rpc.BaseNode/GetSideChainUtxos", "/tari.rpc.BaseNode/GetNetworkState", + "/tari.rpc.BaseNode/SearchPaymentReferences", + "/tari.rpc.BaseNode/SearchPaymentReferencesViaOutputHash", }; std::unique_ptr< BaseNode::Stub> BaseNode::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -102,10 +106,13 @@ BaseNode::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, , rpcmethod_ListConnectedPeers_(BaseNode_method_names[30], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetMempoolStats_(BaseNode_method_names[31], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetActiveValidatorNodes_(BaseNode_method_names[32], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_GetShardKey_(BaseNode_method_names[33], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetTemplateRegistrations_(BaseNode_method_names[34], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_GetSideChainUtxos_(BaseNode_method_names[35], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_GetNetworkState_(BaseNode_method_names[36], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetValidatorNodeChanges_(BaseNode_method_names[33], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetShardKey_(BaseNode_method_names[34], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTemplateRegistrations_(BaseNode_method_names[35], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_GetSideChainUtxos_(BaseNode_method_names[36], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_GetNetworkState_(BaseNode_method_names[37], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SearchPaymentReferences_(BaseNode_method_names[38], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_SearchPaymentReferencesViaOutputHash_(BaseNode_method_names[39], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) {} ::grpc::ClientReader< ::tari::rpc::BlockHeaderResponse>* BaseNode::Stub::ListHeadersRaw(::grpc::ClientContext* context, const ::tari::rpc::ListHeadersRequest& request) { @@ -255,23 +262,23 @@ void BaseNode::Stub::async::GetBlockFees(::grpc::ClientContext* context, const : return result; } -::grpc::Status BaseNode::Stub::GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::tari::rpc::StringValue* response) { - return ::grpc::internal::BlockingUnaryCall< ::tari::rpc::Empty, ::tari::rpc::StringValue, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetVersion_, context, request, response); +::grpc::Status BaseNode::Stub::GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::tari::rpc::BaseNodeGetVersionResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::tari::rpc::Empty, ::tari::rpc::BaseNodeGetVersionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetVersion_, context, request, response); } -void BaseNode::Stub::async::GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::StringValue* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::tari::rpc::Empty, ::tari::rpc::StringValue, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, std::move(f)); +void BaseNode::Stub::async::GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::BaseNodeGetVersionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::tari::rpc::Empty, ::tari::rpc::BaseNodeGetVersionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, std::move(f)); } -void BaseNode::Stub::async::GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::StringValue* response, ::grpc::ClientUnaryReactor* reactor) { +void BaseNode::Stub::async::GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::BaseNodeGetVersionResponse* response, ::grpc::ClientUnaryReactor* reactor) { ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::tari::rpc::StringValue>* BaseNode::Stub::PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::tari::rpc::StringValue, ::tari::rpc::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetVersion_, context, request); +::grpc::ClientAsyncResponseReader< ::tari::rpc::BaseNodeGetVersionResponse>* BaseNode::Stub::PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::tari::rpc::BaseNodeGetVersionResponse, ::tari::rpc::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetVersion_, context, request); } -::grpc::ClientAsyncResponseReader< ::tari::rpc::StringValue>* BaseNode::Stub::AsyncGetVersionRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::tari::rpc::BaseNodeGetVersionResponse>* BaseNode::Stub::AsyncGetVersionRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { auto* result = this->PrepareAsyncGetVersionRaw(context, request, cq); result->StartCall(); @@ -797,6 +804,29 @@ void BaseNode::Stub::async::GetActiveValidatorNodes(::grpc::ClientContext* conte return ::grpc::internal::ClientAsyncReaderFactory< ::tari::rpc::GetActiveValidatorNodesResponse>::Create(channel_.get(), cq, rpcmethod_GetActiveValidatorNodes_, context, request, false, nullptr); } +::grpc::Status BaseNode::Stub::GetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::tari::rpc::GetValidatorNodeChangesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::tari::rpc::GetValidatorNodeChangesRequest, ::tari::rpc::GetValidatorNodeChangesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetValidatorNodeChanges_, context, request, response); +} + +void BaseNode::Stub::async::GetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest* request, ::tari::rpc::GetValidatorNodeChangesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::tari::rpc::GetValidatorNodeChangesRequest, ::tari::rpc::GetValidatorNodeChangesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetValidatorNodeChanges_, context, request, response, std::move(f)); +} + +void BaseNode::Stub::async::GetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest* request, ::tari::rpc::GetValidatorNodeChangesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetValidatorNodeChanges_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::tari::rpc::GetValidatorNodeChangesResponse>* BaseNode::Stub::PrepareAsyncGetValidatorNodeChangesRaw(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::tari::rpc::GetValidatorNodeChangesResponse, ::tari::rpc::GetValidatorNodeChangesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetValidatorNodeChanges_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::tari::rpc::GetValidatorNodeChangesResponse>* BaseNode::Stub::AsyncGetValidatorNodeChangesRaw(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetValidatorNodeChangesRaw(context, request, cq); + result->StartCall(); + return result; +} + ::grpc::Status BaseNode::Stub::GetShardKey(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest& request, ::tari::rpc::GetShardKeyResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::tari::rpc::GetShardKeyRequest, ::tari::rpc::GetShardKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetShardKey_, context, request, response); } @@ -875,6 +905,38 @@ void BaseNode::Stub::async::GetNetworkState(::grpc::ClientContext* context, cons return result; } +::grpc::ClientReader< ::tari::rpc::PaymentReferenceResponse>* BaseNode::Stub::SearchPaymentReferencesRaw(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request) { + return ::grpc::internal::ClientReaderFactory< ::tari::rpc::PaymentReferenceResponse>::Create(channel_.get(), rpcmethod_SearchPaymentReferences_, context, request); +} + +void BaseNode::Stub::async::SearchPaymentReferences(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest* request, ::grpc::ClientReadReactor< ::tari::rpc::PaymentReferenceResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderFactory< ::tari::rpc::PaymentReferenceResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_SearchPaymentReferences_, context, request, reactor); +} + +::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>* BaseNode::Stub::AsyncSearchPaymentReferencesRaw(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderFactory< ::tari::rpc::PaymentReferenceResponse>::Create(channel_.get(), cq, rpcmethod_SearchPaymentReferences_, context, request, true, tag); +} + +::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>* BaseNode::Stub::PrepareAsyncSearchPaymentReferencesRaw(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderFactory< ::tari::rpc::PaymentReferenceResponse>::Create(channel_.get(), cq, rpcmethod_SearchPaymentReferences_, context, request, false, nullptr); +} + +::grpc::ClientReader< ::tari::rpc::PaymentReferenceResponse>* BaseNode::Stub::SearchPaymentReferencesViaOutputHashRaw(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request) { + return ::grpc::internal::ClientReaderFactory< ::tari::rpc::PaymentReferenceResponse>::Create(channel_.get(), rpcmethod_SearchPaymentReferencesViaOutputHash_, context, request); +} + +void BaseNode::Stub::async::SearchPaymentReferencesViaOutputHash(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest* request, ::grpc::ClientReadReactor< ::tari::rpc::PaymentReferenceResponse>* reactor) { + ::grpc::internal::ClientCallbackReaderFactory< ::tari::rpc::PaymentReferenceResponse>::Create(stub_->channel_.get(), stub_->rpcmethod_SearchPaymentReferencesViaOutputHash_, context, request, reactor); +} + +::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>* BaseNode::Stub::AsyncSearchPaymentReferencesViaOutputHashRaw(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderFactory< ::tari::rpc::PaymentReferenceResponse>::Create(channel_.get(), cq, rpcmethod_SearchPaymentReferencesViaOutputHash_, context, request, true, tag); +} + +::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>* BaseNode::Stub::PrepareAsyncSearchPaymentReferencesViaOutputHashRaw(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderFactory< ::tari::rpc::PaymentReferenceResponse>::Create(channel_.get(), cq, rpcmethod_SearchPaymentReferencesViaOutputHash_, context, request, false, nullptr); +} + BaseNode::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BaseNode_method_names[0], @@ -949,11 +1011,11 @@ BaseNode::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BaseNode_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BaseNode::Service, ::tari::rpc::Empty, ::tari::rpc::StringValue, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< BaseNode::Service, ::tari::rpc::Empty, ::tari::rpc::BaseNodeGetVersionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BaseNode::Service* service, ::grpc::ServerContext* ctx, const ::tari::rpc::Empty* req, - ::tari::rpc::StringValue* resp) { + ::tari::rpc::BaseNodeGetVersionResponse* resp) { return service->GetVersion(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( @@ -1209,6 +1271,16 @@ BaseNode::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BaseNode_method_names[33], ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BaseNode::Service, ::tari::rpc::GetValidatorNodeChangesRequest, ::tari::rpc::GetValidatorNodeChangesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BaseNode::Service* service, + ::grpc::ServerContext* ctx, + const ::tari::rpc::GetValidatorNodeChangesRequest* req, + ::tari::rpc::GetValidatorNodeChangesResponse* resp) { + return service->GetValidatorNodeChanges(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BaseNode_method_names[34], + ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BaseNode::Service, ::tari::rpc::GetShardKeyRequest, ::tari::rpc::GetShardKeyResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BaseNode::Service* service, ::grpc::ServerContext* ctx, @@ -1217,7 +1289,7 @@ BaseNode::Service::Service() { return service->GetShardKey(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BaseNode_method_names[34], + BaseNode_method_names[35], ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< BaseNode::Service, ::tari::rpc::GetTemplateRegistrationsRequest, ::tari::rpc::GetTemplateRegistrationResponse>( [](BaseNode::Service* service, @@ -1227,7 +1299,7 @@ BaseNode::Service::Service() { return service->GetTemplateRegistrations(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BaseNode_method_names[35], + BaseNode_method_names[36], ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< BaseNode::Service, ::tari::rpc::GetSideChainUtxosRequest, ::tari::rpc::GetSideChainUtxosResponse>( [](BaseNode::Service* service, @@ -1237,7 +1309,7 @@ BaseNode::Service::Service() { return service->GetSideChainUtxos(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - BaseNode_method_names[36], + BaseNode_method_names[37], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< BaseNode::Service, ::tari::rpc::GetNetworkStateRequest, ::tari::rpc::GetNetworkStateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](BaseNode::Service* service, @@ -1246,6 +1318,26 @@ BaseNode::Service::Service() { ::tari::rpc::GetNetworkStateResponse* resp) { return service->GetNetworkState(ctx, req, resp); }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BaseNode_method_names[38], + ::grpc::internal::RpcMethod::SERVER_STREAMING, + new ::grpc::internal::ServerStreamingHandler< BaseNode::Service, ::tari::rpc::SearchPaymentReferencesRequest, ::tari::rpc::PaymentReferenceResponse>( + [](BaseNode::Service* service, + ::grpc::ServerContext* ctx, + const ::tari::rpc::SearchPaymentReferencesRequest* req, + ::grpc::ServerWriter<::tari::rpc::PaymentReferenceResponse>* writer) { + return service->SearchPaymentReferences(ctx, req, writer); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BaseNode_method_names[39], + ::grpc::internal::RpcMethod::SERVER_STREAMING, + new ::grpc::internal::ServerStreamingHandler< BaseNode::Service, ::tari::rpc::FetchMatchingUtxosRequest, ::tari::rpc::PaymentReferenceResponse>( + [](BaseNode::Service* service, + ::grpc::ServerContext* ctx, + const ::tari::rpc::FetchMatchingUtxosRequest* req, + ::grpc::ServerWriter<::tari::rpc::PaymentReferenceResponse>* writer) { + return service->SearchPaymentReferencesViaOutputHash(ctx, req, writer); + }, this))); } BaseNode::Service::~Service() { @@ -1300,7 +1392,7 @@ BaseNode::Service::~Service() { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status BaseNode::Service::GetVersion(::grpc::ServerContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::StringValue* response) { +::grpc::Status BaseNode::Service::GetVersion(::grpc::ServerContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::BaseNodeGetVersionResponse* response) { (void) context; (void) request; (void) response; @@ -1482,6 +1574,13 @@ BaseNode::Service::~Service() { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status BaseNode::Service::GetValidatorNodeChanges(::grpc::ServerContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest* request, ::tari::rpc::GetValidatorNodeChangesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status BaseNode::Service::GetShardKey(::grpc::ServerContext* context, const ::tari::rpc::GetShardKeyRequest* request, ::tari::rpc::GetShardKeyResponse* response) { (void) context; (void) request; @@ -1510,7 +1609,22 @@ BaseNode::Service::~Service() { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status BaseNode::Service::SearchPaymentReferences(::grpc::ServerContext* context, const ::tari::rpc::SearchPaymentReferencesRequest* request, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* writer) { + (void) context; + (void) request; + (void) writer; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status BaseNode::Service::SearchPaymentReferencesViaOutputHash(::grpc::ServerContext* context, const ::tari::rpc::FetchMatchingUtxosRequest* request, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* writer) { + (void) context; + (void) request; + (void) writer; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace tari } // namespace rpc +#include diff --git a/external/src/Tari/proto/gRPC/base_node.grpc.pb.h b/external/src/Tari/proto/gRPC/base_node.grpc.pb.h index f73df6d..6807115 100644 --- a/external/src/Tari/proto/gRPC/base_node.grpc.pb.h +++ b/external/src/Tari/proto/gRPC/base_node.grpc.pb.h @@ -46,6 +46,7 @@ #include #include #include +#include namespace tari { namespace rpc { @@ -120,12 +121,12 @@ class BaseNode final { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::BlockGroupResponse>>(PrepareAsyncGetBlockFeesRaw(context, request, cq)); } // Get Version - virtual ::grpc::Status GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::tari::rpc::StringValue* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::StringValue>> AsyncGetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::StringValue>>(AsyncGetVersionRaw(context, request, cq)); + virtual ::grpc::Status GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::tari::rpc::BaseNodeGetVersionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::BaseNodeGetVersionResponse>> AsyncGetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::BaseNodeGetVersionResponse>>(AsyncGetVersionRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::StringValue>> PrepareAsyncGetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::StringValue>>(PrepareAsyncGetVersionRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::BaseNodeGetVersionResponse>> PrepareAsyncGetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::BaseNodeGetVersionResponse>>(PrepareAsyncGetVersionRaw(context, request, cq)); } // Check for new updates virtual ::grpc::Status CheckForUpdates(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::tari::rpc::SoftwareUpdate* response) = 0; @@ -341,6 +342,13 @@ class BaseNode final { std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tari::rpc::GetActiveValidatorNodesResponse>> PrepareAsyncGetActiveValidatorNodes(::grpc::ClientContext* context, const ::tari::rpc::GetActiveValidatorNodesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tari::rpc::GetActiveValidatorNodesResponse>>(PrepareAsyncGetActiveValidatorNodesRaw(context, request, cq)); } + virtual ::grpc::Status GetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::tari::rpc::GetValidatorNodeChangesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetValidatorNodeChangesResponse>> AsyncGetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetValidatorNodeChangesResponse>>(AsyncGetValidatorNodeChangesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetValidatorNodeChangesResponse>> PrepareAsyncGetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetValidatorNodeChangesResponse>>(PrepareAsyncGetValidatorNodeChangesRaw(context, request, cq)); + } virtual ::grpc::Status GetShardKey(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest& request, ::tari::rpc::GetShardKeyResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetShardKeyResponse>> AsyncGetShardKey(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetShardKeyResponse>>(AsyncGetShardKeyRaw(context, request, cq)); @@ -374,6 +382,26 @@ class BaseNode final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetNetworkStateResponse>> PrepareAsyncGetNetworkState(::grpc::ClientContext* context, const ::tari::rpc::GetNetworkStateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetNetworkStateResponse>>(PrepareAsyncGetNetworkStateRaw(context, request, cq)); } + // PayRef (Payment Reference) lookup for block explorers and external services + std::unique_ptr< ::grpc::ClientReaderInterface< ::tari::rpc::PaymentReferenceResponse>> SearchPaymentReferences(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::tari::rpc::PaymentReferenceResponse>>(SearchPaymentReferencesRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tari::rpc::PaymentReferenceResponse>> AsyncSearchPaymentReferences(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tari::rpc::PaymentReferenceResponse>>(AsyncSearchPaymentReferencesRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tari::rpc::PaymentReferenceResponse>> PrepareAsyncSearchPaymentReferences(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tari::rpc::PaymentReferenceResponse>>(PrepareAsyncSearchPaymentReferencesRaw(context, request, cq)); + } + // PayRef (Payment Reference) lookup for block explorers and external services via output hash + std::unique_ptr< ::grpc::ClientReaderInterface< ::tari::rpc::PaymentReferenceResponse>> SearchPaymentReferencesViaOutputHash(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::tari::rpc::PaymentReferenceResponse>>(SearchPaymentReferencesViaOutputHashRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tari::rpc::PaymentReferenceResponse>> AsyncSearchPaymentReferencesViaOutputHash(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tari::rpc::PaymentReferenceResponse>>(AsyncSearchPaymentReferencesViaOutputHashRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tari::rpc::PaymentReferenceResponse>> PrepareAsyncSearchPaymentReferencesViaOutputHash(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::tari::rpc::PaymentReferenceResponse>>(PrepareAsyncSearchPaymentReferencesViaOutputHashRaw(context, request, cq)); + } class async_interface { public: virtual ~async_interface() {} @@ -397,8 +425,8 @@ class BaseNode final { virtual void GetBlockFees(::grpc::ClientContext* context, const ::tari::rpc::BlockGroupRequest* request, ::tari::rpc::BlockGroupResponse* response, std::function) = 0; virtual void GetBlockFees(::grpc::ClientContext* context, const ::tari::rpc::BlockGroupRequest* request, ::tari::rpc::BlockGroupResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Get Version - virtual void GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::StringValue* response, std::function) = 0; - virtual void GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::StringValue* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::BaseNodeGetVersionResponse* response, std::function) = 0; + virtual void GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::BaseNodeGetVersionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Check for new updates virtual void CheckForUpdates(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::SoftwareUpdate* response, std::function) = 0; virtual void CheckForUpdates(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::SoftwareUpdate* response, ::grpc::ClientUnaryReactor* reactor) = 0; @@ -464,6 +492,8 @@ class BaseNode final { virtual void GetMempoolStats(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::MempoolStatsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Get VNs virtual void GetActiveValidatorNodes(::grpc::ClientContext* context, const ::tari::rpc::GetActiveValidatorNodesRequest* request, ::grpc::ClientReadReactor< ::tari::rpc::GetActiveValidatorNodesResponse>* reactor) = 0; + virtual void GetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest* request, ::tari::rpc::GetValidatorNodeChangesResponse* response, std::function) = 0; + virtual void GetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest* request, ::tari::rpc::GetValidatorNodeChangesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; virtual void GetShardKey(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest* request, ::tari::rpc::GetShardKeyResponse* response, std::function) = 0; virtual void GetShardKey(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest* request, ::tari::rpc::GetShardKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Get templates @@ -471,6 +501,10 @@ class BaseNode final { virtual void GetSideChainUtxos(::grpc::ClientContext* context, const ::tari::rpc::GetSideChainUtxosRequest* request, ::grpc::ClientReadReactor< ::tari::rpc::GetSideChainUtxosResponse>* reactor) = 0; virtual void GetNetworkState(::grpc::ClientContext* context, const ::tari::rpc::GetNetworkStateRequest* request, ::tari::rpc::GetNetworkStateResponse* response, std::function) = 0; virtual void GetNetworkState(::grpc::ClientContext* context, const ::tari::rpc::GetNetworkStateRequest* request, ::tari::rpc::GetNetworkStateResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // PayRef (Payment Reference) lookup for block explorers and external services + virtual void SearchPaymentReferences(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest* request, ::grpc::ClientReadReactor< ::tari::rpc::PaymentReferenceResponse>* reactor) = 0; + // PayRef (Payment Reference) lookup for block explorers and external services via output hash + virtual void SearchPaymentReferencesViaOutputHash(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest* request, ::grpc::ClientReadReactor< ::tari::rpc::PaymentReferenceResponse>* reactor) = 0; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } @@ -492,8 +526,8 @@ class BaseNode final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::BlockGroupResponse>* PrepareAsyncGetBlockSizeRaw(::grpc::ClientContext* context, const ::tari::rpc::BlockGroupRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::BlockGroupResponse>* AsyncGetBlockFeesRaw(::grpc::ClientContext* context, const ::tari::rpc::BlockGroupRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::BlockGroupResponse>* PrepareAsyncGetBlockFeesRaw(::grpc::ClientContext* context, const ::tari::rpc::BlockGroupRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::StringValue>* AsyncGetVersionRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::StringValue>* PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::BaseNodeGetVersionResponse>* AsyncGetVersionRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::BaseNodeGetVersionResponse>* PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::SoftwareUpdate>* AsyncCheckForUpdatesRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::SoftwareUpdate>* PrepareAsyncCheckForUpdatesRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientReaderInterface< ::tari::rpc::ValueAtHeightResponse>* GetTokensInCirculationRaw(::grpc::ClientContext* context, const ::tari::rpc::GetBlocksRequest& request) = 0; @@ -552,6 +586,8 @@ class BaseNode final { virtual ::grpc::ClientReaderInterface< ::tari::rpc::GetActiveValidatorNodesResponse>* GetActiveValidatorNodesRaw(::grpc::ClientContext* context, const ::tari::rpc::GetActiveValidatorNodesRequest& request) = 0; virtual ::grpc::ClientAsyncReaderInterface< ::tari::rpc::GetActiveValidatorNodesResponse>* AsyncGetActiveValidatorNodesRaw(::grpc::ClientContext* context, const ::tari::rpc::GetActiveValidatorNodesRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; virtual ::grpc::ClientAsyncReaderInterface< ::tari::rpc::GetActiveValidatorNodesResponse>* PrepareAsyncGetActiveValidatorNodesRaw(::grpc::ClientContext* context, const ::tari::rpc::GetActiveValidatorNodesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetValidatorNodeChangesResponse>* AsyncGetValidatorNodeChangesRaw(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetValidatorNodeChangesResponse>* PrepareAsyncGetValidatorNodeChangesRaw(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetShardKeyResponse>* AsyncGetShardKeyRaw(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetShardKeyResponse>* PrepareAsyncGetShardKeyRaw(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientReaderInterface< ::tari::rpc::GetTemplateRegistrationResponse>* GetTemplateRegistrationsRaw(::grpc::ClientContext* context, const ::tari::rpc::GetTemplateRegistrationsRequest& request) = 0; @@ -562,6 +598,12 @@ class BaseNode final { virtual ::grpc::ClientAsyncReaderInterface< ::tari::rpc::GetSideChainUtxosResponse>* PrepareAsyncGetSideChainUtxosRaw(::grpc::ClientContext* context, const ::tari::rpc::GetSideChainUtxosRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetNetworkStateResponse>* AsyncGetNetworkStateRaw(::grpc::ClientContext* context, const ::tari::rpc::GetNetworkStateRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::tari::rpc::GetNetworkStateResponse>* PrepareAsyncGetNetworkStateRaw(::grpc::ClientContext* context, const ::tari::rpc::GetNetworkStateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderInterface< ::tari::rpc::PaymentReferenceResponse>* SearchPaymentReferencesRaw(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::tari::rpc::PaymentReferenceResponse>* AsyncSearchPaymentReferencesRaw(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::tari::rpc::PaymentReferenceResponse>* PrepareAsyncSearchPaymentReferencesRaw(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderInterface< ::tari::rpc::PaymentReferenceResponse>* SearchPaymentReferencesViaOutputHashRaw(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::tari::rpc::PaymentReferenceResponse>* AsyncSearchPaymentReferencesViaOutputHashRaw(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::tari::rpc::PaymentReferenceResponse>* PrepareAsyncSearchPaymentReferencesViaOutputHashRaw(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -619,12 +661,12 @@ class BaseNode final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::BlockGroupResponse>> PrepareAsyncGetBlockFees(::grpc::ClientContext* context, const ::tari::rpc::BlockGroupRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::BlockGroupResponse>>(PrepareAsyncGetBlockFeesRaw(context, request, cq)); } - ::grpc::Status GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::tari::rpc::StringValue* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::StringValue>> AsyncGetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::StringValue>>(AsyncGetVersionRaw(context, request, cq)); + ::grpc::Status GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::tari::rpc::BaseNodeGetVersionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::BaseNodeGetVersionResponse>> AsyncGetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::BaseNodeGetVersionResponse>>(AsyncGetVersionRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::StringValue>> PrepareAsyncGetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::StringValue>>(PrepareAsyncGetVersionRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::BaseNodeGetVersionResponse>> PrepareAsyncGetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::BaseNodeGetVersionResponse>>(PrepareAsyncGetVersionRaw(context, request, cq)); } ::grpc::Status CheckForUpdates(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::tari::rpc::SoftwareUpdate* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::SoftwareUpdate>> AsyncCheckForUpdates(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) { @@ -817,6 +859,13 @@ class BaseNode final { std::unique_ptr< ::grpc::ClientAsyncReader< ::tari::rpc::GetActiveValidatorNodesResponse>> PrepareAsyncGetActiveValidatorNodes(::grpc::ClientContext* context, const ::tari::rpc::GetActiveValidatorNodesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncReader< ::tari::rpc::GetActiveValidatorNodesResponse>>(PrepareAsyncGetActiveValidatorNodesRaw(context, request, cq)); } + ::grpc::Status GetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::tari::rpc::GetValidatorNodeChangesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetValidatorNodeChangesResponse>> AsyncGetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetValidatorNodeChangesResponse>>(AsyncGetValidatorNodeChangesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetValidatorNodeChangesResponse>> PrepareAsyncGetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetValidatorNodeChangesResponse>>(PrepareAsyncGetValidatorNodeChangesRaw(context, request, cq)); + } ::grpc::Status GetShardKey(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest& request, ::tari::rpc::GetShardKeyResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetShardKeyResponse>> AsyncGetShardKey(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetShardKeyResponse>>(AsyncGetShardKeyRaw(context, request, cq)); @@ -849,6 +898,24 @@ class BaseNode final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetNetworkStateResponse>> PrepareAsyncGetNetworkState(::grpc::ClientContext* context, const ::tari::rpc::GetNetworkStateRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetNetworkStateResponse>>(PrepareAsyncGetNetworkStateRaw(context, request, cq)); } + std::unique_ptr< ::grpc::ClientReader< ::tari::rpc::PaymentReferenceResponse>> SearchPaymentReferences(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request) { + return std::unique_ptr< ::grpc::ClientReader< ::tari::rpc::PaymentReferenceResponse>>(SearchPaymentReferencesRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>> AsyncSearchPaymentReferences(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>>(AsyncSearchPaymentReferencesRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>> PrepareAsyncSearchPaymentReferences(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>>(PrepareAsyncSearchPaymentReferencesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientReader< ::tari::rpc::PaymentReferenceResponse>> SearchPaymentReferencesViaOutputHash(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request) { + return std::unique_ptr< ::grpc::ClientReader< ::tari::rpc::PaymentReferenceResponse>>(SearchPaymentReferencesViaOutputHashRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>> AsyncSearchPaymentReferencesViaOutputHash(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>>(AsyncSearchPaymentReferencesViaOutputHashRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>> PrepareAsyncSearchPaymentReferencesViaOutputHash(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>>(PrepareAsyncSearchPaymentReferencesViaOutputHashRaw(context, request, cq)); + } class async final : public StubInterface::async_interface { public: @@ -864,8 +931,8 @@ class BaseNode final { void GetBlockSize(::grpc::ClientContext* context, const ::tari::rpc::BlockGroupRequest* request, ::tari::rpc::BlockGroupResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetBlockFees(::grpc::ClientContext* context, const ::tari::rpc::BlockGroupRequest* request, ::tari::rpc::BlockGroupResponse* response, std::function) override; void GetBlockFees(::grpc::ClientContext* context, const ::tari::rpc::BlockGroupRequest* request, ::tari::rpc::BlockGroupResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::StringValue* response, std::function) override; - void GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::StringValue* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::BaseNodeGetVersionResponse* response, std::function) override; + void GetVersion(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::BaseNodeGetVersionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void CheckForUpdates(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::SoftwareUpdate* response, std::function) override; void CheckForUpdates(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::SoftwareUpdate* response, ::grpc::ClientUnaryReactor* reactor) override; void GetTokensInCirculation(::grpc::ClientContext* context, const ::tari::rpc::GetBlocksRequest* request, ::grpc::ClientReadReactor< ::tari::rpc::ValueAtHeightResponse>* reactor) override; @@ -908,12 +975,16 @@ class BaseNode final { void GetMempoolStats(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::MempoolStatsResponse* response, std::function) override; void GetMempoolStats(::grpc::ClientContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::MempoolStatsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetActiveValidatorNodes(::grpc::ClientContext* context, const ::tari::rpc::GetActiveValidatorNodesRequest* request, ::grpc::ClientReadReactor< ::tari::rpc::GetActiveValidatorNodesResponse>* reactor) override; + void GetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest* request, ::tari::rpc::GetValidatorNodeChangesResponse* response, std::function) override; + void GetValidatorNodeChanges(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest* request, ::tari::rpc::GetValidatorNodeChangesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetShardKey(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest* request, ::tari::rpc::GetShardKeyResponse* response, std::function) override; void GetShardKey(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest* request, ::tari::rpc::GetShardKeyResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetTemplateRegistrations(::grpc::ClientContext* context, const ::tari::rpc::GetTemplateRegistrationsRequest* request, ::grpc::ClientReadReactor< ::tari::rpc::GetTemplateRegistrationResponse>* reactor) override; void GetSideChainUtxos(::grpc::ClientContext* context, const ::tari::rpc::GetSideChainUtxosRequest* request, ::grpc::ClientReadReactor< ::tari::rpc::GetSideChainUtxosResponse>* reactor) override; void GetNetworkState(::grpc::ClientContext* context, const ::tari::rpc::GetNetworkStateRequest* request, ::tari::rpc::GetNetworkStateResponse* response, std::function) override; void GetNetworkState(::grpc::ClientContext* context, const ::tari::rpc::GetNetworkStateRequest* request, ::tari::rpc::GetNetworkStateResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void SearchPaymentReferences(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest* request, ::grpc::ClientReadReactor< ::tari::rpc::PaymentReferenceResponse>* reactor) override; + void SearchPaymentReferencesViaOutputHash(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest* request, ::grpc::ClientReadReactor< ::tari::rpc::PaymentReferenceResponse>* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -941,8 +1012,8 @@ class BaseNode final { ::grpc::ClientAsyncResponseReader< ::tari::rpc::BlockGroupResponse>* PrepareAsyncGetBlockSizeRaw(::grpc::ClientContext* context, const ::tari::rpc::BlockGroupRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::tari::rpc::BlockGroupResponse>* AsyncGetBlockFeesRaw(::grpc::ClientContext* context, const ::tari::rpc::BlockGroupRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::tari::rpc::BlockGroupResponse>* PrepareAsyncGetBlockFeesRaw(::grpc::ClientContext* context, const ::tari::rpc::BlockGroupRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::tari::rpc::StringValue>* AsyncGetVersionRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::tari::rpc::StringValue>* PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::tari::rpc::BaseNodeGetVersionResponse>* AsyncGetVersionRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::tari::rpc::BaseNodeGetVersionResponse>* PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::tari::rpc::SoftwareUpdate>* AsyncCheckForUpdatesRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::tari::rpc::SoftwareUpdate>* PrepareAsyncCheckForUpdatesRaw(::grpc::ClientContext* context, const ::tari::rpc::Empty& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientReader< ::tari::rpc::ValueAtHeightResponse>* GetTokensInCirculationRaw(::grpc::ClientContext* context, const ::tari::rpc::GetBlocksRequest& request) override; @@ -1001,6 +1072,8 @@ class BaseNode final { ::grpc::ClientReader< ::tari::rpc::GetActiveValidatorNodesResponse>* GetActiveValidatorNodesRaw(::grpc::ClientContext* context, const ::tari::rpc::GetActiveValidatorNodesRequest& request) override; ::grpc::ClientAsyncReader< ::tari::rpc::GetActiveValidatorNodesResponse>* AsyncGetActiveValidatorNodesRaw(::grpc::ClientContext* context, const ::tari::rpc::GetActiveValidatorNodesRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; ::grpc::ClientAsyncReader< ::tari::rpc::GetActiveValidatorNodesResponse>* PrepareAsyncGetActiveValidatorNodesRaw(::grpc::ClientContext* context, const ::tari::rpc::GetActiveValidatorNodesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetValidatorNodeChangesResponse>* AsyncGetValidatorNodeChangesRaw(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetValidatorNodeChangesResponse>* PrepareAsyncGetValidatorNodeChangesRaw(::grpc::ClientContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetShardKeyResponse>* AsyncGetShardKeyRaw(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetShardKeyResponse>* PrepareAsyncGetShardKeyRaw(::grpc::ClientContext* context, const ::tari::rpc::GetShardKeyRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientReader< ::tari::rpc::GetTemplateRegistrationResponse>* GetTemplateRegistrationsRaw(::grpc::ClientContext* context, const ::tari::rpc::GetTemplateRegistrationsRequest& request) override; @@ -1011,6 +1084,12 @@ class BaseNode final { ::grpc::ClientAsyncReader< ::tari::rpc::GetSideChainUtxosResponse>* PrepareAsyncGetSideChainUtxosRaw(::grpc::ClientContext* context, const ::tari::rpc::GetSideChainUtxosRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetNetworkStateResponse>* AsyncGetNetworkStateRaw(::grpc::ClientContext* context, const ::tari::rpc::GetNetworkStateRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::tari::rpc::GetNetworkStateResponse>* PrepareAsyncGetNetworkStateRaw(::grpc::ClientContext* context, const ::tari::rpc::GetNetworkStateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReader< ::tari::rpc::PaymentReferenceResponse>* SearchPaymentReferencesRaw(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request) override; + ::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>* AsyncSearchPaymentReferencesRaw(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>* PrepareAsyncSearchPaymentReferencesRaw(::grpc::ClientContext* context, const ::tari::rpc::SearchPaymentReferencesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReader< ::tari::rpc::PaymentReferenceResponse>* SearchPaymentReferencesViaOutputHashRaw(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request) override; + ::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>* AsyncSearchPaymentReferencesViaOutputHashRaw(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::tari::rpc::PaymentReferenceResponse>* PrepareAsyncSearchPaymentReferencesViaOutputHashRaw(::grpc::ClientContext* context, const ::tari::rpc::FetchMatchingUtxosRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_ListHeaders_; const ::grpc::internal::RpcMethod rpcmethod_GetHeaderByHash_; const ::grpc::internal::RpcMethod rpcmethod_GetBlocks_; @@ -1044,10 +1123,13 @@ class BaseNode final { const ::grpc::internal::RpcMethod rpcmethod_ListConnectedPeers_; const ::grpc::internal::RpcMethod rpcmethod_GetMempoolStats_; const ::grpc::internal::RpcMethod rpcmethod_GetActiveValidatorNodes_; + const ::grpc::internal::RpcMethod rpcmethod_GetValidatorNodeChanges_; const ::grpc::internal::RpcMethod rpcmethod_GetShardKey_; const ::grpc::internal::RpcMethod rpcmethod_GetTemplateRegistrations_; const ::grpc::internal::RpcMethod rpcmethod_GetSideChainUtxos_; const ::grpc::internal::RpcMethod rpcmethod_GetNetworkState_; + const ::grpc::internal::RpcMethod rpcmethod_SearchPaymentReferences_; + const ::grpc::internal::RpcMethod rpcmethod_SearchPaymentReferencesViaOutputHash_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -1070,7 +1152,7 @@ class BaseNode final { // Returns Block Fees virtual ::grpc::Status GetBlockFees(::grpc::ServerContext* context, const ::tari::rpc::BlockGroupRequest* request, ::tari::rpc::BlockGroupResponse* response); // Get Version - virtual ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::StringValue* response); + virtual ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::BaseNodeGetVersionResponse* response); // Check for new updates virtual ::grpc::Status CheckForUpdates(::grpc::ServerContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::SoftwareUpdate* response); // Get coins in circulation @@ -1119,11 +1201,16 @@ class BaseNode final { virtual ::grpc::Status GetMempoolStats(::grpc::ServerContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::MempoolStatsResponse* response); // Get VNs virtual ::grpc::Status GetActiveValidatorNodes(::grpc::ServerContext* context, const ::tari::rpc::GetActiveValidatorNodesRequest* request, ::grpc::ServerWriter< ::tari::rpc::GetActiveValidatorNodesResponse>* writer); + virtual ::grpc::Status GetValidatorNodeChanges(::grpc::ServerContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest* request, ::tari::rpc::GetValidatorNodeChangesResponse* response); virtual ::grpc::Status GetShardKey(::grpc::ServerContext* context, const ::tari::rpc::GetShardKeyRequest* request, ::tari::rpc::GetShardKeyResponse* response); // Get templates virtual ::grpc::Status GetTemplateRegistrations(::grpc::ServerContext* context, const ::tari::rpc::GetTemplateRegistrationsRequest* request, ::grpc::ServerWriter< ::tari::rpc::GetTemplateRegistrationResponse>* writer); virtual ::grpc::Status GetSideChainUtxos(::grpc::ServerContext* context, const ::tari::rpc::GetSideChainUtxosRequest* request, ::grpc::ServerWriter< ::tari::rpc::GetSideChainUtxosResponse>* writer); virtual ::grpc::Status GetNetworkState(::grpc::ServerContext* context, const ::tari::rpc::GetNetworkStateRequest* request, ::tari::rpc::GetNetworkStateResponse* response); + // PayRef (Payment Reference) lookup for block explorers and external services + virtual ::grpc::Status SearchPaymentReferences(::grpc::ServerContext* context, const ::tari::rpc::SearchPaymentReferencesRequest* request, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* writer); + // PayRef (Payment Reference) lookup for block explorers and external services via output hash + virtual ::grpc::Status SearchPaymentReferencesViaOutputHash(::grpc::ServerContext* context, const ::tari::rpc::FetchMatchingUtxosRequest* request, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* writer); }; template class WithAsyncMethod_ListHeaders : public BaseClass { @@ -1277,11 +1364,11 @@ class BaseNode final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetVersion(::grpc::ServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::StringValue* /*response*/) override { + ::grpc::Status GetVersion(::grpc::ServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::BaseNodeGetVersionResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetVersion(::grpc::ServerContext* context, ::tari::rpc::Empty* request, ::grpc::ServerAsyncResponseWriter< ::tari::rpc::StringValue>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetVersion(::grpc::ServerContext* context, ::tari::rpc::Empty* request, ::grpc::ServerAsyncResponseWriter< ::tari::rpc::BaseNodeGetVersionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -1786,12 +1873,32 @@ class BaseNode final { } }; template + class WithAsyncMethod_GetValidatorNodeChanges : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetValidatorNodeChanges() { + ::grpc::Service::MarkMethodAsync(33); + } + ~WithAsyncMethod_GetValidatorNodeChanges() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetValidatorNodeChanges(::grpc::ServerContext* /*context*/, const ::tari::rpc::GetValidatorNodeChangesRequest* /*request*/, ::tari::rpc::GetValidatorNodeChangesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetValidatorNodeChanges(::grpc::ServerContext* context, ::tari::rpc::GetValidatorNodeChangesRequest* request, ::grpc::ServerAsyncResponseWriter< ::tari::rpc::GetValidatorNodeChangesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(33, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_GetShardKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetShardKey() { - ::grpc::Service::MarkMethodAsync(33); + ::grpc::Service::MarkMethodAsync(34); } ~WithAsyncMethod_GetShardKey() override { BaseClassMustBeDerivedFromService(this); @@ -1802,7 +1909,7 @@ class BaseNode final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetShardKey(::grpc::ServerContext* context, ::tari::rpc::GetShardKeyRequest* request, ::grpc::ServerAsyncResponseWriter< ::tari::rpc::GetShardKeyResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(33, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(34, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1811,7 +1918,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetTemplateRegistrations() { - ::grpc::Service::MarkMethodAsync(34); + ::grpc::Service::MarkMethodAsync(35); } ~WithAsyncMethod_GetTemplateRegistrations() override { BaseClassMustBeDerivedFromService(this); @@ -1822,7 +1929,7 @@ class BaseNode final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetTemplateRegistrations(::grpc::ServerContext* context, ::tari::rpc::GetTemplateRegistrationsRequest* request, ::grpc::ServerAsyncWriter< ::tari::rpc::GetTemplateRegistrationResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(34, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(35, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -1831,7 +1938,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetSideChainUtxos() { - ::grpc::Service::MarkMethodAsync(35); + ::grpc::Service::MarkMethodAsync(36); } ~WithAsyncMethod_GetSideChainUtxos() override { BaseClassMustBeDerivedFromService(this); @@ -1842,7 +1949,7 @@ class BaseNode final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetSideChainUtxos(::grpc::ServerContext* context, ::tari::rpc::GetSideChainUtxosRequest* request, ::grpc::ServerAsyncWriter< ::tari::rpc::GetSideChainUtxosResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(35, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(36, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -1851,7 +1958,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetNetworkState() { - ::grpc::Service::MarkMethodAsync(36); + ::grpc::Service::MarkMethodAsync(37); } ~WithAsyncMethod_GetNetworkState() override { BaseClassMustBeDerivedFromService(this); @@ -1862,10 +1969,50 @@ class BaseNode final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetNetworkState(::grpc::ServerContext* context, ::tari::rpc::GetNetworkStateRequest* request, ::grpc::ServerAsyncResponseWriter< ::tari::rpc::GetNetworkStateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(36, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(37, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_ListHeaders > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > AsyncService; + template + class WithAsyncMethod_SearchPaymentReferences : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SearchPaymentReferences() { + ::grpc::Service::MarkMethodAsync(38); + } + ~WithAsyncMethod_SearchPaymentReferences() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchPaymentReferences(::grpc::ServerContext* /*context*/, const ::tari::rpc::SearchPaymentReferencesRequest* /*request*/, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSearchPaymentReferences(::grpc::ServerContext* context, ::tari::rpc::SearchPaymentReferencesRequest* request, ::grpc::ServerAsyncWriter< ::tari::rpc::PaymentReferenceResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(38, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_SearchPaymentReferencesViaOutputHash : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SearchPaymentReferencesViaOutputHash() { + ::grpc::Service::MarkMethodAsync(39); + } + ~WithAsyncMethod_SearchPaymentReferencesViaOutputHash() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchPaymentReferencesViaOutputHash(::grpc::ServerContext* /*context*/, const ::tari::rpc::FetchMatchingUtxosRequest* /*request*/, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSearchPaymentReferencesViaOutputHash(::grpc::ServerContext* context, ::tari::rpc::FetchMatchingUtxosRequest* request, ::grpc::ServerAsyncWriter< ::tari::rpc::PaymentReferenceResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(39, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_ListHeaders > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > AsyncService; template class WithCallbackMethod_ListHeaders : public BaseClass { private: @@ -2052,25 +2199,25 @@ class BaseNode final { public: WithCallbackMethod_GetVersion() { ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::tari::rpc::Empty, ::tari::rpc::StringValue>( + new ::grpc::internal::CallbackUnaryHandler< ::tari::rpc::Empty, ::tari::rpc::BaseNodeGetVersionResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::StringValue* response) { return this->GetVersion(context, request, response); }));} + ::grpc::CallbackServerContext* context, const ::tari::rpc::Empty* request, ::tari::rpc::BaseNodeGetVersionResponse* response) { return this->GetVersion(context, request, response); }));} void SetMessageAllocatorFor_GetVersion( - ::grpc::MessageAllocator< ::tari::rpc::Empty, ::tari::rpc::StringValue>* allocator) { + ::grpc::MessageAllocator< ::tari::rpc::Empty, ::tari::rpc::BaseNodeGetVersionResponse>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::tari::rpc::Empty, ::tari::rpc::StringValue>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::tari::rpc::Empty, ::tari::rpc::BaseNodeGetVersionResponse>*>(handler) ->SetMessageAllocator(allocator); } ~WithCallbackMethod_GetVersion() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetVersion(::grpc::ServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::StringValue* /*response*/) override { + ::grpc::Status GetVersion(::grpc::ServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::BaseNodeGetVersionResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::ServerUnaryReactor* GetVersion( - ::grpc::CallbackServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::StringValue* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::BaseNodeGetVersionResponse* /*response*/) { return nullptr; } }; template class WithCallbackMethod_CheckForUpdates : public BaseClass { @@ -2708,18 +2855,45 @@ class BaseNode final { ::grpc::CallbackServerContext* /*context*/, const ::tari::rpc::GetActiveValidatorNodesRequest* /*request*/) { return nullptr; } }; template + class WithCallbackMethod_GetValidatorNodeChanges : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetValidatorNodeChanges() { + ::grpc::Service::MarkMethodCallback(33, + new ::grpc::internal::CallbackUnaryHandler< ::tari::rpc::GetValidatorNodeChangesRequest, ::tari::rpc::GetValidatorNodeChangesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::tari::rpc::GetValidatorNodeChangesRequest* request, ::tari::rpc::GetValidatorNodeChangesResponse* response) { return this->GetValidatorNodeChanges(context, request, response); }));} + void SetMessageAllocatorFor_GetValidatorNodeChanges( + ::grpc::MessageAllocator< ::tari::rpc::GetValidatorNodeChangesRequest, ::tari::rpc::GetValidatorNodeChangesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(33); + static_cast<::grpc::internal::CallbackUnaryHandler< ::tari::rpc::GetValidatorNodeChangesRequest, ::tari::rpc::GetValidatorNodeChangesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetValidatorNodeChanges() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetValidatorNodeChanges(::grpc::ServerContext* /*context*/, const ::tari::rpc::GetValidatorNodeChangesRequest* /*request*/, ::tari::rpc::GetValidatorNodeChangesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetValidatorNodeChanges( + ::grpc::CallbackServerContext* /*context*/, const ::tari::rpc::GetValidatorNodeChangesRequest* /*request*/, ::tari::rpc::GetValidatorNodeChangesResponse* /*response*/) { return nullptr; } + }; + template class WithCallbackMethod_GetShardKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_GetShardKey() { - ::grpc::Service::MarkMethodCallback(33, + ::grpc::Service::MarkMethodCallback(34, new ::grpc::internal::CallbackUnaryHandler< ::tari::rpc::GetShardKeyRequest, ::tari::rpc::GetShardKeyResponse>( [this]( ::grpc::CallbackServerContext* context, const ::tari::rpc::GetShardKeyRequest* request, ::tari::rpc::GetShardKeyResponse* response) { return this->GetShardKey(context, request, response); }));} void SetMessageAllocatorFor_GetShardKey( ::grpc::MessageAllocator< ::tari::rpc::GetShardKeyRequest, ::tari::rpc::GetShardKeyResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(33); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(34); static_cast<::grpc::internal::CallbackUnaryHandler< ::tari::rpc::GetShardKeyRequest, ::tari::rpc::GetShardKeyResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -2740,7 +2914,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_GetTemplateRegistrations() { - ::grpc::Service::MarkMethodCallback(34, + ::grpc::Service::MarkMethodCallback(35, new ::grpc::internal::CallbackServerStreamingHandler< ::tari::rpc::GetTemplateRegistrationsRequest, ::tari::rpc::GetTemplateRegistrationResponse>( [this]( ::grpc::CallbackServerContext* context, const ::tari::rpc::GetTemplateRegistrationsRequest* request) { return this->GetTemplateRegistrations(context, request); })); @@ -2762,7 +2936,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_GetSideChainUtxos() { - ::grpc::Service::MarkMethodCallback(35, + ::grpc::Service::MarkMethodCallback(36, new ::grpc::internal::CallbackServerStreamingHandler< ::tari::rpc::GetSideChainUtxosRequest, ::tari::rpc::GetSideChainUtxosResponse>( [this]( ::grpc::CallbackServerContext* context, const ::tari::rpc::GetSideChainUtxosRequest* request) { return this->GetSideChainUtxos(context, request); })); @@ -2784,13 +2958,13 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_GetNetworkState() { - ::grpc::Service::MarkMethodCallback(36, + ::grpc::Service::MarkMethodCallback(37, new ::grpc::internal::CallbackUnaryHandler< ::tari::rpc::GetNetworkStateRequest, ::tari::rpc::GetNetworkStateResponse>( [this]( ::grpc::CallbackServerContext* context, const ::tari::rpc::GetNetworkStateRequest* request, ::tari::rpc::GetNetworkStateResponse* response) { return this->GetNetworkState(context, request, response); }));} void SetMessageAllocatorFor_GetNetworkState( ::grpc::MessageAllocator< ::tari::rpc::GetNetworkStateRequest, ::tari::rpc::GetNetworkStateResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(36); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(37); static_cast<::grpc::internal::CallbackUnaryHandler< ::tari::rpc::GetNetworkStateRequest, ::tari::rpc::GetNetworkStateResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -2805,7 +2979,51 @@ class BaseNode final { virtual ::grpc::ServerUnaryReactor* GetNetworkState( ::grpc::CallbackServerContext* /*context*/, const ::tari::rpc::GetNetworkStateRequest* /*request*/, ::tari::rpc::GetNetworkStateResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_ListHeaders > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > CallbackService; + template + class WithCallbackMethod_SearchPaymentReferences : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SearchPaymentReferences() { + ::grpc::Service::MarkMethodCallback(38, + new ::grpc::internal::CallbackServerStreamingHandler< ::tari::rpc::SearchPaymentReferencesRequest, ::tari::rpc::PaymentReferenceResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::tari::rpc::SearchPaymentReferencesRequest* request) { return this->SearchPaymentReferences(context, request); })); + } + ~WithCallbackMethod_SearchPaymentReferences() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchPaymentReferences(::grpc::ServerContext* /*context*/, const ::tari::rpc::SearchPaymentReferencesRequest* /*request*/, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::tari::rpc::PaymentReferenceResponse>* SearchPaymentReferences( + ::grpc::CallbackServerContext* /*context*/, const ::tari::rpc::SearchPaymentReferencesRequest* /*request*/) { return nullptr; } + }; + template + class WithCallbackMethod_SearchPaymentReferencesViaOutputHash : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SearchPaymentReferencesViaOutputHash() { + ::grpc::Service::MarkMethodCallback(39, + new ::grpc::internal::CallbackServerStreamingHandler< ::tari::rpc::FetchMatchingUtxosRequest, ::tari::rpc::PaymentReferenceResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::tari::rpc::FetchMatchingUtxosRequest* request) { return this->SearchPaymentReferencesViaOutputHash(context, request); })); + } + ~WithCallbackMethod_SearchPaymentReferencesViaOutputHash() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchPaymentReferencesViaOutputHash(::grpc::ServerContext* /*context*/, const ::tari::rpc::FetchMatchingUtxosRequest* /*request*/, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::tari::rpc::PaymentReferenceResponse>* SearchPaymentReferencesViaOutputHash( + ::grpc::CallbackServerContext* /*context*/, const ::tari::rpc::FetchMatchingUtxosRequest* /*request*/) { return nullptr; } + }; + typedef WithCallbackMethod_ListHeaders > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_ListHeaders : public BaseClass { @@ -2938,7 +3156,7 @@ class BaseNode final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetVersion(::grpc::ServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::StringValue* /*response*/) override { + ::grpc::Status GetVersion(::grpc::ServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::BaseNodeGetVersionResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -3369,12 +3587,29 @@ class BaseNode final { } }; template + class WithGenericMethod_GetValidatorNodeChanges : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetValidatorNodeChanges() { + ::grpc::Service::MarkMethodGeneric(33); + } + ~WithGenericMethod_GetValidatorNodeChanges() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetValidatorNodeChanges(::grpc::ServerContext* /*context*/, const ::tari::rpc::GetValidatorNodeChangesRequest* /*request*/, ::tari::rpc::GetValidatorNodeChangesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_GetShardKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetShardKey() { - ::grpc::Service::MarkMethodGeneric(33); + ::grpc::Service::MarkMethodGeneric(34); } ~WithGenericMethod_GetShardKey() override { BaseClassMustBeDerivedFromService(this); @@ -3391,7 +3626,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetTemplateRegistrations() { - ::grpc::Service::MarkMethodGeneric(34); + ::grpc::Service::MarkMethodGeneric(35); } ~WithGenericMethod_GetTemplateRegistrations() override { BaseClassMustBeDerivedFromService(this); @@ -3408,7 +3643,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetSideChainUtxos() { - ::grpc::Service::MarkMethodGeneric(35); + ::grpc::Service::MarkMethodGeneric(36); } ~WithGenericMethod_GetSideChainUtxos() override { BaseClassMustBeDerivedFromService(this); @@ -3425,7 +3660,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetNetworkState() { - ::grpc::Service::MarkMethodGeneric(36); + ::grpc::Service::MarkMethodGeneric(37); } ~WithGenericMethod_GetNetworkState() override { BaseClassMustBeDerivedFromService(this); @@ -3437,6 +3672,40 @@ class BaseNode final { } }; template + class WithGenericMethod_SearchPaymentReferences : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SearchPaymentReferences() { + ::grpc::Service::MarkMethodGeneric(38); + } + ~WithGenericMethod_SearchPaymentReferences() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchPaymentReferences(::grpc::ServerContext* /*context*/, const ::tari::rpc::SearchPaymentReferencesRequest* /*request*/, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SearchPaymentReferencesViaOutputHash : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SearchPaymentReferencesViaOutputHash() { + ::grpc::Service::MarkMethodGeneric(39); + } + ~WithGenericMethod_SearchPaymentReferencesViaOutputHash() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchPaymentReferencesViaOutputHash(::grpc::ServerContext* /*context*/, const ::tari::rpc::FetchMatchingUtxosRequest* /*request*/, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_ListHeaders : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -3588,7 +3857,7 @@ class BaseNode final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetVersion(::grpc::ServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::StringValue* /*response*/) override { + ::grpc::Status GetVersion(::grpc::ServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::BaseNodeGetVersionResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -4097,12 +4366,32 @@ class BaseNode final { } }; template + class WithRawMethod_GetValidatorNodeChanges : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetValidatorNodeChanges() { + ::grpc::Service::MarkMethodRaw(33); + } + ~WithRawMethod_GetValidatorNodeChanges() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetValidatorNodeChanges(::grpc::ServerContext* /*context*/, const ::tari::rpc::GetValidatorNodeChangesRequest* /*request*/, ::tari::rpc::GetValidatorNodeChangesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetValidatorNodeChanges(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(33, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawMethod_GetShardKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetShardKey() { - ::grpc::Service::MarkMethodRaw(33); + ::grpc::Service::MarkMethodRaw(34); } ~WithRawMethod_GetShardKey() override { BaseClassMustBeDerivedFromService(this); @@ -4113,7 +4402,7 @@ class BaseNode final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetShardKey(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(33, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(34, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -4122,7 +4411,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetTemplateRegistrations() { - ::grpc::Service::MarkMethodRaw(34); + ::grpc::Service::MarkMethodRaw(35); } ~WithRawMethod_GetTemplateRegistrations() override { BaseClassMustBeDerivedFromService(this); @@ -4133,7 +4422,7 @@ class BaseNode final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetTemplateRegistrations(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(34, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(35, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -4142,7 +4431,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetSideChainUtxos() { - ::grpc::Service::MarkMethodRaw(35); + ::grpc::Service::MarkMethodRaw(36); } ~WithRawMethod_GetSideChainUtxos() override { BaseClassMustBeDerivedFromService(this); @@ -4153,7 +4442,7 @@ class BaseNode final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetSideChainUtxos(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(35, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(36, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -4162,7 +4451,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetNetworkState() { - ::grpc::Service::MarkMethodRaw(36); + ::grpc::Service::MarkMethodRaw(37); } ~WithRawMethod_GetNetworkState() override { BaseClassMustBeDerivedFromService(this); @@ -4173,7 +4462,47 @@ class BaseNode final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetNetworkState(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(36, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(37, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SearchPaymentReferences : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SearchPaymentReferences() { + ::grpc::Service::MarkMethodRaw(38); + } + ~WithRawMethod_SearchPaymentReferences() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchPaymentReferences(::grpc::ServerContext* /*context*/, const ::tari::rpc::SearchPaymentReferencesRequest* /*request*/, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSearchPaymentReferences(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(38, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SearchPaymentReferencesViaOutputHash : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SearchPaymentReferencesViaOutputHash() { + ::grpc::Service::MarkMethodRaw(39); + } + ~WithRawMethod_SearchPaymentReferencesViaOutputHash() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchPaymentReferencesViaOutputHash(::grpc::ServerContext* /*context*/, const ::tari::rpc::FetchMatchingUtxosRequest* /*request*/, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSearchPaymentReferencesViaOutputHash(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(39, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -4345,7 +4674,7 @@ class BaseNode final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetVersion(::grpc::ServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::StringValue* /*response*/) override { + ::grpc::Status GetVersion(::grpc::ServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::BaseNodeGetVersionResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -4903,12 +5232,34 @@ class BaseNode final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } }; template + class WithRawCallbackMethod_GetValidatorNodeChanges : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetValidatorNodeChanges() { + ::grpc::Service::MarkMethodRawCallback(33, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetValidatorNodeChanges(context, request, response); })); + } + ~WithRawCallbackMethod_GetValidatorNodeChanges() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetValidatorNodeChanges(::grpc::ServerContext* /*context*/, const ::tari::rpc::GetValidatorNodeChangesRequest* /*request*/, ::tari::rpc::GetValidatorNodeChangesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetValidatorNodeChanges( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithRawCallbackMethod_GetShardKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_GetShardKey() { - ::grpc::Service::MarkMethodRawCallback(33, + ::grpc::Service::MarkMethodRawCallback(34, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetShardKey(context, request, response); })); @@ -4930,7 +5281,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_GetTemplateRegistrations() { - ::grpc::Service::MarkMethodRawCallback(34, + ::grpc::Service::MarkMethodRawCallback(35, new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->GetTemplateRegistrations(context, request); })); @@ -4952,7 +5303,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_GetSideChainUtxos() { - ::grpc::Service::MarkMethodRawCallback(35, + ::grpc::Service::MarkMethodRawCallback(36, new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->GetSideChainUtxos(context, request); })); @@ -4974,7 +5325,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_GetNetworkState() { - ::grpc::Service::MarkMethodRawCallback(36, + ::grpc::Service::MarkMethodRawCallback(37, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetNetworkState(context, request, response); })); @@ -4991,6 +5342,50 @@ class BaseNode final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_SearchPaymentReferences : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SearchPaymentReferences() { + ::grpc::Service::MarkMethodRawCallback(38, + new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->SearchPaymentReferences(context, request); })); + } + ~WithRawCallbackMethod_SearchPaymentReferences() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchPaymentReferences(::grpc::ServerContext* /*context*/, const ::tari::rpc::SearchPaymentReferencesRequest* /*request*/, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* SearchPaymentReferences( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_SearchPaymentReferencesViaOutputHash : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SearchPaymentReferencesViaOutputHash() { + ::grpc::Service::MarkMethodRawCallback(39, + new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->SearchPaymentReferencesViaOutputHash(context, request); })); + } + ~WithRawCallbackMethod_SearchPaymentReferencesViaOutputHash() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchPaymentReferencesViaOutputHash(::grpc::ServerContext* /*context*/, const ::tari::rpc::FetchMatchingUtxosRequest* /*request*/, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* SearchPaymentReferencesViaOutputHash( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + }; + template class WithStreamedUnaryMethod_GetHeaderByHash : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -5133,10 +5528,10 @@ class BaseNode final { WithStreamedUnaryMethod_GetVersion() { ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< - ::tari::rpc::Empty, ::tari::rpc::StringValue>( + ::tari::rpc::Empty, ::tari::rpc::BaseNodeGetVersionResponse>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::tari::rpc::Empty, ::tari::rpc::StringValue>* streamer) { + ::tari::rpc::Empty, ::tari::rpc::BaseNodeGetVersionResponse>* streamer) { return this->StreamedGetVersion(context, streamer); })); @@ -5145,12 +5540,12 @@ class BaseNode final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetVersion(::grpc::ServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::StringValue* /*response*/) override { + ::grpc::Status GetVersion(::grpc::ServerContext* /*context*/, const ::tari::rpc::Empty* /*request*/, ::tari::rpc::BaseNodeGetVersionResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetVersion(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::tari::rpc::Empty,::tari::rpc::StringValue>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedGetVersion(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::tari::rpc::Empty,::tari::rpc::BaseNodeGetVersionResponse>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_CheckForUpdates : public BaseClass { @@ -5612,12 +6007,39 @@ class BaseNode final { virtual ::grpc::Status StreamedGetMempoolStats(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::tari::rpc::Empty,::tari::rpc::MempoolStatsResponse>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_GetValidatorNodeChanges : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetValidatorNodeChanges() { + ::grpc::Service::MarkMethodStreamed(33, + new ::grpc::internal::StreamedUnaryHandler< + ::tari::rpc::GetValidatorNodeChangesRequest, ::tari::rpc::GetValidatorNodeChangesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::tari::rpc::GetValidatorNodeChangesRequest, ::tari::rpc::GetValidatorNodeChangesResponse>* streamer) { + return this->StreamedGetValidatorNodeChanges(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetValidatorNodeChanges() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetValidatorNodeChanges(::grpc::ServerContext* /*context*/, const ::tari::rpc::GetValidatorNodeChangesRequest* /*request*/, ::tari::rpc::GetValidatorNodeChangesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetValidatorNodeChanges(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::tari::rpc::GetValidatorNodeChangesRequest,::tari::rpc::GetValidatorNodeChangesResponse>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_GetShardKey : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetShardKey() { - ::grpc::Service::MarkMethodStreamed(33, + ::grpc::Service::MarkMethodStreamed(34, new ::grpc::internal::StreamedUnaryHandler< ::tari::rpc::GetShardKeyRequest, ::tari::rpc::GetShardKeyResponse>( [this](::grpc::ServerContext* context, @@ -5644,7 +6066,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetNetworkState() { - ::grpc::Service::MarkMethodStreamed(36, + ::grpc::Service::MarkMethodStreamed(37, new ::grpc::internal::StreamedUnaryHandler< ::tari::rpc::GetNetworkStateRequest, ::tari::rpc::GetNetworkStateResponse>( [this](::grpc::ServerContext* context, @@ -5665,7 +6087,7 @@ class BaseNode final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedGetNetworkState(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::tari::rpc::GetNetworkStateRequest,::tari::rpc::GetNetworkStateResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_GetHeaderByHash > > > > > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_GetHeaderByHash > > > > > > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; template class WithSplitStreamingMethod_ListHeaders : public BaseClass { private: @@ -5942,7 +6364,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithSplitStreamingMethod_GetTemplateRegistrations() { - ::grpc::Service::MarkMethodStreamed(34, + ::grpc::Service::MarkMethodStreamed(35, new ::grpc::internal::SplitServerStreamingHandler< ::tari::rpc::GetTemplateRegistrationsRequest, ::tari::rpc::GetTemplateRegistrationResponse>( [this](::grpc::ServerContext* context, @@ -5969,7 +6391,7 @@ class BaseNode final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithSplitStreamingMethod_GetSideChainUtxos() { - ::grpc::Service::MarkMethodStreamed(35, + ::grpc::Service::MarkMethodStreamed(36, new ::grpc::internal::SplitServerStreamingHandler< ::tari::rpc::GetSideChainUtxosRequest, ::tari::rpc::GetSideChainUtxosResponse>( [this](::grpc::ServerContext* context, @@ -5990,12 +6412,67 @@ class BaseNode final { // replace default version of method with split streamed virtual ::grpc::Status StreamedGetSideChainUtxos(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::tari::rpc::GetSideChainUtxosRequest,::tari::rpc::GetSideChainUtxosResponse>* server_split_streamer) = 0; }; - typedef WithSplitStreamingMethod_ListHeaders > > > > > > > > > > > SplitStreamedService; - typedef WithSplitStreamingMethod_ListHeaders > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedService; + template + class WithSplitStreamingMethod_SearchPaymentReferences : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithSplitStreamingMethod_SearchPaymentReferences() { + ::grpc::Service::MarkMethodStreamed(38, + new ::grpc::internal::SplitServerStreamingHandler< + ::tari::rpc::SearchPaymentReferencesRequest, ::tari::rpc::PaymentReferenceResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerSplitStreamer< + ::tari::rpc::SearchPaymentReferencesRequest, ::tari::rpc::PaymentReferenceResponse>* streamer) { + return this->StreamedSearchPaymentReferences(context, + streamer); + })); + } + ~WithSplitStreamingMethod_SearchPaymentReferences() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SearchPaymentReferences(::grpc::ServerContext* /*context*/, const ::tari::rpc::SearchPaymentReferencesRequest* /*request*/, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with split streamed + virtual ::grpc::Status StreamedSearchPaymentReferences(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::tari::rpc::SearchPaymentReferencesRequest,::tari::rpc::PaymentReferenceResponse>* server_split_streamer) = 0; + }; + template + class WithSplitStreamingMethod_SearchPaymentReferencesViaOutputHash : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithSplitStreamingMethod_SearchPaymentReferencesViaOutputHash() { + ::grpc::Service::MarkMethodStreamed(39, + new ::grpc::internal::SplitServerStreamingHandler< + ::tari::rpc::FetchMatchingUtxosRequest, ::tari::rpc::PaymentReferenceResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerSplitStreamer< + ::tari::rpc::FetchMatchingUtxosRequest, ::tari::rpc::PaymentReferenceResponse>* streamer) { + return this->StreamedSearchPaymentReferencesViaOutputHash(context, + streamer); + })); + } + ~WithSplitStreamingMethod_SearchPaymentReferencesViaOutputHash() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SearchPaymentReferencesViaOutputHash(::grpc::ServerContext* /*context*/, const ::tari::rpc::FetchMatchingUtxosRequest* /*request*/, ::grpc::ServerWriter< ::tari::rpc::PaymentReferenceResponse>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with split streamed + virtual ::grpc::Status StreamedSearchPaymentReferencesViaOutputHash(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::tari::rpc::FetchMatchingUtxosRequest,::tari::rpc::PaymentReferenceResponse>* server_split_streamer) = 0; + }; + typedef WithSplitStreamingMethod_ListHeaders > > > > > > > > > > > > > SplitStreamedService; + typedef WithSplitStreamingMethod_ListHeaders > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedService; }; } // namespace rpc } // namespace tari +#include #endif // GRPC_base_5fnode_2eproto__INCLUDED diff --git a/external/src/Tari/proto/gRPC/base_node.pb.cc b/external/src/Tari/proto/gRPC/base_node.pb.cc index a0556ac..6ea3c54 100644 --- a/external/src/Tari/proto/gRPC/base_node.pb.cc +++ b/external/src/Tari/proto/gRPC/base_node.pb.cc @@ -1,18 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: base_node.proto -// Protobuf C++ Version: 5.26.1 +// Protobuf C++ Version: 6.31.1 #include "base_node.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -26,14 +29,25 @@ namespace rpc { inline constexpr ValueAtHeightResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : circulating_supply_{::uint64_t{0u}}, - spendable_supply_{::uint64_t{0u}}, + : _cached_size_{0}, + circulating_supply_{::uint64_t{0u}}, height_{::uint64_t{0u}}, - _cached_size_{0} {} + mined_rewards_{::uint64_t{0u}}, + spendable_rewards_{::uint64_t{0u}}, + spendable_pre_mine_{::uint64_t{0u}}, + total_spendable_{::uint64_t{0u}}, + total_pre_mine_{::uint64_t{0u}}, + time_locked_pre_mine_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR ValueAtHeightResponse::ValueAtHeightResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ValueAtHeightResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ValueAtHeightResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ValueAtHeightResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ValueAtHeightResponseDefaultTypeInternal() {} @@ -45,14 +59,47 @@ struct ValueAtHeightResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueAtHeightResponseDefaultTypeInternal _ValueAtHeightResponse_default_instance_; +inline constexpr ValidatorNodeChangeRemove::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR ValidatorNodeChangeRemove::ValidatorNodeChangeRemove(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ValidatorNodeChangeRemove_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ValidatorNodeChangeRemoveDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValidatorNodeChangeRemoveDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ValidatorNodeChangeRemoveDefaultTypeInternal() {} + union { + ValidatorNodeChangeRemove _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidatorNodeChangeRemoveDefaultTypeInternal _ValidatorNodeChangeRemove_default_instance_; + inline constexpr TransactionStateResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : result_{static_cast< ::tari::rpc::TransactionLocation >(0)}, - _cached_size_{0} {} + : _cached_size_{0}, + result_{static_cast< ::tari::rpc::TransactionLocation >(0)} {} template PROTOBUF_CONSTEXPR TransactionStateResponse::TransactionStateResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(TransactionStateResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TransactionStateResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TransactionStateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransactionStateResponseDefaultTypeInternal() {} @@ -66,18 +113,24 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr SyncProgressResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : short_desc_( + : _cached_size_{0}, + short_desc_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), tip_height_{::uint64_t{0u}}, local_height_{::uint64_t{0u}}, initial_connected_peers_{::uint64_t{0u}}, - state_{static_cast< ::tari::rpc::SyncState >(0)}, - _cached_size_{0} {} + state_{static_cast< ::tari::rpc::SyncState >(0)} {} template PROTOBUF_CONSTEXPR SyncProgressResponse::SyncProgressResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SyncProgressResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SyncProgressResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SyncProgressResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SyncProgressResponseDefaultTypeInternal() {} @@ -91,14 +144,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr SyncInfoResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : peer_node_id_{}, + : _cached_size_{0}, + peer_node_id_{}, tip_height_{::uint64_t{0u}}, - local_height_{::uint64_t{0u}}, - _cached_size_{0} {} + local_height_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR SyncInfoResponse::SyncInfoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SyncInfoResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SyncInfoResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SyncInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SyncInfoResponseDefaultTypeInternal() {} @@ -112,12 +171,18 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr SubmitTransactionResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : result_{static_cast< ::tari::rpc::SubmitTransactionResult >(0)}, - _cached_size_{0} {} + : _cached_size_{0}, + result_{static_cast< ::tari::rpc::SubmitTransactionResult >(0)} {} template PROTOBUF_CONSTEXPR SubmitTransactionResponse::SubmitTransactionResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SubmitTransactionResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SubmitTransactionResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SubmitTransactionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubmitTransactionResponseDefaultTypeInternal() {} @@ -131,14 +196,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr SubmitBlockResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : block_hash_( + : _cached_size_{0}, + block_hash_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR SubmitBlockResponse::SubmitBlockResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SubmitBlockResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SubmitBlockResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SubmitBlockResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubmitBlockResponseDefaultTypeInternal() {} @@ -150,27 +221,6 @@ struct SubmitBlockResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitBlockResponseDefaultTypeInternal _SubmitBlockResponse_default_instance_; -inline constexpr StringValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : value_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR StringValue::StringValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StringValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR StringValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StringValueDefaultTypeInternal() {} - union { - StringValue _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StringValueDefaultTypeInternal _StringValue_default_instance_; - inline constexpr SearchUtxosRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : commitments_{}, @@ -178,7 +228,13 @@ inline constexpr SearchUtxosRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SearchUtxosRequest::SearchUtxosRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SearchUtxosRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SearchUtxosRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SearchUtxosRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SearchUtxosRequestDefaultTypeInternal() {} @@ -190,9 +246,82 @@ struct SearchUtxosRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SearchUtxosRequestDefaultTypeInternal _SearchUtxosRequest_default_instance_; +inline constexpr SearchPaymentReferencesRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + payment_reference_hex_{}, + payment_reference_bytes_{}, + include_spent_{false} {} + +template +PROTOBUF_CONSTEXPR SearchPaymentReferencesRequest::SearchPaymentReferencesRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SearchPaymentReferencesRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SearchPaymentReferencesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SearchPaymentReferencesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SearchPaymentReferencesRequestDefaultTypeInternal() {} + union { + SearchPaymentReferencesRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SearchPaymentReferencesRequestDefaultTypeInternal _SearchPaymentReferencesRequest_default_instance_; + +inline constexpr PaymentReferenceResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + payment_reference_hex_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + block_hash_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + commitment_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + spent_block_hash_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + output_hash_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + block_height_{::uint64_t{0u}}, + mined_timestamp_{::uint64_t{0u}}, + spent_height_{::uint64_t{0u}}, + min_value_promise_{::uint64_t{0u}}, + spent_timestamp_{::uint64_t{0u}}, + is_spent_{false} {} + +template +PROTOBUF_CONSTEXPR PaymentReferenceResponse::PaymentReferenceResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(PaymentReferenceResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct PaymentReferenceResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PaymentReferenceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PaymentReferenceResponseDefaultTypeInternal() {} + union { + PaymentReferenceResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PaymentReferenceResponseDefaultTypeInternal _PaymentReferenceResponse_default_instance_; + inline constexpr NewBlockCoinbase::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : address_( + : _cached_size_{0}, + address_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), coinbase_extra_( @@ -200,12 +329,17 @@ inline constexpr NewBlockCoinbase::Impl_::Impl_( ::_pbi::ConstantInitialized()), value_{::uint64_t{0u}}, stealth_payment_{false}, - revealed_value_proof_{false}, - _cached_size_{0} {} + revealed_value_proof_{false} {} template PROTOBUF_CONSTEXPR NewBlockCoinbase::NewBlockCoinbase(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(NewBlockCoinbase_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct NewBlockCoinbaseDefaultTypeInternal { PROTOBUF_CONSTEXPR NewBlockCoinbaseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NewBlockCoinbaseDefaultTypeInternal() {} @@ -219,7 +353,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr NetworkDifficultyResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : coinbase_extras_{}, + : _cached_size_{0}, + coinbase_extras_{}, difficulty_{::uint64_t{0u}}, estimated_hash_rate_{::uint64_t{0u}}, height_{::uint64_t{0u}}, @@ -228,12 +363,17 @@ inline constexpr NetworkDifficultyResponse::Impl_::Impl_( sha3x_estimated_hash_rate_{::uint64_t{0u}}, monero_randomx_estimated_hash_rate_{::uint64_t{0u}}, num_coinbases_{::uint64_t{0u}}, - tari_randomx_estimated_hash_rate_{::uint64_t{0u}}, - _cached_size_{0} {} + tari_randomx_estimated_hash_rate_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR NetworkDifficultyResponse::NetworkDifficultyResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(NetworkDifficultyResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct NetworkDifficultyResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR NetworkDifficultyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NetworkDifficultyResponseDefaultTypeInternal() {} @@ -245,9 +385,39 @@ struct NetworkDifficultyResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetworkDifficultyResponseDefaultTypeInternal _NetworkDifficultyResponse_default_instance_; +inline constexpr MigrationProgress::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + current_block_{::uint64_t{0u}}, + total_blocks_{::uint64_t{0u}}, + progress_percentage_{0}, + current_db_version_{::uint64_t{0u}}, + target_db_version_{::uint64_t{0u}} {} + +template +PROTOBUF_CONSTEXPR MigrationProgress::MigrationProgress(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(MigrationProgress_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct MigrationProgressDefaultTypeInternal { + PROTOBUF_CONSTEXPR MigrationProgressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~MigrationProgressDefaultTypeInternal() {} + union { + MigrationProgress _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MigrationProgressDefaultTypeInternal _MigrationProgress_default_instance_; + inline constexpr MetaData::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : best_block_hash_( + : _cached_size_{0}, + best_block_hash_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), accumulated_difficulty_( @@ -255,12 +425,17 @@ inline constexpr MetaData::Impl_::Impl_( ::_pbi::ConstantInitialized()), best_block_height_{::uint64_t{0u}}, pruned_height_{::uint64_t{0u}}, - timestamp_{::uint64_t{0u}}, - _cached_size_{0} {} + timestamp_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR MetaData::MetaData(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(MetaData_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct MetaDataDefaultTypeInternal { PROTOBUF_CONSTEXPR MetaDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MetaDataDefaultTypeInternal() {} @@ -274,14 +449,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr MempoolStatsResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : unconfirmed_txs_{::uint64_t{0u}}, + : _cached_size_{0}, + unconfirmed_txs_{::uint64_t{0u}}, reorg_txs_{::uint64_t{0u}}, - unconfirmed_weight_{::uint64_t{0u}}, - _cached_size_{0} {} + unconfirmed_weight_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR MempoolStatsResponse::MempoolStatsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(MempoolStatsResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct MempoolStatsResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR MempoolStatsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MempoolStatsResponseDefaultTypeInternal() {} @@ -295,16 +476,22 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr LivenessResult::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : peer_node_id_( + : _cached_size_{0}, + peer_node_id_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), discover_latency_{::uint64_t{0u}}, - ping_latency_{::uint64_t{0u}}, - _cached_size_{0} {} + ping_latency_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR LivenessResult::LivenessResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(LivenessResult_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct LivenessResultDefaultTypeInternal { PROTOBUF_CONSTEXPR LivenessResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~LivenessResultDefaultTypeInternal() {} @@ -318,14 +505,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ListHeadersRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : from_height_{::uint64_t{0u}}, + : _cached_size_{0}, + from_height_{::uint64_t{0u}}, num_headers_{::uint64_t{0u}}, - sorting_{static_cast< ::tari::rpc::Sorting >(0)}, - _cached_size_{0} {} + sorting_{static_cast< ::tari::rpc::Sorting >(0)} {} template PROTOBUF_CONSTEXPR ListHeadersRequest::ListHeadersRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ListHeadersRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ListHeadersRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ListHeadersRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListHeadersRequestDefaultTypeInternal() {} @@ -339,13 +532,19 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ListAssetRegistrationsRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : offset_{::uint64_t{0u}}, - count_{::uint64_t{0u}}, - _cached_size_{0} {} + : _cached_size_{0}, + offset_{::uint64_t{0u}}, + count_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR ListAssetRegistrationsRequest::ListAssetRegistrationsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ListAssetRegistrationsRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ListAssetRegistrationsRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ListAssetRegistrationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListAssetRegistrationsRequestDefaultTypeInternal() {} @@ -359,12 +558,18 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr IntegerValue::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : value_{::uint64_t{0u}}, - _cached_size_{0} {} + : _cached_size_{0}, + value_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR IntegerValue::IntegerValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(IntegerValue_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct IntegerValueDefaultTypeInternal { PROTOBUF_CONSTEXPR IntegerValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~IntegerValueDefaultTypeInternal() {} @@ -378,14 +583,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr HeightRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : from_tip_{::uint64_t{0u}}, + : _cached_size_{0}, + from_tip_{::uint64_t{0u}}, start_height_{::uint64_t{0u}}, - end_height_{::uint64_t{0u}}, - _cached_size_{0} {} + end_height_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR HeightRequest::HeightRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(HeightRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct HeightRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR HeightRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~HeightRequestDefaultTypeInternal() {} @@ -397,17 +608,51 @@ struct HeightRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeightRequestDefaultTypeInternal _HeightRequest_default_instance_; -inline constexpr GetTokensRequest::Impl_::Impl_( +inline constexpr GetValidatorNodeChangesRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : unique_ids_{}, - asset_public_key_( + : _cached_size_{0}, + sidechain_id_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + epoch_{::uint64_t{0u}} {} + +template +PROTOBUF_CONSTEXPR GetValidatorNodeChangesRequest::GetValidatorNodeChangesRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetValidatorNodeChangesRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct GetValidatorNodeChangesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetValidatorNodeChangesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetValidatorNodeChangesRequestDefaultTypeInternal() {} + union { + GetValidatorNodeChangesRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetValidatorNodeChangesRequestDefaultTypeInternal _GetValidatorNodeChangesRequest_default_instance_; + +inline constexpr GetTokensRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + unique_ids_{}, + asset_public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetTokensRequest::GetTokensRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetTokensRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetTokensRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetTokensRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetTokensRequestDefaultTypeInternal() {} @@ -421,15 +666,21 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetTemplateRegistrationsRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : start_hash_( + : _cached_size_{0}, + start_hash_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - count_{::uint64_t{0u}}, - _cached_size_{0} {} + count_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR GetTemplateRegistrationsRequest::GetTemplateRegistrationsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetTemplateRegistrationsRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetTemplateRegistrationsRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetTemplateRegistrationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetTemplateRegistrationsRequestDefaultTypeInternal() {} @@ -443,15 +694,21 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetSideChainUtxosRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : start_hash_( + : _cached_size_{0}, + start_hash_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - count_{::uint64_t{0u}}, - _cached_size_{0} {} + count_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR GetSideChainUtxosRequest::GetSideChainUtxosRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetSideChainUtxosRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetSideChainUtxosRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetSideChainUtxosRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetSideChainUtxosRequestDefaultTypeInternal() {} @@ -465,15 +722,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetShardKeyResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : shard_key_( + : _cached_size_{0}, + shard_key_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - found_{false}, - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetShardKeyResponse::GetShardKeyResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetShardKeyResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetShardKeyResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetShardKeyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetShardKeyResponseDefaultTypeInternal() {} @@ -487,15 +749,21 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetShardKeyRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : public_key_( + : _cached_size_{0}, + public_key_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - height_{::uint64_t{0u}}, - _cached_size_{0} {} + epoch_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR GetShardKeyRequest::GetShardKeyRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetShardKeyRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetShardKeyRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetShardKeyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetShardKeyRequestDefaultTypeInternal() {} @@ -506,8 +774,14 @@ struct GetShardKeyRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetShardKeyRequestDefaultTypeInternal _GetShardKeyRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetPeersRequest::GetPeersRequest(::_pbi::ConstantInitialized) {} +template +PROTOBUF_CONSTEXPR GetPeersRequest::GetPeersRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(GetPeersRequest_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct GetPeersRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetPeersRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetPeersRequestDefaultTypeInternal() {} @@ -521,7 +795,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetNewBlockBlobResult::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : block_hash_( + : _cached_size_{0}, + block_hash_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), header_( @@ -538,12 +813,17 @@ inline constexpr GetNewBlockBlobResult::Impl_::Impl_( ::_pbi::ConstantInitialized()), tari_unique_id_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetNewBlockBlobResult::GetNewBlockBlobResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetNewBlockBlobResult_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetNewBlockBlobResultDefaultTypeInternal { PROTOBUF_CONSTEXPR GetNewBlockBlobResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetNewBlockBlobResultDefaultTypeInternal() {} @@ -554,8 +834,14 @@ struct GetNewBlockBlobResultDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetNewBlockBlobResultDefaultTypeInternal _GetNewBlockBlobResult_default_instance_; - template -PROTOBUF_CONSTEXPR GetNetworkStateRequest::GetNetworkStateRequest(::_pbi::ConstantInitialized) {} +template +PROTOBUF_CONSTEXPR GetNetworkStateRequest::GetNetworkStateRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(GetNetworkStateRequest_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct GetNetworkStateRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetNetworkStateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetNetworkStateRequestDefaultTypeInternal() {} @@ -566,8 +852,14 @@ struct GetNetworkStateRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetNetworkStateRequestDefaultTypeInternal _GetNetworkStateRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetMempoolTransactionsRequest::GetMempoolTransactionsRequest(::_pbi::ConstantInitialized) {} +template +PROTOBUF_CONSTEXPR GetMempoolTransactionsRequest::GetMempoolTransactionsRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(GetMempoolTransactionsRequest_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct GetMempoolTransactionsRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetMempoolTransactionsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetMempoolTransactionsRequestDefaultTypeInternal() {} @@ -581,14 +873,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetHeaderByHashRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : hash_( + : _cached_size_{0}, + hash_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetHeaderByHashRequest::GetHeaderByHashRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetHeaderByHashRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetHeaderByHashRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetHeaderByHashRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetHeaderByHashRequestDefaultTypeInternal() {} @@ -608,7 +906,13 @@ inline constexpr GetBlocksRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetBlocksRequest::GetBlocksRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetBlocksRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetBlocksRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetBlocksRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetBlocksRequestDefaultTypeInternal() {} @@ -622,14 +926,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetAssetMetadataRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : asset_public_key_( + : _cached_size_{0}, + asset_public_key_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetAssetMetadataRequest::GetAssetMetadataRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetAssetMetadataRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetAssetMetadataRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetAssetMetadataRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetAssetMetadataRequestDefaultTypeInternal() {} @@ -643,17 +953,26 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetActiveValidatorNodesResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : shard_key_( + : _cached_size_{0}, + shard_key_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), public_key_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + sidechain_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetActiveValidatorNodesResponse::GetActiveValidatorNodesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetActiveValidatorNodesResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetActiveValidatorNodesResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetActiveValidatorNodesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetActiveValidatorNodesResponseDefaultTypeInternal() {} @@ -667,12 +986,21 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetActiveValidatorNodesRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : height_{::uint64_t{0u}}, - _cached_size_{0} {} + : _cached_size_{0}, + sidechain_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + height_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR GetActiveValidatorNodesRequest::GetActiveValidatorNodesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetActiveValidatorNodesRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetActiveValidatorNodesRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetActiveValidatorNodesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetActiveValidatorNodesRequestDefaultTypeInternal() {} @@ -691,7 +1019,13 @@ inline constexpr FetchMatchingUtxosRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR FetchMatchingUtxosRequest::FetchMatchingUtxosRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(FetchMatchingUtxosRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct FetchMatchingUtxosRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR FetchMatchingUtxosRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FetchMatchingUtxosRequestDefaultTypeInternal() {} @@ -705,14 +1039,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr BlockTimingResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : max_{::uint64_t{0u}}, + : _cached_size_{0}, + max_{::uint64_t{0u}}, min_{::uint64_t{0u}}, - avg_{0}, - _cached_size_{0} {} + avg_{0} {} template PROTOBUF_CONSTEXPR BlockTimingResponse::BlockTimingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(BlockTimingResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct BlockTimingResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR BlockTimingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~BlockTimingResponseDefaultTypeInternal() {} @@ -726,18 +1066,24 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr BlockInfo::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : hash_( + : _cached_size_{0}, + hash_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), next_block_hash_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - height_{::uint64_t{0u}}, - _cached_size_{0} {} + height_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR BlockInfo::BlockInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(BlockInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct BlockInfoDefaultTypeInternal { PROTOBUF_CONSTEXPR BlockInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~BlockInfoDefaultTypeInternal() {} @@ -751,13 +1097,19 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr BlockGroupResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : value_{}, - calc_type_{static_cast< ::tari::rpc::CalcType >(0)}, - _cached_size_{0} {} + : _cached_size_{0}, + value_{}, + calc_type_{static_cast< ::tari::rpc::CalcType >(0)} {} template PROTOBUF_CONSTEXPR BlockGroupResponse::BlockGroupResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(BlockGroupResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct BlockGroupResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR BlockGroupResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~BlockGroupResponseDefaultTypeInternal() {} @@ -771,15 +1123,21 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr BlockGroupRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : from_tip_{::uint64_t{0u}}, + : _cached_size_{0}, + from_tip_{::uint64_t{0u}}, start_height_{::uint64_t{0u}}, end_height_{::uint64_t{0u}}, - calc_type_{static_cast< ::tari::rpc::CalcType >(0)}, - _cached_size_{0} {} + calc_type_{static_cast< ::tari::rpc::CalcType >(0)} {} template PROTOBUF_CONSTEXPR BlockGroupRequest::BlockGroupRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(BlockGroupRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct BlockGroupRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR BlockGroupRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~BlockGroupRequestDefaultTypeInternal() {} @@ -793,17 +1151,23 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr BlockBlobRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : header_blob_( + : _cached_size_{0}, + header_blob_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), body_blob_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR BlockBlobRequest::BlockBlobRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(BlockBlobRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct BlockBlobRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR BlockBlobRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~BlockBlobRequestDefaultTypeInternal() {} @@ -815,6 +1179,34 @@ struct BlockBlobRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockBlobRequestDefaultTypeInternal _BlockBlobRequest_default_instance_; +inline constexpr BaseNodeGetVersionResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + network_{0u} {} + +template +PROTOBUF_CONSTEXPR BaseNodeGetVersionResponse::BaseNodeGetVersionResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(BaseNodeGetVersionResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct BaseNodeGetVersionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR BaseNodeGetVersionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~BaseNodeGetVersionResponseDefaultTypeInternal() {} + union { + BaseNodeGetVersionResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BaseNodeGetVersionResponseDefaultTypeInternal _BaseNodeGetVersionResponse_default_instance_; + inline constexpr TransactionStateRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -822,7 +1214,13 @@ inline constexpr TransactionStateRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR TransactionStateRequest::TransactionStateRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(TransactionStateRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TransactionStateRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR TransactionStateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransactionStateRequestDefaultTypeInternal() {} @@ -844,7 +1242,13 @@ inline constexpr TipInfoResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR TipInfoResponse::TipInfoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(TipInfoResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TipInfoResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TipInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TipInfoResponseDefaultTypeInternal() {} @@ -863,7 +1267,13 @@ inline constexpr SearchKernelsRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SearchKernelsRequest::SearchKernelsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SearchKernelsRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SearchKernelsRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SearchKernelsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SearchKernelsRequestDefaultTypeInternal() {} @@ -875,6 +1285,33 @@ struct SearchKernelsRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SearchKernelsRequestDefaultTypeInternal _SearchKernelsRequest_default_instance_; +inline constexpr ReadinessStatus::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + timestamp_{::uint64_t{0u}}, + status_{}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR ReadinessStatus::ReadinessStatus(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ReadinessStatus_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ReadinessStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReadinessStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ReadinessStatusDefaultTypeInternal() {} + union { + ReadinessStatus _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReadinessStatusDefaultTypeInternal _ReadinessStatus_default_instance_; + inline constexpr NewBlockTemplateRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -883,7 +1320,13 @@ inline constexpr NewBlockTemplateRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR NewBlockTemplateRequest::NewBlockTemplateRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(NewBlockTemplateRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct NewBlockTemplateRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR NewBlockTemplateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NewBlockTemplateRequestDefaultTypeInternal() {} @@ -905,7 +1348,13 @@ inline constexpr MinerData::Impl_::Impl_( template PROTOBUF_CONSTEXPR MinerData::MinerData(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(MinerData_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct MinerDataDefaultTypeInternal { PROTOBUF_CONSTEXPR MinerDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MinerDataDefaultTypeInternal() {} @@ -926,7 +1375,13 @@ inline constexpr GetNewBlockTemplateWithCoinbasesRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetNewBlockTemplateWithCoinbasesRequest::GetNewBlockTemplateWithCoinbasesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetNewBlockTemplateWithCoinbasesRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetNewBlockTemplateWithCoinbasesRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetNewBlockTemplateWithCoinbasesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetNewBlockTemplateWithCoinbasesRequestDefaultTypeInternal() {} @@ -938,11 +1393,42 @@ struct GetNewBlockTemplateWithCoinbasesRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetNewBlockTemplateWithCoinbasesRequestDefaultTypeInternal _GetNewBlockTemplateWithCoinbasesRequest_default_instance_; +inline constexpr ValidatorNodeChangeAdd::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + shard_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + registration_{nullptr}, + activation_epoch_{::uint64_t{0u}}, + minimum_value_promise_{::uint64_t{0u}} {} + +template +PROTOBUF_CONSTEXPR ValidatorNodeChangeAdd::ValidatorNodeChangeAdd(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ValidatorNodeChangeAdd_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ValidatorNodeChangeAddDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValidatorNodeChangeAddDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ValidatorNodeChangeAddDefaultTypeInternal() {} + union { + ValidatorNodeChangeAdd _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidatorNodeChangeAddDefaultTypeInternal _ValidatorNodeChangeAdd_default_instance_; + inline constexpr GetNetworkStateResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, liveness_results_{}, metadata_{nullptr}, + readiness_status_{nullptr}, base_node_state_{static_cast< ::tari::rpc::BaseNodeState >(0)}, initial_sync_achieved_{false}, failed_checkpoints_{false}, @@ -954,7 +1440,13 @@ inline constexpr GetNetworkStateResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetNetworkStateResponse::GetNetworkStateResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetNetworkStateResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetNetworkStateResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetNetworkStateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetNetworkStateResponseDefaultTypeInternal() {} @@ -977,7 +1469,13 @@ inline constexpr BlockHeaderResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR BlockHeaderResponse::BlockHeaderResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(BlockHeaderResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct BlockHeaderResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR BlockHeaderResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~BlockHeaderResponseDefaultTypeInternal() {} @@ -989,6 +1487,32 @@ struct BlockHeaderResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockHeaderResponseDefaultTypeInternal _BlockHeaderResponse_default_instance_; +inline constexpr ValidatorNodeChange::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : change_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR ValidatorNodeChange::ValidatorNodeChange(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ValidatorNodeChange_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ValidatorNodeChangeDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValidatorNodeChangeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ValidatorNodeChangeDefaultTypeInternal() {} + union { + ValidatorNodeChange _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidatorNodeChangeDefaultTypeInternal _ValidatorNodeChange_default_instance_; + inline constexpr GetTemplateRegistrationResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -999,7 +1523,13 @@ inline constexpr GetTemplateRegistrationResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetTemplateRegistrationResponse::GetTemplateRegistrationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetTemplateRegistrationResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetTemplateRegistrationResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetTemplateRegistrationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetTemplateRegistrationResponseDefaultTypeInternal() {} @@ -1018,7 +1548,13 @@ inline constexpr GetPeersResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetPeersResponse::GetPeersResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetPeersResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetPeersResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetPeersResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetPeersResponseDefaultTypeInternal() {} @@ -1030,6 +1566,31 @@ struct GetPeersResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPeersResponseDefaultTypeInternal _GetPeersResponse_default_instance_; +inline constexpr GetValidatorNodeChangesResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : changes_{}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GetValidatorNodeChangesResponse::GetValidatorNodeChangesResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetValidatorNodeChangesResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct GetValidatorNodeChangesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetValidatorNodeChangesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetValidatorNodeChangesResponseDefaultTypeInternal() {} + union { + GetValidatorNodeChangesResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetValidatorNodeChangesResponseDefaultTypeInternal _GetValidatorNodeChangesResponse_default_instance_; + inline constexpr ListAssetRegistrationsResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -1053,7 +1614,13 @@ inline constexpr ListAssetRegistrationsResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ListAssetRegistrationsResponse::ListAssetRegistrationsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ListAssetRegistrationsResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ListAssetRegistrationsResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ListAssetRegistrationsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListAssetRegistrationsResponseDefaultTypeInternal() {} @@ -1088,7 +1655,13 @@ inline constexpr GetTokensResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetTokensResponse::GetTokensResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetTokensResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetTokensResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetTokensResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetTokensResponseDefaultTypeInternal() {} @@ -1123,7 +1696,13 @@ inline constexpr GetAssetMetadataResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetAssetMetadataResponse::GetAssetMetadataResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetAssetMetadataResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetAssetMetadataResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetAssetMetadataResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetAssetMetadataResponseDefaultTypeInternal() {} @@ -1143,7 +1722,13 @@ inline constexpr GetSideChainUtxosResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetSideChainUtxosResponse::GetSideChainUtxosResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetSideChainUtxosResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetSideChainUtxosResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetSideChainUtxosResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetSideChainUtxosResponseDefaultTypeInternal() {} @@ -1162,7 +1747,13 @@ inline constexpr FetchMatchingUtxosResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR FetchMatchingUtxosResponse::FetchMatchingUtxosResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(FetchMatchingUtxosResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct FetchMatchingUtxosResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR FetchMatchingUtxosResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FetchMatchingUtxosResponseDefaultTypeInternal() {} @@ -1181,7 +1772,13 @@ inline constexpr SubmitTransactionRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SubmitTransactionRequest::SubmitTransactionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SubmitTransactionRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SubmitTransactionRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubmitTransactionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubmitTransactionRequestDefaultTypeInternal() {} @@ -1202,7 +1799,13 @@ inline constexpr NewBlockTemplateResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR NewBlockTemplateResponse::NewBlockTemplateResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(NewBlockTemplateResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct NewBlockTemplateResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR NewBlockTemplateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NewBlockTemplateResponseDefaultTypeInternal() {} @@ -1222,7 +1825,13 @@ inline constexpr GetNewBlockWithCoinbasesRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetNewBlockWithCoinbasesRequest::GetNewBlockWithCoinbasesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetNewBlockWithCoinbasesRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetNewBlockWithCoinbasesRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetNewBlockWithCoinbasesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetNewBlockWithCoinbasesRequestDefaultTypeInternal() {} @@ -1254,7 +1863,13 @@ inline constexpr GetNewBlockResult::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetNewBlockResult::GetNewBlockResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetNewBlockResult_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetNewBlockResultDefaultTypeInternal { PROTOBUF_CONSTEXPR GetNewBlockResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetNewBlockResultDefaultTypeInternal() {} @@ -1273,7 +1888,13 @@ inline constexpr GetMempoolTransactionsResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetMempoolTransactionsResponse::GetMempoolTransactionsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetMempoolTransactionsResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetMempoolTransactionsResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetMempoolTransactionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetMempoolTransactionsResponseDefaultTypeInternal() {} @@ -1292,7 +1913,13 @@ inline constexpr GetBlocksResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetBlocksResponse::GetBlocksResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetBlocksResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetBlocksResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetBlocksResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetBlocksResponseDefaultTypeInternal() {} @@ -1305,30 +1932,21 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBlocksResponseDefaultTypeInternal _GetBlocksResponse_default_instance_; } // namespace rpc } // namespace tari -static ::_pb::Metadata file_level_metadata_base_5fnode_2eproto[58]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_base_5fnode_2eproto[6]; -static constexpr const ::_pb::ServiceDescriptor** +static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL + file_level_enum_descriptors_base_5fnode_2eproto[7]; +static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_base_5fnode_2eproto = nullptr; 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) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataRequest, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataRequest, _impl_.asset_public_key_), + 0, + 0x081, // bitmap 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) + 10, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.name_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.description_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.image_), @@ -1336,31 +1954,23 @@ const ::uint32_t 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) + 1, + 2, + 3, + 5, + 6, + 4, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsRequest, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsRequest, _impl_.offset_), PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsRequest, _impl_.count_), + 0, + 1, + 0x081, // bitmap 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) + 10, // hasbit index offset 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_), @@ -1368,31 +1978,23 @@ const ::uint32_t 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) + 1, + 2, + 6, + 3, + 5, + 4, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensRequest, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensRequest, _impl_.asset_public_key_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensRequest, _impl_.unique_ids_), + 0, + ~0u, + 0x081, // bitmap 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) + 10, // hasbit index offset 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_), @@ -1400,121 +2002,108 @@ const ::uint32_t 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) + 1, + 2, + 3, + 6, + 5, + 4, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitBlockResponse, _impl_._has_bits_), + 4, // hasbit index offset 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) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockBlobRequest, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockBlobRequest, _impl_.header_blob_), PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockBlobRequest, _impl_.body_blob_), + 0, + 1, + 0x081, // bitmap 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) + 7, // hasbit index offset 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_), PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _impl_.failed_checkpoints_), 0, + 2, + 1, + 3, + 0x085, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ReadinessStatus, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ReadinessStatus, _impl_._oneof_case_[0]), + 8, // hasbit index offset + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::tari::rpc::ReadinessStatus, _impl_.timestamp_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ReadinessStatus, _impl_.status_), ~0u, ~0u, - ~0u, + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::MigrationProgress, _impl_._has_bits_), + 8, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::MigrationProgress, _impl_.current_block_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MigrationProgress, _impl_.total_blocks_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MigrationProgress, _impl_.progress_percentage_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MigrationProgress, _impl_.current_db_version_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::MigrationProgress, _impl_.target_db_version_), + 0, + 1, + 2, + 3, + 4, + 0x081, // bitmap 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) + 6, // hasbit index offset 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, + 2, 1, + 0x081, // bitmap 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) + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _impl_.algo_), PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _impl_.max_weight_), 0, - ~0u, + 1, + 0x081, // bitmap 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) + 6, // hasbit index offset 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, + 1, ~0u, - ~0u, + 0x081, // bitmap 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) + 5, // hasbit index offset 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) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockCoinbase, _impl_._has_bits_), + 8, // hasbit index offset 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) + 0, + 2, + 3, + 4, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_._has_bits_), + 13, // hasbit index offset 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_), @@ -1525,454 +2114,341 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.tari_randomx_estimated_hash_rate_), PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.num_coinbases_), PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.coinbase_extras_), - ~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) + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 8, + 7, + ~0u, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_._has_bits_), + 11, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_.circulating_supply_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_.spendable_supply_), 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::ValueAtHeightResponse, _impl_.mined_rewards_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_.spendable_rewards_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_.spendable_pre_mine_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_.total_spendable_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_.total_pre_mine_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_.time_locked_pre_mine_), + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::IntegerValue, _impl_._has_bits_), + 4, // hasbit index offset 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) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::BaseNodeGetVersionResponse, _impl_._has_bits_), + 5, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::BaseNodeGetVersionResponse, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::BaseNodeGetVersionResponse, _impl_.network_), + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _impl_._has_bits_), + 7, // hasbit index offset 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) + 0, + 1, + 2, + 3, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupResponse, _impl_._has_bits_), + 5, // hasbit index offset 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) + ~0u, + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::HeightRequest, _impl_._has_bits_), + 6, // hasbit index offset 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) + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockTimingResponse, _impl_._has_bits_), + 6, // hasbit index offset 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) + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetHeaderByHashRequest, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::GetHeaderByHashRequest, _impl_.hash_), + 0, + 0x081, // bitmap 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) + 8, // hasbit index offset 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) + 1, + 2, + 3, + 4, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ListHeadersRequest, _impl_._has_bits_), + 6, // hasbit index offset 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) + 0, + 1, + 2, + 0x000, // bitmap 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) + 0x000, // bitmap 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) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_._has_bits_), + 8, // hasbit index offset 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_.accumulated_difficulty_), PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.pruned_height_), PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.timestamp_), - ~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) + 2, + 0, + 1, + 3, + 4, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncInfoResponse, _impl_._has_bits_), + 6, // hasbit index offset 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) + 0, + 1, + ~0u, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _impl_._has_bits_), + 8, // hasbit index offset 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::SyncProgressResponse, _impl_.short_desc_), PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _impl_.initial_connected_peers_), + 1, + 2, + 4, + 0, + 3, + 0x081, // bitmap 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) + 9, // hasbit index offset 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_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.vm_key_), - ~0u, 0, - ~0u, - ~0u, + 4, 1, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 2, + 5, + 3, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_._has_bits_), + 9, // hasbit index offset 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_), + 0, + 1, + 2, + 3, + 4, + 5, + 0x081, // bitmap 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) + 7, // hasbit index offset 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) + 1, + 2, + 3, + 0x000, // bitmap 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) + 0x000, // bitmap 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) + 0x000, // bitmap PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosRequest, _impl_.hashes_), + 0x081, // bitmap 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) + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosResponse, _impl_.output_), 0, + 0x081, // bitmap 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) + 4, // hasbit index offset 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) + 0x000, // bitmap + 0x081, // bitmap 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) + 4, // hasbit index offset 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) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionResponse, _impl_._has_bits_), + 4, // hasbit index offset 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) + 0, + 0x000, // bitmap + 0x081, // bitmap 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) + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::GetMempoolTransactionsResponse, _impl_.transaction_), 0, + 0x081, // bitmap 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) + 4, // hasbit index offset 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) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateResponse, _impl_._has_bits_), + 4, // hasbit index offset 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) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::MempoolStatsResponse, _impl_._has_bits_), + 6, // hasbit index offset 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) + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesRequest, _impl_._has_bits_), + 5, // hasbit index offset 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::GetActiveValidatorNodesRequest, _impl_.sidechain_id_), + 1, + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesResponse, _impl_._has_bits_), + 6, // hasbit index offset 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::GetActiveValidatorNodesResponse, _impl_.sidechain_id_), + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetValidatorNodeChangesRequest, _impl_._has_bits_), + 5, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetValidatorNodeChangesRequest, _impl_.epoch_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetValidatorNodeChangesRequest, _impl_.sidechain_id_), + 1, + 0, + 0x004, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeChange, _impl_._oneof_case_[0]), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeChange, _impl_.change_), + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeChangeAdd, _impl_._has_bits_), + 7, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeChangeAdd, _impl_.activation_epoch_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeChangeAdd, _impl_.registration_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeChangeAdd, _impl_.minimum_value_promise_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeChangeAdd, _impl_.shard_key_), + 2, + 1, + 3, + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeChangeRemove, _impl_._has_bits_), + 4, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeChangeRemove, _impl_.public_key_), + 0, + 0x000, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetValidatorNodeChangesResponse, _impl_.changes_), + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyRequest, _impl_._has_bits_), + 5, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyRequest, _impl_.epoch_), 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) + 1, + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyResponse, _impl_._has_bits_), + 4, // hasbit index offset 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) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationsRequest, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationsRequest, _impl_.start_hash_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationsRequest, _impl_.count_), + 0, + 1, + 0x081, // bitmap 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) + 5, // hasbit index offset 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) + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockInfo, _impl_._has_bits_), + 6, // hasbit index offset 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) + 2, + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosRequest, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosRequest, _impl_.start_hash_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosRequest, _impl_.count_), + 0, + 1, + 0x081, // bitmap 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) + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _impl_.block_info_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _impl_.outputs_), 0, ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNetworkStateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0x000, // bitmap + 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNetworkStateResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNetworkStateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 14, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNetworkStateResponse, _impl_.metadata_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNetworkStateResponse, _impl_.initial_sync_achieved_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNetworkStateResponse, _impl_.base_node_state_), @@ -1983,91 +2459,134 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNetworkStateResponse, _impl_.tari_randomx_estimated_hash_rate_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNetworkStateResponse, _impl_.num_connections_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNetworkStateResponse, _impl_.liveness_results_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNetworkStateResponse, _impl_.readiness_status_), 0, + 3, + 2, + 4, + 5, + 6, + 7, + 9, + 8, ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::LivenessResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::LivenessResult, _impl_._has_bits_), + 6, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::LivenessResult, _impl_.peer_node_id_), PROTOBUF_FIELD_OFFSET(::tari::rpc::LivenessResult, _impl_.discover_latency_), PROTOBUF_FIELD_OFFSET(::tari::rpc::LivenessResult, _impl_.ping_latency_), + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchPaymentReferencesRequest, _impl_._has_bits_), + 6, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchPaymentReferencesRequest, _impl_.payment_reference_hex_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchPaymentReferencesRequest, _impl_.payment_reference_bytes_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchPaymentReferencesRequest, _impl_.include_spent_), + ~0u, + ~0u, + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::PaymentReferenceResponse, _impl_._has_bits_), + 14, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::PaymentReferenceResponse, _impl_.payment_reference_hex_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PaymentReferenceResponse, _impl_.block_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PaymentReferenceResponse, _impl_.block_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PaymentReferenceResponse, _impl_.mined_timestamp_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PaymentReferenceResponse, _impl_.commitment_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PaymentReferenceResponse, _impl_.is_spent_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PaymentReferenceResponse, _impl_.spent_height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PaymentReferenceResponse, _impl_.spent_block_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PaymentReferenceResponse, _impl_.min_value_promise_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PaymentReferenceResponse, _impl_.spent_timestamp_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::PaymentReferenceResponse, _impl_.output_hash_), + 0, + 5, + 1, + 6, + 2, + 10, + 7, + 3, + 8, + 9, + 4, }; static const ::_pbi::MigrationSchema 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)}, - {41, 56, -1, sizeof(::tari::rpc::ListAssetRegistrationsResponse)}, - {63, -1, -1, sizeof(::tari::rpc::GetTokensRequest)}, - {73, 88, -1, sizeof(::tari::rpc::GetTokensResponse)}, - {95, -1, -1, sizeof(::tari::rpc::SubmitBlockResponse)}, - {104, -1, -1, sizeof(::tari::rpc::BlockBlobRequest)}, - {114, 126, -1, sizeof(::tari::rpc::TipInfoResponse)}, - {130, 141, -1, sizeof(::tari::rpc::NewBlockTemplateResponse)}, - {144, 154, -1, sizeof(::tari::rpc::NewBlockTemplateRequest)}, - {156, 167, -1, sizeof(::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest)}, - {170, 180, -1, sizeof(::tari::rpc::GetNewBlockWithCoinbasesRequest)}, - {182, -1, -1, sizeof(::tari::rpc::NewBlockCoinbase)}, - {195, -1, -1, sizeof(::tari::rpc::NetworkDifficultyResponse)}, - {213, -1, -1, sizeof(::tari::rpc::ValueAtHeightResponse)}, - {224, -1, -1, sizeof(::tari::rpc::IntegerValue)}, - {233, -1, -1, sizeof(::tari::rpc::StringValue)}, - {242, -1, -1, sizeof(::tari::rpc::BlockGroupRequest)}, - {254, -1, -1, sizeof(::tari::rpc::BlockGroupResponse)}, - {264, -1, -1, sizeof(::tari::rpc::HeightRequest)}, - {275, -1, -1, sizeof(::tari::rpc::BlockTimingResponse)}, - {286, -1, -1, sizeof(::tari::rpc::GetHeaderByHashRequest)}, - {295, 308, -1, sizeof(::tari::rpc::BlockHeaderResponse)}, - {313, -1, -1, sizeof(::tari::rpc::ListHeadersRequest)}, - {324, -1, -1, sizeof(::tari::rpc::GetBlocksRequest)}, - {333, -1, -1, sizeof(::tari::rpc::GetBlocksResponse)}, - {342, -1, -1, sizeof(::tari::rpc::MetaData)}, - {355, -1, -1, sizeof(::tari::rpc::SyncInfoResponse)}, - {366, -1, -1, sizeof(::tari::rpc::SyncProgressResponse)}, - {379, 393, -1, sizeof(::tari::rpc::GetNewBlockResult)}, - {399, -1, -1, sizeof(::tari::rpc::GetNewBlockBlobResult)}, - {413, 425, -1, sizeof(::tari::rpc::MinerData)}, - {429, -1, -1, sizeof(::tari::rpc::SearchKernelsRequest)}, - {438, -1, -1, sizeof(::tari::rpc::SearchUtxosRequest)}, - {447, -1, -1, sizeof(::tari::rpc::FetchMatchingUtxosRequest)}, - {456, 465, -1, sizeof(::tari::rpc::FetchMatchingUtxosResponse)}, - {466, 475, -1, sizeof(::tari::rpc::GetPeersResponse)}, - {476, -1, -1, sizeof(::tari::rpc::GetPeersRequest)}, - {484, 493, -1, sizeof(::tari::rpc::SubmitTransactionRequest)}, - {494, -1, -1, sizeof(::tari::rpc::SubmitTransactionResponse)}, - {503, -1, -1, sizeof(::tari::rpc::GetMempoolTransactionsRequest)}, - {511, 520, -1, sizeof(::tari::rpc::GetMempoolTransactionsResponse)}, - {521, 530, -1, sizeof(::tari::rpc::TransactionStateRequest)}, - {531, -1, -1, sizeof(::tari::rpc::TransactionStateResponse)}, - {540, -1, -1, sizeof(::tari::rpc::MempoolStatsResponse)}, - {551, -1, -1, sizeof(::tari::rpc::GetActiveValidatorNodesRequest)}, - {560, -1, -1, sizeof(::tari::rpc::GetActiveValidatorNodesResponse)}, - {570, -1, -1, sizeof(::tari::rpc::GetShardKeyRequest)}, - {580, -1, -1, sizeof(::tari::rpc::GetShardKeyResponse)}, - {590, -1, -1, sizeof(::tari::rpc::GetTemplateRegistrationsRequest)}, - {600, 610, -1, sizeof(::tari::rpc::GetTemplateRegistrationResponse)}, - {612, -1, -1, sizeof(::tari::rpc::BlockInfo)}, - {623, -1, -1, sizeof(::tari::rpc::GetSideChainUtxosRequest)}, - {633, 643, -1, sizeof(::tari::rpc::GetSideChainUtxosResponse)}, - {645, -1, -1, sizeof(::tari::rpc::GetNetworkStateRequest)}, - {653, 671, -1, sizeof(::tari::rpc::GetNetworkStateResponse)}, - {681, -1, -1, sizeof(::tari::rpc::LivenessResult)}, + {0, sizeof(::tari::rpc::GetAssetMetadataRequest)}, + {5, sizeof(::tari::rpc::GetAssetMetadataResponse)}, + {22, sizeof(::tari::rpc::ListAssetRegistrationsRequest)}, + {29, sizeof(::tari::rpc::ListAssetRegistrationsResponse)}, + {46, sizeof(::tari::rpc::GetTokensRequest)}, + {53, sizeof(::tari::rpc::GetTokensResponse)}, + {70, sizeof(::tari::rpc::SubmitBlockResponse)}, + {75, sizeof(::tari::rpc::BlockBlobRequest)}, + {82, sizeof(::tari::rpc::TipInfoResponse)}, + {93, sizeof(::tari::rpc::ReadinessStatus)}, + {104, sizeof(::tari::rpc::MigrationProgress)}, + {117, sizeof(::tari::rpc::NewBlockTemplateResponse)}, + {126, sizeof(::tari::rpc::NewBlockTemplateRequest)}, + {133, sizeof(::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest)}, + {142, sizeof(::tari::rpc::GetNewBlockWithCoinbasesRequest)}, + {149, sizeof(::tari::rpc::NewBlockCoinbase)}, + {162, sizeof(::tari::rpc::NetworkDifficultyResponse)}, + {185, sizeof(::tari::rpc::ValueAtHeightResponse)}, + {204, sizeof(::tari::rpc::IntegerValue)}, + {209, sizeof(::tari::rpc::BaseNodeGetVersionResponse)}, + {216, sizeof(::tari::rpc::BlockGroupRequest)}, + {227, sizeof(::tari::rpc::BlockGroupResponse)}, + {234, sizeof(::tari::rpc::HeightRequest)}, + {243, sizeof(::tari::rpc::BlockTimingResponse)}, + {252, sizeof(::tari::rpc::GetHeaderByHashRequest)}, + {257, sizeof(::tari::rpc::BlockHeaderResponse)}, + {270, sizeof(::tari::rpc::ListHeadersRequest)}, + {279, sizeof(::tari::rpc::GetBlocksRequest)}, + {281, sizeof(::tari::rpc::GetBlocksResponse)}, + {283, sizeof(::tari::rpc::MetaData)}, + {296, sizeof(::tari::rpc::SyncInfoResponse)}, + {305, sizeof(::tari::rpc::SyncProgressResponse)}, + {318, sizeof(::tari::rpc::GetNewBlockResult)}, + {333, sizeof(::tari::rpc::GetNewBlockBlobResult)}, + {348, sizeof(::tari::rpc::MinerData)}, + {359, sizeof(::tari::rpc::SearchKernelsRequest)}, + {361, sizeof(::tari::rpc::SearchUtxosRequest)}, + {363, sizeof(::tari::rpc::FetchMatchingUtxosRequest)}, + {365, sizeof(::tari::rpc::FetchMatchingUtxosResponse)}, + {370, sizeof(::tari::rpc::GetPeersResponse)}, + {375, sizeof(::tari::rpc::GetPeersRequest)}, + {376, sizeof(::tari::rpc::SubmitTransactionRequest)}, + {381, sizeof(::tari::rpc::SubmitTransactionResponse)}, + {386, sizeof(::tari::rpc::GetMempoolTransactionsRequest)}, + {387, sizeof(::tari::rpc::GetMempoolTransactionsResponse)}, + {392, sizeof(::tari::rpc::TransactionStateRequest)}, + {397, sizeof(::tari::rpc::TransactionStateResponse)}, + {402, sizeof(::tari::rpc::MempoolStatsResponse)}, + {411, sizeof(::tari::rpc::GetActiveValidatorNodesRequest)}, + {418, sizeof(::tari::rpc::GetActiveValidatorNodesResponse)}, + {427, sizeof(::tari::rpc::GetValidatorNodeChangesRequest)}, + {434, sizeof(::tari::rpc::ValidatorNodeChange)}, + {439, sizeof(::tari::rpc::ValidatorNodeChangeAdd)}, + {450, sizeof(::tari::rpc::ValidatorNodeChangeRemove)}, + {455, sizeof(::tari::rpc::GetValidatorNodeChangesResponse)}, + {457, sizeof(::tari::rpc::GetShardKeyRequest)}, + {464, sizeof(::tari::rpc::GetShardKeyResponse)}, + {469, sizeof(::tari::rpc::GetTemplateRegistrationsRequest)}, + {476, sizeof(::tari::rpc::GetTemplateRegistrationResponse)}, + {483, sizeof(::tari::rpc::BlockInfo)}, + {492, sizeof(::tari::rpc::GetSideChainUtxosRequest)}, + {499, sizeof(::tari::rpc::GetSideChainUtxosResponse)}, + {506, sizeof(::tari::rpc::GetNetworkStateRequest)}, + {507, sizeof(::tari::rpc::GetNetworkStateResponse)}, + {532, sizeof(::tari::rpc::LivenessResult)}, + {541, sizeof(::tari::rpc::SearchPaymentReferencesRequest)}, + {550, sizeof(::tari::rpc::PaymentReferenceResponse)}, }; -static const ::_pb::Message* const file_default_instances[] = { +static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { &::tari::rpc::_GetAssetMetadataRequest_default_instance_._instance, &::tari::rpc::_GetAssetMetadataResponse_default_instance_._instance, &::tari::rpc::_ListAssetRegistrationsRequest_default_instance_._instance, @@ -2077,6 +2596,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_SubmitBlockResponse_default_instance_._instance, &::tari::rpc::_BlockBlobRequest_default_instance_._instance, &::tari::rpc::_TipInfoResponse_default_instance_._instance, + &::tari::rpc::_ReadinessStatus_default_instance_._instance, + &::tari::rpc::_MigrationProgress_default_instance_._instance, &::tari::rpc::_NewBlockTemplateResponse_default_instance_._instance, &::tari::rpc::_NewBlockTemplateRequest_default_instance_._instance, &::tari::rpc::_GetNewBlockTemplateWithCoinbasesRequest_default_instance_._instance, @@ -2085,7 +2606,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_NetworkDifficultyResponse_default_instance_._instance, &::tari::rpc::_ValueAtHeightResponse_default_instance_._instance, &::tari::rpc::_IntegerValue_default_instance_._instance, - &::tari::rpc::_StringValue_default_instance_._instance, + &::tari::rpc::_BaseNodeGetVersionResponse_default_instance_._instance, &::tari::rpc::_BlockGroupRequest_default_instance_._instance, &::tari::rpc::_BlockGroupResponse_default_instance_._instance, &::tari::rpc::_HeightRequest_default_instance_._instance, @@ -2116,6 +2637,11 @@ static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_MempoolStatsResponse_default_instance_._instance, &::tari::rpc::_GetActiveValidatorNodesRequest_default_instance_._instance, &::tari::rpc::_GetActiveValidatorNodesResponse_default_instance_._instance, + &::tari::rpc::_GetValidatorNodeChangesRequest_default_instance_._instance, + &::tari::rpc::_ValidatorNodeChange_default_instance_._instance, + &::tari::rpc::_ValidatorNodeChangeAdd_default_instance_._instance, + &::tari::rpc::_ValidatorNodeChangeRemove_default_instance_._instance, + &::tari::rpc::_GetValidatorNodeChangesResponse_default_instance_._instance, &::tari::rpc::_GetShardKeyRequest_default_instance_._instance, &::tari::rpc::_GetShardKeyResponse_default_instance_._instance, &::tari::rpc::_GetTemplateRegistrationsRequest_default_instance_._instance, @@ -2126,6 +2652,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_GetNetworkStateRequest_default_instance_._instance, &::tari::rpc::_GetNetworkStateResponse_default_instance_._instance, &::tari::rpc::_LivenessResult_default_instance_._instance, + &::tari::rpc::_SearchPaymentReferencesRequest_default_instance_._instance, + &::tari::rpc::_PaymentReferenceResponse_default_instance_._instance, }; const char descriptor_table_protodef_base_5fnode_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { @@ -2158,213 +2686,264 @@ const char descriptor_table_protodef_base_5fnode_2eproto[] ABSL_ATTRIBUTE_SECTIO "2\022.tari.rpc.MetaData\022\035\n\025initial_sync_ach" "ieved\030\002 \001(\010\0220\n\017base_node_state\030\003 \001(\0162\027.t" "ari.rpc.BaseNodeState\022\032\n\022failed_checkpoi" - "nts\030\004 \001(\010\"\232\001\n\030NewBlockTemplateResponse\0226" - "\n\022new_block_template\030\001 \001(\0132\032.tari.rpc.Ne" - "wBlockTemplate\022\035\n\025initial_sync_achieved\030" - "\003 \001(\010\022\'\n\nminer_data\030\004 \001(\0132\023.tari.rpc.Min" - "erData\"N\n\027NewBlockTemplateRequest\022\037\n\004alg" - "o\030\001 \001(\0132\021.tari.rpc.PowAlgo\022\022\n\nmax_weight" - "\030\002 \001(\004\"\215\001\n\'GetNewBlockTemplateWithCoinba" - "sesRequest\022\037\n\004algo\030\001 \001(\0132\021.tari.rpc.PowA" - "lgo\022\022\n\nmax_weight\030\002 \001(\004\022-\n\tcoinbases\030\003 \003" - "(\0132\032.tari.rpc.NewBlockCoinbase\"\202\001\n\037GetNe" - "wBlockWithCoinbasesRequest\0220\n\014new_templa" - "te\030\001 \001(\0132\032.tari.rpc.NewBlockTemplate\022-\n\t" - "coinbases\030\002 \003(\0132\032.tari.rpc.NewBlockCoinb" - "ase\"\201\001\n\020NewBlockCoinbase\022\017\n\007address\030\001 \001(" - "\t\022\r\n\005value\030\002 \001(\004\022\027\n\017stealth_payment\030\003 \001(" - "\010\022\034\n\024revealed_value_proof\030\004 \001(\010\022\026\n\016coinb" - "ase_extra\030\005 \001(\014\"\252\002\n\031NetworkDifficultyRes" - "ponse\022\022\n\ndifficulty\030\001 \001(\004\022\033\n\023estimated_h" - "ash_rate\030\002 \001(\004\022\016\n\006height\030\003 \001(\004\022\021\n\ttimest" - "amp\030\004 \001(\004\022\020\n\010pow_algo\030\005 \001(\004\022!\n\031sha3x_est" - "imated_hash_rate\030\006 \001(\004\022*\n\"monero_randomx" - "_estimated_hash_rate\030\007 \001(\004\022(\n tari_rando" - "mx_estimated_hash_rate\030\n \001(\004\022\025\n\rnum_coin" - "bases\030\010 \001(\004\022\027\n\017coinbase_extras\030\t \003(\014\"]\n\025" - "ValueAtHeightResponse\022\032\n\022circulating_sup" - "ply\030\001 \001(\004\022\030\n\020spendable_supply\030\002 \001(\004\022\016\n\006h" - "eight\030\003 \001(\004\"\035\n\014IntegerValue\022\r\n\005value\030\001 \001" - "(\004\"\034\n\013StringValue\022\r\n\005value\030\001 \001(\t\"v\n\021Bloc" - "kGroupRequest\022\020\n\010from_tip\030\001 \001(\004\022\024\n\014start" - "_height\030\002 \001(\004\022\022\n\nend_height\030\003 \001(\004\022%\n\tcal" - "c_type\030\004 \001(\0162\022.tari.rpc.CalcType\"J\n\022Bloc" - "kGroupResponse\022\r\n\005value\030\001 \003(\001\022%\n\tcalc_ty" - "pe\030\002 \001(\0162\022.tari.rpc.CalcType\"K\n\rHeightRe" - "quest\022\020\n\010from_tip\030\001 \001(\004\022\024\n\014start_height\030" - "\002 \001(\004\022\022\n\nend_height\030\003 \001(\004\"<\n\023BlockTiming" - "Response\022\013\n\003max\030\001 \001(\004\022\013\n\003min\030\002 \001(\004\022\013\n\003av" - "g\030\003 \001(\001\"&\n\026GetHeaderByHashRequest\022\014\n\004has" - "h\030\001 \001(\014\"\221\001\n\023BlockHeaderResponse\022%\n\006heade" - "r\030\001 \001(\0132\025.tari.rpc.BlockHeader\022\025\n\rconfir" - "mations\030\002 \001(\004\022\016\n\006reward\030\003 \001(\004\022\022\n\ndifficu" - "lty\030\004 \001(\004\022\030\n\020num_transactions\030\005 \001(\r\"b\n\022L" - "istHeadersRequest\022\023\n\013from_height\030\001 \001(\004\022\023" - "\n\013num_headers\030\002 \001(\004\022\"\n\007sorting\030\003 \001(\0162\021.t" - "ari.rpc.Sorting\"#\n\020GetBlocksRequest\022\017\n\007h" - "eights\030\001 \003(\004\">\n\021GetBlocksResponse\022)\n\006blo" - "cks\030\001 \003(\0132\031.tari.rpc.HistoricalBlock\"\210\001\n" - "\010MetaData\022\031\n\021best_block_height\030\001 \001(\004\022\027\n\017" - "best_block_hash\030\002 \001(\014\022\036\n\026accumulated_dif" - "ficulty\030\005 \001(\014\022\025\n\rpruned_height\030\006 \001(\004\022\021\n\t" - "timestamp\030\007 \001(\004\"R\n\020SyncInfoResponse\022\022\n\nt" - "ip_height\030\001 \001(\004\022\024\n\014local_height\030\002 \001(\004\022\024\n" - "\014peer_node_id\030\003 \003(\014\"\231\001\n\024SyncProgressResp" - "onse\022\022\n\ntip_height\030\001 \001(\004\022\024\n\014local_height" - "\030\002 \001(\004\022\"\n\005state\030\003 \001(\0162\023.tari.rpc.SyncSta" - "te\022\022\n\nshort_desc\030\004 \001(\t\022\037\n\027initial_connec" - "ted_peers\030\005 \001(\004\"\263\001\n\021GetNewBlockResult\022\022\n" - "\nblock_hash\030\001 \001(\014\022\036\n\005block\030\002 \001(\0132\017.tari." - "rpc.Block\022\031\n\021merge_mining_hash\030\003 \001(\014\022\026\n\016" - "tari_unique_id\030\004 \001(\014\022\'\n\nminer_data\030\005 \001(\013" - "2\023.tari.rpc.MinerData\022\016\n\006vm_key\030\006 \001(\014\"\223\001" - "\n\025GetNewBlockBlobResult\022\022\n\nblock_hash\030\001 " - "\001(\014\022\016\n\006header\030\002 \001(\014\022\022\n\nblock_body\030\003 \001(\014\022" - "\031\n\021merge_mining_hash\030\004 \001(\014\022\017\n\007utxo_mr\030\005 " - "\001(\014\022\026\n\016tari_unique_id\030\006 \001(\014\"k\n\tMinerData" - "\022\037\n\004algo\030\001 \001(\0132\021.tari.rpc.PowAlgo\022\031\n\021tar" - "get_difficulty\030\002 \001(\004\022\016\n\006reward\030\003 \001(\004\022\022\n\n" - "total_fees\030\005 \001(\004\"\?\n\024SearchKernelsRequest" - "\022\'\n\nsignatures\030\001 \003(\0132\023.tari.rpc.Signatur" - "e\")\n\022SearchUtxosRequest\022\023\n\013commitments\030\001" - " \003(\014\"+\n\031FetchMatchingUtxosRequest\022\016\n\006has" - "hes\030\001 \003(\014\"I\n\032FetchMatchingUtxosResponse\022" - "+\n\006output\030\001 \001(\0132\033.tari.rpc.TransactionOu" - "tput\"0\n\020GetPeersResponse\022\034\n\004peer\030\001 \001(\0132\016" - ".tari.rpc.Peer\"\021\n\017GetPeersRequest\"F\n\030Sub" - "mitTransactionRequest\022*\n\013transaction\030\001 \001" - "(\0132\025.tari.rpc.Transaction\"N\n\031SubmitTrans" - "actionResponse\0221\n\006result\030\001 \001(\0162!.tari.rp" - "c.SubmitTransactionResult\"\037\n\035GetMempoolT" - "ransactionsRequest\"L\n\036GetMempoolTransact" - "ionsResponse\022*\n\013transaction\030\001 \001(\0132\025.tari" - ".rpc.Transaction\"B\n\027TransactionStateRequ" - "est\022\'\n\nexcess_sig\030\001 \001(\0132\023.tari.rpc.Signa" - "ture\"I\n\030TransactionStateResponse\022-\n\006resu" - "lt\030\001 \001(\0162\035.tari.rpc.TransactionLocation\"" - "^\n\024MempoolStatsResponse\022\027\n\017unconfirmed_t" - "xs\030\002 \001(\004\022\021\n\treorg_txs\030\003 \001(\004\022\032\n\022unconfirm" - "ed_weight\030\004 \001(\004\"0\n\036GetActiveValidatorNod" - "esRequest\022\016\n\006height\030\001 \001(\004\"H\n\037GetActiveVa" - "lidatorNodesResponse\022\021\n\tshard_key\030\001 \001(\014\022" - "\022\n\npublic_key\030\002 \001(\014\"8\n\022GetShardKeyReques" - "t\022\016\n\006height\030\001 \001(\004\022\022\n\npublic_key\030\002 \001(\014\"7\n" - "\023GetShardKeyResponse\022\021\n\tshard_key\030\001 \001(\014\022" - "\r\n\005found\030\002 \001(\010\"D\n\037GetTemplateRegistratio" - "nsRequest\022\022\n\nstart_hash\030\001 \001(\014\022\r\n\005count\030\002" - " \001(\004\"j\n\037GetTemplateRegistrationResponse\022" - "\021\n\tutxo_hash\030\001 \001(\014\0224\n\014registration\030\002 \001(\013" - "2\036.tari.rpc.TemplateRegistration\"B\n\tBloc" - "kInfo\022\016\n\006height\030\001 \001(\004\022\014\n\004hash\030\002 \001(\014\022\027\n\017n" - "ext_block_hash\030\003 \001(\014\"=\n\030GetSideChainUtxo" - "sRequest\022\022\n\nstart_hash\030\001 \001(\014\022\r\n\005count\030\002 " - "\001(\004\"r\n\031GetSideChainUtxosResponse\022\'\n\nbloc" - "k_info\030\001 \001(\0132\023.tari.rpc.BlockInfo\022,\n\007out" - "puts\030\002 \003(\0132\033.tari.rpc.TransactionOutput\"" - "\030\n\026GetNetworkStateRequest\"\202\003\n\027GetNetwork" - "StateResponse\022$\n\010metadata\030\001 \001(\0132\022.tari.r" - "pc.MetaData\022\035\n\025initial_sync_achieved\030\002 \001" - "(\010\0220\n\017base_node_state\030\003 \001(\0162\027.tari.rpc.B" - "aseNodeState\022\032\n\022failed_checkpoints\030\004 \001(\010" - "\022\016\n\006reward\030\005 \001(\004\022!\n\031sha3x_estimated_hash" - "_rate\030\006 \001(\004\022*\n\"monero_randomx_estimated_" - "hash_rate\030\007 \001(\004\022(\n tari_randomx_estimate" - "d_hash_rate\030\n \001(\004\022\027\n\017num_connections\030\010 \001" - "(\004\0222\n\020liveness_results\030\t \003(\0132\030.tari.rpc." - "LivenessResult\"V\n\016LivenessResult\022\024\n\014peer" - "_node_id\030\001 \001(\014\022\030\n\020discover_latency\030\002 \001(\004" - "\022\024\n\014ping_latency\030\003 \001(\004*\200\001\n\rBaseNodeState" - "\022\014\n\010START_UP\020\000\022\017\n\013HEADER_SYNC\020\001\022\020\n\014HORIZ" - "ON_SYNC\020\002\022\016\n\nCONNECTING\020\003\022\016\n\nBLOCK_SYNC\020" - "\004\022\r\n\tLISTENING\020\005\022\017\n\013SYNC_FAILED\020\006*<\n\010Cal" - "cType\022\010\n\004MEAN\020\000\022\n\n\006MEDIAN\020\001\022\014\n\010QUANTILE\020" - "\002\022\014\n\010QUARTILE\020\003*,\n\007Sorting\022\020\n\014SORTING_DE" - "SC\020\000\022\017\n\013SORTING_ASC\020\001*b\n\tSyncState\022\013\n\007ST" - "ARTUP\020\000\022\023\n\017HEADER_STARTING\020\001\022\n\n\006HEADER\020\002" - "\022\022\n\016BLOCK_STARTING\020\003\022\t\n\005BLOCK\020\004\022\010\n\004DONE\020" - "\005*t\n\027SubmitTransactionResult\022\010\n\004NONE\020\000\022\014" - "\n\010ACCEPTED\020\001\022 \n\034NOT_PROCESSABLE_AT_THIS_" - "TIME\020\002\022\021\n\rALREADY_MINED\020\003\022\014\n\010REJECTED\020\004*" - "J\n\023TransactionLocation\022\013\n\007UNKNOWN\020\000\022\013\n\007M" - "EMPOOL\020\001\022\t\n\005MINED\020\002\022\016\n\nNOT_STORED\020\0032\257\027\n\010" - "BaseNode\022L\n\013ListHeaders\022\034.tari.rpc.ListH" - "eadersRequest\032\035.tari.rpc.BlockHeaderResp" - "onse0\001\022R\n\017GetHeaderByHash\022 .tari.rpc.Get" - "HeaderByHashRequest\032\035.tari.rpc.BlockHead" - "erResponse\022D\n\tGetBlocks\022\032.tari.rpc.GetBl" - "ocksRequest\032\031.tari.rpc.HistoricalBlock0\001" - "\022H\n\016GetBlockTiming\022\027.tari.rpc.HeightRequ" - "est\032\035.tari.rpc.BlockTimingResponse\022C\n\014Ge" - "tConstants\022\025.tari.rpc.BlockHeight\032\034.tari" - ".rpc.ConsensusConstants\022I\n\014GetBlockSize\022" - "\033.tari.rpc.BlockGroupRequest\032\034.tari.rpc." - "BlockGroupResponse\022I\n\014GetBlockFees\022\033.tar" - "i.rpc.BlockGroupRequest\032\034.tari.rpc.Block" - "GroupResponse\0224\n\nGetVersion\022\017.tari.rpc.E" - "mpty\032\025.tari.rpc.StringValue\022<\n\017CheckForU" - "pdates\022\017.tari.rpc.Empty\032\030.tari.rpc.Softw" - "areUpdate\022W\n\026GetTokensInCirculation\022\032.ta" - "ri.rpc.GetBlocksRequest\032\037.tari.rpc.Value" - "AtHeightResponse0\001\022V\n\024GetNetworkDifficul" - "ty\022\027.tari.rpc.HeightRequest\032#.tari.rpc.N" - "etworkDifficultyResponse0\001\022\\\n\023GetNewBloc" - "kTemplate\022!.tari.rpc.NewBlockTemplateReq" - "uest\032\".tari.rpc.NewBlockTemplateResponse" - "\022F\n\013GetNewBlock\022\032.tari.rpc.NewBlockTempl" - "ate\032\033.tari.rpc.GetNewBlockResult\022b\n\030GetN" - "ewBlockWithCoinbases\022).tari.rpc.GetNewBl" - "ockWithCoinbasesRequest\032\033.tari.rpc.GetNe" - "wBlockResult\022r\n GetNewBlockTemplateWithC" - "oinbases\0221.tari.rpc.GetNewBlockTemplateW" - "ithCoinbasesRequest\032\033.tari.rpc.GetNewBlo" - "ckResult\022N\n\017GetNewBlockBlob\022\032.tari.rpc.N" - "ewBlockTemplate\032\037.tari.rpc.GetNewBlockBl" - "obResult\022=\n\013SubmitBlock\022\017.tari.rpc.Block" - "\032\035.tari.rpc.SubmitBlockResponse\022L\n\017Submi" - "tBlockBlob\022\032.tari.rpc.BlockBlobRequest\032\035" - ".tari.rpc.SubmitBlockResponse\022\\\n\021SubmitT" - "ransaction\022\".tari.rpc.SubmitTransactionR" - "equest\032#.tari.rpc.SubmitTransactionRespo" - "nse\022:\n\013GetSyncInfo\022\017.tari.rpc.Empty\032\032.ta" - "ri.rpc.SyncInfoResponse\022B\n\017GetSyncProgre" - "ss\022\017.tari.rpc.Empty\032\036.tari.rpc.SyncProgr" - "essResponse\0228\n\nGetTipInfo\022\017.tari.rpc.Emp" - "ty\032\031.tari.rpc.TipInfoResponse\022L\n\rSearchK" - "ernels\022\036.tari.rpc.SearchKernelsRequest\032\031" - ".tari.rpc.HistoricalBlock0\001\022H\n\013SearchUtx" - "os\022\034.tari.rpc.SearchUtxosRequest\032\031.tari." - "rpc.HistoricalBlock0\001\022a\n\022FetchMatchingUt" - "xos\022#.tari.rpc.FetchMatchingUtxosRequest" - "\032$.tari.rpc.FetchMatchingUtxosResponse0\001" - "\022C\n\010GetPeers\022\031.tari.rpc.GetPeersRequest\032" - "\032.tari.rpc.GetPeersResponse0\001\022m\n\026GetMemp" - "oolTransactions\022\'.tari.rpc.GetMempoolTra" - "nsactionsRequest\032(.tari.rpc.GetMempoolTr" - "ansactionsResponse0\001\022Y\n\020TransactionState" - "\022!.tari.rpc.TransactionStateRequest\032\".ta" - "ri.rpc.TransactionStateResponse\0223\n\010Ident" - "ify\022\017.tari.rpc.Empty\032\026.tari.rpc.NodeIden" - "tity\022D\n\020GetNetworkStatus\022\017.tari.rpc.Empt" - "y\032\037.tari.rpc.NetworkStatusResponse\022K\n\022Li" - "stConnectedPeers\022\017.tari.rpc.Empty\032$.tari" - ".rpc.ListConnectedPeersResponse\022B\n\017GetMe" - "mpoolStats\022\017.tari.rpc.Empty\032\036.tari.rpc.M" - "empoolStatsResponse\022p\n\027GetActiveValidato" - "rNodes\022(.tari.rpc.GetActiveValidatorNode" - "sRequest\032).tari.rpc.GetActiveValidatorNo" - "desResponse0\001\022J\n\013GetShardKey\022\034.tari.rpc." - "GetShardKeyRequest\032\035.tari.rpc.GetShardKe" - "yResponse\022r\n\030GetTemplateRegistrations\022)." - "tari.rpc.GetTemplateRegistrationsRequest" - "\032).tari.rpc.GetTemplateRegistrationRespo" - "nse0\001\022^\n\021GetSideChainUtxos\022\".tari.rpc.Ge" - "tSideChainUtxosRequest\032#.tari.rpc.GetSid" - "eChainUtxosResponse0\001\022V\n\017GetNetworkState" - "\022 .tari.rpc.GetNetworkStateRequest\032!.tar" - "i.rpc.GetNetworkStateResponseb\006proto3" + "nts\030\004 \001(\010\"\374\002\n\017ReadinessStatus\0220\n\005state\030\001" + " \001(\0162\037.tari.rpc.ReadinessStatus.StateH\000\022" + "0\n\tmigration\030\002 \001(\0132\033.tari.rpc.MigrationP" + "rogressH\000\022\021\n\ttimestamp\030\006 \001(\004\"\347\001\n\005State\022\r" + "\n\tNOT_READY\020\000\022\017\n\013STARTING_UP\020\001\022\031\n\025DATABA" + "SE_INITIALIZING\020\n\022\030\n\024RECOVERING_PREPARIN" + "G\020\024\022\031\n\025RECOVERING_REBUILDING\020\025\022\"\n\036RECOVE" + "RING_REBUILDING_DATABASE\020\026\022\037\n\033BUILDING_C" + "ONTEXT_BLOCKCHAIN\020 \022\036\n\032BUILDING_CONTEXT_" + "BOOTSTRAP\020\"\022\t\n\005READY\020dB\010\n\006status\"\224\001\n\021Mig" + "rationProgress\022\025\n\rcurrent_block\030\001 \001(\004\022\024\n" + "\014total_blocks\030\002 \001(\004\022\033\n\023progress_percenta" + "ge\030\003 \001(\001\022\032\n\022current_db_version\030\004 \001(\004\022\031\n\021" + "target_db_version\030\005 \001(\004\"\232\001\n\030NewBlockTemp" + "lateResponse\0226\n\022new_block_template\030\001 \001(\013" + "2\032.tari.rpc.NewBlockTemplate\022\035\n\025initial_" + "sync_achieved\030\003 \001(\010\022\'\n\nminer_data\030\004 \001(\0132" + "\023.tari.rpc.MinerData\"N\n\027NewBlockTemplate" + "Request\022\037\n\004algo\030\001 \001(\0132\021.tari.rpc.PowAlgo" + "\022\022\n\nmax_weight\030\002 \001(\004\"\215\001\n\'GetNewBlockTemp" + "lateWithCoinbasesRequest\022\037\n\004algo\030\001 \001(\0132\021" + ".tari.rpc.PowAlgo\022\022\n\nmax_weight\030\002 \001(\004\022-\n" + "\tcoinbases\030\003 \003(\0132\032.tari.rpc.NewBlockCoin" + "base\"\202\001\n\037GetNewBlockWithCoinbasesRequest" + "\0220\n\014new_template\030\001 \001(\0132\032.tari.rpc.NewBlo" + "ckTemplate\022-\n\tcoinbases\030\002 \003(\0132\032.tari.rpc" + ".NewBlockCoinbase\"\201\001\n\020NewBlockCoinbase\022\017" + "\n\007address\030\001 \001(\t\022\r\n\005value\030\002 \001(\004\022\027\n\017stealt" + "h_payment\030\003 \001(\010\022\034\n\024revealed_value_proof\030" + "\004 \001(\010\022\026\n\016coinbase_extra\030\005 \001(\014\"\252\002\n\031Networ" + "kDifficultyResponse\022\022\n\ndifficulty\030\001 \001(\004\022" + "\033\n\023estimated_hash_rate\030\002 \001(\004\022\016\n\006height\030\003" + " \001(\004\022\021\n\ttimestamp\030\004 \001(\004\022\020\n\010pow_algo\030\005 \001(" + "\004\022!\n\031sha3x_estimated_hash_rate\030\006 \001(\004\022*\n\"" + "monero_randomx_estimated_hash_rate\030\007 \001(\004" + "\022(\n tari_randomx_estimated_hash_rate\030\n \001" + "(\004\022\025\n\rnum_coinbases\030\010 \001(\004\022\027\n\017coinbase_ex" + "tras\030\t \003(\014\"\340\001\n\025ValueAtHeightResponse\022\032\n\022" + "circulating_supply\030\001 \001(\004\022\016\n\006height\030\003 \001(\004" + "\022\025\n\rmined_rewards\030\004 \001(\004\022\031\n\021spendable_rew" + "ards\030\005 \001(\004\022\032\n\022spendable_pre_mine\030\006 \001(\004\022\027" + "\n\017total_spendable\030\007 \001(\004\022\026\n\016total_pre_min" + "e\030\010 \001(\004\022\034\n\024time_locked_pre_mine\030\t \001(\004\"\035\n" + "\014IntegerValue\022\r\n\005value\030\001 \001(\004\">\n\032BaseNode" + "GetVersionResponse\022\017\n\007version\030\001 \001(\t\022\017\n\007n" + "etwork\030\002 \001(\r\"v\n\021BlockGroupRequest\022\020\n\010fro" + "m_tip\030\001 \001(\004\022\024\n\014start_height\030\002 \001(\004\022\022\n\nend" + "_height\030\003 \001(\004\022%\n\tcalc_type\030\004 \001(\0162\022.tari." + "rpc.CalcType\"J\n\022BlockGroupResponse\022\r\n\005va" + "lue\030\001 \003(\001\022%\n\tcalc_type\030\002 \001(\0162\022.tari.rpc." + "CalcType\"K\n\rHeightRequest\022\020\n\010from_tip\030\001 " + "\001(\004\022\024\n\014start_height\030\002 \001(\004\022\022\n\nend_height\030" + "\003 \001(\004\"<\n\023BlockTimingResponse\022\013\n\003max\030\001 \001(" + "\004\022\013\n\003min\030\002 \001(\004\022\013\n\003avg\030\003 \001(\001\"&\n\026GetHeader" + "ByHashRequest\022\014\n\004hash\030\001 \001(\014\"\221\001\n\023BlockHea" + "derResponse\022%\n\006header\030\001 \001(\0132\025.tari.rpc.B" + "lockHeader\022\025\n\rconfirmations\030\002 \001(\004\022\016\n\006rew" + "ard\030\003 \001(\004\022\022\n\ndifficulty\030\004 \001(\004\022\030\n\020num_tra" + "nsactions\030\005 \001(\r\"b\n\022ListHeadersRequest\022\023\n" + "\013from_height\030\001 \001(\004\022\023\n\013num_headers\030\002 \001(\004\022" + "\"\n\007sorting\030\003 \001(\0162\021.tari.rpc.Sorting\"#\n\020G" + "etBlocksRequest\022\017\n\007heights\030\001 \003(\004\">\n\021GetB" + "locksResponse\022)\n\006blocks\030\001 \003(\0132\031.tari.rpc" + ".HistoricalBlock\"\210\001\n\010MetaData\022\031\n\021best_bl" + "ock_height\030\001 \001(\004\022\027\n\017best_block_hash\030\002 \001(" + "\014\022\036\n\026accumulated_difficulty\030\005 \001(\014\022\025\n\rpru" + "ned_height\030\006 \001(\004\022\021\n\ttimestamp\030\007 \001(\004\"R\n\020S" + "yncInfoResponse\022\022\n\ntip_height\030\001 \001(\004\022\024\n\014l" + "ocal_height\030\002 \001(\004\022\024\n\014peer_node_id\030\003 \003(\014\"" + "\231\001\n\024SyncProgressResponse\022\022\n\ntip_height\030\001" + " \001(\004\022\024\n\014local_height\030\002 \001(\004\022\"\n\005state\030\003 \001(" + "\0162\023.tari.rpc.SyncState\022\022\n\nshort_desc\030\004 \001" + "(\t\022\037\n\027initial_connected_peers\030\005 \001(\004\"\263\001\n\021" + "GetNewBlockResult\022\022\n\nblock_hash\030\001 \001(\014\022\036\n" + "\005block\030\002 \001(\0132\017.tari.rpc.Block\022\031\n\021merge_m" + "ining_hash\030\003 \001(\014\022\026\n\016tari_unique_id\030\004 \001(\014" + "\022\'\n\nminer_data\030\005 \001(\0132\023.tari.rpc.MinerDat" + "a\022\016\n\006vm_key\030\006 \001(\014\"\223\001\n\025GetNewBlockBlobRes" + "ult\022\022\n\nblock_hash\030\001 \001(\014\022\016\n\006header\030\002 \001(\014\022" + "\022\n\nblock_body\030\003 \001(\014\022\031\n\021merge_mining_hash" + "\030\004 \001(\014\022\017\n\007utxo_mr\030\005 \001(\014\022\026\n\016tari_unique_i" + "d\030\006 \001(\014\"k\n\tMinerData\022\037\n\004algo\030\001 \001(\0132\021.tar" + "i.rpc.PowAlgo\022\031\n\021target_difficulty\030\002 \001(\004" + "\022\016\n\006reward\030\003 \001(\004\022\022\n\ntotal_fees\030\005 \001(\004\"\?\n\024" + "SearchKernelsRequest\022\'\n\nsignatures\030\001 \003(\013" + "2\023.tari.rpc.Signature\")\n\022SearchUtxosRequ" + "est\022\023\n\013commitments\030\001 \003(\014\"+\n\031FetchMatchin" + "gUtxosRequest\022\016\n\006hashes\030\001 \003(\014\"I\n\032FetchMa" + "tchingUtxosResponse\022+\n\006output\030\001 \001(\0132\033.ta" + "ri.rpc.TransactionOutput\"0\n\020GetPeersResp" + "onse\022\034\n\004peer\030\001 \001(\0132\016.tari.rpc.Peer\"\021\n\017Ge" + "tPeersRequest\"F\n\030SubmitTransactionReques" + "t\022*\n\013transaction\030\001 \001(\0132\025.tari.rpc.Transa" + "ction\"N\n\031SubmitTransactionResponse\0221\n\006re" + "sult\030\001 \001(\0162!.tari.rpc.SubmitTransactionR" + "esult\"\037\n\035GetMempoolTransactionsRequest\"L" + "\n\036GetMempoolTransactionsResponse\022*\n\013tran" + "saction\030\001 \001(\0132\025.tari.rpc.Transaction\"B\n\027" + "TransactionStateRequest\022\'\n\nexcess_sig\030\001 " + "\001(\0132\023.tari.rpc.Signature\"I\n\030TransactionS" + "tateResponse\022-\n\006result\030\001 \001(\0162\035.tari.rpc." + "TransactionLocation\"^\n\024MempoolStatsRespo" + "nse\022\027\n\017unconfirmed_txs\030\002 \001(\004\022\021\n\treorg_tx" + "s\030\003 \001(\004\022\032\n\022unconfirmed_weight\030\004 \001(\004\"F\n\036G" + "etActiveValidatorNodesRequest\022\016\n\006height\030" + "\001 \001(\004\022\024\n\014sidechain_id\030\002 \001(\014\"^\n\037GetActive" + "ValidatorNodesResponse\022\021\n\tshard_key\030\001 \001(" + "\014\022\022\n\npublic_key\030\002 \001(\014\022\024\n\014sidechain_id\030\003 " + "\001(\014\"E\n\036GetValidatorNodeChangesRequest\022\r\n" + "\005epoch\030\001 \001(\004\022\024\n\014sidechain_id\030\002 \001(\014\"\207\001\n\023V" + "alidatorNodeChange\022/\n\003add\030\001 \001(\0132 .tari.r" + "pc.ValidatorNodeChangeAddH\000\0225\n\006remove\030\002 " + "\001(\0132#.tari.rpc.ValidatorNodeChangeRemove" + "H\000B\010\n\006change\"\237\001\n\026ValidatorNodeChangeAdd\022" + "\030\n\020activation_epoch\030\001 \001(\004\0229\n\014registratio" + "n\030\002 \001(\0132#.tari.rpc.ValidatorNodeRegistra" + "tion\022\035\n\025minimum_value_promise\030\003 \001(\004\022\021\n\ts" + "hard_key\030\004 \001(\014\"/\n\031ValidatorNodeChangeRem" + "ove\022\022\n\npublic_key\030\001 \001(\014\"Q\n\037GetValidatorN" + "odeChangesResponse\022.\n\007changes\030\001 \003(\0132\035.ta" + "ri.rpc.ValidatorNodeChange\"7\n\022GetShardKe" + "yRequest\022\r\n\005epoch\030\001 \001(\004\022\022\n\npublic_key\030\002 " + "\001(\014\"(\n\023GetShardKeyResponse\022\021\n\tshard_key\030" + "\001 \001(\014\"D\n\037GetTemplateRegistrationsRequest" + "\022\022\n\nstart_hash\030\001 \001(\014\022\r\n\005count\030\002 \001(\004\"j\n\037G" + "etTemplateRegistrationResponse\022\021\n\tutxo_h" + "ash\030\001 \001(\014\0224\n\014registration\030\002 \001(\0132\036.tari.r" + "pc.TemplateRegistration\"B\n\tBlockInfo\022\016\n\006" + "height\030\001 \001(\004\022\014\n\004hash\030\002 \001(\014\022\027\n\017next_block" + "_hash\030\003 \001(\014\"=\n\030GetSideChainUtxosRequest\022" + "\022\n\nstart_hash\030\001 \001(\014\022\r\n\005count\030\002 \001(\004\"r\n\031Ge" + "tSideChainUtxosResponse\022\'\n\nblock_info\030\001 " + "\001(\0132\023.tari.rpc.BlockInfo\022,\n\007outputs\030\002 \003(" + "\0132\033.tari.rpc.TransactionOutput\"\030\n\026GetNet" + "workStateRequest\"\267\003\n\027GetNetworkStateResp" + "onse\022$\n\010metadata\030\001 \001(\0132\022.tari.rpc.MetaDa" + "ta\022\035\n\025initial_sync_achieved\030\002 \001(\010\0220\n\017bas" + "e_node_state\030\003 \001(\0162\027.tari.rpc.BaseNodeSt" + "ate\022\032\n\022failed_checkpoints\030\004 \001(\010\022\016\n\006rewar" + "d\030\005 \001(\004\022!\n\031sha3x_estimated_hash_rate\030\006 \001" + "(\004\022*\n\"monero_randomx_estimated_hash_rate" + "\030\007 \001(\004\022(\n tari_randomx_estimated_hash_ra" + "te\030\n \001(\004\022\027\n\017num_connections\030\010 \001(\004\0222\n\020liv" + "eness_results\030\t \003(\0132\030.tari.rpc.LivenessR" + "esult\0223\n\020readiness_status\030\013 \001(\0132\031.tari.r" + "pc.ReadinessStatus\"V\n\016LivenessResult\022\024\n\014" + "peer_node_id\030\001 \001(\014\022\030\n\020discover_latency\030\002" + " \001(\004\022\024\n\014ping_latency\030\003 \001(\004\"w\n\036SearchPaym" + "entReferencesRequest\022\035\n\025payment_referenc" + "e_hex\030\001 \003(\t\022\037\n\027payment_reference_bytes\030\002" + " \003(\014\022\025\n\rinclude_spent\030\003 \001(\010\"\233\002\n\030PaymentR" + "eferenceResponse\022\035\n\025payment_reference_he" + "x\030\001 \001(\t\022\024\n\014block_height\030\002 \001(\004\022\022\n\nblock_h" + "ash\030\003 \001(\014\022\027\n\017mined_timestamp\030\004 \001(\004\022\022\n\nco" + "mmitment\030\005 \001(\014\022\020\n\010is_spent\030\006 \001(\010\022\024\n\014spen" + "t_height\030\007 \001(\004\022\030\n\020spent_block_hash\030\010 \001(\014" + "\022\031\n\021min_value_promise\030\t \001(\004\022\027\n\017spent_tim" + "estamp\030\n \001(\004\022\023\n\013output_hash\030\013 \001(\014*\200\001\n\rBa" + "seNodeState\022\014\n\010START_UP\020\000\022\017\n\013HEADER_SYNC" + "\020\001\022\020\n\014HORIZON_SYNC\020\002\022\016\n\nCONNECTING\020\003\022\016\n\n" + "BLOCK_SYNC\020\004\022\r\n\tLISTENING\020\005\022\017\n\013SYNC_FAIL" + "ED\020\006*<\n\010CalcType\022\010\n\004MEAN\020\000\022\n\n\006MEDIAN\020\001\022\014" + "\n\010QUANTILE\020\002\022\014\n\010QUARTILE\020\003*,\n\007Sorting\022\020\n" + "\014SORTING_DESC\020\000\022\017\n\013SORTING_ASC\020\001*b\n\tSync" + "State\022\013\n\007STARTUP\020\000\022\023\n\017HEADER_STARTING\020\001\022" + "\n\n\006HEADER\020\002\022\022\n\016BLOCK_STARTING\020\003\022\t\n\005BLOCK" + "\020\004\022\010\n\004DONE\020\005*t\n\027SubmitTransactionResult\022" + "\010\n\004NONE\020\000\022\014\n\010ACCEPTED\020\001\022 \n\034NOT_PROCESSAB" + "LE_AT_THIS_TIME\020\002\022\021\n\rALREADY_MINED\020\003\022\014\n\010" + "REJECTED\020\004*J\n\023TransactionLocation\022\013\n\007UNK" + "NOWN\020\000\022\013\n\007MEMPOOL\020\001\022\t\n\005MINED\020\002\022\016\n\nNOT_ST" + "ORED\020\0032\214\032\n\010BaseNode\022L\n\013ListHeaders\022\034.tar" + "i.rpc.ListHeadersRequest\032\035.tari.rpc.Bloc" + "kHeaderResponse0\001\022R\n\017GetHeaderByHash\022 .t" + "ari.rpc.GetHeaderByHashRequest\032\035.tari.rp" + "c.BlockHeaderResponse\022D\n\tGetBlocks\022\032.tar" + "i.rpc.GetBlocksRequest\032\031.tari.rpc.Histor" + "icalBlock0\001\022H\n\016GetBlockTiming\022\027.tari.rpc" + ".HeightRequest\032\035.tari.rpc.BlockTimingRes" + "ponse\022C\n\014GetConstants\022\025.tari.rpc.BlockHe" + "ight\032\034.tari.rpc.ConsensusConstants\022I\n\014Ge" + "tBlockSize\022\033.tari.rpc.BlockGroupRequest\032" + "\034.tari.rpc.BlockGroupResponse\022I\n\014GetBloc" + "kFees\022\033.tari.rpc.BlockGroupRequest\032\034.tar" + "i.rpc.BlockGroupResponse\022C\n\nGetVersion\022\017" + ".tari.rpc.Empty\032$.tari.rpc.BaseNodeGetVe" + "rsionResponse\022<\n\017CheckForUpdates\022\017.tari." + "rpc.Empty\032\030.tari.rpc.SoftwareUpdate\022W\n\026G" + "etTokensInCirculation\022\032.tari.rpc.GetBloc" + "ksRequest\032\037.tari.rpc.ValueAtHeightRespon" + "se0\001\022V\n\024GetNetworkDifficulty\022\027.tari.rpc." + "HeightRequest\032#.tari.rpc.NetworkDifficul" + "tyResponse0\001\022\\\n\023GetNewBlockTemplate\022!.ta" + "ri.rpc.NewBlockTemplateRequest\032\".tari.rp" + "c.NewBlockTemplateResponse\022F\n\013GetNewBloc" + "k\022\032.tari.rpc.NewBlockTemplate\032\033.tari.rpc" + ".GetNewBlockResult\022b\n\030GetNewBlockWithCoi" + "nbases\022).tari.rpc.GetNewBlockWithCoinbas" + "esRequest\032\033.tari.rpc.GetNewBlockResult\022r" + "\n GetNewBlockTemplateWithCoinbases\0221.tar" + "i.rpc.GetNewBlockTemplateWithCoinbasesRe" + "quest\032\033.tari.rpc.GetNewBlockResult\022N\n\017Ge" + "tNewBlockBlob\022\032.tari.rpc.NewBlockTemplat" + "e\032\037.tari.rpc.GetNewBlockBlobResult\022=\n\013Su" + "bmitBlock\022\017.tari.rpc.Block\032\035.tari.rpc.Su" + "bmitBlockResponse\022L\n\017SubmitBlockBlob\022\032.t" + "ari.rpc.BlockBlobRequest\032\035.tari.rpc.Subm" + "itBlockResponse\022\\\n\021SubmitTransaction\022\".t" + "ari.rpc.SubmitTransactionRequest\032#.tari." + "rpc.SubmitTransactionResponse\022:\n\013GetSync" + "Info\022\017.tari.rpc.Empty\032\032.tari.rpc.SyncInf" + "oResponse\022B\n\017GetSyncProgress\022\017.tari.rpc." + "Empty\032\036.tari.rpc.SyncProgressResponse\0228\n" + "\nGetTipInfo\022\017.tari.rpc.Empty\032\031.tari.rpc." + "TipInfoResponse\022L\n\rSearchKernels\022\036.tari." + "rpc.SearchKernelsRequest\032\031.tari.rpc.Hist" + "oricalBlock0\001\022H\n\013SearchUtxos\022\034.tari.rpc." + "SearchUtxosRequest\032\031.tari.rpc.Historical" + "Block0\001\022a\n\022FetchMatchingUtxos\022#.tari.rpc" + ".FetchMatchingUtxosRequest\032$.tari.rpc.Fe" + "tchMatchingUtxosResponse0\001\022C\n\010GetPeers\022\031" + ".tari.rpc.GetPeersRequest\032\032.tari.rpc.Get" + "PeersResponse0\001\022m\n\026GetMempoolTransaction" + "s\022\'.tari.rpc.GetMempoolTransactionsReque" + "st\032(.tari.rpc.GetMempoolTransactionsResp" + "onse0\001\022Y\n\020TransactionState\022!.tari.rpc.Tr" + "ansactionStateRequest\032\".tari.rpc.Transac" + "tionStateResponse\0223\n\010Identify\022\017.tari.rpc" + ".Empty\032\026.tari.rpc.NodeIdentity\022D\n\020GetNet" + "workStatus\022\017.tari.rpc.Empty\032\037.tari.rpc.N" + "etworkStatusResponse\022K\n\022ListConnectedPee" + "rs\022\017.tari.rpc.Empty\032$.tari.rpc.ListConne" + "ctedPeersResponse\022B\n\017GetMempoolStats\022\017.t" + "ari.rpc.Empty\032\036.tari.rpc.MempoolStatsRes" + "ponse\022p\n\027GetActiveValidatorNodes\022(.tari." + "rpc.GetActiveValidatorNodesRequest\032).tar" + "i.rpc.GetActiveValidatorNodesResponse0\001\022" + "n\n\027GetValidatorNodeChanges\022(.tari.rpc.Ge" + "tValidatorNodeChangesRequest\032).tari.rpc." + "GetValidatorNodeChangesResponse\022J\n\013GetSh" + "ardKey\022\034.tari.rpc.GetShardKeyRequest\032\035.t" + "ari.rpc.GetShardKeyResponse\022r\n\030GetTempla" + "teRegistrations\022).tari.rpc.GetTemplateRe" + "gistrationsRequest\032).tari.rpc.GetTemplat" + "eRegistrationResponse0\001\022^\n\021GetSideChainU" + "txos\022\".tari.rpc.GetSideChainUtxosRequest" + "\032#.tari.rpc.GetSideChainUtxosResponse0\001\022" + "V\n\017GetNetworkState\022 .tari.rpc.GetNetwork" + "StateRequest\032!.tari.rpc.GetNetworkStateR" + "esponse\022i\n\027SearchPaymentReferences\022(.tar" + "i.rpc.SearchPaymentReferencesRequest\032\".t" + "ari.rpc.PaymentReferenceResponse0\001\022q\n$Se" + "archPaymentReferencesViaOutputHash\022#.tar" + "i.rpc.FetchMatchingUtxosRequest\032\".tari.r" + "pc.PaymentReferenceResponse0\001b\006proto3" }; -static const ::_pbi::DescriptorTable* const descriptor_table_base_5fnode_2eproto_deps[5] = - { +static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const + descriptor_table_base_5fnode_2eproto_deps[5] = { &::descriptor_table_block_2eproto, &::descriptor_table_network_2eproto, &::descriptor_table_sidechain_5ftypes_2eproto, @@ -2372,179 +2951,177 @@ static const ::_pbi::DescriptorTable* const descriptor_table_base_5fnode_2eproto &::descriptor_table_types_2eproto, }; static ::absl::once_flag descriptor_table_base_5fnode_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_base_5fnode_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_base_5fnode_2eproto = { false, false, - 9317, + 11357, descriptor_table_protodef_base_5fnode_2eproto, "base_node.proto", &descriptor_table_base_5fnode_2eproto_once, descriptor_table_base_5fnode_2eproto_deps, 5, - 58, + 67, schemas, file_default_instances, TableStruct_base_5fnode_2eproto::offsets, - file_level_metadata_base_5fnode_2eproto, file_level_enum_descriptors_base_5fnode_2eproto, file_level_service_descriptors_base_5fnode_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_base_5fnode_2eproto_getter() { - return &descriptor_table_base_5fnode_2eproto; -} namespace tari { namespace rpc { -const ::google::protobuf::EnumDescriptor* BaseNodeState_descriptor() { +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL ReadinessStatus_State_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); return file_level_enum_descriptors_base_5fnode_2eproto[0]; } -PROTOBUF_CONSTINIT const uint32_t BaseNodeState_internal_data_[] = { - 458752u, 0u, }; -bool BaseNodeState_IsValid(int value) { - return 0 <= value && value <= 6; -} -const ::google::protobuf::EnumDescriptor* CalcType_descriptor() { +PROTOBUF_CONSTINIT const uint32_t ReadinessStatus_State_internal_data_[] = { + 131072u, 65600u, 1075577088u, 1u, 100u, }; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL BaseNodeState_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); return file_level_enum_descriptors_base_5fnode_2eproto[1]; } -PROTOBUF_CONSTINIT const uint32_t CalcType_internal_data_[] = { - 262144u, 0u, }; -bool CalcType_IsValid(int value) { - return 0 <= value && value <= 3; -} -const ::google::protobuf::EnumDescriptor* Sorting_descriptor() { +PROTOBUF_CONSTINIT const uint32_t BaseNodeState_internal_data_[] = { + 458752u, 0u, }; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL CalcType_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); return file_level_enum_descriptors_base_5fnode_2eproto[2]; } -PROTOBUF_CONSTINIT const uint32_t Sorting_internal_data_[] = { - 131072u, 0u, }; -bool Sorting_IsValid(int value) { - return 0 <= value && value <= 1; -} -const ::google::protobuf::EnumDescriptor* SyncState_descriptor() { +PROTOBUF_CONSTINIT const uint32_t CalcType_internal_data_[] = { + 262144u, 0u, }; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Sorting_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); return file_level_enum_descriptors_base_5fnode_2eproto[3]; } -PROTOBUF_CONSTINIT const uint32_t SyncState_internal_data_[] = { - 393216u, 0u, }; -bool SyncState_IsValid(int value) { - return 0 <= value && value <= 5; -} -const ::google::protobuf::EnumDescriptor* SubmitTransactionResult_descriptor() { +PROTOBUF_CONSTINIT const uint32_t Sorting_internal_data_[] = { + 131072u, 0u, }; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SyncState_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); return file_level_enum_descriptors_base_5fnode_2eproto[4]; } -PROTOBUF_CONSTINIT const uint32_t SubmitTransactionResult_internal_data_[] = { - 327680u, 0u, }; -bool SubmitTransactionResult_IsValid(int value) { - return 0 <= value && value <= 4; -} -const ::google::protobuf::EnumDescriptor* TransactionLocation_descriptor() { +PROTOBUF_CONSTINIT const uint32_t SyncState_internal_data_[] = { + 393216u, 0u, }; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SubmitTransactionResult_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); return file_level_enum_descriptors_base_5fnode_2eproto[5]; } +PROTOBUF_CONSTINIT const uint32_t SubmitTransactionResult_internal_data_[] = { + 327680u, 0u, }; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL TransactionLocation_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); + return file_level_enum_descriptors_base_5fnode_2eproto[6]; +} PROTOBUF_CONSTINIT const uint32_t TransactionLocation_internal_data_[] = { 262144u, 0u, }; -bool TransactionLocation_IsValid(int value) { - return 0 <= value && value <= 3; -} // =================================================================== class GetAssetMetadataRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetAssetMetadataRequest, _impl_._has_bits_); }; -GetAssetMetadataRequest::GetAssetMetadataRequest(::google::protobuf::Arena* arena) +GetAssetMetadataRequest::GetAssetMetadataRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetAssetMetadataRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetAssetMetadataRequest) } -inline PROTOBUF_NDEBUG_INLINE GetAssetMetadataRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : asset_public_key_(arena, from.asset_public_key_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetAssetMetadataRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetAssetMetadataRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + asset_public_key_(arena, from.asset_public_key_) {} GetAssetMetadataRequest::GetAssetMetadataRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetAssetMetadataRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetAssetMetadataRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetAssetMetadataRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.GetAssetMetadataRequest) } -inline PROTOBUF_NDEBUG_INLINE GetAssetMetadataRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetAssetMetadataRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : asset_public_key_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + asset_public_key_(arena) {} -inline void GetAssetMetadataRequest::SharedCtor(::_pb::Arena* arena) { +inline void GetAssetMetadataRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetAssetMetadataRequest::~GetAssetMetadataRequest() { // @@protoc_insertion_point(destructor:tari.rpc.GetAssetMetadataRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetAssetMetadataRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.asset_public_key_.Destroy(); - _impl_.~Impl_(); +inline void GetAssetMetadataRequest::SharedDtor(MessageLite& self) { + GetAssetMetadataRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.asset_public_key_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL GetAssetMetadataRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetAssetMetadataRequest(arena); +} +constexpr auto GetAssetMetadataRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetAssetMetadataRequest), + alignof(GetAssetMetadataRequest)); +} +constexpr auto GetAssetMetadataRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetAssetMetadataRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.asset_public_key_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetAssetMetadataRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetAssetMetadataRequest::ByteSizeLong, + &GetAssetMetadataRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetAssetMetadataRequest, _impl_._cached_size_), + false, + }, + &GetAssetMetadataRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetAssetMetadataRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetAssetMetadataRequest_class_data_ = + GetAssetMetadataRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetAssetMetadataRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetAssetMetadataRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetAssetMetadataRequest_class_data_.tc_table); + return GetAssetMetadataRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetAssetMetadataRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +GetAssetMetadataRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetAssetMetadataRequest, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -2553,7 +3130,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetAssetMetadataRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GetAssetMetadataRequest_default_instance_._instance, + GetAssetMetadataRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetAssetMetadataRequest>(), // to_prefetch @@ -2561,59 +3139,93 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetAssetMetadataRequest::_table_ = { }, {{ // bytes asset_public_key = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataRequest, _impl_.asset_public_key_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataRequest, _impl_.asset_public_key_)}}, }}, {{ 65535, 65535 }}, {{ // bytes asset_public_key = 1; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataRequest, _impl_.asset_public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetAssetMetadataRequest, _impl_.asset_public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void GetAssetMetadataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetAssetMetadataRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetAssetMetadataRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.asset_public_key_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetAssetMetadataRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetAssetMetadataRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetAssetMetadataRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetAssetMetadataRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetAssetMetadataRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes asset_public_key = 1; - if (!this->_internal_asset_public_key().empty()) { - const std::string& _s = this->_internal_asset_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_asset_public_key().empty()) { + const ::std::string& _s = this_._internal_asset_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetAssetMetadataRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetAssetMetadataRequest::ByteSizeLong(const MessageLite& base) { + const GetAssetMetadataRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetAssetMetadataRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetAssetMetadataRequest) + const GetAssetMetadataRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetAssetMetadataRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes asset_public_key = 1; - if (!this->_internal_asset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_asset_public_key()); + { + // bytes asset_public_key = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_asset_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_asset_public_key()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2622,9 +3234,17 @@ void GetAssetMetadataRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_asset_public_key().empty()) { - _this->_internal_set_asset_public_key(from._internal_asset_public_key()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_asset_public_key().empty()) { + _this->_internal_set_asset_public_key(from._internal_asset_public_key()); + } else { + if (_this->_impl_.asset_public_key_.IsDefault()) { + _this->_internal_set_asset_public_key(""); + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2635,45 +3255,47 @@ void GetAssetMetadataRequest::CopyFrom(const GetAssetMetadataRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetAssetMetadataRequest::IsInitialized() const { - return true; -} -void GetAssetMetadataRequest::InternalSwap(GetAssetMetadataRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetAssetMetadataRequest::InternalSwap(GetAssetMetadataRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.asset_public_key_, &other->_impl_.asset_public_key_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetAssetMetadataResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_._has_bits_); }; void GetAssetMetadataResponse::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; } -GetAssetMetadataResponse::GetAssetMetadataResponse(::google::protobuf::Arena* arena) +GetAssetMetadataResponse::GetAssetMetadataResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetAssetMetadataResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetAssetMetadataResponse) } -inline PROTOBUF_NDEBUG_INLINE GetAssetMetadataResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE GetAssetMetadataResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetAssetMetadataResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, name_(arena, from.name_), @@ -2683,25 +3305,29 @@ inline PROTOBUF_NDEBUG_INLINE GetAssetMetadataResponse::Impl_::Impl_( mined_in_block_(arena, from.mined_in_block_) {} GetAssetMetadataResponse::GetAssetMetadataResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetAssetMetadataResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetAssetMetadataResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetAssetMetadataResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( - arena, *from._impl_.features_) - : nullptr; + _impl_.features_ = ((cached_has_bits & 0x00000020u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) + : nullptr; _impl_.mined_height_ = from._impl_.mined_height_; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetAssetMetadataResponse) } -inline PROTOBUF_NDEBUG_INLINE GetAssetMetadataResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetAssetMetadataResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, name_(arena), description_(arena), @@ -2709,7 +3335,7 @@ inline PROTOBUF_NDEBUG_INLINE GetAssetMetadataResponse::Impl_::Impl_( owner_commitment_(arena), mined_in_block_(arena) {} -inline void GetAssetMetadataResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetAssetMetadataResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, features_), @@ -2720,65 +3346,66 @@ inline void GetAssetMetadataResponse::SharedCtor(::_pb::Arena* arena) { } GetAssetMetadataResponse::~GetAssetMetadataResponse() { // @@protoc_insertion_point(destructor:tari.rpc.GetAssetMetadataResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetAssetMetadataResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.description_.Destroy(); - _impl_.image_.Destroy(); - _impl_.owner_commitment_.Destroy(); - _impl_.mined_in_block_.Destroy(); - delete _impl_.features_; - _impl_.~Impl_(); +inline void GetAssetMetadataResponse::SharedDtor(MessageLite& self) { + GetAssetMetadataResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.description_.Destroy(); + this_._impl_.image_.Destroy(); + this_._impl_.owner_commitment_.Destroy(); + this_._impl_.mined_in_block_.Destroy(); + delete this_._impl_.features_; + this_._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, - }, +inline void* PROTOBUF_NONNULL GetAssetMetadataResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetAssetMetadataResponse(arena); +} +constexpr auto GetAssetMetadataResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetAssetMetadataResponse), + alignof(GetAssetMetadataResponse)); +} +constexpr auto GetAssetMetadataResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetAssetMetadataResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - _impl_.image_.ClearToEmpty(); - _impl_.owner_commitment_.ClearToEmpty(); - _impl_.mined_in_block_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - _impl_.mined_height_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetAssetMetadataResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetAssetMetadataResponse::ByteSizeLong, + &GetAssetMetadataResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_._cached_size_), + false, + }, + &GetAssetMetadataResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetAssetMetadataResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetAssetMetadataResponse_class_data_ = + GetAssetMetadataResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetAssetMetadataResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetAssetMetadataResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetAssetMetadataResponse_class_data_.tc_table); + return GetAssetMetadataResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 62, 2> GetAssetMetadataResponse::_table_ = { +const ::_pbi::TcParseTable<3, 7, 1, 62, 2> +GetAssetMetadataResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_._has_bits_), 0, // no _extensions_ @@ -2789,7 +3416,8 @@ const ::_pbi::TcParseTable<3, 7, 1, 62, 2> GetAssetMetadataResponse::_table_ = { 7, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetAssetMetadataResponse_default_instance_._instance, + GetAssetMetadataResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetAssetMetadataResponse>(), // to_prefetch @@ -2797,53 +3425,55 @@ const ::_pbi::TcParseTable<3, 7, 1, 62, 2> GetAssetMetadataResponse::_table_ = { }, {{ // bytes mined_in_block = 8; {::_pbi::TcParser::FastBS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_in_block_)}}, + {66, 4, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_in_block_)}}, {::_pbi::TcParser::MiniParse, {}}, // string name = 2; {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.name_)}}, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.name_)}}, // string description = 3; {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.description_)}}, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.description_)}}, // string image = 4; {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.image_)}}, + {34, 2, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.image_)}}, // bytes owner_commitment = 5; {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.owner_commitment_)}}, + {42, 3, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.owner_commitment_)}}, // .tari.rpc.OutputFeatures features = 6; {::_pbi::TcParser::FastMtS1, - {50, 0, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.features_)}}, + {50, 5, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.features_)}}, // uint64 mined_height = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetAssetMetadataResponse, _impl_.mined_height_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetAssetMetadataResponse, _impl_.mined_height_), 6>(), + {56, 6, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_height_)}}, }}, {{ 65535, 65535 }}, {{ // string name = 2; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string description = 3; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.description_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.description_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string image = 4; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.image_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.image_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bytes owner_commitment = 5; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.owner_commitment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.owner_commitment_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.OutputFeatures features = 6; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.features_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.features_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint64 mined_height = 7; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_height_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes mined_in_block = 8; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_in_block_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_in_block_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, + }}, + {{ "\41\4\13\5\0\0\0\0" "tari.rpc.GetAssetMetadataResponse" "name" @@ -2851,128 +3481,196 @@ const ::_pbi::TcParseTable<3, 7, 1, 62, 2> GetAssetMetadataResponse::_table_ = { "image" }}, }; +PROTOBUF_NOINLINE void GetAssetMetadataResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetAssetMetadataResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetAssetMetadataResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.name_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.description_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.image_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.owner_commitment_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + _impl_.mined_in_block_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000020u) != 0) { + ABSL_DCHECK(_impl_.features_ != nullptr); + _impl_.features_->Clear(); + } + } + _impl_.mined_height_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetAssetMetadataResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetAssetMetadataResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetAssetMetadataResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetAssetMetadataResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetAssetMetadataResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string name = 2; - if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.GetAssetMetadataResponse.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_name().empty()) { + const ::std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.GetAssetMetadataResponse.name"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } } // string description = 3; - if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.GetAssetMetadataResponse.description"); - target = stream->WriteStringMaybeAliased(3, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_description().empty()) { + const ::std::string& _s = this_._internal_description(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.GetAssetMetadataResponse.description"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } } // string image = 4; - if (!this->_internal_image().empty()) { - const std::string& _s = this->_internal_image(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.GetAssetMetadataResponse.image"); - target = stream->WriteStringMaybeAliased(4, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (!this_._internal_image().empty()) { + const ::std::string& _s = this_._internal_image(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.GetAssetMetadataResponse.image"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } } // bytes owner_commitment = 5; - if (!this->_internal_owner_commitment().empty()) { - const std::string& _s = this->_internal_owner_commitment(); - target = stream->WriteBytesMaybeAliased(5, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (!this_._internal_owner_commitment().empty()) { + const ::std::string& _s = this_._internal_owner_commitment(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.OutputFeatures features = 6; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000020u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); + 6, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, + stream); } // uint64 mined_height = 7; - if (this->_internal_mined_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 7, this->_internal_mined_height(), target); + if ((cached_has_bits & 0x00000040u) != 0) { + if (this_._internal_mined_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 7, this_._internal_mined_height(), target); + } } // bytes mined_in_block = 8; - if (!this->_internal_mined_in_block().empty()) { - const std::string& _s = this->_internal_mined_in_block(); - target = stream->WriteBytesMaybeAliased(8, _s, target); + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_mined_in_block().empty()) { + const ::std::string& _s = this_._internal_mined_in_block(); + target = stream->WriteBytesMaybeAliased(8, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetAssetMetadataResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetAssetMetadataResponse::ByteSizeLong(const MessageLite& base) { + const GetAssetMetadataResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetAssetMetadataResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetAssetMetadataResponse) + const GetAssetMetadataResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetAssetMetadataResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // string name = 2; - if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000007fu) != 0) { + // string name = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + } + // string description = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_description().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_description()); + } + } + // string image = 4; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_image().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_image()); + } + } + // bytes owner_commitment = 5; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_owner_commitment().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_owner_commitment()); + } + } + // bytes mined_in_block = 8; + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_mined_in_block().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_mined_in_block()); + } + } + // .tari.rpc.OutputFeatures features = 6; + if ((cached_has_bits & 0x00000020u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); + } + // uint64 mined_height = 7; + if ((cached_has_bits & 0x00000040u) != 0) { + if (this_._internal_mined_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_mined_height()); + } + } } - - // string description = 3; - if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); - } - - // string image = 4; - if (!this->_internal_image().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_image()); - } - - // bytes owner_commitment = 5; - if (!this->_internal_owner_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_owner_commitment()); - } - - // bytes mined_in_block = 8; - if (!this->_internal_mined_in_block().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_mined_in_block()); - } - - // .tari.rpc.OutputFeatures features = 6; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); - } - - // uint64 mined_height = 7; - if (this->_internal_mined_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_mined_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2982,33 +3680,66 @@ void GetAssetMetadataResponse::MergeImpl(::google::protobuf::MessageLite& to_msg ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); - } - if (!from._internal_image().empty()) { - _this->_internal_set_image(from._internal_image()); - } - if (!from._internal_owner_commitment().empty()) { - _this->_internal_set_owner_commitment(from._internal_owner_commitment()); - } - if (!from._internal_mined_in_block().empty()) { - _this->_internal_set_mined_in_block(from._internal_mined_in_block()); - } 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 ((cached_has_bits & 0x0000007fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } else { + if (_this->_impl_.name_.IsDefault()) { + _this->_internal_set_name(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_description().empty()) { + _this->_internal_set_description(from._internal_description()); + } else { + if (_this->_impl_.description_.IsDefault()) { + _this->_internal_set_description(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_image().empty()) { + _this->_internal_set_image(from._internal_image()); + } else { + if (_this->_impl_.image_.IsDefault()) { + _this->_internal_set_image(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_owner_commitment().empty()) { + _this->_internal_set_owner_commitment(from._internal_owner_commitment()); + } else { + if (_this->_impl_.owner_commitment_.IsDefault()) { + _this->_internal_set_owner_commitment(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (!from._internal_mined_in_block().empty()) { + _this->_internal_set_mined_in_block(from._internal_mined_in_block()); + } else { + if (_this->_impl_.mined_in_block_.IsDefault()) { + _this->_internal_set_mined_in_block(""); + } + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + ABSL_DCHECK(from._impl_.features_ != nullptr); + if (_this->_impl_.features_ == nullptr) { + _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); + } else { + _this->_impl_.features_->MergeFrom(*from._impl_.features_); + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (from._internal_mined_height() != 0) { + _this->_impl_.mined_height_ = from._impl_.mined_height_; + } } - } - if (from._internal_mined_height() != 0) { - _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_); @@ -3021,12 +3752,9 @@ void GetAssetMetadataResponse::CopyFrom(const GetAssetMetadataResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetAssetMetadataResponse::IsInitialized() const { - return true; -} -void GetAssetMetadataResponse::InternalSwap(GetAssetMetadataResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetAssetMetadataResponse::InternalSwap(GetAssetMetadataResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -3045,32 +3773,44 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ListAssetRegistrationsRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_._has_bits_); }; -ListAssetRegistrationsRequest::ListAssetRegistrationsRequest(::google::protobuf::Arena* arena) +ListAssetRegistrationsRequest::ListAssetRegistrationsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ListAssetRegistrationsRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.ListAssetRegistrationsRequest) } ListAssetRegistrationsRequest::ListAssetRegistrationsRequest( - ::google::protobuf::Arena* arena, const ListAssetRegistrationsRequest& from) - : ListAssetRegistrationsRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ListAssetRegistrationsRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ListAssetRegistrationsRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE ListAssetRegistrationsRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE ListAssetRegistrationsRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void ListAssetRegistrationsRequest::SharedCtor(::_pb::Arena* arena) { +inline void ListAssetRegistrationsRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, offset_), @@ -3081,52 +3821,62 @@ inline void ListAssetRegistrationsRequest::SharedCtor(::_pb::Arena* arena) { } ListAssetRegistrationsRequest::~ListAssetRegistrationsRequest() { // @@protoc_insertion_point(destructor:tari.rpc.ListAssetRegistrationsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void ListAssetRegistrationsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void ListAssetRegistrationsRequest::SharedDtor(MessageLite& self) { + ListAssetRegistrationsRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL ListAssetRegistrationsRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ListAssetRegistrationsRequest(arena); +} +constexpr auto ListAssetRegistrationsRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ListAssetRegistrationsRequest), + alignof(ListAssetRegistrationsRequest)); +} +constexpr auto ListAssetRegistrationsRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ListAssetRegistrationsRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.offset_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.count_) - - reinterpret_cast(&_impl_.offset_)) + sizeof(_impl_.count_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ListAssetRegistrationsRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ListAssetRegistrationsRequest::ByteSizeLong, + &ListAssetRegistrationsRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_._cached_size_), + false, + }, + &ListAssetRegistrationsRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* ListAssetRegistrationsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ListAssetRegistrationsRequest_class_data_ = + ListAssetRegistrationsRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ListAssetRegistrationsRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ListAssetRegistrationsRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ListAssetRegistrationsRequest_class_data_.tc_table); + return ListAssetRegistrationsRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ListAssetRegistrationsRequest::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +ListAssetRegistrationsRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_._has_bits_), 0, // no _extensions_ 3, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -3135,87 +3885,128 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ListAssetRegistrationsRequest::_table_ 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ListAssetRegistrationsRequest_default_instance_._instance, + ListAssetRegistrationsRequest_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.offset_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListAssetRegistrationsRequest, _impl_.offset_), 0>(), + {16, 0, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.offset_)}}, // uint64 count = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListAssetRegistrationsRequest, _impl_.count_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.count_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListAssetRegistrationsRequest, _impl_.count_), 1>(), + {24, 1, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.count_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 offset = 2; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.offset_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.offset_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 count = 3; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.count_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.count_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void ListAssetRegistrationsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ListAssetRegistrationsRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* ListAssetRegistrationsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + ::memset(&_impl_.offset_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.count_) - + reinterpret_cast(&_impl_.offset_)) + sizeof(_impl_.count_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ListAssetRegistrationsRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ListAssetRegistrationsRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ListAssetRegistrationsRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ListAssetRegistrationsRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ListAssetRegistrationsRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 offset = 2; - if (this->_internal_offset() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_offset(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_offset() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_offset(), target); + } } // uint64 count = 3; - if (this->_internal_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_count(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_count() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_count(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ListAssetRegistrationsRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ListAssetRegistrationsRequest::ByteSizeLong(const MessageLite& base) { + const ListAssetRegistrationsRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t ListAssetRegistrationsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ListAssetRegistrationsRequest) + const ListAssetRegistrationsRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ListAssetRegistrationsRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 offset = 2; - if (this->_internal_offset() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_offset()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // uint64 offset = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_offset() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_offset()); + } + } + // uint64 count = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_count() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_count()); + } + } } - - // uint64 count = 3; - if (this->_internal_count() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_count()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -3224,12 +4015,20 @@ void ListAssetRegistrationsRequest::MergeImpl(::google::protobuf::MessageLite& t ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_offset() != 0) { - _this->_impl_.offset_ = from._impl_.offset_; - } - if (from._internal_count() != 0) { - _this->_impl_.count_ = from._impl_.count_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_offset() != 0) { + _this->_impl_.offset_ = from._impl_.offset_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_count() != 0) { + _this->_impl_.count_ = from._impl_.count_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3240,13 +4039,11 @@ void ListAssetRegistrationsRequest::CopyFrom(const ListAssetRegistrationsRequest MergeFrom(from); } -PROTOBUF_NOINLINE bool ListAssetRegistrationsRequest::IsInitialized() const { - return true; -} -void ListAssetRegistrationsRequest::InternalSwap(ListAssetRegistrationsRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void ListAssetRegistrationsRequest::InternalSwap(ListAssetRegistrationsRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.count_) + sizeof(ListAssetRegistrationsRequest::_impl_.count_) @@ -3256,32 +4053,36 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ListAssetRegistrationsResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_._has_bits_); }; void ListAssetRegistrationsResponse::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; } -ListAssetRegistrationsResponse::ListAssetRegistrationsResponse(::google::protobuf::Arena* arena) +ListAssetRegistrationsResponse::ListAssetRegistrationsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ListAssetRegistrationsResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.ListAssetRegistrationsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListAssetRegistrationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE ListAssetRegistrationsResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ListAssetRegistrationsResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, asset_public_key_(arena, from.asset_public_key_), @@ -3291,25 +4092,29 @@ inline PROTOBUF_NDEBUG_INLINE ListAssetRegistrationsResponse::Impl_::Impl_( script_(arena, from.script_) {} ListAssetRegistrationsResponse::ListAssetRegistrationsResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ListAssetRegistrationsResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ListAssetRegistrationsResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ListAssetRegistrationsResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( - arena, *from._impl_.features_) - : nullptr; + _impl_.features_ = ((cached_has_bits & 0x00000020u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) + : nullptr; _impl_.mined_height_ = from._impl_.mined_height_; // @@protoc_insertion_point(copy_constructor:tari.rpc.ListAssetRegistrationsResponse) } -inline PROTOBUF_NDEBUG_INLINE ListAssetRegistrationsResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE ListAssetRegistrationsResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, asset_public_key_(arena), unique_id_(arena), @@ -3317,7 +4122,7 @@ inline PROTOBUF_NDEBUG_INLINE ListAssetRegistrationsResponse::Impl_::Impl_( mined_in_block_(arena), script_(arena) {} -inline void ListAssetRegistrationsResponse::SharedCtor(::_pb::Arena* arena) { +inline void ListAssetRegistrationsResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, features_), @@ -3328,65 +4133,66 @@ inline void ListAssetRegistrationsResponse::SharedCtor(::_pb::Arena* arena) { } ListAssetRegistrationsResponse::~ListAssetRegistrationsResponse() { // @@protoc_insertion_point(destructor:tari.rpc.ListAssetRegistrationsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void ListAssetRegistrationsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.asset_public_key_.Destroy(); - _impl_.unique_id_.Destroy(); - _impl_.owner_commitment_.Destroy(); - _impl_.mined_in_block_.Destroy(); - _impl_.script_.Destroy(); - delete _impl_.features_; - _impl_.~Impl_(); +inline void ListAssetRegistrationsResponse::SharedDtor(MessageLite& self) { + ListAssetRegistrationsResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.asset_public_key_.Destroy(); + this_._impl_.unique_id_.Destroy(); + this_._impl_.owner_commitment_.Destroy(); + this_._impl_.mined_in_block_.Destroy(); + this_._impl_.script_.Destroy(); + delete this_._impl_.features_; + this_._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, - }, +inline void* PROTOBUF_NONNULL ListAssetRegistrationsResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ListAssetRegistrationsResponse(arena); +} +constexpr auto ListAssetRegistrationsResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ListAssetRegistrationsResponse), + alignof(ListAssetRegistrationsResponse)); +} +constexpr auto ListAssetRegistrationsResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ListAssetRegistrationsResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.asset_public_key_.ClearToEmpty(); - _impl_.unique_id_.ClearToEmpty(); - _impl_.owner_commitment_.ClearToEmpty(); - _impl_.mined_in_block_.ClearToEmpty(); - _impl_.script_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - _impl_.mined_height_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ListAssetRegistrationsResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ListAssetRegistrationsResponse::ByteSizeLong, + &ListAssetRegistrationsResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_._cached_size_), + false, + }, + &ListAssetRegistrationsResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* ListAssetRegistrationsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ListAssetRegistrationsResponse_class_data_ = + ListAssetRegistrationsResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ListAssetRegistrationsResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ListAssetRegistrationsResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ListAssetRegistrationsResponse_class_data_.tc_table); + return ListAssetRegistrationsResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 0, 2> ListAssetRegistrationsResponse::_table_ = { +const ::_pbi::TcParseTable<3, 7, 1, 0, 2> +ListAssetRegistrationsResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_._has_bits_), 0, // no _extensions_ @@ -3397,7 +4203,8 @@ const ::_pbi::TcParseTable<3, 7, 1, 0, 2> ListAssetRegistrationsResponse::_table 7, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ListAssetRegistrationsResponse_default_instance_._instance, + ListAssetRegistrationsResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::ListAssetRegistrationsResponse>(), // to_prefetch @@ -3406,170 +4213,240 @@ const ::_pbi::TcParseTable<3, 7, 1, 0, 2> ListAssetRegistrationsResponse::_table {::_pbi::TcParser::MiniParse, {}}, // bytes asset_public_key = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.asset_public_key_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.asset_public_key_)}}, // bytes unique_id = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.unique_id_)}}, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.unique_id_)}}, // bytes owner_commitment = 3; {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.owner_commitment_)}}, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.owner_commitment_)}}, // uint64 mined_height = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListAssetRegistrationsResponse, _impl_.mined_height_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListAssetRegistrationsResponse, _impl_.mined_height_), 6>(), + {32, 6, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_height_)}}, // bytes mined_in_block = 5; {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_in_block_)}}, + {42, 3, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_in_block_)}}, // .tari.rpc.OutputFeatures features = 6; {::_pbi::TcParser::FastMtS1, - {50, 0, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.features_)}}, + {50, 5, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.features_)}}, // bytes script = 7; {::_pbi::TcParser::FastBS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.script_)}}, + {58, 4, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.script_)}}, }}, {{ 65535, 65535 }}, {{ // bytes asset_public_key = 1; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.asset_public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.asset_public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes unique_id = 2; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.unique_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.unique_id_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes owner_commitment = 3; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.owner_commitment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.owner_commitment_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint64 mined_height = 4; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_height_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes mined_in_block = 5; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_in_block_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_in_block_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.OutputFeatures features = 6; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.features_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.features_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes script = 7; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.script_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.script_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void ListAssetRegistrationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ListAssetRegistrationsResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* ListAssetRegistrationsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.asset_public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.unique_id_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.owner_commitment_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.mined_in_block_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + _impl_.script_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000020u) != 0) { + ABSL_DCHECK(_impl_.features_ != nullptr); + _impl_.features_->Clear(); + } + } + _impl_.mined_height_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ListAssetRegistrationsResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ListAssetRegistrationsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ListAssetRegistrationsResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ListAssetRegistrationsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ListAssetRegistrationsResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes asset_public_key = 1; - if (!this->_internal_asset_public_key().empty()) { - const std::string& _s = this->_internal_asset_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_asset_public_key().empty()) { + const ::std::string& _s = this_._internal_asset_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // bytes unique_id = 2; - if (!this->_internal_unique_id().empty()) { - const std::string& _s = this->_internal_unique_id(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_unique_id().empty()) { + const ::std::string& _s = this_._internal_unique_id(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } // bytes owner_commitment = 3; - if (!this->_internal_owner_commitment().empty()) { - const std::string& _s = this->_internal_owner_commitment(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (!this_._internal_owner_commitment().empty()) { + const ::std::string& _s = this_._internal_owner_commitment(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } // uint64 mined_height = 4; - if (this->_internal_mined_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_mined_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { + if (this_._internal_mined_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_mined_height(), target); + } } // bytes mined_in_block = 5; - if (!this->_internal_mined_in_block().empty()) { - const std::string& _s = this->_internal_mined_in_block(); - target = stream->WriteBytesMaybeAliased(5, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (!this_._internal_mined_in_block().empty()) { + const ::std::string& _s = this_._internal_mined_in_block(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.OutputFeatures features = 6; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000020u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); + 6, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, + stream); } // bytes script = 7; - if (!this->_internal_script().empty()) { - const std::string& _s = this->_internal_script(); - target = stream->WriteBytesMaybeAliased(7, _s, target); + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_script().empty()) { + const ::std::string& _s = this_._internal_script(); + target = stream->WriteBytesMaybeAliased(7, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ListAssetRegistrationsResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ListAssetRegistrationsResponse::ByteSizeLong(const MessageLite& base) { + const ListAssetRegistrationsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t ListAssetRegistrationsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ListAssetRegistrationsResponse) + const ListAssetRegistrationsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ListAssetRegistrationsResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes asset_public_key = 1; - if (!this->_internal_asset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_asset_public_key()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000007fu) != 0) { + // bytes asset_public_key = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_asset_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_asset_public_key()); + } + } + // bytes unique_id = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_unique_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_unique_id()); + } + } + // bytes owner_commitment = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_owner_commitment().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_owner_commitment()); + } + } + // bytes mined_in_block = 5; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_mined_in_block().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_mined_in_block()); + } + } + // bytes script = 7; + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_script().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_script()); + } + } + // .tari.rpc.OutputFeatures features = 6; + if ((cached_has_bits & 0x00000020u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); + } + // uint64 mined_height = 4; + if ((cached_has_bits & 0x00000040u) != 0) { + if (this_._internal_mined_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_mined_height()); + } + } } - - // bytes unique_id = 2; - if (!this->_internal_unique_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_unique_id()); - } - - // bytes owner_commitment = 3; - if (!this->_internal_owner_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_owner_commitment()); - } - - // bytes mined_in_block = 5; - if (!this->_internal_mined_in_block().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_mined_in_block()); - } - - // bytes script = 7; - if (!this->_internal_script().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script()); - } - - // .tari.rpc.OutputFeatures features = 6; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); - } - - // uint64 mined_height = 4; - if (this->_internal_mined_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_mined_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -3579,33 +4456,66 @@ void ListAssetRegistrationsResponse::MergeImpl(::google::protobuf::MessageLite& ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_asset_public_key().empty()) { - _this->_internal_set_asset_public_key(from._internal_asset_public_key()); - } - if (!from._internal_unique_id().empty()) { - _this->_internal_set_unique_id(from._internal_unique_id()); - } - if (!from._internal_owner_commitment().empty()) { - _this->_internal_set_owner_commitment(from._internal_owner_commitment()); - } - if (!from._internal_mined_in_block().empty()) { - _this->_internal_set_mined_in_block(from._internal_mined_in_block()); - } - if (!from._internal_script().empty()) { - _this->_internal_set_script(from._internal_script()); - } 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 ((cached_has_bits & 0x0000007fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_asset_public_key().empty()) { + _this->_internal_set_asset_public_key(from._internal_asset_public_key()); + } else { + if (_this->_impl_.asset_public_key_.IsDefault()) { + _this->_internal_set_asset_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_unique_id().empty()) { + _this->_internal_set_unique_id(from._internal_unique_id()); + } else { + if (_this->_impl_.unique_id_.IsDefault()) { + _this->_internal_set_unique_id(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_owner_commitment().empty()) { + _this->_internal_set_owner_commitment(from._internal_owner_commitment()); + } else { + if (_this->_impl_.owner_commitment_.IsDefault()) { + _this->_internal_set_owner_commitment(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_mined_in_block().empty()) { + _this->_internal_set_mined_in_block(from._internal_mined_in_block()); + } else { + if (_this->_impl_.mined_in_block_.IsDefault()) { + _this->_internal_set_mined_in_block(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (!from._internal_script().empty()) { + _this->_internal_set_script(from._internal_script()); + } else { + if (_this->_impl_.script_.IsDefault()) { + _this->_internal_set_script(""); + } + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + ABSL_DCHECK(from._impl_.features_ != nullptr); + if (_this->_impl_.features_ == nullptr) { + _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); + } else { + _this->_impl_.features_->MergeFrom(*from._impl_.features_); + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (from._internal_mined_height() != 0) { + _this->_impl_.mined_height_ = from._impl_.mined_height_; + } } - } - if (from._internal_mined_height() != 0) { - _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_); @@ -3618,12 +4528,9 @@ void ListAssetRegistrationsResponse::CopyFrom(const ListAssetRegistrationsRespon MergeFrom(from); } -PROTOBUF_NOINLINE bool ListAssetRegistrationsResponse::IsInitialized() const { - return true; -} -void ListAssetRegistrationsResponse::InternalSwap(ListAssetRegistrationsResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void ListAssetRegistrationsResponse::InternalSwap(ListAssetRegistrationsResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -3642,98 +4549,133 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetTokensRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_._has_bits_); }; -GetTokensRequest::GetTokensRequest(::google::protobuf::Arena* arena) +GetTokensRequest::GetTokensRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetTokensRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetTokensRequest) } -inline PROTOBUF_NDEBUG_INLINE GetTokensRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : unique_ids_{visibility, arena, from.unique_ids_}, - asset_public_key_(arena, from.asset_public_key_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetTokensRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetTokensRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + unique_ids_{visibility, arena, from.unique_ids_}, + asset_public_key_(arena, from.asset_public_key_) {} GetTokensRequest::GetTokensRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTokensRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetTokensRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetTokensRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.GetTokensRequest) } -inline PROTOBUF_NDEBUG_INLINE GetTokensRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetTokensRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : unique_ids_{visibility, arena}, - asset_public_key_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + unique_ids_{visibility, arena}, + asset_public_key_(arena) {} -inline void GetTokensRequest::SharedCtor(::_pb::Arena* arena) { +inline void GetTokensRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetTokensRequest::~GetTokensRequest() { // @@protoc_insertion_point(destructor:tari.rpc.GetTokensRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetTokensRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.asset_public_key_.Destroy(); - _impl_.~Impl_(); +inline void GetTokensRequest::SharedDtor(MessageLite& self) { + GetTokensRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.asset_public_key_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL GetTokensRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetTokensRequest(arena); +} +constexpr auto GetTokensRequest::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_.unique_ids_) + + decltype(GetTokensRequest::_impl_.unique_ids_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(GetTokensRequest), alignof(GetTokensRequest), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GetTokensRequest::PlacementNew_, + sizeof(GetTokensRequest), + alignof(GetTokensRequest)); + } +} +constexpr auto GetTokensRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetTokensRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.unique_ids_.Clear(); - _impl_.asset_public_key_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetTokensRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetTokensRequest::ByteSizeLong, + &GetTokensRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_._cached_size_), + false, + }, + &GetTokensRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetTokensRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetTokensRequest_class_data_ = + GetTokensRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetTokensRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetTokensRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetTokensRequest_class_data_.tc_table); + return GetTokensRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetTokensRequest::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +GetTokensRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -3742,7 +4684,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetTokensRequest::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GetTokensRequest_default_instance_._instance, + GetTokensRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetTokensRequest>(), // to_prefetch @@ -3753,74 +4696,115 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetTokensRequest::_table_ = { {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_.unique_ids_)}}, // bytes asset_public_key = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_.asset_public_key_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_.asset_public_key_)}}, }}, {{ 65535, 65535 }}, {{ // bytes asset_public_key = 1; - {PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_.asset_public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_.asset_public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // repeated bytes unique_ids = 2; - {PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_.unique_ids_), 0, 0, + {PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_.unique_ids_), -1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void GetTokensRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetTokensRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetTokensRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.unique_ids_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.asset_public_key_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetTokensRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetTokensRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetTokensRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetTokensRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetTokensRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes asset_public_key = 1; - if (!this->_internal_asset_public_key().empty()) { - const std::string& _s = this->_internal_asset_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_asset_public_key().empty()) { + const ::std::string& _s = this_._internal_asset_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // repeated bytes unique_ids = 2; - for (int i = 0, n = this->_internal_unique_ids_size(); i < n; ++i) { - const auto& s = this->_internal_unique_ids().Get(i); + for (int i = 0, n = this_._internal_unique_ids_size(); i < n; ++i) { + const auto& s = this_._internal_unique_ids().Get(i); target = stream->WriteBytes(2, s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetTokensRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetTokensRequest::ByteSizeLong(const MessageLite& base) { + const GetTokensRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetTokensRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetTokensRequest) + const GetTokensRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetTokensRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated bytes unique_ids = 2; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_unique_ids().size()); - for (int i = 0, n = _internal_unique_ids().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( - _internal_unique_ids().Get(i)); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated bytes unique_ids = 2; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_unique_ids().size()); + for (int i = 0, n = this_._internal_unique_ids().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_unique_ids().Get(i)); + } + } } - // bytes asset_public_key = 1; - if (!this->_internal_asset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_asset_public_key()); + { + // bytes asset_public_key = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_asset_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_asset_public_key()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -3830,9 +4814,17 @@ void GetTokensRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const (void) cached_has_bits; _this->_internal_mutable_unique_ids()->MergeFrom(from._internal_unique_ids()); - if (!from._internal_asset_public_key().empty()) { - _this->_internal_set_asset_public_key(from._internal_asset_public_key()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_asset_public_key().empty()) { + _this->_internal_set_asset_public_key(from._internal_asset_public_key()); + } else { + if (_this->_impl_.asset_public_key_.IsDefault()) { + _this->_internal_set_asset_public_key(""); + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3843,46 +4835,48 @@ void GetTokensRequest::CopyFrom(const GetTokensRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetTokensRequest::IsInitialized() const { - return true; -} -void GetTokensRequest::InternalSwap(GetTokensRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetTokensRequest::InternalSwap(GetTokensRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.unique_ids_.InternalSwap(&other->_impl_.unique_ids_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.asset_public_key_, &other->_impl_.asset_public_key_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetTokensResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_._has_bits_); }; void GetTokensResponse::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; } -GetTokensResponse::GetTokensResponse(::google::protobuf::Arena* arena) +GetTokensResponse::GetTokensResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetTokensResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetTokensResponse) } -inline PROTOBUF_NDEBUG_INLINE GetTokensResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE GetTokensResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetTokensResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, unique_id_(arena, from.unique_id_), @@ -3892,25 +4886,29 @@ inline PROTOBUF_NDEBUG_INLINE GetTokensResponse::Impl_::Impl_( script_(arena, from.script_) {} GetTokensResponse::GetTokensResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTokensResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetTokensResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetTokensResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( - arena, *from._impl_.features_) - : nullptr; + _impl_.features_ = ((cached_has_bits & 0x00000020u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) + : nullptr; _impl_.mined_height_ = from._impl_.mined_height_; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetTokensResponse) } -inline PROTOBUF_NDEBUG_INLINE GetTokensResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetTokensResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, unique_id_(arena), asset_public_key_(arena), @@ -3918,7 +4916,7 @@ inline PROTOBUF_NDEBUG_INLINE GetTokensResponse::Impl_::Impl_( mined_in_block_(arena), script_(arena) {} -inline void GetTokensResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetTokensResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, features_), @@ -3929,65 +4927,66 @@ inline void GetTokensResponse::SharedCtor(::_pb::Arena* arena) { } GetTokensResponse::~GetTokensResponse() { // @@protoc_insertion_point(destructor:tari.rpc.GetTokensResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetTokensResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.unique_id_.Destroy(); - _impl_.asset_public_key_.Destroy(); - _impl_.owner_commitment_.Destroy(); - _impl_.mined_in_block_.Destroy(); - _impl_.script_.Destroy(); - delete _impl_.features_; - _impl_.~Impl_(); +inline void GetTokensResponse::SharedDtor(MessageLite& self) { + GetTokensResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.unique_id_.Destroy(); + this_._impl_.asset_public_key_.Destroy(); + this_._impl_.owner_commitment_.Destroy(); + this_._impl_.mined_in_block_.Destroy(); + this_._impl_.script_.Destroy(); + delete this_._impl_.features_; + this_._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, - }, +inline void* PROTOBUF_NONNULL GetTokensResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetTokensResponse(arena); +} +constexpr auto GetTokensResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetTokensResponse), + alignof(GetTokensResponse)); +} +constexpr auto GetTokensResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetTokensResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.unique_id_.ClearToEmpty(); - _impl_.asset_public_key_.ClearToEmpty(); - _impl_.owner_commitment_.ClearToEmpty(); - _impl_.mined_in_block_.ClearToEmpty(); - _impl_.script_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - _impl_.mined_height_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetTokensResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetTokensResponse::ByteSizeLong, + &GetTokensResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_._cached_size_), + false, + }, + &GetTokensResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetTokensResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetTokensResponse_class_data_ = + GetTokensResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetTokensResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetTokensResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetTokensResponse_class_data_.tc_table); + return GetTokensResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 0, 2> GetTokensResponse::_table_ = { +const ::_pbi::TcParseTable<3, 7, 1, 0, 2> +GetTokensResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_._has_bits_), 0, // no _extensions_ @@ -3998,7 +4997,8 @@ const ::_pbi::TcParseTable<3, 7, 1, 0, 2> GetTokensResponse::_table_ = { 7, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetTokensResponse_default_instance_._instance, + GetTokensResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetTokensResponse>(), // to_prefetch @@ -4007,170 +5007,240 @@ const ::_pbi::TcParseTable<3, 7, 1, 0, 2> GetTokensResponse::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // bytes unique_id = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.unique_id_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.unique_id_)}}, // bytes asset_public_key = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.asset_public_key_)}}, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.asset_public_key_)}}, // bytes owner_commitment = 3; {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.owner_commitment_)}}, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.owner_commitment_)}}, // bytes mined_in_block = 4; {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_in_block_)}}, + {34, 3, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_in_block_)}}, // uint64 mined_height = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetTokensResponse, _impl_.mined_height_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetTokensResponse, _impl_.mined_height_), 6>(), + {40, 6, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_height_)}}, // .tari.rpc.OutputFeatures features = 6; {::_pbi::TcParser::FastMtS1, - {50, 0, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.features_)}}, + {50, 5, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.features_)}}, // bytes script = 7; {::_pbi::TcParser::FastBS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.script_)}}, + {58, 4, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.script_)}}, }}, {{ 65535, 65535 }}, {{ // bytes unique_id = 1; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.unique_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.unique_id_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes asset_public_key = 2; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.asset_public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.asset_public_key_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes owner_commitment = 3; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.owner_commitment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.owner_commitment_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes mined_in_block = 4; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_in_block_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_in_block_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint64 mined_height = 5; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_height_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // .tari.rpc.OutputFeatures features = 6; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.features_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.features_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes script = 7; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.script_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.script_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void GetTokensResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetTokensResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetTokensResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.unique_id_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.asset_public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.owner_commitment_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.mined_in_block_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + _impl_.script_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000020u) != 0) { + ABSL_DCHECK(_impl_.features_ != nullptr); + _impl_.features_->Clear(); + } + } + _impl_.mined_height_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetTokensResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetTokensResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetTokensResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetTokensResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetTokensResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes unique_id = 1; - if (!this->_internal_unique_id().empty()) { - const std::string& _s = this->_internal_unique_id(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_unique_id().empty()) { + const ::std::string& _s = this_._internal_unique_id(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // bytes asset_public_key = 2; - if (!this->_internal_asset_public_key().empty()) { - const std::string& _s = this->_internal_asset_public_key(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_asset_public_key().empty()) { + const ::std::string& _s = this_._internal_asset_public_key(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } // bytes owner_commitment = 3; - if (!this->_internal_owner_commitment().empty()) { - const std::string& _s = this->_internal_owner_commitment(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (!this_._internal_owner_commitment().empty()) { + const ::std::string& _s = this_._internal_owner_commitment(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } // bytes mined_in_block = 4; - if (!this->_internal_mined_in_block().empty()) { - const std::string& _s = this->_internal_mined_in_block(); - target = stream->WriteBytesMaybeAliased(4, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (!this_._internal_mined_in_block().empty()) { + const ::std::string& _s = this_._internal_mined_in_block(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } } // uint64 mined_height = 5; - if (this->_internal_mined_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_mined_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { + if (this_._internal_mined_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 5, this_._internal_mined_height(), target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.OutputFeatures features = 6; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000020u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); + 6, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, + stream); } // bytes script = 7; - if (!this->_internal_script().empty()) { - const std::string& _s = this->_internal_script(); - target = stream->WriteBytesMaybeAliased(7, _s, target); + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_script().empty()) { + const ::std::string& _s = this_._internal_script(); + target = stream->WriteBytesMaybeAliased(7, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetTokensResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetTokensResponse::ByteSizeLong(const MessageLite& base) { + const GetTokensResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetTokensResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetTokensResponse) + const GetTokensResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetTokensResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes unique_id = 1; - if (!this->_internal_unique_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_unique_id()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000007fu) != 0) { + // bytes unique_id = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_unique_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_unique_id()); + } + } + // bytes asset_public_key = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_asset_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_asset_public_key()); + } + } + // bytes owner_commitment = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_owner_commitment().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_owner_commitment()); + } + } + // bytes mined_in_block = 4; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_mined_in_block().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_mined_in_block()); + } + } + // bytes script = 7; + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_script().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_script()); + } + } + // .tari.rpc.OutputFeatures features = 6; + if ((cached_has_bits & 0x00000020u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); + } + // uint64 mined_height = 5; + if ((cached_has_bits & 0x00000040u) != 0) { + if (this_._internal_mined_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_mined_height()); + } + } } - - // bytes asset_public_key = 2; - if (!this->_internal_asset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_asset_public_key()); - } - - // bytes owner_commitment = 3; - if (!this->_internal_owner_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_owner_commitment()); - } - - // bytes mined_in_block = 4; - if (!this->_internal_mined_in_block().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_mined_in_block()); - } - - // bytes script = 7; - if (!this->_internal_script().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script()); - } - - // .tari.rpc.OutputFeatures features = 6; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); - } - - // uint64 mined_height = 5; - if (this->_internal_mined_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_mined_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -4180,33 +5250,66 @@ void GetTokensResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_unique_id().empty()) { - _this->_internal_set_unique_id(from._internal_unique_id()); - } - if (!from._internal_asset_public_key().empty()) { - _this->_internal_set_asset_public_key(from._internal_asset_public_key()); - } - if (!from._internal_owner_commitment().empty()) { - _this->_internal_set_owner_commitment(from._internal_owner_commitment()); - } - if (!from._internal_mined_in_block().empty()) { - _this->_internal_set_mined_in_block(from._internal_mined_in_block()); - } - if (!from._internal_script().empty()) { - _this->_internal_set_script(from._internal_script()); - } 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 ((cached_has_bits & 0x0000007fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_unique_id().empty()) { + _this->_internal_set_unique_id(from._internal_unique_id()); + } else { + if (_this->_impl_.unique_id_.IsDefault()) { + _this->_internal_set_unique_id(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_asset_public_key().empty()) { + _this->_internal_set_asset_public_key(from._internal_asset_public_key()); + } else { + if (_this->_impl_.asset_public_key_.IsDefault()) { + _this->_internal_set_asset_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_owner_commitment().empty()) { + _this->_internal_set_owner_commitment(from._internal_owner_commitment()); + } else { + if (_this->_impl_.owner_commitment_.IsDefault()) { + _this->_internal_set_owner_commitment(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_mined_in_block().empty()) { + _this->_internal_set_mined_in_block(from._internal_mined_in_block()); + } else { + if (_this->_impl_.mined_in_block_.IsDefault()) { + _this->_internal_set_mined_in_block(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (!from._internal_script().empty()) { + _this->_internal_set_script(from._internal_script()); + } else { + if (_this->_impl_.script_.IsDefault()) { + _this->_internal_set_script(""); + } + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + ABSL_DCHECK(from._impl_.features_ != nullptr); + if (_this->_impl_.features_ == nullptr) { + _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); + } else { + _this->_impl_.features_->MergeFrom(*from._impl_.features_); + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (from._internal_mined_height() != 0) { + _this->_impl_.mined_height_ = from._impl_.mined_height_; + } } - } - if (from._internal_mined_height() != 0) { - _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_); @@ -4219,12 +5322,9 @@ void GetTokensResponse::CopyFrom(const GetTokensResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetTokensResponse::IsInitialized() const { - return true; -} -void GetTokensResponse::InternalSwap(GetTokensResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetTokensResponse::InternalSwap(GetTokensResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -4243,95 +5343,119 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubmitBlockResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SubmitBlockResponse, _impl_._has_bits_); }; -SubmitBlockResponse::SubmitBlockResponse(::google::protobuf::Arena* arena) +SubmitBlockResponse::SubmitBlockResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SubmitBlockResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.SubmitBlockResponse) } -inline PROTOBUF_NDEBUG_INLINE SubmitBlockResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : block_hash_(arena, from.block_hash_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE SubmitBlockResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::SubmitBlockResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + block_hash_(arena, from.block_hash_) {} SubmitBlockResponse::SubmitBlockResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SubmitBlockResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SubmitBlockResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubmitBlockResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.SubmitBlockResponse) } -inline PROTOBUF_NDEBUG_INLINE SubmitBlockResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE SubmitBlockResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : block_hash_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + block_hash_(arena) {} -inline void SubmitBlockResponse::SharedCtor(::_pb::Arena* arena) { +inline void SubmitBlockResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } SubmitBlockResponse::~SubmitBlockResponse() { // @@protoc_insertion_point(destructor:tari.rpc.SubmitBlockResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void SubmitBlockResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.block_hash_.Destroy(); - _impl_.~Impl_(); +inline void SubmitBlockResponse::SharedDtor(MessageLite& self) { + SubmitBlockResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.block_hash_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL SubmitBlockResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SubmitBlockResponse(arena); +} +constexpr auto SubmitBlockResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SubmitBlockResponse), + alignof(SubmitBlockResponse)); +} +constexpr auto SubmitBlockResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SubmitBlockResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.block_hash_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubmitBlockResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SubmitBlockResponse::ByteSizeLong, + &SubmitBlockResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubmitBlockResponse, _impl_._cached_size_), + false, + }, + &SubmitBlockResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* SubmitBlockResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SubmitBlockResponse_class_data_ = + SubmitBlockResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SubmitBlockResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SubmitBlockResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SubmitBlockResponse_class_data_.tc_table); + return SubmitBlockResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SubmitBlockResponse::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +SubmitBlockResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(SubmitBlockResponse, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -4340,7 +5464,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SubmitBlockResponse::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SubmitBlockResponse_default_instance_._instance, + SubmitBlockResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::SubmitBlockResponse>(), // to_prefetch @@ -4348,59 +5473,93 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SubmitBlockResponse::_table_ = { }, {{ // bytes block_hash = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitBlockResponse, _impl_.block_hash_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SubmitBlockResponse, _impl_.block_hash_)}}, }}, {{ 65535, 65535 }}, {{ // bytes block_hash = 1; - {PROTOBUF_FIELD_OFFSET(SubmitBlockResponse, _impl_.block_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(SubmitBlockResponse, _impl_.block_hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void SubmitBlockResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SubmitBlockResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* SubmitBlockResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.block_hash_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SubmitBlockResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SubmitBlockResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SubmitBlockResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SubmitBlockResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SubmitBlockResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes block_hash = 1; - if (!this->_internal_block_hash().empty()) { - const std::string& _s = this->_internal_block_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_block_hash().empty()) { + const ::std::string& _s = this_._internal_block_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SubmitBlockResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SubmitBlockResponse::ByteSizeLong(const MessageLite& base) { + const SubmitBlockResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t SubmitBlockResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SubmitBlockResponse) + const SubmitBlockResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SubmitBlockResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes block_hash = 1; - if (!this->_internal_block_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_block_hash()); + { + // bytes block_hash = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_block_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_block_hash()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -4409,9 +5568,17 @@ void SubmitBlockResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, con ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_block_hash().empty()) { - _this->_internal_set_block_hash(from._internal_block_hash()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_block_hash().empty()) { + _this->_internal_set_block_hash(from._internal_block_hash()); + } else { + if (_this->_impl_.block_hash_.IsDefault()) { + _this->_internal_set_block_hash(""); + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4422,112 +5589,133 @@ void SubmitBlockResponse::CopyFrom(const SubmitBlockResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SubmitBlockResponse::IsInitialized() const { - return true; -} -void SubmitBlockResponse::InternalSwap(SubmitBlockResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void SubmitBlockResponse::InternalSwap(SubmitBlockResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.block_hash_, &other->_impl_.block_hash_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class BlockBlobRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_._has_bits_); }; -BlockBlobRequest::BlockBlobRequest(::google::protobuf::Arena* arena) +BlockBlobRequest::BlockBlobRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockBlobRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockBlobRequest) } -inline PROTOBUF_NDEBUG_INLINE BlockBlobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : header_blob_(arena, from.header_blob_), - body_blob_(arena, from.body_blob_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE BlockBlobRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::BlockBlobRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + header_blob_(arena, from.header_blob_), + body_blob_(arena, from.body_blob_) {} BlockBlobRequest::BlockBlobRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockBlobRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockBlobRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE BlockBlobRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.BlockBlobRequest) } -inline PROTOBUF_NDEBUG_INLINE BlockBlobRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE BlockBlobRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : header_blob_(arena), - body_blob_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + header_blob_(arena), + body_blob_(arena) {} -inline void BlockBlobRequest::SharedCtor(::_pb::Arena* arena) { +inline void BlockBlobRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } BlockBlobRequest::~BlockBlobRequest() { // @@protoc_insertion_point(destructor:tari.rpc.BlockBlobRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void BlockBlobRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.header_blob_.Destroy(); - _impl_.body_blob_.Destroy(); - _impl_.~Impl_(); +inline void BlockBlobRequest::SharedDtor(MessageLite& self) { + BlockBlobRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.header_blob_.Destroy(); + this_._impl_.body_blob_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL BlockBlobRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BlockBlobRequest(arena); +} +constexpr auto BlockBlobRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BlockBlobRequest), + alignof(BlockBlobRequest)); +} +constexpr auto BlockBlobRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_BlockBlobRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.header_blob_.ClearToEmpty(); - _impl_.body_blob_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BlockBlobRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &BlockBlobRequest::ByteSizeLong, + &BlockBlobRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_._cached_size_), + false, + }, + &BlockBlobRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* BlockBlobRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull BlockBlobRequest_class_data_ = + BlockBlobRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BlockBlobRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&BlockBlobRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(BlockBlobRequest_class_data_.tc_table); + return BlockBlobRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BlockBlobRequest::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +BlockBlobRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -4536,7 +5724,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BlockBlobRequest::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_BlockBlobRequest_default_instance_._instance, + BlockBlobRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::BlockBlobRequest>(), // to_prefetch @@ -4544,77 +5733,120 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BlockBlobRequest::_table_ = { }, {{ // bytes body_blob = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_.body_blob_)}}, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_.body_blob_)}}, // bytes header_blob = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_.header_blob_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_.header_blob_)}}, }}, {{ 65535, 65535 }}, {{ // bytes header_blob = 1; - {PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_.header_blob_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_.header_blob_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes body_blob = 2; - {PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_.body_blob_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_.body_blob_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void BlockBlobRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockBlobRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* BlockBlobRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.header_blob_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.body_blob_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BlockBlobRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BlockBlobRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BlockBlobRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BlockBlobRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockBlobRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes header_blob = 1; - if (!this->_internal_header_blob().empty()) { - const std::string& _s = this->_internal_header_blob(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_header_blob().empty()) { + const ::std::string& _s = this_._internal_header_blob(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // bytes body_blob = 2; - if (!this->_internal_body_blob().empty()) { - const std::string& _s = this->_internal_body_blob(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_body_blob().empty()) { + const ::std::string& _s = this_._internal_body_blob(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockBlobRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BlockBlobRequest::ByteSizeLong(const MessageLite& base) { + const BlockBlobRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t BlockBlobRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockBlobRequest) + const BlockBlobRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockBlobRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes header_blob = 1; - if (!this->_internal_header_blob().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_header_blob()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes header_blob = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_header_blob().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_header_blob()); + } + } + // bytes body_blob = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_body_blob().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_body_blob()); + } + } } - - // bytes body_blob = 2; - if (!this->_internal_body_blob().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_body_blob()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -4623,12 +5855,28 @@ void BlockBlobRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_header_blob().empty()) { - _this->_internal_set_header_blob(from._internal_header_blob()); - } - if (!from._internal_body_blob().empty()) { - _this->_internal_set_body_blob(from._internal_body_blob()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_header_blob().empty()) { + _this->_internal_set_header_blob(from._internal_header_blob()); + } else { + if (_this->_impl_.header_blob_.IsDefault()) { + _this->_internal_set_header_blob(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_body_blob().empty()) { + _this->_internal_set_body_blob(from._internal_body_blob()); + } else { + if (_this->_impl_.body_blob_.IsDefault()) { + _this->_internal_set_body_blob(""); + } + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4639,57 +5887,63 @@ void BlockBlobRequest::CopyFrom(const BlockBlobRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool BlockBlobRequest::IsInitialized() const { - return true; -} -void BlockBlobRequest::InternalSwap(BlockBlobRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void BlockBlobRequest::InternalSwap(BlockBlobRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.header_blob_, &other->_impl_.header_blob_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.body_blob_, &other->_impl_.body_blob_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TipInfoResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_._has_bits_); }; -TipInfoResponse::TipInfoResponse(::google::protobuf::Arena* arena) +TipInfoResponse::TipInfoResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TipInfoResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.TipInfoResponse) } -inline PROTOBUF_NDEBUG_INLINE TipInfoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE TipInfoResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::TipInfoResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} TipInfoResponse::TipInfoResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TipInfoResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TipInfoResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TipInfoResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::MetaData>( - arena, *from._impl_.metadata_) - : nullptr; + _impl_.metadata_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, base_node_state_), reinterpret_cast(&from._impl_) + @@ -4700,12 +5954,12 @@ TipInfoResponse::TipInfoResponse( // @@protoc_insertion_point(copy_constructor:tari.rpc.TipInfoResponse) } -inline PROTOBUF_NDEBUG_INLINE TipInfoResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE TipInfoResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void TipInfoResponse::SharedCtor(::_pb::Arena* arena) { +inline void TipInfoResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, metadata_), @@ -4716,57 +5970,61 @@ inline void TipInfoResponse::SharedCtor(::_pb::Arena* arena) { } TipInfoResponse::~TipInfoResponse() { // @@protoc_insertion_point(destructor:tari.rpc.TipInfoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void TipInfoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.metadata_; - _impl_.~Impl_(); +inline void TipInfoResponse::SharedDtor(MessageLite& self) { + TipInfoResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.metadata_; + this_._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, - }, +inline void* PROTOBUF_NONNULL TipInfoResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) TipInfoResponse(arena); +} +constexpr auto TipInfoResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TipInfoResponse), + alignof(TipInfoResponse)); +} +constexpr auto TipInfoResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_TipInfoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.metadata_ != nullptr); - _impl_.metadata_->Clear(); - } - ::memset(&_impl_.base_node_state_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.failed_checkpoints_) - - reinterpret_cast(&_impl_.base_node_state_)) + sizeof(_impl_.failed_checkpoints_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TipInfoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TipInfoResponse::ByteSizeLong, + &TipInfoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_._cached_size_), + false, + }, + &TipInfoResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* TipInfoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull TipInfoResponse_class_data_ = + TipInfoResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +TipInfoResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&TipInfoResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(TipInfoResponse_class_data_.tc_table); + return TipInfoResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 0, 2> TipInfoResponse::_table_ = { +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +TipInfoResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_._has_bits_), 0, // no _extensions_ @@ -4777,24 +6035,25 @@ const ::_pbi::TcParseTable<2, 4, 1, 0, 2> TipInfoResponse::_table_ = { 4, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TipInfoResponse_default_instance_._instance, + TipInfoResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::TipInfoResponse>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool failed_checkpoints = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.failed_checkpoints_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 3, 0, PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.failed_checkpoints_)}}, // .tari.rpc.MetaData metadata = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.metadata_)}}, // bool initial_sync_achieved = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.initial_sync_achieved_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 2, 0, PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.initial_sync_achieved_)}}, // .tari.rpc.BaseNodeState base_node_state = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TipInfoResponse, _impl_.base_node_state_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.base_node_state_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TipInfoResponse, _impl_.base_node_state_), 1>(), + {24, 1, 0, PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.base_node_state_)}}, }}, {{ 65535, 65535 }}, {{ @@ -4802,99 +6061,147 @@ const ::_pbi::TcParseTable<2, 4, 1, 0, 2> TipInfoResponse::_table_ = { {PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bool initial_sync_achieved = 2; - {PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.initial_sync_achieved_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.initial_sync_achieved_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // .tari.rpc.BaseNodeState base_node_state = 3; - {PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.base_node_state_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + {PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.base_node_state_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, // bool failed_checkpoints = 4; - {PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.failed_checkpoints_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::MetaData>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.failed_checkpoints_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::MetaData>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void TipInfoResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.TipInfoResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* TipInfoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.metadata_ != nullptr); + _impl_.metadata_->Clear(); + } + if ((cached_has_bits & 0x0000000eu) != 0) { + ::memset(&_impl_.base_node_state_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.failed_checkpoints_) - + reinterpret_cast(&_impl_.base_node_state_)) + sizeof(_impl_.failed_checkpoints_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL TipInfoResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const TipInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL TipInfoResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const TipInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TipInfoResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.MetaData metadata = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.metadata_, _impl_.metadata_->GetCachedSize(), target, stream); + 1, *this_._impl_.metadata_, this_._impl_.metadata_->GetCachedSize(), target, + stream); } // bool initial_sync_achieved = 2; - if (this->_internal_initial_sync_achieved() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_initial_sync_achieved(), target); + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_initial_sync_achieved() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_initial_sync_achieved(), target); + } } // .tari.rpc.BaseNodeState base_node_state = 3; - if (this->_internal_base_node_state() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_base_node_state(), target); + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_base_node_state() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_base_node_state(), target); + } } // bool failed_checkpoints = 4; - if (this->_internal_failed_checkpoints() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_failed_checkpoints(), target); + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_failed_checkpoints() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_failed_checkpoints(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TipInfoResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TipInfoResponse::ByteSizeLong(const MessageLite& base) { + const TipInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t TipInfoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TipInfoResponse) + const TipInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.TipInfoResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.MetaData metadata = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + // .tari.rpc.MetaData metadata = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.metadata_); + } + // .tari.rpc.BaseNodeState base_node_state = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_base_node_state() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_base_node_state()); + } + } + // bool initial_sync_achieved = 2; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_initial_sync_achieved() != 0) { + total_size += 2; + } + } + // bool failed_checkpoints = 4; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_failed_checkpoints() != 0) { + total_size += 2; + } + } } - - // .tari.rpc.BaseNodeState base_node_state = 3; - if (this->_internal_base_node_state() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_base_node_state()); - } - - // bool initial_sync_achieved = 2; - if (this->_internal_initial_sync_achieved() != 0) { - total_size += 2; - } - - // bool failed_checkpoints = 4; - if (this->_internal_failed_checkpoints() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -4905,23 +6212,30 @@ void TipInfoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const : (void) cached_has_bits; 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 ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(from._impl_.metadata_ != nullptr); + if (_this->_impl_.metadata_ == nullptr) { + _this->_impl_.metadata_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_); + } else { + _this->_impl_.metadata_->MergeFrom(*from._impl_.metadata_); + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_base_node_state() != 0) { + _this->_impl_.base_node_state_ = from._impl_.base_node_state_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_initial_sync_achieved() != 0) { + _this->_impl_.initial_sync_achieved_ = from._impl_.initial_sync_achieved_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_failed_checkpoints() != 0) { + _this->_impl_.failed_checkpoints_ = from._impl_.failed_checkpoints_; + } } - } - if (from._internal_base_node_state() != 0) { - _this->_impl_.base_node_state_ = from._impl_.base_node_state_; - } - if (from._internal_initial_sync_achieved() != 0) { - _this->_impl_.initial_sync_achieved_ = from._impl_.initial_sync_achieved_; - } - if (from._internal_failed_checkpoints() != 0) { - _this->_impl_.failed_checkpoints_ = from._impl_.failed_checkpoints_; } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); @@ -4934,12 +6248,9 @@ void TipInfoResponse::CopyFrom(const TipInfoResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TipInfoResponse::IsInitialized() const { - return true; -} -void TipInfoResponse::InternalSwap(TipInfoResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void TipInfoResponse::InternalSwap(TipInfoResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< @@ -4951,61 +6262,808 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class ReadinessStatus::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ReadinessStatus, _impl_._has_bits_); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::tari::rpc::ReadinessStatus, _impl_._oneof_case_); +}; + +void ReadinessStatus::set_allocated_migration(::tari::rpc::MigrationProgress* PROTOBUF_NULLABLE migration) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_status(); + if (migration) { + ::google::protobuf::Arena* submessage_arena = migration->GetArena(); + if (message_arena != submessage_arena) { + migration = ::google::protobuf::internal::GetOwnedMessage(message_arena, migration, submessage_arena); + } + set_has_migration(); + _impl_.status_.migration_ = migration; + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ReadinessStatus.migration) +} +ReadinessStatus::ReadinessStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ReadinessStatus_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.ReadinessStatus) +} +PROTOBUF_NDEBUG_INLINE ReadinessStatus::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ReadinessStatus& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + status_{}, + _oneof_case_{from._oneof_case_[0]} {} + +ReadinessStatus::ReadinessStatus( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ReadinessStatus& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ReadinessStatus_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ReadinessStatus* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.timestamp_ = from._impl_.timestamp_; + switch (status_case()) { + case STATUS_NOT_SET: + break; + case kState: + _impl_.status_.state_ = from._impl_.status_.state_; + break; + case kMigration: + _impl_.status_.migration_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_.migration_); + break; + } + + // @@protoc_insertion_point(copy_constructor:tari.rpc.ReadinessStatus) +} +PROTOBUF_NDEBUG_INLINE ReadinessStatus::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + status_{}, + _oneof_case_{} {} + +inline void ReadinessStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.timestamp_ = {}; +} +ReadinessStatus::~ReadinessStatus() { + // @@protoc_insertion_point(destructor:tari.rpc.ReadinessStatus) + SharedDtor(*this); +} +inline void ReadinessStatus::SharedDtor(MessageLite& self) { + ReadinessStatus& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + if (this_.has_status()) { + this_.clear_status(); + } + this_._impl_.~Impl_(); +} + +void ReadinessStatus::clear_status() { +// @@protoc_insertion_point(one_of_clear_start:tari.rpc.ReadinessStatus) + ::google::protobuf::internal::TSanWrite(&_impl_); + switch (status_case()) { + case kState: { + // No need to clear + break; + } + case kMigration: { + if (GetArena() == nullptr) { + delete _impl_.status_.migration_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.status_.migration_); + } + break; + } + case STATUS_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = STATUS_NOT_SET; +} + + +inline void* PROTOBUF_NONNULL ReadinessStatus::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ReadinessStatus(arena); +} +constexpr auto ReadinessStatus::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ReadinessStatus), + alignof(ReadinessStatus)); +} +constexpr auto ReadinessStatus::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ReadinessStatus_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ReadinessStatus::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ReadinessStatus::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ReadinessStatus::ByteSizeLong, + &ReadinessStatus::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ReadinessStatus, _impl_._cached_size_), + false, + }, + &ReadinessStatus::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ReadinessStatus_class_data_ = + ReadinessStatus::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ReadinessStatus::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ReadinessStatus_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ReadinessStatus_class_data_.tc_table); + return ReadinessStatus_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 3, 1, 0, 2> +ReadinessStatus::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ReadinessStatus, _impl_._has_bits_), + 0, // no _extensions_ + 6, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967260, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + ReadinessStatus_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ReadinessStatus>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // uint64 timestamp = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ReadinessStatus, _impl_.timestamp_), 0>(), + {48, 0, 0, PROTOBUF_FIELD_OFFSET(ReadinessStatus, _impl_.timestamp_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .tari.rpc.ReadinessStatus.State state = 1; + {PROTOBUF_FIELD_OFFSET(ReadinessStatus, _impl_.status_.state_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)}, + // .tari.rpc.MigrationProgress migration = 2; + {PROTOBUF_FIELD_OFFSET(ReadinessStatus, _impl_.status_.migration_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // uint64 timestamp = 6; + {PROTOBUF_FIELD_OFFSET(ReadinessStatus, _impl_.timestamp_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::MigrationProgress>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void ReadinessStatus::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ReadinessStatus) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.timestamp_ = ::uint64_t{0u}; + clear_status(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ReadinessStatus::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ReadinessStatus& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ReadinessStatus::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ReadinessStatus& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ReadinessStatus) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + switch (this_.status_case()) { + case kState: { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_state(), target); + break; + } + case kMigration: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.status_.migration_, this_._impl_.status_.migration_->GetCachedSize(), target, + stream); + break; + } + default: + break; + } + // uint64 timestamp = 6; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_timestamp() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 6, this_._internal_timestamp(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ReadinessStatus) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ReadinessStatus::ByteSizeLong(const MessageLite& base) { + const ReadinessStatus& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ReadinessStatus::ByteSizeLong() const { + const ReadinessStatus& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ReadinessStatus) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // uint64 timestamp = 6; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_timestamp() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_timestamp()); + } + } + } + switch (this_.status_case()) { + // .tari.rpc.ReadinessStatus.State state = 1; + case kState: { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_state()); + break; + } + // .tari.rpc.MigrationProgress migration = 2; + case kMigration: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.status_.migration_); + break; + } + case STATUS_NOT_SET: { + break; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ReadinessStatus::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.ReadinessStatus) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_timestamp() != 0) { + _this->_impl_.timestamp_ = from._impl_.timestamp_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + 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_status(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; + } + + switch (oneof_from_case) { + case kState: { + _this->_impl_.status_.state_ = from._impl_.status_.state_; + break; + } + case kMigration: { + if (oneof_needs_init) { + _this->_impl_.status_.migration_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_.migration_); + } else { + _this->_impl_.status_.migration_->MergeFrom(*from._impl_.status_.migration_); + } + break; + } + case STATUS_NOT_SET: + break; + } + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ReadinessStatus::CopyFrom(const ReadinessStatus& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ReadinessStatus) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void ReadinessStatus::InternalSwap(ReadinessStatus* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.timestamp_, other->_impl_.timestamp_); + swap(_impl_.status_, other->_impl_.status_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::google::protobuf::Metadata ReadinessStatus::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class MigrationProgress::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_._has_bits_); +}; + +MigrationProgress::MigrationProgress(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, MigrationProgress_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.MigrationProgress) +} +MigrationProgress::MigrationProgress( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MigrationProgress& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, MigrationProgress_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} +PROTOBUF_NDEBUG_INLINE MigrationProgress::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void MigrationProgress::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, current_block_), + 0, + offsetof(Impl_, target_db_version_) - + offsetof(Impl_, current_block_) + + sizeof(Impl_::target_db_version_)); +} +MigrationProgress::~MigrationProgress() { + // @@protoc_insertion_point(destructor:tari.rpc.MigrationProgress) + SharedDtor(*this); +} +inline void MigrationProgress::SharedDtor(MessageLite& self) { + MigrationProgress& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL MigrationProgress::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) MigrationProgress(arena); +} +constexpr auto MigrationProgress::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MigrationProgress), + alignof(MigrationProgress)); +} +constexpr auto MigrationProgress::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_MigrationProgress_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &MigrationProgress::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MigrationProgress::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &MigrationProgress::ByteSizeLong, + &MigrationProgress::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_._cached_size_), + false, + }, + &MigrationProgress::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull MigrationProgress_class_data_ = + MigrationProgress::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +MigrationProgress::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&MigrationProgress_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(MigrationProgress_class_data_.tc_table); + return MigrationProgress_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 0, 0, 2> +MigrationProgress::_table_ = { + { + PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_._has_bits_), + 0, // no _extensions_ + 5, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967264, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + MigrationProgress_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::MigrationProgress>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // uint64 current_block = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MigrationProgress, _impl_.current_block_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_.current_block_)}}, + // uint64 total_blocks = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MigrationProgress, _impl_.total_blocks_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_.total_blocks_)}}, + // double progress_percentage = 3; + {::_pbi::TcParser::FastF64S1, + {25, 2, 0, PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_.progress_percentage_)}}, + // uint64 current_db_version = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MigrationProgress, _impl_.current_db_version_), 3>(), + {32, 3, 0, PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_.current_db_version_)}}, + // uint64 target_db_version = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MigrationProgress, _impl_.target_db_version_), 4>(), + {40, 4, 0, PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_.target_db_version_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // uint64 current_block = 1; + {PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_.current_block_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 total_blocks = 2; + {PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_.total_blocks_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // double progress_percentage = 3; + {PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_.progress_percentage_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // uint64 current_db_version = 4; + {PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_.current_db_version_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 target_db_version = 5; + {PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_.target_db_version_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void MigrationProgress::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.MigrationProgress) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + ::memset(&_impl_.current_block_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.target_db_version_) - + reinterpret_cast(&_impl_.current_block_)) + sizeof(_impl_.target_db_version_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL MigrationProgress::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const MigrationProgress& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL MigrationProgress::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const MigrationProgress& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.MigrationProgress) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // uint64 current_block = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_current_block() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_current_block(), target); + } + } + + // uint64 total_blocks = 2; + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_total_blocks() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_total_blocks(), target); + } + } + + // double progress_percentage = 3; + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (::absl::bit_cast<::uint64_t>(this_._internal_progress_percentage()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 3, this_._internal_progress_percentage(), target); + } + } + + // uint64 current_db_version = 4; + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (this_._internal_current_db_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_current_db_version(), target); + } + } + + // uint64 target_db_version = 5; + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (this_._internal_target_db_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 5, this_._internal_target_db_version(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.MigrationProgress) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t MigrationProgress::ByteSizeLong(const MessageLite& base) { + const MigrationProgress& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t MigrationProgress::ByteSizeLong() const { + const MigrationProgress& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.MigrationProgress) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + // uint64 current_block = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_current_block() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_current_block()); + } + } + // uint64 total_blocks = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_total_blocks() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_total_blocks()); + } + } + // double progress_percentage = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (::absl::bit_cast<::uint64_t>(this_._internal_progress_percentage()) != 0) { + total_size += 9; + } + } + // uint64 current_db_version = 4; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_current_db_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_current_db_version()); + } + } + // uint64 target_db_version = 5; + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_target_db_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_target_db_version()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void MigrationProgress::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.MigrationProgress) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_current_block() != 0) { + _this->_impl_.current_block_ = from._impl_.current_block_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_total_blocks() != 0) { + _this->_impl_.total_blocks_ = from._impl_.total_blocks_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (::absl::bit_cast<::uint64_t>(from._internal_progress_percentage()) != 0) { + _this->_impl_.progress_percentage_ = from._impl_.progress_percentage_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_current_db_version() != 0) { + _this->_impl_.current_db_version_ = from._impl_.current_db_version_; + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (from._internal_target_db_version() != 0) { + _this->_impl_.target_db_version_ = from._impl_.target_db_version_; + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void MigrationProgress::CopyFrom(const MigrationProgress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.MigrationProgress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void MigrationProgress::InternalSwap(MigrationProgress* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_.target_db_version_) + + sizeof(MigrationProgress::_impl_.target_db_version_) + - PROTOBUF_FIELD_OFFSET(MigrationProgress, _impl_.current_block_)>( + reinterpret_cast(&_impl_.current_block_), + reinterpret_cast(&other->_impl_.current_block_)); +} + +::google::protobuf::Metadata MigrationProgress::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class NewBlockTemplateResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_._has_bits_); }; void NewBlockTemplateResponse::clear_new_block_template() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.new_block_template_ != nullptr) _impl_.new_block_template_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } -NewBlockTemplateResponse::NewBlockTemplateResponse(::google::protobuf::Arena* arena) +NewBlockTemplateResponse::NewBlockTemplateResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NewBlockTemplateResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.NewBlockTemplateResponse) } -inline PROTOBUF_NDEBUG_INLINE NewBlockTemplateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE NewBlockTemplateResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::NewBlockTemplateResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} NewBlockTemplateResponse::NewBlockTemplateResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NewBlockTemplateResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NewBlockTemplateResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE NewBlockTemplateResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _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_.new_block_template_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.new_block_template_) + : nullptr; + _impl_.miner_data_ = ((cached_has_bits & 0x00000002u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.miner_data_) + : nullptr; _impl_.initial_sync_achieved_ = from._impl_.initial_sync_achieved_; // @@protoc_insertion_point(copy_constructor:tari.rpc.NewBlockTemplateResponse) } -inline PROTOBUF_NDEBUG_INLINE NewBlockTemplateResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE NewBlockTemplateResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void NewBlockTemplateResponse::SharedCtor(::_pb::Arena* arena) { +inline void NewBlockTemplateResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, new_block_template_), @@ -5016,62 +7074,62 @@ inline void NewBlockTemplateResponse::SharedCtor(::_pb::Arena* arena) { } NewBlockTemplateResponse::~NewBlockTemplateResponse() { // @@protoc_insertion_point(destructor:tari.rpc.NewBlockTemplateResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void NewBlockTemplateResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.new_block_template_; - delete _impl_.miner_data_; - _impl_.~Impl_(); +inline void NewBlockTemplateResponse::SharedDtor(MessageLite& self) { + NewBlockTemplateResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.new_block_template_; + delete this_._impl_.miner_data_; + this_._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, - }, +inline void* PROTOBUF_NONNULL NewBlockTemplateResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) NewBlockTemplateResponse(arena); +} +constexpr auto NewBlockTemplateResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(NewBlockTemplateResponse), + alignof(NewBlockTemplateResponse)); +} +constexpr auto NewBlockTemplateResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_NewBlockTemplateResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.new_block_template_ != nullptr); - _impl_.new_block_template_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.miner_data_ != nullptr); - _impl_.miner_data_->Clear(); - } - } - _impl_.initial_sync_achieved_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &NewBlockTemplateResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &NewBlockTemplateResponse::ByteSizeLong, + &NewBlockTemplateResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_._cached_size_), + false, + }, + &NewBlockTemplateResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* NewBlockTemplateResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull NewBlockTemplateResponse_class_data_ = + NewBlockTemplateResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +NewBlockTemplateResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&NewBlockTemplateResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(NewBlockTemplateResponse_class_data_.tc_table); + return NewBlockTemplateResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplateResponse::_table_ = { +const ::_pbi::TcParseTable<2, 3, 2, 0, 2> +NewBlockTemplateResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_._has_bits_), 0, // no _extensions_ @@ -5082,7 +7140,8 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplateResponse::_table_ = { 3, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_NewBlockTemplateResponse_default_instance_._instance, + NewBlockTemplateResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplateResponse>(), // to_prefetch @@ -5096,8 +7155,8 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplateResponse::_table_ = { {10, 0, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.new_block_template_)}}, {::_pbi::TcParser::MiniParse, {}}, // bool initial_sync_achieved = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.initial_sync_achieved_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.initial_sync_achieved_)}}, }}, {{ 65535, 65535 }}, {{ @@ -5105,85 +7164,127 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplateResponse::_table_ = { {PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.new_block_template_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bool initial_sync_achieved = 3; - {PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.initial_sync_achieved_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.initial_sync_achieved_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // .tari.rpc.MinerData miner_data = 4; {PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.miner_data_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplate>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::MinerData>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplate>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::MinerData>()}, + }}, + {{ }}, }; - -::uint8_t* NewBlockTemplateResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NewBlockTemplateResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.NewBlockTemplate new_block_template = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.new_block_template_, _impl_.new_block_template_->GetCachedSize(), target, stream); - } - - // bool initial_sync_achieved = 3; - if (this->_internal_initial_sync_achieved() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_initial_sync_achieved(), target); - } - - // .tari.rpc.MinerData miner_data = 4; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *_impl_.miner_data_, _impl_.miner_data_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NewBlockTemplateResponse) - return target; -} - -::size_t NewBlockTemplateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockTemplateResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void NewBlockTemplateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockTemplateResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .tari.rpc.NewBlockTemplate new_block_template = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.new_block_template_); + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.new_block_template_ != nullptr); + _impl_.new_block_template_->Clear(); } - - // .tari.rpc.MinerData miner_data = 4; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.miner_data_); + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(_impl_.miner_data_ != nullptr); + _impl_.miner_data_->Clear(); } - } - // bool initial_sync_achieved = 3; - if (this->_internal_initial_sync_achieved() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _impl_.initial_sync_achieved_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL NewBlockTemplateResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const NewBlockTemplateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL NewBlockTemplateResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const NewBlockTemplateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NewBlockTemplateResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.NewBlockTemplate new_block_template = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.new_block_template_, this_._impl_.new_block_template_->GetCachedSize(), target, + stream); + } + + // bool initial_sync_achieved = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_initial_sync_achieved() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_initial_sync_achieved(), target); + } + } + + // .tari.rpc.MinerData miner_data = 4; + if ((cached_has_bits & 0x00000002u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.miner_data_, this_._impl_.miner_data_->GetCachedSize(), target, + stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NewBlockTemplateResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t NewBlockTemplateResponse::ByteSizeLong(const MessageLite& base) { + const NewBlockTemplateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t NewBlockTemplateResponse::ByteSizeLong() const { + const NewBlockTemplateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockTemplateResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // .tari.rpc.NewBlockTemplate new_block_template = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.new_block_template_); + } + // .tari.rpc.MinerData miner_data = 4; + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.miner_data_); + } + // bool initial_sync_achieved = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_initial_sync_achieved() != 0) { + total_size += 2; + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} void NewBlockTemplateResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); @@ -5195,28 +7296,28 @@ void NewBlockTemplateResponse::MergeImpl(::google::protobuf::MessageLite& to_msg (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { 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_); + _this->_impl_.new_block_template_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.new_block_template_); } else { _this->_impl_.new_block_template_->MergeFrom(*from._impl_.new_block_template_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { 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_); + _this->_impl_.miner_data_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.miner_data_); } else { _this->_impl_.miner_data_->MergeFrom(*from._impl_.miner_data_); } } - } - if (from._internal_initial_sync_achieved() != 0) { - _this->_impl_.initial_sync_achieved_ = from._impl_.initial_sync_achieved_; + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_initial_sync_achieved() != 0) { + _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_); @@ -5229,12 +7330,9 @@ void NewBlockTemplateResponse::CopyFrom(const NewBlockTemplateResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NewBlockTemplateResponse::IsInitialized() const { - return true; -} -void NewBlockTemplateResponse::InternalSwap(NewBlockTemplateResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void NewBlockTemplateResponse::InternalSwap(NewBlockTemplateResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< @@ -5246,58 +7344,66 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class NewBlockTemplateRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_._has_bits_); }; void NewBlockTemplateRequest::clear_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.algo_ != nullptr) _impl_.algo_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } -NewBlockTemplateRequest::NewBlockTemplateRequest(::google::protobuf::Arena* arena) +NewBlockTemplateRequest::NewBlockTemplateRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NewBlockTemplateRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.NewBlockTemplateRequest) } -inline PROTOBUF_NDEBUG_INLINE NewBlockTemplateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE NewBlockTemplateRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::NewBlockTemplateRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} NewBlockTemplateRequest::NewBlockTemplateRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NewBlockTemplateRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NewBlockTemplateRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE NewBlockTemplateRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.algo_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::PowAlgo>( - arena, *from._impl_.algo_) - : nullptr; + _impl_.algo_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.algo_) + : nullptr; _impl_.max_weight_ = from._impl_.max_weight_; // @@protoc_insertion_point(copy_constructor:tari.rpc.NewBlockTemplateRequest) } -inline PROTOBUF_NDEBUG_INLINE NewBlockTemplateRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE NewBlockTemplateRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void NewBlockTemplateRequest::SharedCtor(::_pb::Arena* arena) { +inline void NewBlockTemplateRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, algo_), @@ -5308,55 +7414,61 @@ inline void NewBlockTemplateRequest::SharedCtor(::_pb::Arena* arena) { } NewBlockTemplateRequest::~NewBlockTemplateRequest() { // @@protoc_insertion_point(destructor:tari.rpc.NewBlockTemplateRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void NewBlockTemplateRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.algo_; - _impl_.~Impl_(); +inline void NewBlockTemplateRequest::SharedDtor(MessageLite& self) { + NewBlockTemplateRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.algo_; + this_._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, - }, +inline void* PROTOBUF_NONNULL NewBlockTemplateRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) NewBlockTemplateRequest(arena); +} +constexpr auto NewBlockTemplateRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(NewBlockTemplateRequest), + alignof(NewBlockTemplateRequest)); +} +constexpr auto NewBlockTemplateRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_NewBlockTemplateRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.algo_ != nullptr); - _impl_.algo_->Clear(); - } - _impl_.max_weight_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &NewBlockTemplateRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &NewBlockTemplateRequest::ByteSizeLong, + &NewBlockTemplateRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_._cached_size_), + false, + }, + &NewBlockTemplateRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* NewBlockTemplateRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull NewBlockTemplateRequest_class_data_ = + NewBlockTemplateRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +NewBlockTemplateRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&NewBlockTemplateRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(NewBlockTemplateRequest_class_data_.tc_table); + return NewBlockTemplateRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> NewBlockTemplateRequest::_table_ = { +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +NewBlockTemplateRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_._has_bits_), 0, // no _extensions_ @@ -5367,15 +7479,16 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> NewBlockTemplateRequest::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_NewBlockTemplateRequest_default_instance_._instance, + NewBlockTemplateRequest_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_.max_weight_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NewBlockTemplateRequest, _impl_.max_weight_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_.max_weight_)}}, // .tari.rpc.PowAlgo algo = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_.algo_)}}, @@ -5386,69 +7499,107 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> NewBlockTemplateRequest::_table_ = { {PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_.algo_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint64 max_weight = 2; - {PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_.max_weight_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::PowAlgo>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_.max_weight_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::PowAlgo>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void NewBlockTemplateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockTemplateRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* NewBlockTemplateRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.algo_ != nullptr); + _impl_.algo_->Clear(); + } + _impl_.max_weight_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL NewBlockTemplateRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const NewBlockTemplateRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL NewBlockTemplateRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const NewBlockTemplateRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NewBlockTemplateRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.PowAlgo algo = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.algo_, _impl_.algo_->GetCachedSize(), target, stream); + 1, *this_._impl_.algo_, this_._impl_.algo_->GetCachedSize(), target, + stream); } // uint64 max_weight = 2; - if (this->_internal_max_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_max_weight(), target); + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_max_weight() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_max_weight(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NewBlockTemplateRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t NewBlockTemplateRequest::ByteSizeLong(const MessageLite& base) { + const NewBlockTemplateRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t NewBlockTemplateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockTemplateRequest) + const NewBlockTemplateRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockTemplateRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.PowAlgo algo = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.algo_); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // .tari.rpc.PowAlgo algo = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.algo_); + } + // uint64 max_weight = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_max_weight() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_max_weight()); + } + } } - - // uint64 max_weight = 2; - if (this->_internal_max_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_max_weight()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -5459,17 +7610,20 @@ void NewBlockTemplateRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, (void) cached_has_bits; 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 ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(from._impl_.algo_ != nullptr); + if (_this->_impl_.algo_ == nullptr) { + _this->_impl_.algo_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.algo_); + } else { + _this->_impl_.algo_->MergeFrom(*from._impl_.algo_); + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_max_weight() != 0) { + _this->_impl_.max_weight_ = from._impl_.max_weight_; + } } - } - if (from._internal_max_weight() != 0) { - _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_); @@ -5482,12 +7636,9 @@ void NewBlockTemplateRequest::CopyFrom(const NewBlockTemplateRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NewBlockTemplateRequest::IsInitialized() const { - return true; -} -void NewBlockTemplateRequest::InternalSwap(NewBlockTemplateRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void NewBlockTemplateRequest::InternalSwap(NewBlockTemplateRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< @@ -5499,60 +7650,68 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetNewBlockTemplateWithCoinbasesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_._has_bits_); }; void GetNewBlockTemplateWithCoinbasesRequest::clear_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.algo_ != nullptr) _impl_.algo_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } -GetNewBlockTemplateWithCoinbasesRequest::GetNewBlockTemplateWithCoinbasesRequest(::google::protobuf::Arena* arena) +GetNewBlockTemplateWithCoinbasesRequest::GetNewBlockTemplateWithCoinbasesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetNewBlockTemplateWithCoinbasesRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetNewBlockTemplateWithCoinbasesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE GetNewBlockTemplateWithCoinbasesRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, coinbases_{visibility, arena, from.coinbases_} {} GetNewBlockTemplateWithCoinbasesRequest::GetNewBlockTemplateWithCoinbasesRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetNewBlockTemplateWithCoinbasesRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetNewBlockTemplateWithCoinbasesRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetNewBlockTemplateWithCoinbasesRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.algo_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::PowAlgo>( - arena, *from._impl_.algo_) - : nullptr; + _impl_.algo_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.algo_) + : nullptr; _impl_.max_weight_ = from._impl_.max_weight_; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetNewBlockTemplateWithCoinbasesRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetNewBlockTemplateWithCoinbasesRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, coinbases_{visibility, arena} {} -inline void GetNewBlockTemplateWithCoinbasesRequest::SharedCtor(::_pb::Arena* arena) { +inline void GetNewBlockTemplateWithCoinbasesRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, algo_), @@ -5563,56 +7722,73 @@ inline void GetNewBlockTemplateWithCoinbasesRequest::SharedCtor(::_pb::Arena* ar } GetNewBlockTemplateWithCoinbasesRequest::~GetNewBlockTemplateWithCoinbasesRequest() { // @@protoc_insertion_point(destructor:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetNewBlockTemplateWithCoinbasesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.algo_; - _impl_.~Impl_(); +inline void GetNewBlockTemplateWithCoinbasesRequest::SharedDtor(MessageLite& self) { + GetNewBlockTemplateWithCoinbasesRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.algo_; + this_._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_; +inline void* PROTOBUF_NONNULL GetNewBlockTemplateWithCoinbasesRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetNewBlockTemplateWithCoinbasesRequest(arena); } -PROTOBUF_NOINLINE void GetNewBlockTemplateWithCoinbasesRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.coinbases_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.algo_ != nullptr); - _impl_.algo_->Clear(); +constexpr auto GetNewBlockTemplateWithCoinbasesRequest::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_.coinbases_) + + decltype(GetNewBlockTemplateWithCoinbasesRequest::_impl_.coinbases_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetNewBlockTemplateWithCoinbasesRequest), alignof(GetNewBlockTemplateWithCoinbasesRequest), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GetNewBlockTemplateWithCoinbasesRequest::PlacementNew_, + sizeof(GetNewBlockTemplateWithCoinbasesRequest), + alignof(GetNewBlockTemplateWithCoinbasesRequest)); } - _impl_.max_weight_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +constexpr auto GetNewBlockTemplateWithCoinbasesRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetNewBlockTemplateWithCoinbasesRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetNewBlockTemplateWithCoinbasesRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetNewBlockTemplateWithCoinbasesRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetNewBlockTemplateWithCoinbasesRequest::ByteSizeLong, + &GetNewBlockTemplateWithCoinbasesRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_._cached_size_), + false, + }, + &GetNewBlockTemplateWithCoinbasesRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetNewBlockTemplateWithCoinbasesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetNewBlockTemplateWithCoinbasesRequest_class_data_ = + GetNewBlockTemplateWithCoinbasesRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetNewBlockTemplateWithCoinbasesRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetNewBlockTemplateWithCoinbasesRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetNewBlockTemplateWithCoinbasesRequest_class_data_.tc_table); + return GetNewBlockTemplateWithCoinbasesRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 0, 2> GetNewBlockTemplateWithCoinbasesRequest::_table_ = { +const ::_pbi::TcParseTable<2, 3, 2, 0, 2> +GetNewBlockTemplateWithCoinbasesRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_._has_bits_), 0, // no _extensions_ @@ -5623,7 +7799,8 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> GetNewBlockTemplateWithCoinbasesReques 3, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetNewBlockTemplateWithCoinbasesRequest_default_instance_._instance, + GetNewBlockTemplateWithCoinbasesRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetNewBlockTemplateWithCoinbasesRequest>(), // to_prefetch @@ -5634,8 +7811,8 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> GetNewBlockTemplateWithCoinbasesReques {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_.algo_)}}, // uint64 max_weight = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetNewBlockTemplateWithCoinbasesRequest, _impl_.max_weight_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_.max_weight_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetNewBlockTemplateWithCoinbasesRequest, _impl_.max_weight_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_.max_weight_)}}, // repeated .tari.rpc.NewBlockCoinbase coinbases = 3; {::_pbi::TcParser::FastMtR1, {26, 63, 1, PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_.coinbases_)}}, @@ -5646,89 +7823,132 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> GetNewBlockTemplateWithCoinbasesReques {PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_.algo_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint64 max_weight = 2; - {PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_.max_weight_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_.max_weight_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // repeated .tari.rpc.NewBlockCoinbase coinbases = 3; {PROTOBUF_FIELD_OFFSET(GetNewBlockTemplateWithCoinbasesRequest, _impl_.coinbases_), -1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::PowAlgo>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::NewBlockCoinbase>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::PowAlgo>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::NewBlockCoinbase>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void GetNewBlockTemplateWithCoinbasesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetNewBlockTemplateWithCoinbasesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.coinbases_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.algo_ != nullptr); + _impl_.algo_->Clear(); + } + _impl_.max_weight_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetNewBlockTemplateWithCoinbasesRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetNewBlockTemplateWithCoinbasesRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetNewBlockTemplateWithCoinbasesRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetNewBlockTemplateWithCoinbasesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.PowAlgo algo = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.algo_, _impl_.algo_->GetCachedSize(), target, stream); + 1, *this_._impl_.algo_, this_._impl_.algo_->GetCachedSize(), target, + stream); } // uint64 max_weight = 2; - if (this->_internal_max_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_max_weight(), target); + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_max_weight() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_max_weight(), target); + } } // repeated .tari.rpc.NewBlockCoinbase coinbases = 3; for (unsigned i = 0, n = static_cast( - this->_internal_coinbases_size()); + this_._internal_coinbases_size()); i < n; i++) { - const auto& repfield = this->_internal_coinbases().Get(i); + const auto& repfield = this_._internal_coinbases().Get(i); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, repfield, repfield.GetCachedSize(), target, stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetNewBlockTemplateWithCoinbasesRequest::ByteSizeLong(const MessageLite& base) { + const GetNewBlockTemplateWithCoinbasesRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetNewBlockTemplateWithCoinbasesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) + const GetNewBlockTemplateWithCoinbasesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // 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); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // 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); + } + } } - // .tari.rpc.PowAlgo algo = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.algo_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // .tari.rpc.PowAlgo algo = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.algo_); + } + // uint64 max_weight = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_max_weight() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_max_weight()); + } + } } - - // uint64 max_weight = 2; - if (this->_internal_max_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_max_weight()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -5741,17 +7961,20 @@ void GetNewBlockTemplateWithCoinbasesRequest::MergeImpl(::google::protobuf::Mess _this->_internal_mutable_coinbases()->MergeFrom( from._internal_coinbases()); 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 ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(from._impl_.algo_ != nullptr); + if (_this->_impl_.algo_ == nullptr) { + _this->_impl_.algo_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.algo_); + } else { + _this->_impl_.algo_->MergeFrom(*from._impl_.algo_); + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_max_weight() != 0) { + _this->_impl_.max_weight_ = from._impl_.max_weight_; + } } - } - if (from._internal_max_weight() != 0) { - _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_); @@ -5764,12 +7987,9 @@ void GetNewBlockTemplateWithCoinbasesRequest::CopyFrom(const GetNewBlockTemplate MergeFrom(from); } -PROTOBUF_NOINLINE bool GetNewBlockTemplateWithCoinbasesRequest::IsInitialized() const { - return true; -} -void GetNewBlockTemplateWithCoinbasesRequest::InternalSwap(GetNewBlockTemplateWithCoinbasesRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetNewBlockTemplateWithCoinbasesRequest::InternalSwap(GetNewBlockTemplateWithCoinbasesRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.coinbases_.InternalSwap(&other->_impl_.coinbases_); @@ -5782,113 +8002,139 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetNewBlockWithCoinbasesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetNewBlockWithCoinbasesRequest, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(GetNewBlockWithCoinbasesRequest, _impl_._has_bits_); }; void GetNewBlockWithCoinbasesRequest::clear_new_template() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.new_template_ != nullptr) _impl_.new_template_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } -GetNewBlockWithCoinbasesRequest::GetNewBlockWithCoinbasesRequest(::google::protobuf::Arena* arena) +GetNewBlockWithCoinbasesRequest::GetNewBlockWithCoinbasesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetNewBlockWithCoinbasesRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetNewBlockWithCoinbasesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetNewBlockWithCoinbasesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE GetNewBlockWithCoinbasesRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetNewBlockWithCoinbasesRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, coinbases_{visibility, arena, from.coinbases_} {} GetNewBlockWithCoinbasesRequest::GetNewBlockWithCoinbasesRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetNewBlockWithCoinbasesRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetNewBlockWithCoinbasesRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetNewBlockWithCoinbasesRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.new_template_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::NewBlockTemplate>( - arena, *from._impl_.new_template_) - : nullptr; + _impl_.new_template_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.new_template_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetNewBlockWithCoinbasesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetNewBlockWithCoinbasesRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetNewBlockWithCoinbasesRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, coinbases_{visibility, arena} {} -inline void GetNewBlockWithCoinbasesRequest::SharedCtor(::_pb::Arena* arena) { +inline void GetNewBlockWithCoinbasesRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.new_template_ = {}; } GetNewBlockWithCoinbasesRequest::~GetNewBlockWithCoinbasesRequest() { // @@protoc_insertion_point(destructor:tari.rpc.GetNewBlockWithCoinbasesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetNewBlockWithCoinbasesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.new_template_; - _impl_.~Impl_(); +inline void GetNewBlockWithCoinbasesRequest::SharedDtor(MessageLite& self) { + GetNewBlockWithCoinbasesRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.new_template_; + this_._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_; +inline void* PROTOBUF_NONNULL GetNewBlockWithCoinbasesRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetNewBlockWithCoinbasesRequest(arena); } -PROTOBUF_NOINLINE void GetNewBlockWithCoinbasesRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetNewBlockWithCoinbasesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.coinbases_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.new_template_ != nullptr); - _impl_.new_template_->Clear(); +constexpr auto GetNewBlockWithCoinbasesRequest::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GetNewBlockWithCoinbasesRequest, _impl_.coinbases_) + + decltype(GetNewBlockWithCoinbasesRequest::_impl_.coinbases_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetNewBlockWithCoinbasesRequest), alignof(GetNewBlockWithCoinbasesRequest), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GetNewBlockWithCoinbasesRequest::PlacementNew_, + sizeof(GetNewBlockWithCoinbasesRequest), + alignof(GetNewBlockWithCoinbasesRequest)); } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +constexpr auto GetNewBlockWithCoinbasesRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetNewBlockWithCoinbasesRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetNewBlockWithCoinbasesRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetNewBlockWithCoinbasesRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetNewBlockWithCoinbasesRequest::ByteSizeLong, + &GetNewBlockWithCoinbasesRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetNewBlockWithCoinbasesRequest, _impl_._cached_size_), + false, + }, + &GetNewBlockWithCoinbasesRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetNewBlockWithCoinbasesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetNewBlockWithCoinbasesRequest_class_data_ = + GetNewBlockWithCoinbasesRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetNewBlockWithCoinbasesRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetNewBlockWithCoinbasesRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetNewBlockWithCoinbasesRequest_class_data_.tc_table); + return GetNewBlockWithCoinbasesRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetNewBlockWithCoinbasesRequest::_table_ = { +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +GetNewBlockWithCoinbasesRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(GetNewBlockWithCoinbasesRequest, _impl_._has_bits_), 0, // no _extensions_ @@ -5899,7 +8145,8 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetNewBlockWithCoinbasesRequest::_tabl 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetNewBlockWithCoinbasesRequest_default_instance_._instance, + GetNewBlockWithCoinbasesRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetNewBlockWithCoinbasesRequest>(), // to_prefetch @@ -5920,71 +8167,110 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetNewBlockWithCoinbasesRequest::_tabl // repeated .tari.rpc.NewBlockCoinbase coinbases = 2; {PROTOBUF_FIELD_OFFSET(GetNewBlockWithCoinbasesRequest, _impl_.coinbases_), -1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplate>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::NewBlockCoinbase>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplate>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::NewBlockCoinbase>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void GetNewBlockWithCoinbasesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetNewBlockWithCoinbasesRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetNewBlockWithCoinbasesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.coinbases_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.new_template_ != nullptr); + _impl_.new_template_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetNewBlockWithCoinbasesRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetNewBlockWithCoinbasesRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetNewBlockWithCoinbasesRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetNewBlockWithCoinbasesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetNewBlockWithCoinbasesRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.NewBlockTemplate new_template = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.new_template_, _impl_.new_template_->GetCachedSize(), target, stream); + 1, *this_._impl_.new_template_, this_._impl_.new_template_->GetCachedSize(), target, + stream); } // repeated .tari.rpc.NewBlockCoinbase coinbases = 2; for (unsigned i = 0, n = static_cast( - this->_internal_coinbases_size()); + this_._internal_coinbases_size()); i < n; i++) { - const auto& repfield = this->_internal_coinbases().Get(i); + const auto& repfield = this_._internal_coinbases().Get(i); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2, repfield, repfield.GetCachedSize(), target, stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetNewBlockWithCoinbasesRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetNewBlockWithCoinbasesRequest::ByteSizeLong(const MessageLite& base) { + const GetNewBlockWithCoinbasesRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetNewBlockWithCoinbasesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetNewBlockWithCoinbasesRequest) + const GetNewBlockWithCoinbasesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetNewBlockWithCoinbasesRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // 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); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // 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); + } + } } - // .tari.rpc.NewBlockTemplate new_template = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.new_template_); + { + // .tari.rpc.NewBlockTemplate new_template = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.new_template_); + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -5997,11 +8283,10 @@ void GetNewBlockWithCoinbasesRequest::MergeImpl(::google::protobuf::MessageLite& _this->_internal_mutable_coinbases()->MergeFrom( from._internal_coinbases()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { 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_); + _this->_impl_.new_template_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.new_template_); } else { _this->_impl_.new_template_->MergeFrom(*from._impl_.new_template_); } @@ -6017,12 +8302,9 @@ void GetNewBlockWithCoinbasesRequest::CopyFrom(const GetNewBlockWithCoinbasesReq MergeFrom(from); } -PROTOBUF_NOINLINE bool GetNewBlockWithCoinbasesRequest::IsInitialized() const { - return true; -} -void GetNewBlockWithCoinbasesRequest::InternalSwap(GetNewBlockWithCoinbasesRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetNewBlockWithCoinbasesRequest::InternalSwap(GetNewBlockWithCoinbasesRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.coinbases_.InternalSwap(&other->_impl_.coinbases_); @@ -6030,37 +8312,49 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class NewBlockCoinbase::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_._has_bits_); }; -NewBlockCoinbase::NewBlockCoinbase(::google::protobuf::Arena* arena) +NewBlockCoinbase::NewBlockCoinbase(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NewBlockCoinbase_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.NewBlockCoinbase) } -inline PROTOBUF_NDEBUG_INLINE NewBlockCoinbase::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : address_(arena, from.address_), - coinbase_extra_(arena, from.coinbase_extra_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE NewBlockCoinbase::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::NewBlockCoinbase& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + address_(arena, from.address_), + coinbase_extra_(arena, from.coinbase_extra_) {} NewBlockCoinbase::NewBlockCoinbase( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NewBlockCoinbase& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NewBlockCoinbase_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE NewBlockCoinbase* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, value_), reinterpret_cast(&from._impl_) + @@ -6071,14 +8365,14 @@ NewBlockCoinbase::NewBlockCoinbase( // @@protoc_insertion_point(copy_constructor:tari.rpc.NewBlockCoinbase) } -inline PROTOBUF_NDEBUG_INLINE NewBlockCoinbase::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE NewBlockCoinbase::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : address_(arena), - coinbase_extra_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + address_(arena), + coinbase_extra_(arena) {} -inline void NewBlockCoinbase::SharedCtor(::_pb::Arena* arena) { +inline void NewBlockCoinbase::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, value_), @@ -6089,56 +8383,64 @@ inline void NewBlockCoinbase::SharedCtor(::_pb::Arena* arena) { } NewBlockCoinbase::~NewBlockCoinbase() { // @@protoc_insertion_point(destructor:tari.rpc.NewBlockCoinbase) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void NewBlockCoinbase::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.address_.Destroy(); - _impl_.coinbase_extra_.Destroy(); - _impl_.~Impl_(); +inline void NewBlockCoinbase::SharedDtor(MessageLite& self) { + NewBlockCoinbase& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.address_.Destroy(); + this_._impl_.coinbase_extra_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL NewBlockCoinbase::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) NewBlockCoinbase(arena); +} +constexpr auto NewBlockCoinbase::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(NewBlockCoinbase), + alignof(NewBlockCoinbase)); +} +constexpr auto NewBlockCoinbase::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_NewBlockCoinbase_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.address_.ClearToEmpty(); - _impl_.coinbase_extra_.ClearToEmpty(); - ::memset(&_impl_.value_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.revealed_value_proof_) - - reinterpret_cast(&_impl_.value_)) + sizeof(_impl_.revealed_value_proof_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &NewBlockCoinbase::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &NewBlockCoinbase::ByteSizeLong, + &NewBlockCoinbase::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_._cached_size_), + false, + }, + &NewBlockCoinbase::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* NewBlockCoinbase::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull NewBlockCoinbase_class_data_ = + NewBlockCoinbase::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +NewBlockCoinbase::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&NewBlockCoinbase_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(NewBlockCoinbase_class_data_.tc_table); + return NewBlockCoinbase_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 41, 2> NewBlockCoinbase::_table_ = { +const ::_pbi::TcParseTable<3, 5, 0, 41, 2> +NewBlockCoinbase::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_._has_bits_), 0, // no _extensions_ 5, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -6147,7 +8449,8 @@ const ::_pbi::TcParseTable<3, 5, 0, 41, 2> NewBlockCoinbase::_table_ = { 5, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_NewBlockCoinbase_default_instance_._instance, + NewBlockCoinbase_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockCoinbase>(), // to_prefetch @@ -6156,39 +8459,39 @@ const ::_pbi::TcParseTable<3, 5, 0, 41, 2> NewBlockCoinbase::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string address = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.address_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.address_)}}, // uint64 value = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NewBlockCoinbase, _impl_.value_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.value_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NewBlockCoinbase, _impl_.value_), 2>(), + {16, 2, 0, PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.value_)}}, // bool stealth_payment = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.stealth_payment_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 3, 0, PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.stealth_payment_)}}, // bool revealed_value_proof = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.revealed_value_proof_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 4, 0, PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.revealed_value_proof_)}}, // bytes coinbase_extra = 5; {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.coinbase_extra_)}}, + {42, 1, 0, PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.coinbase_extra_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // string address = 1; - {PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.address_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.address_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint64 value = 2; - {PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.value_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bool stealth_payment = 3; - {PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.stealth_payment_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.stealth_payment_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool revealed_value_proof = 4; - {PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.revealed_value_proof_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.revealed_value_proof_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bytes coinbase_extra = 5; - {PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.coinbase_extra_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(NewBlockCoinbase, _impl_.coinbase_extra_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -6197,98 +8500,155 @@ const ::_pbi::TcParseTable<3, 5, 0, 41, 2> NewBlockCoinbase::_table_ = { "address" }}, }; +PROTOBUF_NOINLINE void NewBlockCoinbase::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockCoinbase) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* NewBlockCoinbase::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.address_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.coinbase_extra_.ClearNonDefaultToEmpty(); + } + } + if ((cached_has_bits & 0x0000001cu) != 0) { + ::memset(&_impl_.value_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.revealed_value_proof_) - + reinterpret_cast(&_impl_.value_)) + sizeof(_impl_.revealed_value_proof_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL NewBlockCoinbase::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const NewBlockCoinbase& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL NewBlockCoinbase::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const NewBlockCoinbase& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NewBlockCoinbase) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string address = 1; - if (!this->_internal_address().empty()) { - const std::string& _s = this->_internal_address(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.NewBlockCoinbase.address"); - target = stream->WriteStringMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_address().empty()) { + const ::std::string& _s = this_._internal_address(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.NewBlockCoinbase.address"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } } // uint64 value = 2; - if (this->_internal_value() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_value(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_value(), target); + } } // bool stealth_payment = 3; - if (this->_internal_stealth_payment() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_stealth_payment(), target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (this_._internal_stealth_payment() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_stealth_payment(), target); + } } // bool revealed_value_proof = 4; - if (this->_internal_revealed_value_proof() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_revealed_value_proof(), target); + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (this_._internal_revealed_value_proof() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_revealed_value_proof(), target); + } } // bytes coinbase_extra = 5; - if (!this->_internal_coinbase_extra().empty()) { - const std::string& _s = this->_internal_coinbase_extra(); - target = stream->WriteBytesMaybeAliased(5, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_coinbase_extra().empty()) { + const ::std::string& _s = this_._internal_coinbase_extra(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NewBlockCoinbase) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t NewBlockCoinbase::ByteSizeLong(const MessageLite& base) { + const NewBlockCoinbase& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t NewBlockCoinbase::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockCoinbase) + const NewBlockCoinbase& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockCoinbase) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // string address = 1; - if (!this->_internal_address().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_address()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + // string address = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_address().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_address()); + } + } + // bytes coinbase_extra = 5; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_coinbase_extra().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_coinbase_extra()); + } + } + // uint64 value = 2; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_value() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_value()); + } + } + // bool stealth_payment = 3; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_stealth_payment() != 0) { + total_size += 2; + } + } + // bool revealed_value_proof = 4; + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_revealed_value_proof() != 0) { + total_size += 2; + } + } } - - // bytes coinbase_extra = 5; - if (!this->_internal_coinbase_extra().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_coinbase_extra()); - } - - // uint64 value = 2; - if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_value()); - } - - // bool stealth_payment = 3; - if (this->_internal_stealth_payment() != 0) { - total_size += 2; - } - - // bool revealed_value_proof = 4; - if (this->_internal_revealed_value_proof() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -6297,21 +8657,43 @@ void NewBlockCoinbase::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_address().empty()) { - _this->_internal_set_address(from._internal_address()); - } - if (!from._internal_coinbase_extra().empty()) { - _this->_internal_set_coinbase_extra(from._internal_coinbase_extra()); - } - if (from._internal_value() != 0) { - _this->_impl_.value_ = from._impl_.value_; - } - if (from._internal_stealth_payment() != 0) { - _this->_impl_.stealth_payment_ = from._impl_.stealth_payment_; - } - if (from._internal_revealed_value_proof() != 0) { - _this->_impl_.revealed_value_proof_ = from._impl_.revealed_value_proof_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_address().empty()) { + _this->_internal_set_address(from._internal_address()); + } else { + if (_this->_impl_.address_.IsDefault()) { + _this->_internal_set_address(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_coinbase_extra().empty()) { + _this->_internal_set_coinbase_extra(from._internal_coinbase_extra()); + } else { + if (_this->_impl_.coinbase_extra_.IsDefault()) { + _this->_internal_set_coinbase_extra(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_value() != 0) { + _this->_impl_.value_ = from._impl_.value_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_stealth_payment() != 0) { + _this->_impl_.stealth_payment_ = from._impl_.stealth_payment_; + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (from._internal_revealed_value_proof() != 0) { + _this->_impl_.revealed_value_proof_ = from._impl_.revealed_value_proof_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6322,15 +8704,13 @@ void NewBlockCoinbase::CopyFrom(const NewBlockCoinbase& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NewBlockCoinbase::IsInitialized() const { - return true; -} -void NewBlockCoinbase::InternalSwap(NewBlockCoinbase* PROTOBUF_RESTRICT other) { - using std::swap; +void NewBlockCoinbase::InternalSwap(NewBlockCoinbase* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_, &other->_impl_.address_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.coinbase_extra_, &other->_impl_.coinbase_extra_, arena); ::google::protobuf::internal::memswap< @@ -6342,36 +8722,48 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class NetworkDifficultyResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_._has_bits_); }; -NetworkDifficultyResponse::NetworkDifficultyResponse(::google::protobuf::Arena* arena) +NetworkDifficultyResponse::NetworkDifficultyResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NetworkDifficultyResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.NetworkDifficultyResponse) } -inline PROTOBUF_NDEBUG_INLINE NetworkDifficultyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : coinbase_extras_{visibility, arena, from.coinbase_extras_}, - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE NetworkDifficultyResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::NetworkDifficultyResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + coinbase_extras_{visibility, arena, from.coinbase_extras_} {} NetworkDifficultyResponse::NetworkDifficultyResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NetworkDifficultyResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NetworkDifficultyResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE NetworkDifficultyResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, difficulty_), reinterpret_cast(&from._impl_) + @@ -6382,13 +8774,13 @@ NetworkDifficultyResponse::NetworkDifficultyResponse( // @@protoc_insertion_point(copy_constructor:tari.rpc.NetworkDifficultyResponse) } -inline PROTOBUF_NDEBUG_INLINE NetworkDifficultyResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE NetworkDifficultyResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : coinbase_extras_{visibility, arena}, - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + coinbase_extras_{visibility, arena} {} -inline void NetworkDifficultyResponse::SharedCtor(::_pb::Arena* arena) { +inline void NetworkDifficultyResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, difficulty_), @@ -6399,53 +8791,74 @@ inline void NetworkDifficultyResponse::SharedCtor(::_pb::Arena* arena) { } NetworkDifficultyResponse::~NetworkDifficultyResponse() { // @@protoc_insertion_point(destructor:tari.rpc.NetworkDifficultyResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void NetworkDifficultyResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void NetworkDifficultyResponse::SharedDtor(MessageLite& self) { + NetworkDifficultyResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL NetworkDifficultyResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) NetworkDifficultyResponse(arena); +} +constexpr auto NetworkDifficultyResponse::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.coinbase_extras_) + + decltype(NetworkDifficultyResponse::_impl_.coinbase_extras_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(NetworkDifficultyResponse), alignof(NetworkDifficultyResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&NetworkDifficultyResponse::PlacementNew_, + sizeof(NetworkDifficultyResponse), + alignof(NetworkDifficultyResponse)); + } +} +constexpr auto NetworkDifficultyResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_NetworkDifficultyResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.coinbase_extras_.Clear(); - ::memset(&_impl_.difficulty_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.tari_randomx_estimated_hash_rate_) - - reinterpret_cast(&_impl_.difficulty_)) + sizeof(_impl_.tari_randomx_estimated_hash_rate_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &NetworkDifficultyResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &NetworkDifficultyResponse::ByteSizeLong, + &NetworkDifficultyResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_._cached_size_), + false, + }, + &NetworkDifficultyResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* NetworkDifficultyResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull NetworkDifficultyResponse_class_data_ = + NetworkDifficultyResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +NetworkDifficultyResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&NetworkDifficultyResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(NetworkDifficultyResponse_class_data_.tc_table); + return NetworkDifficultyResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 10, 0, 0, 2> NetworkDifficultyResponse::_table_ = { +const ::_pbi::TcParseTable<4, 10, 0, 0, 2> +NetworkDifficultyResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_._has_bits_), 0, // no _extensions_ 10, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -6454,7 +8867,8 @@ const ::_pbi::TcParseTable<4, 10, 0, 0, 2> NetworkDifficultyResponse::_table_ = 10, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_NetworkDifficultyResponse_default_instance_._instance, + NetworkDifficultyResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::NetworkDifficultyResponse>(), // to_prefetch @@ -6462,35 +8876,35 @@ const ::_pbi::TcParseTable<4, 10, 0, 0, 2> NetworkDifficultyResponse::_table_ = }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 difficulty = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.difficulty_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.difficulty_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.difficulty_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.difficulty_)}}, // uint64 estimated_hash_rate = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.estimated_hash_rate_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.estimated_hash_rate_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.estimated_hash_rate_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.estimated_hash_rate_)}}, // uint64 height = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.height_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.height_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.height_)}}, // uint64 timestamp = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.timestamp_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.timestamp_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.timestamp_), 3>(), + {32, 3, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.timestamp_)}}, // uint64 pow_algo = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.pow_algo_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.pow_algo_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.pow_algo_), 4>(), + {40, 4, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.pow_algo_)}}, // uint64 sha3x_estimated_hash_rate = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.sha3x_estimated_hash_rate_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.sha3x_estimated_hash_rate_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.sha3x_estimated_hash_rate_), 5>(), + {48, 5, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.sha3x_estimated_hash_rate_)}}, // uint64 monero_randomx_estimated_hash_rate = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.monero_randomx_estimated_hash_rate_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.monero_randomx_estimated_hash_rate_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.monero_randomx_estimated_hash_rate_), 6>(), + {56, 6, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.monero_randomx_estimated_hash_rate_)}}, // uint64 num_coinbases = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.num_coinbases_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.num_coinbases_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.num_coinbases_), 7>(), + {64, 7, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.num_coinbases_)}}, // repeated bytes coinbase_extras = 9; {::_pbi::TcParser::FastBR1, {74, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.coinbase_extras_)}}, // uint64 tari_randomx_estimated_hash_rate = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.tari_randomx_estimated_hash_rate_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.tari_randomx_estimated_hash_rate_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.tari_randomx_estimated_hash_rate_), 8>(), + {80, 8, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.tari_randomx_estimated_hash_rate_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -6500,198 +8914,268 @@ const ::_pbi::TcParseTable<4, 10, 0, 0, 2> NetworkDifficultyResponse::_table_ = 65535, 65535 }}, {{ // uint64 difficulty = 1; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.difficulty_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.difficulty_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 estimated_hash_rate = 2; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.estimated_hash_rate_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.estimated_hash_rate_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 height = 3; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.height_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 timestamp = 4; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.timestamp_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.timestamp_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 pow_algo = 5; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.pow_algo_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.pow_algo_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 sha3x_estimated_hash_rate = 6; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.sha3x_estimated_hash_rate_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.sha3x_estimated_hash_rate_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 monero_randomx_estimated_hash_rate = 7; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.monero_randomx_estimated_hash_rate_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.monero_randomx_estimated_hash_rate_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 num_coinbases = 8; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.num_coinbases_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.num_coinbases_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // repeated bytes coinbase_extras = 9; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.coinbase_extras_), 0, 0, + {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.coinbase_extras_), -1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, // uint64 tari_randomx_estimated_hash_rate = 10; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.tari_randomx_estimated_hash_rate_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.tari_randomx_estimated_hash_rate_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void NetworkDifficultyResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.NetworkDifficultyResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* NetworkDifficultyResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.coinbase_extras_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + ::memset(&_impl_.difficulty_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.num_coinbases_) - + reinterpret_cast(&_impl_.difficulty_)) + sizeof(_impl_.num_coinbases_)); + } + _impl_.tari_randomx_estimated_hash_rate_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL NetworkDifficultyResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const NetworkDifficultyResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL NetworkDifficultyResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const NetworkDifficultyResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NetworkDifficultyResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 difficulty = 1; - if (this->_internal_difficulty() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_difficulty(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_difficulty() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_difficulty(), target); + } } // uint64 estimated_hash_rate = 2; - if (this->_internal_estimated_hash_rate() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_estimated_hash_rate(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_estimated_hash_rate() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_estimated_hash_rate(), target); + } } // uint64 height = 3; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_height(), target); + } } // uint64 timestamp = 4; - if (this->_internal_timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_timestamp(), target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (this_._internal_timestamp() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_timestamp(), target); + } } // uint64 pow_algo = 5; - if (this->_internal_pow_algo() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_pow_algo(), target); + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (this_._internal_pow_algo() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 5, this_._internal_pow_algo(), target); + } } // uint64 sha3x_estimated_hash_rate = 6; - if (this->_internal_sha3x_estimated_hash_rate() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 6, this->_internal_sha3x_estimated_hash_rate(), target); + if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { + if (this_._internal_sha3x_estimated_hash_rate() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 6, this_._internal_sha3x_estimated_hash_rate(), target); + } } // uint64 monero_randomx_estimated_hash_rate = 7; - if (this->_internal_monero_randomx_estimated_hash_rate() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 7, this->_internal_monero_randomx_estimated_hash_rate(), target); + if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { + if (this_._internal_monero_randomx_estimated_hash_rate() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 7, this_._internal_monero_randomx_estimated_hash_rate(), target); + } } // uint64 num_coinbases = 8; - if (this->_internal_num_coinbases() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 8, this->_internal_num_coinbases(), target); + if ((this_._impl_._has_bits_[0] & 0x00000080u) != 0) { + if (this_._internal_num_coinbases() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 8, this_._internal_num_coinbases(), target); + } } // repeated bytes coinbase_extras = 9; - for (int i = 0, n = this->_internal_coinbase_extras_size(); i < n; ++i) { - const auto& s = this->_internal_coinbase_extras().Get(i); + for (int i = 0, n = this_._internal_coinbase_extras_size(); i < n; ++i) { + const auto& s = this_._internal_coinbase_extras().Get(i); target = stream->WriteBytes(9, s, target); } // uint64 tari_randomx_estimated_hash_rate = 10; - if (this->_internal_tari_randomx_estimated_hash_rate() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 10, this->_internal_tari_randomx_estimated_hash_rate(), target); + if ((this_._impl_._has_bits_[0] & 0x00000100u) != 0) { + if (this_._internal_tari_randomx_estimated_hash_rate() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 10, this_._internal_tari_randomx_estimated_hash_rate(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NetworkDifficultyResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t NetworkDifficultyResponse::ByteSizeLong(const MessageLite& base) { + const NetworkDifficultyResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t NetworkDifficultyResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NetworkDifficultyResponse) + const NetworkDifficultyResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.NetworkDifficultyResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated bytes coinbase_extras = 9; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_coinbase_extras().size()); - for (int i = 0, n = _internal_coinbase_extras().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( - _internal_coinbase_extras().Get(i)); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated bytes coinbase_extras = 9; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_coinbase_extras().size()); + for (int i = 0, n = this_._internal_coinbase_extras().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_coinbase_extras().Get(i)); + } + } } - // uint64 difficulty = 1; - if (this->_internal_difficulty() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_difficulty()); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + // uint64 difficulty = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_difficulty() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_difficulty()); + } + } + // uint64 estimated_hash_rate = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_estimated_hash_rate() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_estimated_hash_rate()); + } + } + // uint64 height = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_height()); + } + } + // uint64 timestamp = 4; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_timestamp() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_timestamp()); + } + } + // uint64 pow_algo = 5; + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_pow_algo() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_pow_algo()); + } + } + // uint64 sha3x_estimated_hash_rate = 6; + if ((cached_has_bits & 0x00000020u) != 0) { + if (this_._internal_sha3x_estimated_hash_rate() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_sha3x_estimated_hash_rate()); + } + } + // uint64 monero_randomx_estimated_hash_rate = 7; + if ((cached_has_bits & 0x00000040u) != 0) { + if (this_._internal_monero_randomx_estimated_hash_rate() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_monero_randomx_estimated_hash_rate()); + } + } + // uint64 num_coinbases = 8; + if ((cached_has_bits & 0x00000080u) != 0) { + if (this_._internal_num_coinbases() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_num_coinbases()); + } + } } - - // uint64 estimated_hash_rate = 2; - if (this->_internal_estimated_hash_rate() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_estimated_hash_rate()); + { + // uint64 tari_randomx_estimated_hash_rate = 10; + if ((cached_has_bits & 0x00000100u) != 0) { + if (this_._internal_tari_randomx_estimated_hash_rate() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_tari_randomx_estimated_hash_rate()); + } + } } - - // uint64 height = 3; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - // uint64 timestamp = 4; - if (this->_internal_timestamp() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_timestamp()); - } - - // uint64 pow_algo = 5; - if (this->_internal_pow_algo() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_pow_algo()); - } - - // uint64 sha3x_estimated_hash_rate = 6; - if (this->_internal_sha3x_estimated_hash_rate() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_sha3x_estimated_hash_rate()); - } - - // uint64 monero_randomx_estimated_hash_rate = 7; - if (this->_internal_monero_randomx_estimated_hash_rate() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_monero_randomx_estimated_hash_rate()); - } - - // uint64 num_coinbases = 8; - if (this->_internal_num_coinbases() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_num_coinbases()); - } - - // uint64 tari_randomx_estimated_hash_rate = 10; - if (this->_internal_tari_randomx_estimated_hash_rate() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_tari_randomx_estimated_hash_rate()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -6701,33 +9185,55 @@ void NetworkDifficultyResponse::MergeImpl(::google::protobuf::MessageLite& to_ms (void) cached_has_bits; _this->_internal_mutable_coinbase_extras()->MergeFrom(from._internal_coinbase_extras()); - if (from._internal_difficulty() != 0) { - _this->_impl_.difficulty_ = from._impl_.difficulty_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_difficulty() != 0) { + _this->_impl_.difficulty_ = from._impl_.difficulty_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_estimated_hash_rate() != 0) { + _this->_impl_.estimated_hash_rate_ = from._impl_.estimated_hash_rate_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_height() != 0) { + _this->_impl_.height_ = from._impl_.height_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_timestamp() != 0) { + _this->_impl_.timestamp_ = from._impl_.timestamp_; + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (from._internal_pow_algo() != 0) { + _this->_impl_.pow_algo_ = from._impl_.pow_algo_; + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (from._internal_sha3x_estimated_hash_rate() != 0) { + _this->_impl_.sha3x_estimated_hash_rate_ = from._impl_.sha3x_estimated_hash_rate_; + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (from._internal_monero_randomx_estimated_hash_rate() != 0) { + _this->_impl_.monero_randomx_estimated_hash_rate_ = from._impl_.monero_randomx_estimated_hash_rate_; + } + } + if ((cached_has_bits & 0x00000080u) != 0) { + if (from._internal_num_coinbases() != 0) { + _this->_impl_.num_coinbases_ = from._impl_.num_coinbases_; + } + } } - if (from._internal_estimated_hash_rate() != 0) { - _this->_impl_.estimated_hash_rate_ = from._impl_.estimated_hash_rate_; - } - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; - } - if (from._internal_timestamp() != 0) { - _this->_impl_.timestamp_ = from._impl_.timestamp_; - } - if (from._internal_pow_algo() != 0) { - _this->_impl_.pow_algo_ = from._impl_.pow_algo_; - } - if (from._internal_sha3x_estimated_hash_rate() != 0) { - _this->_impl_.sha3x_estimated_hash_rate_ = from._impl_.sha3x_estimated_hash_rate_; - } - if (from._internal_monero_randomx_estimated_hash_rate() != 0) { - _this->_impl_.monero_randomx_estimated_hash_rate_ = from._impl_.monero_randomx_estimated_hash_rate_; - } - if (from._internal_num_coinbases() != 0) { - _this->_impl_.num_coinbases_ = from._impl_.num_coinbases_; - } - if (from._internal_tari_randomx_estimated_hash_rate() != 0) { - _this->_impl_.tari_randomx_estimated_hash_rate_ = from._impl_.tari_randomx_estimated_hash_rate_; + if ((cached_has_bits & 0x00000100u) != 0) { + if (from._internal_tari_randomx_estimated_hash_rate() != 0) { + _this->_impl_.tari_randomx_estimated_hash_rate_ = from._impl_.tari_randomx_estimated_hash_rate_; + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6738,13 +9244,11 @@ void NetworkDifficultyResponse::CopyFrom(const NetworkDifficultyResponse& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool NetworkDifficultyResponse::IsInitialized() const { - return true; -} -void NetworkDifficultyResponse::InternalSwap(NetworkDifficultyResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void NetworkDifficultyResponse::InternalSwap(NetworkDifficultyResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.coinbase_extras_.InternalSwap(&other->_impl_.coinbase_extras_); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.tari_randomx_estimated_hash_rate_) @@ -6755,97 +9259,120 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ValueAtHeightResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_._has_bits_); }; -ValueAtHeightResponse::ValueAtHeightResponse(::google::protobuf::Arena* arena) +ValueAtHeightResponse::ValueAtHeightResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValueAtHeightResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.ValueAtHeightResponse) } ValueAtHeightResponse::ValueAtHeightResponse( - ::google::protobuf::Arena* arena, const ValueAtHeightResponse& from) - : ValueAtHeightResponse(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ValueAtHeightResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValueAtHeightResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE ValueAtHeightResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE ValueAtHeightResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void ValueAtHeightResponse::SharedCtor(::_pb::Arena* arena) { +inline void ValueAtHeightResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, circulating_supply_), 0, - offsetof(Impl_, height_) - + offsetof(Impl_, time_locked_pre_mine_) - offsetof(Impl_, circulating_supply_) + - sizeof(Impl_::height_)); + sizeof(Impl_::time_locked_pre_mine_)); } ValueAtHeightResponse::~ValueAtHeightResponse() { // @@protoc_insertion_point(destructor:tari.rpc.ValueAtHeightResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void ValueAtHeightResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void ValueAtHeightResponse::SharedDtor(MessageLite& self) { + ValueAtHeightResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL ValueAtHeightResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ValueAtHeightResponse(arena); +} +constexpr auto ValueAtHeightResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ValueAtHeightResponse), + alignof(ValueAtHeightResponse)); +} +constexpr auto ValueAtHeightResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ValueAtHeightResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.circulating_supply_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.height_) - - reinterpret_cast(&_impl_.circulating_supply_)) + sizeof(_impl_.height_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ValueAtHeightResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ValueAtHeightResponse::ByteSizeLong, + &ValueAtHeightResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_._cached_size_), + false, + }, + &ValueAtHeightResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* ValueAtHeightResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ValueAtHeightResponse_class_data_ = + ValueAtHeightResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ValueAtHeightResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ValueAtHeightResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ValueAtHeightResponse_class_data_.tc_table); + return ValueAtHeightResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> ValueAtHeightResponse::_table_ = { +const ::_pbi::TcParseTable<4, 8, 0, 0, 2> +ValueAtHeightResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_._has_bits_), 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask + 9, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap + 4294966786, // skipmap offsetof(decltype(_table_), field_entries), - 3, // num_field_entries + 8, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ValueAtHeightResponse_default_instance_._instance, + ValueAtHeightResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::ValueAtHeightResponse>(), // to_prefetch @@ -6853,99 +9380,259 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> ValueAtHeightResponse::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 circulating_supply = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.circulating_supply_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.circulating_supply_)}}, - // uint64 spendable_supply = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.spendable_supply_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.spendable_supply_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.circulating_supply_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.circulating_supply_)}}, + {::_pbi::TcParser::MiniParse, {}}, // uint64 height = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.height_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.height_), 1>(), + {24, 1, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.height_)}}, + // uint64 mined_rewards = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.mined_rewards_), 2>(), + {32, 2, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.mined_rewards_)}}, + // uint64 spendable_rewards = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.spendable_rewards_), 3>(), + {40, 3, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.spendable_rewards_)}}, + // uint64 spendable_pre_mine = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.spendable_pre_mine_), 4>(), + {48, 4, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.spendable_pre_mine_)}}, + // uint64 total_spendable = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.total_spendable_), 5>(), + {56, 5, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.total_spendable_)}}, + // uint64 total_pre_mine = 8; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.total_pre_mine_), 6>(), + {64, 6, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.total_pre_mine_)}}, + // uint64 time_locked_pre_mine = 9; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.time_locked_pre_mine_), 7>(), + {72, 7, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.time_locked_pre_mine_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // uint64 circulating_supply = 1; - {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.circulating_supply_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 spendable_supply = 2; - {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.spendable_supply_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.circulating_supply_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 height = 3; - {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.height_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 mined_rewards = 4; + {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.mined_rewards_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 spendable_rewards = 5; + {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.spendable_rewards_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 spendable_pre_mine = 6; + {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.spendable_pre_mine_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 total_spendable = 7; + {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.total_spendable_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 total_pre_mine = 8; + {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.total_pre_mine_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 time_locked_pre_mine = 9; + {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.time_locked_pre_mine_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void ValueAtHeightResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ValueAtHeightResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* ValueAtHeightResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + ::memset(&_impl_.circulating_supply_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.time_locked_pre_mine_) - + reinterpret_cast(&_impl_.circulating_supply_)) + sizeof(_impl_.time_locked_pre_mine_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ValueAtHeightResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ValueAtHeightResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ValueAtHeightResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ValueAtHeightResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ValueAtHeightResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 circulating_supply = 1; - if (this->_internal_circulating_supply() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_circulating_supply(), target); - } - - // uint64 spendable_supply = 2; - if (this->_internal_spendable_supply() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_spendable_supply(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_circulating_supply() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_circulating_supply(), target); + } } // uint64 height = 3; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_height(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + // uint64 mined_rewards = 4; + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_mined_rewards() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_mined_rewards(), target); + } + } + + // uint64 spendable_rewards = 5; + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (this_._internal_spendable_rewards() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 5, this_._internal_spendable_rewards(), target); + } + } + + // uint64 spendable_pre_mine = 6; + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (this_._internal_spendable_pre_mine() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 6, this_._internal_spendable_pre_mine(), target); + } + } + + // uint64 total_spendable = 7; + if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { + if (this_._internal_total_spendable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 7, this_._internal_total_spendable(), target); + } + } + + // uint64 total_pre_mine = 8; + if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { + if (this_._internal_total_pre_mine() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 8, this_._internal_total_pre_mine(), target); + } + } + + // uint64 time_locked_pre_mine = 9; + if ((this_._impl_._has_bits_[0] & 0x00000080u) != 0) { + if (this_._internal_time_locked_pre_mine() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 9, this_._internal_time_locked_pre_mine(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ValueAtHeightResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ValueAtHeightResponse::ByteSizeLong(const MessageLite& base) { + const ValueAtHeightResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t ValueAtHeightResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ValueAtHeightResponse) + const ValueAtHeightResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ValueAtHeightResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 circulating_supply = 1; - if (this->_internal_circulating_supply() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_circulating_supply()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + // uint64 circulating_supply = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_circulating_supply() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_circulating_supply()); + } + } + // uint64 height = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_height()); + } + } + // uint64 mined_rewards = 4; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_mined_rewards() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_mined_rewards()); + } + } + // uint64 spendable_rewards = 5; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_spendable_rewards() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_spendable_rewards()); + } + } + // uint64 spendable_pre_mine = 6; + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_spendable_pre_mine() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_spendable_pre_mine()); + } + } + // uint64 total_spendable = 7; + if ((cached_has_bits & 0x00000020u) != 0) { + if (this_._internal_total_spendable() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_total_spendable()); + } + } + // uint64 total_pre_mine = 8; + if ((cached_has_bits & 0x00000040u) != 0) { + if (this_._internal_total_pre_mine() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_total_pre_mine()); + } + } + // uint64 time_locked_pre_mine = 9; + if ((cached_has_bits & 0x00000080u) != 0) { + if (this_._internal_time_locked_pre_mine() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_time_locked_pre_mine()); + } + } } - - // uint64 spendable_supply = 2; - if (this->_internal_spendable_supply() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_spendable_supply()); - } - - // uint64 height = 3; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -6954,15 +9641,50 @@ void ValueAtHeightResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, c ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_circulating_supply() != 0) { - _this->_impl_.circulating_supply_ = from._impl_.circulating_supply_; - } - if (from._internal_spendable_supply() != 0) { - _this->_impl_.spendable_supply_ = from._impl_.spendable_supply_; - } - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_circulating_supply() != 0) { + _this->_impl_.circulating_supply_ = from._impl_.circulating_supply_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_height() != 0) { + _this->_impl_.height_ = from._impl_.height_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_mined_rewards() != 0) { + _this->_impl_.mined_rewards_ = from._impl_.mined_rewards_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_spendable_rewards() != 0) { + _this->_impl_.spendable_rewards_ = from._impl_.spendable_rewards_; + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (from._internal_spendable_pre_mine() != 0) { + _this->_impl_.spendable_pre_mine_ = from._impl_.spendable_pre_mine_; + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (from._internal_total_spendable() != 0) { + _this->_impl_.total_spendable_ = from._impl_.total_spendable_; + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (from._internal_total_pre_mine() != 0) { + _this->_impl_.total_pre_mine_ = from._impl_.total_pre_mine_; + } + } + if ((cached_has_bits & 0x00000080u) != 0) { + if (from._internal_time_locked_pre_mine() != 0) { + _this->_impl_.time_locked_pre_mine_ = from._impl_.time_locked_pre_mine_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6973,97 +9695,119 @@ void ValueAtHeightResponse::CopyFrom(const ValueAtHeightResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ValueAtHeightResponse::IsInitialized() const { - return true; -} -void ValueAtHeightResponse::InternalSwap(ValueAtHeightResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void ValueAtHeightResponse::InternalSwap(ValueAtHeightResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.height_) - + sizeof(ValueAtHeightResponse::_impl_.height_) + PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.time_locked_pre_mine_) + + sizeof(ValueAtHeightResponse::_impl_.time_locked_pre_mine_) - PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.circulating_supply_)>( reinterpret_cast(&_impl_.circulating_supply_), reinterpret_cast(&other->_impl_.circulating_supply_)); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class IntegerValue::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(IntegerValue, _impl_._has_bits_); }; -IntegerValue::IntegerValue(::google::protobuf::Arena* arena) +IntegerValue::IntegerValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, IntegerValue_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.IntegerValue) } IntegerValue::IntegerValue( - ::google::protobuf::Arena* arena, const IntegerValue& from) - : IntegerValue(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const IntegerValue& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, IntegerValue_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE IntegerValue::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE IntegerValue::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void IntegerValue::SharedCtor(::_pb::Arena* arena) { +inline void IntegerValue::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.value_ = {}; } IntegerValue::~IntegerValue() { // @@protoc_insertion_point(destructor:tari.rpc.IntegerValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void IntegerValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void IntegerValue::SharedDtor(MessageLite& self) { + IntegerValue& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL IntegerValue::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) IntegerValue(arena); +} +constexpr auto IntegerValue::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(IntegerValue), + alignof(IntegerValue)); +} +constexpr auto IntegerValue::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_IntegerValue_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.value_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &IntegerValue::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &IntegerValue::ByteSizeLong, + &IntegerValue::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(IntegerValue, _impl_._cached_size_), + false, + }, + &IntegerValue::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* IntegerValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull IntegerValue_class_data_ = + IntegerValue::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +IntegerValue::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&IntegerValue_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(IntegerValue_class_data_.tc_table); + return IntegerValue_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IntegerValue::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +IntegerValue::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(IntegerValue, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -7072,68 +9816,100 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IntegerValue::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_IntegerValue_default_instance_._instance, + IntegerValue_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IntegerValue, _impl_.value_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntegerValue, _impl_.value_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(IntegerValue, _impl_.value_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 value = 1; - {PROTOBUF_FIELD_OFFSET(IntegerValue, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(IntegerValue, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void IntegerValue::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.IntegerValue) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* IntegerValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.value_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL IntegerValue::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const IntegerValue& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL IntegerValue::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const IntegerValue& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.IntegerValue) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 value = 1; - if (this->_internal_value() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_value(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_value(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.IntegerValue) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t IntegerValue::ByteSizeLong(const MessageLite& base) { + const IntegerValue& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t IntegerValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.IntegerValue) + const IntegerValue& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.IntegerValue) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 value = 1; - if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_value()); + { + // uint64 value = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_value() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_value()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -7142,9 +9918,13 @@ void IntegerValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::go ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_value() != 0) { - _this->_impl_.value_ = from._impl_.value_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_value() != 0) { + _this->_impl_.value_ = from._impl_.value_; + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7155,240 +9935,349 @@ void IntegerValue::CopyFrom(const IntegerValue& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool IntegerValue::IsInitialized() const { - return true; -} -void IntegerValue::InternalSwap(IntegerValue* PROTOBUF_RESTRICT other) { - using std::swap; +void IntegerValue::InternalSwap(IntegerValue* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.value_, other->_impl_.value_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.value_, other->_impl_.value_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== -class StringValue::_Internal { +class BaseNodeGetVersionResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BaseNodeGetVersionResponse, _impl_._has_bits_); }; -StringValue::StringValue(::google::protobuf::Arena* arena) +BaseNodeGetVersionResponse::BaseNodeGetVersionResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BaseNodeGetVersionResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.StringValue) + // @@protoc_insertion_point(arena_constructor:tari.rpc.BaseNodeGetVersionResponse) } -inline PROTOBUF_NDEBUG_INLINE StringValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : value_(arena, from.value_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE BaseNodeGetVersionResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::BaseNodeGetVersionResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + version_(arena, from.version_) {} -StringValue::StringValue( - ::google::protobuf::Arena* arena, - const StringValue& from) +BaseNodeGetVersionResponse::BaseNodeGetVersionResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const BaseNodeGetVersionResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BaseNodeGetVersionResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { - StringValue* const _this = this; +#endif // PROTOBUF_CUSTOM_VTABLE + BaseNodeGetVersionResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.network_ = from._impl_.network_; - // @@protoc_insertion_point(copy_constructor:tari.rpc.StringValue) + // @@protoc_insertion_point(copy_constructor:tari.rpc.BaseNodeGetVersionResponse) } -inline PROTOBUF_NDEBUG_INLINE StringValue::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE BaseNodeGetVersionResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : value_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + version_(arena) {} -inline void StringValue::SharedCtor(::_pb::Arena* arena) { +inline void BaseNodeGetVersionResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.network_ = {}; } -StringValue::~StringValue() { - // @@protoc_insertion_point(destructor:tari.rpc.StringValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); +BaseNodeGetVersionResponse::~BaseNodeGetVersionResponse() { + // @@protoc_insertion_point(destructor:tari.rpc.BaseNodeGetVersionResponse) + SharedDtor(*this); } -inline void StringValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.value_.Destroy(); - _impl_.~Impl_(); +inline void BaseNodeGetVersionResponse::SharedDtor(MessageLite& self) { + BaseNodeGetVersionResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.version_.Destroy(); + this_._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_; +inline void* PROTOBUF_NONNULL BaseNodeGetVersionResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BaseNodeGetVersionResponse(arena); } -PROTOBUF_NOINLINE void StringValue::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.StringValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +constexpr auto BaseNodeGetVersionResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BaseNodeGetVersionResponse), + alignof(BaseNodeGetVersionResponse)); +} +constexpr auto BaseNodeGetVersionResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_BaseNodeGetVersionResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &BaseNodeGetVersionResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BaseNodeGetVersionResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &BaseNodeGetVersionResponse::ByteSizeLong, + &BaseNodeGetVersionResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BaseNodeGetVersionResponse, _impl_._cached_size_), + false, + }, + &BaseNodeGetVersionResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull BaseNodeGetVersionResponse_class_data_ = + BaseNodeGetVersionResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BaseNodeGetVersionResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&BaseNodeGetVersionResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(BaseNodeGetVersionResponse_class_data_.tc_table); + return BaseNodeGetVersionResponse_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 51, 2> +BaseNodeGetVersionResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(BaseNodeGetVersionResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + BaseNodeGetVersionResponse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::BaseNodeGetVersionResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // uint32 network = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BaseNodeGetVersionResponse, _impl_.network_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(BaseNodeGetVersionResponse, _impl_.network_)}}, + // string version = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(BaseNodeGetVersionResponse, _impl_.version_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string version = 1; + {PROTOBUF_FIELD_OFFSET(BaseNodeGetVersionResponse, _impl_.version_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // uint32 network = 2; + {PROTOBUF_FIELD_OFFSET(BaseNodeGetVersionResponse, _impl_.network_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, + // no aux_entries + {{ + "\43\7\0\0\0\0\0\0" + "tari.rpc.BaseNodeGetVersionResponse" + "version" + }}, +}; +PROTOBUF_NOINLINE void BaseNodeGetVersionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.BaseNodeGetVersionResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.value_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.version_.ClearNonDefaultToEmpty(); + } + _impl_.network_ = 0u; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* StringValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 34, 2> StringValue::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - 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, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StringValue, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string value = 1; - {PROTOBUF_FIELD_OFFSET(StringValue, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\24\5\0\0\0\0\0\0" - "tari.rpc.StringValue" - "value" - }}, -}; - -::uint8_t* StringValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.StringValue) +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BaseNodeGetVersionResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BaseNodeGetVersionResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BaseNodeGetVersionResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BaseNodeGetVersionResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BaseNodeGetVersionResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - // string value = 1; - if (!this->_internal_value().empty()) { - const std::string& _s = this->_internal_value(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.StringValue.value"); - target = stream->WriteStringMaybeAliased(1, _s, target); + // string version = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_version().empty()) { + const ::std::string& _s = this_._internal_version(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.BaseNodeGetVersionResponse.version"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + // uint32 network = 2; + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_network() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_network(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.StringValue) + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BaseNodeGetVersionResponse) return target; } -::size_t StringValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.StringValue) +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BaseNodeGetVersionResponse::ByteSizeLong(const MessageLite& base) { + const BaseNodeGetVersionResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t BaseNodeGetVersionResponse::ByteSizeLong() const { + const BaseNodeGetVersionResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.BaseNodeGetVersionResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // string value = 1; - if (!this->_internal_value().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_value()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // string version = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_version().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_version()); + } + } + // uint32 network = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_network() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_network()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - -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) +void BaseNodeGetVersionResponse::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.BaseNodeGetVersionResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_value().empty()) { - _this->_internal_set_value(from._internal_value()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_version().empty()) { + _this->_internal_set_version(from._internal_version()); + } else { + if (_this->_impl_.version_.IsDefault()) { + _this->_internal_set_version(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_network() != 0) { + _this->_impl_.network_ = from._impl_.network_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -void StringValue::CopyFrom(const StringValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.StringValue) +void BaseNodeGetVersionResponse::CopyFrom(const BaseNodeGetVersionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.BaseNodeGetVersionResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool StringValue::IsInitialized() const { - return true; -} -void StringValue::InternalSwap(StringValue* PROTOBUF_RESTRICT other) { - using std::swap; +void BaseNodeGetVersionResponse::InternalSwap(BaseNodeGetVersionResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); + swap(_impl_.network_, other->_impl_.network_); } -::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]); +::google::protobuf::Metadata BaseNodeGetVersionResponse::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class BlockGroupRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_._has_bits_); }; -BlockGroupRequest::BlockGroupRequest(::google::protobuf::Arena* arena) +BlockGroupRequest::BlockGroupRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockGroupRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockGroupRequest) } BlockGroupRequest::BlockGroupRequest( - ::google::protobuf::Arena* arena, const BlockGroupRequest& from) - : BlockGroupRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockGroupRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockGroupRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE BlockGroupRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE BlockGroupRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void BlockGroupRequest::SharedCtor(::_pb::Arena* arena) { +inline void BlockGroupRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, from_tip_), @@ -7399,52 +10288,62 @@ inline void BlockGroupRequest::SharedCtor(::_pb::Arena* arena) { } BlockGroupRequest::~BlockGroupRequest() { // @@protoc_insertion_point(destructor:tari.rpc.BlockGroupRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void BlockGroupRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void BlockGroupRequest::SharedDtor(MessageLite& self) { + BlockGroupRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL BlockGroupRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BlockGroupRequest(arena); +} +constexpr auto BlockGroupRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BlockGroupRequest), + alignof(BlockGroupRequest)); +} +constexpr auto BlockGroupRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_BlockGroupRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.from_tip_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.calc_type_) - - reinterpret_cast(&_impl_.from_tip_)) + sizeof(_impl_.calc_type_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BlockGroupRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &BlockGroupRequest::ByteSizeLong, + &BlockGroupRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_._cached_size_), + false, + }, + &BlockGroupRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* BlockGroupRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull BlockGroupRequest_class_data_ = + BlockGroupRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BlockGroupRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&BlockGroupRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(BlockGroupRequest_class_data_.tc_table); + return BlockGroupRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> BlockGroupRequest::_table_ = { +const ::_pbi::TcParseTable<2, 4, 0, 0, 2> +BlockGroupRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_._has_bits_), 0, // no _extensions_ 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -7453,125 +10352,172 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> BlockGroupRequest::_table_ = { 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_BlockGroupRequest_default_instance_._instance, + BlockGroupRequest_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.calc_type_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BlockGroupRequest, _impl_.calc_type_), 3>(), + {32, 3, 0, PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.calc_type_)}}, // uint64 from_tip = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockGroupRequest, _impl_.from_tip_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.from_tip_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockGroupRequest, _impl_.from_tip_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.from_tip_)}}, // uint64 start_height = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockGroupRequest, _impl_.start_height_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.start_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockGroupRequest, _impl_.start_height_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.start_height_)}}, // uint64 end_height = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockGroupRequest, _impl_.end_height_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.end_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockGroupRequest, _impl_.end_height_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.end_height_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 from_tip = 1; - {PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.from_tip_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.from_tip_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 start_height = 2; - {PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.start_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.start_height_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 end_height = 3; - {PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.end_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.end_height_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // .tari.rpc.CalcType calc_type = 4; - {PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.calc_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + {PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.calc_type_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void BlockGroupRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockGroupRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* BlockGroupRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + ::memset(&_impl_.from_tip_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.calc_type_) - + reinterpret_cast(&_impl_.from_tip_)) + sizeof(_impl_.calc_type_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BlockGroupRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BlockGroupRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BlockGroupRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BlockGroupRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockGroupRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 from_tip = 1; - if (this->_internal_from_tip() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_from_tip(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_from_tip() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_from_tip(), target); + } } // uint64 start_height = 2; - if (this->_internal_start_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_start_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_start_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_start_height(), target); + } } // uint64 end_height = 3; - if (this->_internal_end_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_end_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_end_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_end_height(), target); + } } // .tari.rpc.CalcType calc_type = 4; - if (this->_internal_calc_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 4, this->_internal_calc_type(), target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (this_._internal_calc_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_calc_type(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockGroupRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BlockGroupRequest::ByteSizeLong(const MessageLite& base) { + const BlockGroupRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t BlockGroupRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockGroupRequest) + const BlockGroupRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockGroupRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 from_tip = 1; - if (this->_internal_from_tip() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_from_tip()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + // uint64 from_tip = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_from_tip() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_from_tip()); + } + } + // uint64 start_height = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_start_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_start_height()); + } + } + // uint64 end_height = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_end_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_end_height()); + } + } + // .tari.rpc.CalcType calc_type = 4; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_calc_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_calc_type()); + } + } } - - // uint64 start_height = 2; - if (this->_internal_start_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_start_height()); - } - - // uint64 end_height = 3; - if (this->_internal_end_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_end_height()); - } - - // .tari.rpc.CalcType calc_type = 4; - if (this->_internal_calc_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_calc_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -7580,18 +10526,30 @@ void BlockGroupRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_from_tip() != 0) { - _this->_impl_.from_tip_ = from._impl_.from_tip_; - } - if (from._internal_start_height() != 0) { - _this->_impl_.start_height_ = from._impl_.start_height_; - } - if (from._internal_end_height() != 0) { - _this->_impl_.end_height_ = from._impl_.end_height_; - } - if (from._internal_calc_type() != 0) { - _this->_impl_.calc_type_ = from._impl_.calc_type_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_from_tip() != 0) { + _this->_impl_.from_tip_ = from._impl_.from_tip_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_start_height() != 0) { + _this->_impl_.start_height_ = from._impl_.start_height_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_end_height() != 0) { + _this->_impl_.end_height_ = from._impl_.end_height_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_calc_type() != 0) { + _this->_impl_.calc_type_ = from._impl_.calc_type_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7602,13 +10560,11 @@ void BlockGroupRequest::CopyFrom(const BlockGroupRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool BlockGroupRequest::IsInitialized() const { - return true; -} -void BlockGroupRequest::InternalSwap(BlockGroupRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void BlockGroupRequest::InternalSwap(BlockGroupRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.calc_type_) + sizeof(BlockGroupRequest::_impl_.calc_type_) @@ -7618,97 +10574,132 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class BlockGroupResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_._has_bits_); }; -BlockGroupResponse::BlockGroupResponse(::google::protobuf::Arena* arena) +BlockGroupResponse::BlockGroupResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockGroupResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockGroupResponse) } -inline PROTOBUF_NDEBUG_INLINE BlockGroupResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : value_{visibility, arena, from.value_}, - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE BlockGroupResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::BlockGroupResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + value_{visibility, arena, from.value_} {} BlockGroupResponse::BlockGroupResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockGroupResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockGroupResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE BlockGroupResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.calc_type_ = from._impl_.calc_type_; // @@protoc_insertion_point(copy_constructor:tari.rpc.BlockGroupResponse) } -inline PROTOBUF_NDEBUG_INLINE BlockGroupResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE BlockGroupResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : value_{visibility, arena}, - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + value_{visibility, arena} {} -inline void BlockGroupResponse::SharedCtor(::_pb::Arena* arena) { +inline void BlockGroupResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.calc_type_ = {}; } BlockGroupResponse::~BlockGroupResponse() { // @@protoc_insertion_point(destructor:tari.rpc.BlockGroupResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void BlockGroupResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void BlockGroupResponse::SharedDtor(MessageLite& self) { + BlockGroupResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL BlockGroupResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BlockGroupResponse(arena); +} +constexpr auto BlockGroupResponse::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_.value_) + + decltype(BlockGroupResponse::_impl_.value_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(BlockGroupResponse), alignof(BlockGroupResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&BlockGroupResponse::PlacementNew_, + sizeof(BlockGroupResponse), + alignof(BlockGroupResponse)); + } +} +constexpr auto BlockGroupResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_BlockGroupResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.value_.Clear(); - _impl_.calc_type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BlockGroupResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &BlockGroupResponse::ByteSizeLong, + &BlockGroupResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_._cached_size_), + false, + }, + &BlockGroupResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* BlockGroupResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull BlockGroupResponse_class_data_ = + BlockGroupResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BlockGroupResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&BlockGroupResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(BlockGroupResponse_class_data_.tc_table); + return BlockGroupResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BlockGroupResponse::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +BlockGroupResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -7717,15 +10708,16 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BlockGroupResponse::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_BlockGroupResponse_default_instance_._instance, + BlockGroupResponse_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_.calc_type_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BlockGroupResponse, _impl_.calc_type_), 0>(), + {16, 0, 0, PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_.calc_type_)}}, // repeated double value = 1; {::_pbi::TcParser::FastF64P1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_.value_)}}, @@ -7733,75 +10725,108 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BlockGroupResponse::_table_ = { 65535, 65535 }}, {{ // repeated double value = 1; - {PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_.value_), 0, 0, + {PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_.value_), -1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, // .tari.rpc.CalcType calc_type = 2; - {PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_.calc_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + {PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_.calc_type_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void BlockGroupResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockGroupResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* BlockGroupResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.value_.Clear(); + _impl_.calc_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BlockGroupResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BlockGroupResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BlockGroupResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BlockGroupResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockGroupResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated double value = 1; - if (this->_internal_value_size() > 0) { - target = stream->WriteFixedPacked(1, _internal_value(), target); + if (this_._internal_value_size() > 0) { + target = stream->WriteFixedPacked(1, this_._internal_value(), target); } // .tari.rpc.CalcType calc_type = 2; - if (this->_internal_calc_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_calc_type(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_calc_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_calc_type(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockGroupResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BlockGroupResponse::ByteSizeLong(const MessageLite& base) { + const BlockGroupResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t BlockGroupResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockGroupResponse) + const BlockGroupResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockGroupResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated double value = 1; - { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_value_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated double value = 1; + { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_value_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; + } } - // .tari.rpc.CalcType calc_type = 2; - if (this->_internal_calc_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_calc_type()); + { + // .tari.rpc.CalcType calc_type = 2; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_calc_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_calc_type()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -7811,9 +10836,13 @@ void BlockGroupResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, cons (void) cached_has_bits; _this->_internal_mutable_value()->MergeFrom(from._internal_value()); - if (from._internal_calc_type() != 0) { - _this->_impl_.calc_type_ = from._impl_.calc_type_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_calc_type() != 0) { + _this->_impl_.calc_type_ = from._impl_.calc_type_; + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7824,44 +10853,54 @@ void BlockGroupResponse::CopyFrom(const BlockGroupResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool BlockGroupResponse::IsInitialized() const { - return true; -} -void BlockGroupResponse::InternalSwap(BlockGroupResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void BlockGroupResponse::InternalSwap(BlockGroupResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.value_.InternalSwap(&other->_impl_.value_); swap(_impl_.calc_type_, other->_impl_.calc_type_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class HeightRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_._has_bits_); }; -HeightRequest::HeightRequest(::google::protobuf::Arena* arena) +HeightRequest::HeightRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, HeightRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.HeightRequest) } HeightRequest::HeightRequest( - ::google::protobuf::Arena* arena, const HeightRequest& from) - : HeightRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HeightRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, HeightRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE HeightRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE HeightRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void HeightRequest::SharedCtor(::_pb::Arena* arena) { +inline void HeightRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, from_tip_), @@ -7872,52 +10911,62 @@ inline void HeightRequest::SharedCtor(::_pb::Arena* arena) { } HeightRequest::~HeightRequest() { // @@protoc_insertion_point(destructor:tari.rpc.HeightRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void HeightRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void HeightRequest::SharedDtor(MessageLite& self) { + HeightRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL HeightRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) HeightRequest(arena); +} +constexpr auto HeightRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(HeightRequest), + alignof(HeightRequest)); +} +constexpr auto HeightRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_HeightRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.from_tip_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.end_height_) - - reinterpret_cast(&_impl_.from_tip_)) + sizeof(_impl_.end_height_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &HeightRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &HeightRequest::ByteSizeLong, + &HeightRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_._cached_size_), + false, + }, + &HeightRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* HeightRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull HeightRequest_class_data_ = + HeightRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +HeightRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&HeightRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(HeightRequest_class_data_.tc_table); + return HeightRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> HeightRequest::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +HeightRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -7926,7 +10975,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> HeightRequest::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_HeightRequest_default_instance_._instance, + HeightRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::HeightRequest>(), // to_prefetch @@ -7934,99 +10984,142 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> HeightRequest::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 from_tip = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HeightRequest, _impl_.from_tip_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.from_tip_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HeightRequest, _impl_.from_tip_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.from_tip_)}}, // uint64 start_height = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HeightRequest, _impl_.start_height_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.start_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HeightRequest, _impl_.start_height_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.start_height_)}}, // uint64 end_height = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HeightRequest, _impl_.end_height_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.end_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HeightRequest, _impl_.end_height_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.end_height_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 from_tip = 1; - {PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.from_tip_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.from_tip_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 start_height = 2; - {PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.start_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.start_height_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 end_height = 3; - {PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.end_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.end_height_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void HeightRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.HeightRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* HeightRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + ::memset(&_impl_.from_tip_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.end_height_) - + reinterpret_cast(&_impl_.from_tip_)) + sizeof(_impl_.end_height_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL HeightRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const HeightRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL HeightRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const HeightRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.HeightRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 from_tip = 1; - if (this->_internal_from_tip() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_from_tip(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_from_tip() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_from_tip(), target); + } } // uint64 start_height = 2; - if (this->_internal_start_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_start_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_start_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_start_height(), target); + } } // uint64 end_height = 3; - if (this->_internal_end_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_end_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_end_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_end_height(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.HeightRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t HeightRequest::ByteSizeLong(const MessageLite& base) { + const HeightRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t HeightRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.HeightRequest) + const HeightRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.HeightRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 from_tip = 1; - if (this->_internal_from_tip() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_from_tip()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // uint64 from_tip = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_from_tip() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_from_tip()); + } + } + // uint64 start_height = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_start_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_start_height()); + } + } + // uint64 end_height = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_end_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_end_height()); + } + } } - - // uint64 start_height = 2; - if (this->_internal_start_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_start_height()); - } - - // uint64 end_height = 3; - if (this->_internal_end_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_end_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -8035,15 +11128,25 @@ void HeightRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::g ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_from_tip() != 0) { - _this->_impl_.from_tip_ = from._impl_.from_tip_; - } - if (from._internal_start_height() != 0) { - _this->_impl_.start_height_ = from._impl_.start_height_; - } - if (from._internal_end_height() != 0) { - _this->_impl_.end_height_ = from._impl_.end_height_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_from_tip() != 0) { + _this->_impl_.from_tip_ = from._impl_.from_tip_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_start_height() != 0) { + _this->_impl_.start_height_ = from._impl_.start_height_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_end_height() != 0) { + _this->_impl_.end_height_ = from._impl_.end_height_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -8054,13 +11157,11 @@ void HeightRequest::CopyFrom(const HeightRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool HeightRequest::IsInitialized() const { - return true; -} -void HeightRequest::InternalSwap(HeightRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void HeightRequest::InternalSwap(HeightRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.end_height_) + sizeof(HeightRequest::_impl_.end_height_) @@ -8070,32 +11171,44 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class BlockTimingResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_._has_bits_); }; -BlockTimingResponse::BlockTimingResponse(::google::protobuf::Arena* arena) +BlockTimingResponse::BlockTimingResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockTimingResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockTimingResponse) } BlockTimingResponse::BlockTimingResponse( - ::google::protobuf::Arena* arena, const BlockTimingResponse& from) - : BlockTimingResponse(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockTimingResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockTimingResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE BlockTimingResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE BlockTimingResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void BlockTimingResponse::SharedCtor(::_pb::Arena* arena) { +inline void BlockTimingResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, max_), @@ -8106,52 +11219,62 @@ inline void BlockTimingResponse::SharedCtor(::_pb::Arena* arena) { } BlockTimingResponse::~BlockTimingResponse() { // @@protoc_insertion_point(destructor:tari.rpc.BlockTimingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void BlockTimingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void BlockTimingResponse::SharedDtor(MessageLite& self) { + BlockTimingResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL BlockTimingResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BlockTimingResponse(arena); +} +constexpr auto BlockTimingResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BlockTimingResponse), + alignof(BlockTimingResponse)); +} +constexpr auto BlockTimingResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_BlockTimingResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.max_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.avg_) - - reinterpret_cast(&_impl_.max_)) + sizeof(_impl_.avg_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BlockTimingResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &BlockTimingResponse::ByteSizeLong, + &BlockTimingResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_._cached_size_), + false, + }, + &BlockTimingResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* BlockTimingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull BlockTimingResponse_class_data_ = + BlockTimingResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BlockTimingResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&BlockTimingResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(BlockTimingResponse_class_data_.tc_table); + return BlockTimingResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> BlockTimingResponse::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +BlockTimingResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -8160,7 +11283,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> BlockTimingResponse::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_BlockTimingResponse_default_instance_._instance, + BlockTimingResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::BlockTimingResponse>(), // to_prefetch @@ -8168,108 +11292,141 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> BlockTimingResponse::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 max = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockTimingResponse, _impl_.max_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.max_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockTimingResponse, _impl_.max_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.max_)}}, // uint64 min = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockTimingResponse, _impl_.min_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.min_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockTimingResponse, _impl_.min_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.min_)}}, // double avg = 3; {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.avg_)}}, + {25, 2, 0, PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.avg_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 max = 1; - {PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.max_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.max_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 min = 2; - {PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.min_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.min_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // double avg = 3; - {PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.avg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + {PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.avg_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void BlockTimingResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockTimingResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* BlockTimingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + ::memset(&_impl_.max_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.avg_) - + reinterpret_cast(&_impl_.max_)) + sizeof(_impl_.avg_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BlockTimingResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BlockTimingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BlockTimingResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BlockTimingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockTimingResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 max = 1; - if (this->_internal_max() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_max(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_max() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_max(), target); + } } // uint64 min = 2; - if (this->_internal_min() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_min(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_min() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_min(), target); + } } // double avg = 3; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_avg = this->_internal_avg(); - ::uint64_t raw_avg; - memcpy(&raw_avg, &tmp_avg, sizeof(tmp_avg)); - if (raw_avg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_avg(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (::absl::bit_cast<::uint64_t>(this_._internal_avg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 3, this_._internal_avg(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockTimingResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BlockTimingResponse::ByteSizeLong(const MessageLite& base) { + const BlockTimingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t BlockTimingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockTimingResponse) + const BlockTimingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockTimingResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 max = 1; - if (this->_internal_max() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_max()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // uint64 max = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_max() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_max()); + } + } + // uint64 min = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_min() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_min()); + } + } + // double avg = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (::absl::bit_cast<::uint64_t>(this_._internal_avg()) != 0) { + total_size += 9; + } + } } - - // uint64 min = 2; - if (this->_internal_min() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_min()); - } - - // double avg = 3; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_avg = this->_internal_avg(); - ::uint64_t raw_avg; - memcpy(&raw_avg, &tmp_avg, sizeof(tmp_avg)); - if (raw_avg != 0) { - total_size += 9; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -8278,20 +11435,25 @@ void BlockTimingResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, con ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_max() != 0) { - _this->_impl_.max_ = from._impl_.max_; - } - if (from._internal_min() != 0) { - _this->_impl_.min_ = from._impl_.min_; - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_avg = from._internal_avg(); - ::uint64_t raw_avg; - memcpy(&raw_avg, &tmp_avg, sizeof(tmp_avg)); - if (raw_avg != 0) { - _this->_impl_.avg_ = from._impl_.avg_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_max() != 0) { + _this->_impl_.max_ = from._impl_.max_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_min() != 0) { + _this->_impl_.min_ = from._impl_.min_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (::absl::bit_cast<::uint64_t>(from._internal_avg()) != 0) { + _this->_impl_.avg_ = from._impl_.avg_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -8302,13 +11464,11 @@ void BlockTimingResponse::CopyFrom(const BlockTimingResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool BlockTimingResponse::IsInitialized() const { - return true; -} -void BlockTimingResponse::InternalSwap(BlockTimingResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void BlockTimingResponse::InternalSwap(BlockTimingResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.avg_) + sizeof(BlockTimingResponse::_impl_.avg_) @@ -8318,95 +11478,119 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetHeaderByHashRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetHeaderByHashRequest, _impl_._has_bits_); }; -GetHeaderByHashRequest::GetHeaderByHashRequest(::google::protobuf::Arena* arena) +GetHeaderByHashRequest::GetHeaderByHashRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetHeaderByHashRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetHeaderByHashRequest) } -inline PROTOBUF_NDEBUG_INLINE GetHeaderByHashRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : hash_(arena, from.hash_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetHeaderByHashRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetHeaderByHashRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + hash_(arena, from.hash_) {} GetHeaderByHashRequest::GetHeaderByHashRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetHeaderByHashRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetHeaderByHashRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetHeaderByHashRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.GetHeaderByHashRequest) } -inline PROTOBUF_NDEBUG_INLINE GetHeaderByHashRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetHeaderByHashRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : hash_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + hash_(arena) {} -inline void GetHeaderByHashRequest::SharedCtor(::_pb::Arena* arena) { +inline void GetHeaderByHashRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetHeaderByHashRequest::~GetHeaderByHashRequest() { // @@protoc_insertion_point(destructor:tari.rpc.GetHeaderByHashRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetHeaderByHashRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.hash_.Destroy(); - _impl_.~Impl_(); +inline void GetHeaderByHashRequest::SharedDtor(MessageLite& self) { + GetHeaderByHashRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.hash_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL GetHeaderByHashRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetHeaderByHashRequest(arena); +} +constexpr auto GetHeaderByHashRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetHeaderByHashRequest), + alignof(GetHeaderByHashRequest)); +} +constexpr auto GetHeaderByHashRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetHeaderByHashRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.hash_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetHeaderByHashRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetHeaderByHashRequest::ByteSizeLong, + &GetHeaderByHashRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetHeaderByHashRequest, _impl_._cached_size_), + false, + }, + &GetHeaderByHashRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetHeaderByHashRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetHeaderByHashRequest_class_data_ = + GetHeaderByHashRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetHeaderByHashRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetHeaderByHashRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetHeaderByHashRequest_class_data_.tc_table); + return GetHeaderByHashRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetHeaderByHashRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +GetHeaderByHashRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetHeaderByHashRequest, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -8415,7 +11599,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetHeaderByHashRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GetHeaderByHashRequest_default_instance_._instance, + GetHeaderByHashRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetHeaderByHashRequest>(), // to_prefetch @@ -8423,59 +11608,93 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetHeaderByHashRequest::_table_ = { }, {{ // bytes hash = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetHeaderByHashRequest, _impl_.hash_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetHeaderByHashRequest, _impl_.hash_)}}, }}, {{ 65535, 65535 }}, {{ // bytes hash = 1; - {PROTOBUF_FIELD_OFFSET(GetHeaderByHashRequest, _impl_.hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetHeaderByHashRequest, _impl_.hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void GetHeaderByHashRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetHeaderByHashRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetHeaderByHashRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.hash_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetHeaderByHashRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetHeaderByHashRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetHeaderByHashRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetHeaderByHashRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetHeaderByHashRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes hash = 1; - if (!this->_internal_hash().empty()) { - const std::string& _s = this->_internal_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_hash().empty()) { + const ::std::string& _s = this_._internal_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetHeaderByHashRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetHeaderByHashRequest::ByteSizeLong(const MessageLite& base) { + const GetHeaderByHashRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetHeaderByHashRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetHeaderByHashRequest) + const GetHeaderByHashRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetHeaderByHashRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes hash = 1; - if (!this->_internal_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_hash()); + { + // bytes hash = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_hash()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -8484,9 +11703,17 @@ void GetHeaderByHashRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_hash().empty()) { - _this->_internal_set_hash(from._internal_hash()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_hash().empty()) { + _this->_internal_set_hash(from._internal_hash()); + } else { + if (_this->_impl_.hash_.IsDefault()) { + _this->_internal_set_hash(""); + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -8497,61 +11724,67 @@ void GetHeaderByHashRequest::CopyFrom(const GetHeaderByHashRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetHeaderByHashRequest::IsInitialized() const { - return true; -} -void GetHeaderByHashRequest::InternalSwap(GetHeaderByHashRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetHeaderByHashRequest::InternalSwap(GetHeaderByHashRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.hash_, &other->_impl_.hash_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class BlockHeaderResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_._has_bits_); }; void BlockHeaderResponse::clear_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.header_ != nullptr) _impl_.header_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } -BlockHeaderResponse::BlockHeaderResponse(::google::protobuf::Arena* arena) +BlockHeaderResponse::BlockHeaderResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockHeaderResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockHeaderResponse) } -inline PROTOBUF_NDEBUG_INLINE BlockHeaderResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE BlockHeaderResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::BlockHeaderResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} BlockHeaderResponse::BlockHeaderResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockHeaderResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockHeaderResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE BlockHeaderResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.header_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockHeader>( - arena, *from._impl_.header_) - : nullptr; + _impl_.header_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.header_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, confirmations_), reinterpret_cast(&from._impl_) + @@ -8562,12 +11795,12 @@ BlockHeaderResponse::BlockHeaderResponse( // @@protoc_insertion_point(copy_constructor:tari.rpc.BlockHeaderResponse) } -inline PROTOBUF_NDEBUG_INLINE BlockHeaderResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE BlockHeaderResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void BlockHeaderResponse::SharedCtor(::_pb::Arena* arena) { +inline void BlockHeaderResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, header_), @@ -8578,57 +11811,61 @@ inline void BlockHeaderResponse::SharedCtor(::_pb::Arena* arena) { } BlockHeaderResponse::~BlockHeaderResponse() { // @@protoc_insertion_point(destructor:tari.rpc.BlockHeaderResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void BlockHeaderResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.header_; - _impl_.~Impl_(); +inline void BlockHeaderResponse::SharedDtor(MessageLite& self) { + BlockHeaderResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.header_; + this_._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, - }, +inline void* PROTOBUF_NONNULL BlockHeaderResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BlockHeaderResponse(arena); +} +constexpr auto BlockHeaderResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BlockHeaderResponse), + alignof(BlockHeaderResponse)); +} +constexpr auto BlockHeaderResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_BlockHeaderResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.header_ != nullptr); - _impl_.header_->Clear(); - } - ::memset(&_impl_.confirmations_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_transactions_) - - reinterpret_cast(&_impl_.confirmations_)) + sizeof(_impl_.num_transactions_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BlockHeaderResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &BlockHeaderResponse::ByteSizeLong, + &BlockHeaderResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_._cached_size_), + false, + }, + &BlockHeaderResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* BlockHeaderResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull BlockHeaderResponse_class_data_ = + BlockHeaderResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BlockHeaderResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&BlockHeaderResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(BlockHeaderResponse_class_data_.tc_table); + return BlockHeaderResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 1, 0, 2> BlockHeaderResponse::_table_ = { +const ::_pbi::TcParseTable<3, 5, 1, 0, 2> +BlockHeaderResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_._has_bits_), 0, // no _extensions_ @@ -8639,7 +11876,8 @@ const ::_pbi::TcParseTable<3, 5, 1, 0, 2> BlockHeaderResponse::_table_ = { 5, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_BlockHeaderResponse_default_instance_._instance, + BlockHeaderResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::BlockHeaderResponse>(), // to_prefetch @@ -8650,17 +11888,17 @@ const ::_pbi::TcParseTable<3, 5, 1, 0, 2> BlockHeaderResponse::_table_ = { {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.header_)}}, // uint64 confirmations = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeaderResponse, _impl_.confirmations_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.confirmations_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeaderResponse, _impl_.confirmations_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.confirmations_)}}, // uint64 reward = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeaderResponse, _impl_.reward_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.reward_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeaderResponse, _impl_.reward_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.reward_)}}, // uint64 difficulty = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeaderResponse, _impl_.difficulty_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.difficulty_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeaderResponse, _impl_.difficulty_), 3>(), + {32, 3, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.difficulty_)}}, // uint32 num_transactions = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BlockHeaderResponse, _impl_.num_transactions_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.num_transactions_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BlockHeaderResponse, _impl_.num_transactions_), 4>(), + {40, 4, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.num_transactions_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ @@ -8670,117 +11908,168 @@ const ::_pbi::TcParseTable<3, 5, 1, 0, 2> BlockHeaderResponse::_table_ = { {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.header_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint64 confirmations = 2; - {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.confirmations_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.confirmations_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 reward = 3; - {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.reward_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.reward_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 difficulty = 4; - {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.difficulty_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.difficulty_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint32 num_transactions = 5; - {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.num_transactions_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::BlockHeader>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.num_transactions_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::BlockHeader>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void BlockHeaderResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockHeaderResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* BlockHeaderResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.header_ != nullptr); + _impl_.header_->Clear(); + } + if ((cached_has_bits & 0x0000001eu) != 0) { + ::memset(&_impl_.confirmations_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.num_transactions_) - + reinterpret_cast(&_impl_.confirmations_)) + sizeof(_impl_.num_transactions_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BlockHeaderResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BlockHeaderResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BlockHeaderResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BlockHeaderResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockHeaderResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.BlockHeader header = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.header_, _impl_.header_->GetCachedSize(), target, stream); + 1, *this_._impl_.header_, this_._impl_.header_->GetCachedSize(), target, + stream); } // uint64 confirmations = 2; - if (this->_internal_confirmations() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_confirmations(), target); + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_confirmations() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_confirmations(), target); + } } // uint64 reward = 3; - if (this->_internal_reward() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_reward(), target); + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_reward() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_reward(), target); + } } // uint64 difficulty = 4; - if (this->_internal_difficulty() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_difficulty(), target); + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_difficulty() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_difficulty(), target); + } } // uint32 num_transactions = 5; - if (this->_internal_num_transactions() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 5, this->_internal_num_transactions(), target); + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_num_transactions() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 5, this_._internal_num_transactions(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockHeaderResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BlockHeaderResponse::ByteSizeLong(const MessageLite& base) { + const BlockHeaderResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t BlockHeaderResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockHeaderResponse) + const BlockHeaderResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockHeaderResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.BlockHeader header = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.header_); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + // .tari.rpc.BlockHeader header = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.header_); + } + // uint64 confirmations = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_confirmations() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_confirmations()); + } + } + // uint64 reward = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_reward() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_reward()); + } + } + // uint64 difficulty = 4; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_difficulty() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_difficulty()); + } + } + // uint32 num_transactions = 5; + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_num_transactions() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_num_transactions()); + } + } } - - // uint64 confirmations = 2; - if (this->_internal_confirmations() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_confirmations()); - } - - // uint64 reward = 3; - if (this->_internal_reward() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_reward()); - } - - // uint64 difficulty = 4; - if (this->_internal_difficulty() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_difficulty()); - } - - // uint32 num_transactions = 5; - if (this->_internal_num_transactions() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_num_transactions()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -8791,26 +12080,35 @@ void BlockHeaderResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, con (void) cached_has_bits; 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 ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(from._impl_.header_ != nullptr); + if (_this->_impl_.header_ == nullptr) { + _this->_impl_.header_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.header_); + } else { + _this->_impl_.header_->MergeFrom(*from._impl_.header_); + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_confirmations() != 0) { + _this->_impl_.confirmations_ = from._impl_.confirmations_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_reward() != 0) { + _this->_impl_.reward_ = from._impl_.reward_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_difficulty() != 0) { + _this->_impl_.difficulty_ = from._impl_.difficulty_; + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (from._internal_num_transactions() != 0) { + _this->_impl_.num_transactions_ = from._impl_.num_transactions_; + } } - } - if (from._internal_confirmations() != 0) { - _this->_impl_.confirmations_ = from._impl_.confirmations_; - } - if (from._internal_reward() != 0) { - _this->_impl_.reward_ = from._impl_.reward_; - } - if (from._internal_difficulty() != 0) { - _this->_impl_.difficulty_ = from._impl_.difficulty_; - } - if (from._internal_num_transactions() != 0) { - _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_); @@ -8823,12 +12121,9 @@ void BlockHeaderResponse::CopyFrom(const BlockHeaderResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool BlockHeaderResponse::IsInitialized() const { - return true; -} -void BlockHeaderResponse::InternalSwap(BlockHeaderResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void BlockHeaderResponse::InternalSwap(BlockHeaderResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< @@ -8840,32 +12135,44 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ListHeadersRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_._has_bits_); }; -ListHeadersRequest::ListHeadersRequest(::google::protobuf::Arena* arena) +ListHeadersRequest::ListHeadersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ListHeadersRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.ListHeadersRequest) } ListHeadersRequest::ListHeadersRequest( - ::google::protobuf::Arena* arena, const ListHeadersRequest& from) - : ListHeadersRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ListHeadersRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ListHeadersRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE ListHeadersRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE ListHeadersRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void ListHeadersRequest::SharedCtor(::_pb::Arena* arena) { +inline void ListHeadersRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, from_height_), @@ -8876,52 +12183,62 @@ inline void ListHeadersRequest::SharedCtor(::_pb::Arena* arena) { } ListHeadersRequest::~ListHeadersRequest() { // @@protoc_insertion_point(destructor:tari.rpc.ListHeadersRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void ListHeadersRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void ListHeadersRequest::SharedDtor(MessageLite& self) { + ListHeadersRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL ListHeadersRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ListHeadersRequest(arena); +} +constexpr auto ListHeadersRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ListHeadersRequest), + alignof(ListHeadersRequest)); +} +constexpr auto ListHeadersRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ListHeadersRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.from_height_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.sorting_) - - reinterpret_cast(&_impl_.from_height_)) + sizeof(_impl_.sorting_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ListHeadersRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ListHeadersRequest::ByteSizeLong, + &ListHeadersRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_._cached_size_), + false, + }, + &ListHeadersRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* ListHeadersRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ListHeadersRequest_class_data_ = + ListHeadersRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ListHeadersRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ListHeadersRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ListHeadersRequest_class_data_.tc_table); + return ListHeadersRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> ListHeadersRequest::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +ListHeadersRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -8930,7 +12247,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> ListHeadersRequest::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ListHeadersRequest_default_instance_._instance, + ListHeadersRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::ListHeadersRequest>(), // to_prefetch @@ -8938,99 +12256,142 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> ListHeadersRequest::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 from_height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListHeadersRequest, _impl_.from_height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.from_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListHeadersRequest, _impl_.from_height_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.from_height_)}}, // uint64 num_headers = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListHeadersRequest, _impl_.num_headers_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.num_headers_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListHeadersRequest, _impl_.num_headers_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.num_headers_)}}, // .tari.rpc.Sorting sorting = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ListHeadersRequest, _impl_.sorting_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.sorting_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ListHeadersRequest, _impl_.sorting_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.sorting_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 from_height = 1; - {PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.from_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.from_height_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 num_headers = 2; - {PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.num_headers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.num_headers_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // .tari.rpc.Sorting sorting = 3; - {PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.sorting_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + {PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.sorting_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void ListHeadersRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ListHeadersRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* ListHeadersRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + ::memset(&_impl_.from_height_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.sorting_) - + reinterpret_cast(&_impl_.from_height_)) + sizeof(_impl_.sorting_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ListHeadersRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ListHeadersRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ListHeadersRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ListHeadersRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ListHeadersRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 from_height = 1; - if (this->_internal_from_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_from_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_from_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_from_height(), target); + } } // uint64 num_headers = 2; - if (this->_internal_num_headers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_num_headers(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_num_headers() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_num_headers(), target); + } } // .tari.rpc.Sorting sorting = 3; - if (this->_internal_sorting() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_sorting(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_sorting() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_sorting(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ListHeadersRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ListHeadersRequest::ByteSizeLong(const MessageLite& base) { + const ListHeadersRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t ListHeadersRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ListHeadersRequest) + const ListHeadersRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ListHeadersRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 from_height = 1; - if (this->_internal_from_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_from_height()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // uint64 from_height = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_from_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_from_height()); + } + } + // uint64 num_headers = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_num_headers() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_num_headers()); + } + } + // .tari.rpc.Sorting sorting = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_sorting() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_sorting()); + } + } } - - // uint64 num_headers = 2; - if (this->_internal_num_headers() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_num_headers()); - } - - // .tari.rpc.Sorting sorting = 3; - if (this->_internal_sorting() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_sorting()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -9039,15 +12400,25 @@ void ListHeadersRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, cons ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_from_height() != 0) { - _this->_impl_.from_height_ = from._impl_.from_height_; - } - if (from._internal_num_headers() != 0) { - _this->_impl_.num_headers_ = from._impl_.num_headers_; - } - if (from._internal_sorting() != 0) { - _this->_impl_.sorting_ = from._impl_.sorting_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_from_height() != 0) { + _this->_impl_.from_height_ = from._impl_.from_height_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_num_headers() != 0) { + _this->_impl_.num_headers_ = from._impl_.num_headers_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_sorting() != 0) { + _this->_impl_.sorting_ = from._impl_.sorting_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -9058,13 +12429,11 @@ void ListHeadersRequest::CopyFrom(const ListHeadersRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListHeadersRequest::IsInitialized() const { - return true; -} -void ListHeadersRequest::InternalSwap(ListHeadersRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void ListHeadersRequest::InternalSwap(ListHeadersRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.sorting_) + sizeof(ListHeadersRequest::_impl_.sorting_) @@ -9074,9 +12443,7 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -9084,84 +12451,117 @@ class GetBlocksRequest::_Internal { public: }; -GetBlocksRequest::GetBlocksRequest(::google::protobuf::Arena* arena) +GetBlocksRequest::GetBlocksRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetBlocksRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetBlocksRequest) } -inline PROTOBUF_NDEBUG_INLINE GetBlocksRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE GetBlocksRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetBlocksRequest& from_msg) : heights_{visibility, arena, from.heights_}, _heights_cached_byte_size_{0}, _cached_size_{0} {} GetBlocksRequest::GetBlocksRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetBlocksRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetBlocksRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetBlocksRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.GetBlocksRequest) } -inline PROTOBUF_NDEBUG_INLINE GetBlocksRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetBlocksRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : heights_{visibility, arena}, _heights_cached_byte_size_{0}, _cached_size_{0} {} -inline void GetBlocksRequest::SharedCtor(::_pb::Arena* arena) { +inline void GetBlocksRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetBlocksRequest::~GetBlocksRequest() { // @@protoc_insertion_point(destructor:tari.rpc.GetBlocksRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetBlocksRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void GetBlocksRequest::SharedDtor(MessageLite& self) { + GetBlocksRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL GetBlocksRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetBlocksRequest(arena); +} +constexpr auto GetBlocksRequest::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GetBlocksRequest, _impl_.heights_) + + decltype(GetBlocksRequest::_impl_.heights_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetBlocksRequest), alignof(GetBlocksRequest), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GetBlocksRequest::PlacementNew_, + sizeof(GetBlocksRequest), + alignof(GetBlocksRequest)); + } +} +constexpr auto GetBlocksRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetBlocksRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.heights_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetBlocksRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetBlocksRequest::ByteSizeLong, + &GetBlocksRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetBlocksRequest, _impl_._cached_size_), + false, + }, + &GetBlocksRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetBlocksRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetBlocksRequest_class_data_ = + GetBlocksRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetBlocksRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetBlocksRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetBlocksRequest_class_data_.tc_table); + return GetBlocksRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetBlocksRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +GetBlocksRequest::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -9172,7 +12572,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetBlocksRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GetBlocksRequest_default_instance_._instance, + GetBlocksRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetBlocksRequest>(), // to_prefetch @@ -9192,57 +12593,78 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetBlocksRequest::_table_ = { {{ }}, }; +PROTOBUF_NOINLINE void GetBlocksRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetBlocksRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetBlocksRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.heights_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetBlocksRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetBlocksRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetBlocksRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetBlocksRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetBlocksRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated uint64 heights = 1; { - int byte_size = _impl_._heights_cached_byte_size_.Get(); + int byte_size = this_._impl_._heights_cached_byte_size_.Get(); if (byte_size > 0) { target = stream->WriteUInt64Packed( - 1, _internal_heights(), byte_size, target); + 1, this_._internal_heights(), byte_size, target); } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetBlocksRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetBlocksRequest::ByteSizeLong(const MessageLite& base) { + const GetBlocksRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetBlocksRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetBlocksRequest) + const GetBlocksRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetBlocksRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated uint64 heights = 1; - { - std::size_t data_size = ::_pbi::WireFormatLite::UInt64Size( - this->_internal_heights()) - ; - _impl_._heights_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated uint64 heights = 1; + { + total_size += + ::_pbi::WireFormatLite::UInt64SizeWithPackedTagSize( + this_._internal_heights(), 1, + this_._impl_._heights_cached_byte_size_); + } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -9262,20 +12684,15 @@ void GetBlocksRequest::CopyFrom(const GetBlocksRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetBlocksRequest::IsInitialized() const { - return true; -} -void GetBlocksRequest::InternalSwap(GetBlocksRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetBlocksRequest::InternalSwap(GetBlocksRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.heights_.InternalSwap(&other->_impl_.heights_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -9284,85 +12701,118 @@ class GetBlocksResponse::_Internal { }; void GetBlocksResponse::clear_blocks() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.blocks_.Clear(); } -GetBlocksResponse::GetBlocksResponse(::google::protobuf::Arena* arena) +GetBlocksResponse::GetBlocksResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetBlocksResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetBlocksResponse) } -inline PROTOBUF_NDEBUG_INLINE GetBlocksResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE GetBlocksResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetBlocksResponse& from_msg) : blocks_{visibility, arena, from.blocks_}, _cached_size_{0} {} GetBlocksResponse::GetBlocksResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetBlocksResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetBlocksResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetBlocksResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.GetBlocksResponse) } -inline PROTOBUF_NDEBUG_INLINE GetBlocksResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetBlocksResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : blocks_{visibility, arena}, _cached_size_{0} {} -inline void GetBlocksResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetBlocksResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetBlocksResponse::~GetBlocksResponse() { // @@protoc_insertion_point(destructor:tari.rpc.GetBlocksResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetBlocksResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void GetBlocksResponse::SharedDtor(MessageLite& self) { + GetBlocksResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL GetBlocksResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetBlocksResponse(arena); +} +constexpr auto GetBlocksResponse::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GetBlocksResponse, _impl_.blocks_) + + decltype(GetBlocksResponse::_impl_.blocks_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetBlocksResponse), alignof(GetBlocksResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GetBlocksResponse::PlacementNew_, + sizeof(GetBlocksResponse), + alignof(GetBlocksResponse)); + } +} +constexpr auto GetBlocksResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetBlocksResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.blocks_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetBlocksResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetBlocksResponse::ByteSizeLong, + &GetBlocksResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetBlocksResponse, _impl_._cached_size_), + false, + }, + &GetBlocksResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetBlocksResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetBlocksResponse_class_data_ = + GetBlocksResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetBlocksResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetBlocksResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetBlocksResponse_class_data_.tc_table); + return GetBlocksResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetBlocksResponse::_table_ = { +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +GetBlocksResponse::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -9373,7 +12823,8 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetBlocksResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetBlocksResponse_default_instance_._instance, + GetBlocksResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetBlocksResponse>(), // to_prefetch @@ -9388,56 +12839,87 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetBlocksResponse::_table_ = { // repeated .tari.rpc.HistoricalBlock blocks = 1; {PROTOBUF_FIELD_OFFSET(GetBlocksResponse, _impl_.blocks_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::HistoricalBlock>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::HistoricalBlock>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void GetBlocksResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetBlocksResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetBlocksResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.blocks_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetBlocksResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetBlocksResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetBlocksResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetBlocksResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetBlocksResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated .tari.rpc.HistoricalBlock blocks = 1; for (unsigned i = 0, n = static_cast( - this->_internal_blocks_size()); + this_._internal_blocks_size()); i < n; i++) { - const auto& repfield = this->_internal_blocks().Get(i); + const auto& repfield = this_._internal_blocks().Get(i); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, repfield, repfield.GetCachedSize(), target, stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetBlocksResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetBlocksResponse::ByteSizeLong(const MessageLite& base) { + const GetBlocksResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetBlocksResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetBlocksResponse) + const GetBlocksResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetBlocksResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // 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); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // 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); + } + } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -9458,48 +12940,57 @@ void GetBlocksResponse::CopyFrom(const GetBlocksResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetBlocksResponse::IsInitialized() const { - return true; -} -void GetBlocksResponse::InternalSwap(GetBlocksResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetBlocksResponse::InternalSwap(GetBlocksResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.blocks_.InternalSwap(&other->_impl_.blocks_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class MetaData::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(MetaData, _impl_._has_bits_); }; -MetaData::MetaData(::google::protobuf::Arena* arena) +MetaData::MetaData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, MetaData_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.MetaData) } -inline PROTOBUF_NDEBUG_INLINE MetaData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : best_block_hash_(arena, from.best_block_hash_), - accumulated_difficulty_(arena, from.accumulated_difficulty_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE MetaData::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::MetaData& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + best_block_hash_(arena, from.best_block_hash_), + accumulated_difficulty_(arena, from.accumulated_difficulty_) {} MetaData::MetaData( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MetaData& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, MetaData_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE MetaData* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, best_block_height_), reinterpret_cast(&from._impl_) + @@ -9510,14 +13001,14 @@ MetaData::MetaData( // @@protoc_insertion_point(copy_constructor:tari.rpc.MetaData) } -inline PROTOBUF_NDEBUG_INLINE MetaData::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE MetaData::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : best_block_hash_(arena), - accumulated_difficulty_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + best_block_hash_(arena), + accumulated_difficulty_(arena) {} -inline void MetaData::SharedCtor(::_pb::Arena* arena) { +inline void MetaData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, best_block_height_), @@ -9528,56 +13019,64 @@ inline void MetaData::SharedCtor(::_pb::Arena* arena) { } MetaData::~MetaData() { // @@protoc_insertion_point(destructor:tari.rpc.MetaData) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void MetaData::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.best_block_hash_.Destroy(); - _impl_.accumulated_difficulty_.Destroy(); - _impl_.~Impl_(); +inline void MetaData::SharedDtor(MessageLite& self) { + MetaData& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.best_block_hash_.Destroy(); + this_._impl_.accumulated_difficulty_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL MetaData::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) MetaData(arena); +} +constexpr auto MetaData::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MetaData), + alignof(MetaData)); +} +constexpr auto MetaData::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_MetaData_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.best_block_hash_.ClearToEmpty(); - _impl_.accumulated_difficulty_.ClearToEmpty(); - ::memset(&_impl_.best_block_height_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.timestamp_) - - reinterpret_cast(&_impl_.best_block_height_)) + sizeof(_impl_.timestamp_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MetaData::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &MetaData::ByteSizeLong, + &MetaData::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MetaData, _impl_._cached_size_), + false, + }, + &MetaData::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* MetaData::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull MetaData_class_data_ = + MetaData::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +MetaData::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&MetaData_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(MetaData_class_data_.tc_table); + return MetaData_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 0, 2> MetaData::_table_ = { +const ::_pbi::TcParseTable<3, 5, 0, 0, 2> +MetaData::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(MetaData, _impl_._has_bits_), 0, // no _extensions_ 7, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -9586,7 +13085,8 @@ const ::_pbi::TcParseTable<3, 5, 0, 0, 2> MetaData::_table_ = { 5, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_MetaData_default_instance_._instance, + MetaData_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::MetaData>(), // to_prefetch @@ -9594,137 +13094,194 @@ const ::_pbi::TcParseTable<3, 5, 0, 0, 2> MetaData::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 best_block_height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MetaData, _impl_.best_block_height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.best_block_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MetaData, _impl_.best_block_height_), 2>(), + {8, 2, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.best_block_height_)}}, // bytes best_block_hash = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.best_block_hash_)}}, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.best_block_hash_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, // bytes accumulated_difficulty = 5; {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.accumulated_difficulty_)}}, + {42, 1, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.accumulated_difficulty_)}}, // uint64 pruned_height = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MetaData, _impl_.pruned_height_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.pruned_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MetaData, _impl_.pruned_height_), 3>(), + {48, 3, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.pruned_height_)}}, // uint64 timestamp = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MetaData, _impl_.timestamp_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.timestamp_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MetaData, _impl_.timestamp_), 4>(), + {56, 4, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.timestamp_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 best_block_height = 1; - {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.best_block_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.best_block_height_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes best_block_hash = 2; - {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.best_block_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.best_block_hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes accumulated_difficulty = 5; - {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.accumulated_difficulty_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.accumulated_difficulty_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint64 pruned_height = 6; - {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.pruned_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.pruned_height_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 timestamp = 7; - {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.timestamp_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.timestamp_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void MetaData::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.MetaData) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* MetaData::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.best_block_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.accumulated_difficulty_.ClearNonDefaultToEmpty(); + } + } + if ((cached_has_bits & 0x0000001cu) != 0) { + ::memset(&_impl_.best_block_height_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.timestamp_) - + reinterpret_cast(&_impl_.best_block_height_)) + sizeof(_impl_.timestamp_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL MetaData::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const MetaData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL MetaData::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const MetaData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.MetaData) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 best_block_height = 1; - if (this->_internal_best_block_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_best_block_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_best_block_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_best_block_height(), target); + } } // bytes best_block_hash = 2; - if (!this->_internal_best_block_hash().empty()) { - const std::string& _s = this->_internal_best_block_hash(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_best_block_hash().empty()) { + const ::std::string& _s = this_._internal_best_block_hash(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } // bytes accumulated_difficulty = 5; - if (!this->_internal_accumulated_difficulty().empty()) { - const std::string& _s = this->_internal_accumulated_difficulty(); - target = stream->WriteBytesMaybeAliased(5, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_accumulated_difficulty().empty()) { + const ::std::string& _s = this_._internal_accumulated_difficulty(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } // uint64 pruned_height = 6; - if (this->_internal_pruned_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 6, this->_internal_pruned_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (this_._internal_pruned_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 6, this_._internal_pruned_height(), target); + } } // uint64 timestamp = 7; - if (this->_internal_timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 7, this->_internal_timestamp(), target); + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (this_._internal_timestamp() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 7, this_._internal_timestamp(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.MetaData) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t MetaData::ByteSizeLong(const MessageLite& base) { + const MetaData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t MetaData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.MetaData) + const MetaData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.MetaData) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes best_block_hash = 2; - if (!this->_internal_best_block_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_best_block_hash()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + // bytes best_block_hash = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_best_block_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_best_block_hash()); + } + } + // bytes accumulated_difficulty = 5; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_accumulated_difficulty().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_accumulated_difficulty()); + } + } + // uint64 best_block_height = 1; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_best_block_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_best_block_height()); + } + } + // uint64 pruned_height = 6; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_pruned_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_pruned_height()); + } + } + // uint64 timestamp = 7; + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_timestamp() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_timestamp()); + } + } } - - // bytes accumulated_difficulty = 5; - if (!this->_internal_accumulated_difficulty().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_accumulated_difficulty()); - } - - // uint64 best_block_height = 1; - if (this->_internal_best_block_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_best_block_height()); - } - - // uint64 pruned_height = 6; - if (this->_internal_pruned_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_pruned_height()); - } - - // uint64 timestamp = 7; - if (this->_internal_timestamp() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_timestamp()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -9733,21 +13290,43 @@ void MetaData::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_best_block_hash().empty()) { - _this->_internal_set_best_block_hash(from._internal_best_block_hash()); - } - if (!from._internal_accumulated_difficulty().empty()) { - _this->_internal_set_accumulated_difficulty(from._internal_accumulated_difficulty()); - } - if (from._internal_best_block_height() != 0) { - _this->_impl_.best_block_height_ = from._impl_.best_block_height_; - } - if (from._internal_pruned_height() != 0) { - _this->_impl_.pruned_height_ = from._impl_.pruned_height_; - } - if (from._internal_timestamp() != 0) { - _this->_impl_.timestamp_ = from._impl_.timestamp_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_best_block_hash().empty()) { + _this->_internal_set_best_block_hash(from._internal_best_block_hash()); + } else { + if (_this->_impl_.best_block_hash_.IsDefault()) { + _this->_internal_set_best_block_hash(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_accumulated_difficulty().empty()) { + _this->_internal_set_accumulated_difficulty(from._internal_accumulated_difficulty()); + } else { + if (_this->_impl_.accumulated_difficulty_.IsDefault()) { + _this->_internal_set_accumulated_difficulty(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_best_block_height() != 0) { + _this->_impl_.best_block_height_ = from._impl_.best_block_height_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_pruned_height() != 0) { + _this->_impl_.pruned_height_ = from._impl_.pruned_height_; + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (from._internal_timestamp() != 0) { + _this->_impl_.timestamp_ = from._impl_.timestamp_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -9758,15 +13337,13 @@ void MetaData::CopyFrom(const MetaData& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MetaData::IsInitialized() const { - return true; -} -void MetaData::InternalSwap(MetaData* PROTOBUF_RESTRICT other) { - using std::swap; +void MetaData::InternalSwap(MetaData* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.best_block_hash_, &other->_impl_.best_block_hash_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.accumulated_difficulty_, &other->_impl_.accumulated_difficulty_, arena); ::google::protobuf::internal::memswap< @@ -9778,36 +13355,48 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SyncInfoResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_._has_bits_); }; -SyncInfoResponse::SyncInfoResponse(::google::protobuf::Arena* arena) +SyncInfoResponse::SyncInfoResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SyncInfoResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.SyncInfoResponse) } -inline PROTOBUF_NDEBUG_INLINE SyncInfoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : peer_node_id_{visibility, arena, from.peer_node_id_}, - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE SyncInfoResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::SyncInfoResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + peer_node_id_{visibility, arena, from.peer_node_id_} {} SyncInfoResponse::SyncInfoResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SyncInfoResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SyncInfoResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SyncInfoResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, tip_height_), reinterpret_cast(&from._impl_) + @@ -9818,13 +13407,13 @@ SyncInfoResponse::SyncInfoResponse( // @@protoc_insertion_point(copy_constructor:tari.rpc.SyncInfoResponse) } -inline PROTOBUF_NDEBUG_INLINE SyncInfoResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE SyncInfoResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : peer_node_id_{visibility, arena}, - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + peer_node_id_{visibility, arena} {} -inline void SyncInfoResponse::SharedCtor(::_pb::Arena* arena) { +inline void SyncInfoResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, tip_height_), @@ -9835,53 +13424,74 @@ inline void SyncInfoResponse::SharedCtor(::_pb::Arena* arena) { } SyncInfoResponse::~SyncInfoResponse() { // @@protoc_insertion_point(destructor:tari.rpc.SyncInfoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void SyncInfoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void SyncInfoResponse::SharedDtor(MessageLite& self) { + SyncInfoResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL SyncInfoResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SyncInfoResponse(arena); +} +constexpr auto SyncInfoResponse::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.peer_node_id_) + + decltype(SyncInfoResponse::_impl_.peer_node_id_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SyncInfoResponse), alignof(SyncInfoResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SyncInfoResponse::PlacementNew_, + sizeof(SyncInfoResponse), + alignof(SyncInfoResponse)); + } +} +constexpr auto SyncInfoResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SyncInfoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.peer_node_id_.Clear(); - ::memset(&_impl_.tip_height_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.local_height_) - - reinterpret_cast(&_impl_.tip_height_)) + sizeof(_impl_.local_height_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SyncInfoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SyncInfoResponse::ByteSizeLong, + &SyncInfoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_._cached_size_), + false, + }, + &SyncInfoResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* SyncInfoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SyncInfoResponse_class_data_ = + SyncInfoResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SyncInfoResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SyncInfoResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SyncInfoResponse_class_data_.tc_table); + return SyncInfoResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> SyncInfoResponse::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +SyncInfoResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -9890,7 +13500,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> SyncInfoResponse::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SyncInfoResponse_default_instance_._instance, + SyncInfoResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::SyncInfoResponse>(), // to_prefetch @@ -9898,11 +13509,11 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> SyncInfoResponse::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 tip_height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncInfoResponse, _impl_.tip_height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.tip_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncInfoResponse, _impl_.tip_height_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.tip_height_)}}, // uint64 local_height = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncInfoResponse, _impl_.local_height_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.local_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncInfoResponse, _impl_.local_height_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.local_height_)}}, // repeated bytes peer_node_id = 3; {::_pbi::TcParser::FastBR1, {26, 63, 0, PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.peer_node_id_)}}, @@ -9910,86 +13521,132 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> SyncInfoResponse::_table_ = { 65535, 65535 }}, {{ // uint64 tip_height = 1; - {PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.tip_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.tip_height_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 local_height = 2; - {PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.local_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.local_height_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // repeated bytes peer_node_id = 3; - {PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.peer_node_id_), 0, 0, + {PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.peer_node_id_), -1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void SyncInfoResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SyncInfoResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* SyncInfoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.peer_node_id_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + ::memset(&_impl_.tip_height_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.local_height_) - + reinterpret_cast(&_impl_.tip_height_)) + sizeof(_impl_.local_height_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SyncInfoResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SyncInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SyncInfoResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SyncInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SyncInfoResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 tip_height = 1; - if (this->_internal_tip_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_tip_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_tip_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_tip_height(), target); + } } // uint64 local_height = 2; - if (this->_internal_local_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_local_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_local_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_local_height(), target); + } } // repeated bytes peer_node_id = 3; - for (int i = 0, n = this->_internal_peer_node_id_size(); i < n; ++i) { - const auto& s = this->_internal_peer_node_id().Get(i); + for (int i = 0, n = this_._internal_peer_node_id_size(); i < n; ++i) { + const auto& s = this_._internal_peer_node_id().Get(i); target = stream->WriteBytes(3, s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SyncInfoResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SyncInfoResponse::ByteSizeLong(const MessageLite& base) { + const SyncInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t SyncInfoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SyncInfoResponse) + const SyncInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SyncInfoResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated bytes peer_node_id = 3; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_peer_node_id().size()); - for (int i = 0, n = _internal_peer_node_id().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( - _internal_peer_node_id().Get(i)); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated bytes peer_node_id = 3; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_peer_node_id().size()); + for (int i = 0, n = this_._internal_peer_node_id().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_peer_node_id().Get(i)); + } + } } - // uint64 tip_height = 1; - if (this->_internal_tip_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_tip_height()); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // uint64 tip_height = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_tip_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_tip_height()); + } + } + // uint64 local_height = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_local_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_local_height()); + } + } } - - // uint64 local_height = 2; - if (this->_internal_local_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_local_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -9999,12 +13656,20 @@ void SyncInfoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const (void) cached_has_bits; _this->_internal_mutable_peer_node_id()->MergeFrom(from._internal_peer_node_id()); - if (from._internal_tip_height() != 0) { - _this->_impl_.tip_height_ = from._impl_.tip_height_; - } - if (from._internal_local_height() != 0) { - _this->_impl_.local_height_ = from._impl_.local_height_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_tip_height() != 0) { + _this->_impl_.tip_height_ = from._impl_.tip_height_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_local_height() != 0) { + _this->_impl_.local_height_ = from._impl_.local_height_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -10015,13 +13680,11 @@ void SyncInfoResponse::CopyFrom(const SyncInfoResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SyncInfoResponse::IsInitialized() const { - return true; -} -void SyncInfoResponse::InternalSwap(SyncInfoResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void SyncInfoResponse::InternalSwap(SyncInfoResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.peer_node_id_.InternalSwap(&other->_impl_.peer_node_id_); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.local_height_) @@ -10032,36 +13695,48 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SyncProgressResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_._has_bits_); }; -SyncProgressResponse::SyncProgressResponse(::google::protobuf::Arena* arena) +SyncProgressResponse::SyncProgressResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SyncProgressResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.SyncProgressResponse) } -inline PROTOBUF_NDEBUG_INLINE SyncProgressResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : short_desc_(arena, from.short_desc_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE SyncProgressResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::SyncProgressResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + short_desc_(arena, from.short_desc_) {} SyncProgressResponse::SyncProgressResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SyncProgressResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SyncProgressResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SyncProgressResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, tip_height_), reinterpret_cast(&from._impl_) + @@ -10072,13 +13747,13 @@ SyncProgressResponse::SyncProgressResponse( // @@protoc_insertion_point(copy_constructor:tari.rpc.SyncProgressResponse) } -inline PROTOBUF_NDEBUG_INLINE SyncProgressResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE SyncProgressResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : short_desc_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + short_desc_(arena) {} -inline void SyncProgressResponse::SharedCtor(::_pb::Arena* arena) { +inline void SyncProgressResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, tip_height_), @@ -10089,54 +13764,63 @@ inline void SyncProgressResponse::SharedCtor(::_pb::Arena* arena) { } SyncProgressResponse::~SyncProgressResponse() { // @@protoc_insertion_point(destructor:tari.rpc.SyncProgressResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void SyncProgressResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.short_desc_.Destroy(); - _impl_.~Impl_(); +inline void SyncProgressResponse::SharedDtor(MessageLite& self) { + SyncProgressResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.short_desc_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL SyncProgressResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SyncProgressResponse(arena); +} +constexpr auto SyncProgressResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SyncProgressResponse), + alignof(SyncProgressResponse)); +} +constexpr auto SyncProgressResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SyncProgressResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.short_desc_.ClearToEmpty(); - ::memset(&_impl_.tip_height_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.state_) - - reinterpret_cast(&_impl_.tip_height_)) + sizeof(_impl_.state_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SyncProgressResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SyncProgressResponse::ByteSizeLong, + &SyncProgressResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_._cached_size_), + false, + }, + &SyncProgressResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* SyncProgressResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SyncProgressResponse_class_data_ = + SyncProgressResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SyncProgressResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SyncProgressResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SyncProgressResponse_class_data_.tc_table); + return SyncProgressResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 48, 2> SyncProgressResponse::_table_ = { +const ::_pbi::TcParseTable<3, 5, 0, 48, 2> +SyncProgressResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_._has_bits_), 0, // no _extensions_ 5, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -10145,7 +13829,8 @@ const ::_pbi::TcParseTable<3, 5, 0, 48, 2> SyncProgressResponse::_table_ = { 5, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SyncProgressResponse_default_instance_._instance, + SyncProgressResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::SyncProgressResponse>(), // to_prefetch @@ -10153,40 +13838,40 @@ const ::_pbi::TcParseTable<3, 5, 0, 48, 2> SyncProgressResponse::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 tip_height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncProgressResponse, _impl_.tip_height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.tip_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncProgressResponse, _impl_.tip_height_), 1>(), + {8, 1, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.tip_height_)}}, // uint64 local_height = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncProgressResponse, _impl_.local_height_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.local_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncProgressResponse, _impl_.local_height_), 2>(), + {16, 2, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.local_height_)}}, // .tari.rpc.SyncState state = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SyncProgressResponse, _impl_.state_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.state_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SyncProgressResponse, _impl_.state_), 4>(), + {24, 4, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.state_)}}, // string short_desc = 4; {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.short_desc_)}}, + {34, 0, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.short_desc_)}}, // uint64 initial_connected_peers = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncProgressResponse, _impl_.initial_connected_peers_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.initial_connected_peers_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncProgressResponse, _impl_.initial_connected_peers_), 3>(), + {40, 3, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.initial_connected_peers_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // uint64 tip_height = 1; - {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.tip_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.tip_height_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 local_height = 2; - {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.local_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.local_height_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // .tari.rpc.SyncState state = 3; - {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.state_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.state_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, // string short_desc = 4; - {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.short_desc_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.short_desc_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint64 initial_connected_peers = 5; - {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.initial_connected_peers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.initial_connected_peers_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ @@ -10195,101 +13880,153 @@ const ::_pbi::TcParseTable<3, 5, 0, 48, 2> SyncProgressResponse::_table_ = { "short_desc" }}, }; +PROTOBUF_NOINLINE void SyncProgressResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SyncProgressResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* SyncProgressResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.short_desc_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x0000001eu) != 0) { + ::memset(&_impl_.tip_height_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.state_) - + reinterpret_cast(&_impl_.tip_height_)) + sizeof(_impl_.state_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SyncProgressResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SyncProgressResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SyncProgressResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SyncProgressResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SyncProgressResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 tip_height = 1; - if (this->_internal_tip_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_tip_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_tip_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_tip_height(), target); + } } // uint64 local_height = 2; - if (this->_internal_local_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_local_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_local_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_local_height(), target); + } } // .tari.rpc.SyncState state = 3; - if (this->_internal_state() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_state(), target); + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (this_._internal_state() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_state(), target); + } } // string short_desc = 4; - if (!this->_internal_short_desc().empty()) { - const std::string& _s = this->_internal_short_desc(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.SyncProgressResponse.short_desc"); - target = stream->WriteStringMaybeAliased(4, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_short_desc().empty()) { + const ::std::string& _s = this_._internal_short_desc(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.SyncProgressResponse.short_desc"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } } // uint64 initial_connected_peers = 5; - if (this->_internal_initial_connected_peers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_initial_connected_peers(), target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (this_._internal_initial_connected_peers() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 5, this_._internal_initial_connected_peers(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SyncProgressResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SyncProgressResponse::ByteSizeLong(const MessageLite& base) { + const SyncProgressResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t SyncProgressResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SyncProgressResponse) + const SyncProgressResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SyncProgressResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // string short_desc = 4; - if (!this->_internal_short_desc().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_short_desc()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + // string short_desc = 4; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_short_desc().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_short_desc()); + } + } + // uint64 tip_height = 1; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_tip_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_tip_height()); + } + } + // uint64 local_height = 2; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_local_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_local_height()); + } + } + // uint64 initial_connected_peers = 5; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_initial_connected_peers() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_initial_connected_peers()); + } + } + // .tari.rpc.SyncState state = 3; + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_state() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_state()); + } + } } - - // uint64 tip_height = 1; - if (this->_internal_tip_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_tip_height()); - } - - // uint64 local_height = 2; - if (this->_internal_local_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_local_height()); - } - - // uint64 initial_connected_peers = 5; - if (this->_internal_initial_connected_peers() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_initial_connected_peers()); - } - - // .tari.rpc.SyncState state = 3; - if (this->_internal_state() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_state()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -10298,21 +14035,39 @@ void SyncProgressResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, co ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_short_desc().empty()) { - _this->_internal_set_short_desc(from._internal_short_desc()); - } - if (from._internal_tip_height() != 0) { - _this->_impl_.tip_height_ = from._impl_.tip_height_; - } - if (from._internal_local_height() != 0) { - _this->_impl_.local_height_ = from._impl_.local_height_; - } - if (from._internal_initial_connected_peers() != 0) { - _this->_impl_.initial_connected_peers_ = from._impl_.initial_connected_peers_; - } - if (from._internal_state() != 0) { - _this->_impl_.state_ = from._impl_.state_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_short_desc().empty()) { + _this->_internal_set_short_desc(from._internal_short_desc()); + } else { + if (_this->_impl_.short_desc_.IsDefault()) { + _this->_internal_set_short_desc(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_tip_height() != 0) { + _this->_impl_.tip_height_ = from._impl_.tip_height_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_local_height() != 0) { + _this->_impl_.local_height_ = from._impl_.local_height_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_initial_connected_peers() != 0) { + _this->_impl_.initial_connected_peers_ = from._impl_.initial_connected_peers_; + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (from._internal_state() != 0) { + _this->_impl_.state_ = from._impl_.state_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -10323,15 +14078,13 @@ void SyncProgressResponse::CopyFrom(const SyncProgressResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SyncProgressResponse::IsInitialized() const { - return true; -} -void SyncProgressResponse::InternalSwap(SyncProgressResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void SyncProgressResponse::InternalSwap(SyncProgressResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.short_desc_, &other->_impl_.short_desc_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.state_) @@ -10342,32 +14095,36 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetNewBlockResult::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_._has_bits_); }; void GetNewBlockResult::clear_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.block_ != nullptr) _impl_.block_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000010u; } -GetNewBlockResult::GetNewBlockResult(::google::protobuf::Arena* arena) +GetNewBlockResult::GetNewBlockResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetNewBlockResult_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetNewBlockResult) } -inline PROTOBUF_NDEBUG_INLINE GetNewBlockResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE GetNewBlockResult::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetNewBlockResult& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, block_hash_(arena, from.block_hash_), @@ -10376,34 +14133,38 @@ inline PROTOBUF_NDEBUG_INLINE GetNewBlockResult::Impl_::Impl_( vm_key_(arena, from.vm_key_) {} GetNewBlockResult::GetNewBlockResult( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetNewBlockResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetNewBlockResult_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetNewBlockResult* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _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; + _impl_.block_ = ((cached_has_bits & 0x00000010u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.block_) + : nullptr; + _impl_.miner_data_ = ((cached_has_bits & 0x00000020u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.miner_data_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetNewBlockResult) } -inline PROTOBUF_NDEBUG_INLINE GetNewBlockResult::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetNewBlockResult::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, block_hash_(arena), merge_mining_hash_(arena), tari_unique_id_(arena), vm_key_(arena) {} -inline void GetNewBlockResult::SharedCtor(::_pb::Arena* arena) { +inline void GetNewBlockResult::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, block_), @@ -10414,69 +14175,66 @@ inline void GetNewBlockResult::SharedCtor(::_pb::Arena* arena) { } GetNewBlockResult::~GetNewBlockResult() { // @@protoc_insertion_point(destructor:tari.rpc.GetNewBlockResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetNewBlockResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.block_hash_.Destroy(); - _impl_.merge_mining_hash_.Destroy(); - _impl_.tari_unique_id_.Destroy(); - _impl_.vm_key_.Destroy(); - delete _impl_.block_; - delete _impl_.miner_data_; - _impl_.~Impl_(); +inline void GetNewBlockResult::SharedDtor(MessageLite& self) { + GetNewBlockResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.block_hash_.Destroy(); + this_._impl_.merge_mining_hash_.Destroy(); + this_._impl_.tari_unique_id_.Destroy(); + this_._impl_.vm_key_.Destroy(); + delete this_._impl_.block_; + delete this_._impl_.miner_data_; + this_._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, - }, +inline void* PROTOBUF_NONNULL GetNewBlockResult::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetNewBlockResult(arena); +} +constexpr auto GetNewBlockResult::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetNewBlockResult), + alignof(GetNewBlockResult)); +} +constexpr auto GetNewBlockResult::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetNewBlockResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.block_hash_.ClearToEmpty(); - _impl_.merge_mining_hash_.ClearToEmpty(); - _impl_.tari_unique_id_.ClearToEmpty(); - _impl_.vm_key_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.block_ != nullptr); - _impl_.block_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.miner_data_ != nullptr); - _impl_.miner_data_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetNewBlockResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetNewBlockResult::ByteSizeLong, + &GetNewBlockResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_._cached_size_), + false, + }, + &GetNewBlockResult::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetNewBlockResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetNewBlockResult_class_data_ = + GetNewBlockResult::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetNewBlockResult::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetNewBlockResult_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetNewBlockResult_class_data_.tc_table); + return GetNewBlockResult_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 2, 0, 2> GetNewBlockResult::_table_ = { +const ::_pbi::TcParseTable<3, 6, 2, 0, 2> +GetNewBlockResult::_table_ = { { PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_._has_bits_), 0, // no _extensions_ @@ -10487,7 +14245,8 @@ const ::_pbi::TcParseTable<3, 6, 2, 0, 2> GetNewBlockResult::_table_ = { 6, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetNewBlockResult_default_instance_._instance, + GetNewBlockResult_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetNewBlockResult>(), // to_prefetch @@ -10496,155 +14255,217 @@ const ::_pbi::TcParseTable<3, 6, 2, 0, 2> GetNewBlockResult::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // bytes block_hash = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_hash_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_hash_)}}, // .tari.rpc.Block block = 2; {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_)}}, + {18, 4, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_)}}, // bytes merge_mining_hash = 3; {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.merge_mining_hash_)}}, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.merge_mining_hash_)}}, // bytes tari_unique_id = 4; {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.tari_unique_id_)}}, + {34, 2, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.tari_unique_id_)}}, // .tari.rpc.MinerData miner_data = 5; {::_pbi::TcParser::FastMtS1, - {42, 1, 1, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.miner_data_)}}, + {42, 5, 1, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.miner_data_)}}, // bytes vm_key = 6; {::_pbi::TcParser::FastBS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.vm_key_)}}, + {50, 3, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.vm_key_)}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // bytes block_hash = 1; - {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.Block block = 2; - {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes merge_mining_hash = 3; - {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.merge_mining_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.merge_mining_hash_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes tari_unique_id = 4; - {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.tari_unique_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.tari_unique_id_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.MinerData miner_data = 5; - {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.miner_data_), _Internal::kHasBitsOffset + 1, 1, + {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.miner_data_), _Internal::kHasBitsOffset + 5, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes vm_key = 6; - {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.vm_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Block>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::MinerData>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.vm_key_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Block>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::MinerData>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void GetNewBlockResult::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetNewBlockResult) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetNewBlockResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.block_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.merge_mining_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.tari_unique_id_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.vm_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + ABSL_DCHECK(_impl_.block_ != nullptr); + _impl_.block_->Clear(); + } + if ((cached_has_bits & 0x00000020u) != 0) { + ABSL_DCHECK(_impl_.miner_data_ != nullptr); + _impl_.miner_data_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetNewBlockResult::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetNewBlockResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetNewBlockResult::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetNewBlockResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetNewBlockResult) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes block_hash = 1; - if (!this->_internal_block_hash().empty()) { - const std::string& _s = this->_internal_block_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_block_hash().empty()) { + const ::std::string& _s = this_._internal_block_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.Block block = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000010u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.block_, _impl_.block_->GetCachedSize(), target, stream); + 2, *this_._impl_.block_, this_._impl_.block_->GetCachedSize(), target, + stream); } // bytes merge_mining_hash = 3; - if (!this->_internal_merge_mining_hash().empty()) { - const std::string& _s = this->_internal_merge_mining_hash(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_merge_mining_hash().empty()) { + const ::std::string& _s = this_._internal_merge_mining_hash(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } // bytes tari_unique_id = 4; - if (!this->_internal_tari_unique_id().empty()) { - const std::string& _s = this->_internal_tari_unique_id(); - target = stream->WriteBytesMaybeAliased(4, _s, target); + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_tari_unique_id().empty()) { + const ::std::string& _s = this_._internal_tari_unique_id(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } } // .tari.rpc.MinerData miner_data = 5; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000020u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *_impl_.miner_data_, _impl_.miner_data_->GetCachedSize(), target, stream); + 5, *this_._impl_.miner_data_, this_._impl_.miner_data_->GetCachedSize(), target, + stream); } // bytes vm_key = 6; - if (!this->_internal_vm_key().empty()) { - const std::string& _s = this->_internal_vm_key(); - target = stream->WriteBytesMaybeAliased(6, _s, target); + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_vm_key().empty()) { + const ::std::string& _s = this_._internal_vm_key(); + target = stream->WriteBytesMaybeAliased(6, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetNewBlockResult) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetNewBlockResult::ByteSizeLong(const MessageLite& base) { + const GetNewBlockResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetNewBlockResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetNewBlockResult) + const GetNewBlockResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetNewBlockResult) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes block_hash = 1; - if (!this->_internal_block_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_block_hash()); - } - - // bytes merge_mining_hash = 3; - if (!this->_internal_merge_mining_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_merge_mining_hash()); - } - - // bytes tari_unique_id = 4; - if (!this->_internal_tari_unique_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_tari_unique_id()); - } - - // bytes vm_key = 6; - if (!this->_internal_vm_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_vm_key()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000003fu) != 0) { + // bytes block_hash = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_block_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_block_hash()); + } + } + // bytes merge_mining_hash = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_merge_mining_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_merge_mining_hash()); + } + } + // bytes tari_unique_id = 4; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_tari_unique_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_tari_unique_id()); + } + } + // bytes vm_key = 6; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_vm_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_vm_key()); + } + } // .tari.rpc.Block block = 2; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.block_); + if ((cached_has_bits & 0x00000010u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.block_); } - // .tari.rpc.MinerData miner_data = 5; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.miner_data_); + if ((cached_has_bits & 0x00000020u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.miner_data_); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -10654,34 +14475,56 @@ void GetNewBlockResult::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_block_hash().empty()) { - _this->_internal_set_block_hash(from._internal_block_hash()); - } - if (!from._internal_merge_mining_hash().empty()) { - _this->_internal_set_merge_mining_hash(from._internal_merge_mining_hash()); - } - if (!from._internal_tari_unique_id().empty()) { - _this->_internal_set_tari_unique_id(from._internal_tari_unique_id()); - } - if (!from._internal_vm_key().empty()) { - _this->_internal_set_vm_key(from._internal_vm_key()); - } cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_block_hash().empty()) { + _this->_internal_set_block_hash(from._internal_block_hash()); + } else { + if (_this->_impl_.block_hash_.IsDefault()) { + _this->_internal_set_block_hash(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_merge_mining_hash().empty()) { + _this->_internal_set_merge_mining_hash(from._internal_merge_mining_hash()); + } else { + if (_this->_impl_.merge_mining_hash_.IsDefault()) { + _this->_internal_set_merge_mining_hash(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_tari_unique_id().empty()) { + _this->_internal_set_tari_unique_id(from._internal_tari_unique_id()); + } else { + if (_this->_impl_.tari_unique_id_.IsDefault()) { + _this->_internal_set_tari_unique_id(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_vm_key().empty()) { + _this->_internal_set_vm_key(from._internal_vm_key()); + } else { + if (_this->_impl_.vm_key_.IsDefault()) { + _this->_internal_set_vm_key(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { 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_); + _this->_impl_.block_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.block_); } else { _this->_impl_.block_->MergeFrom(*from._impl_.block_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000020u) != 0) { 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_); + _this->_impl_.miner_data_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.miner_data_); } else { _this->_impl_.miner_data_->MergeFrom(*from._impl_.miner_data_); } @@ -10698,12 +14541,9 @@ void GetNewBlockResult::CopyFrom(const GetNewBlockResult& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetNewBlockResult::IsInitialized() const { - return true; -} -void GetNewBlockResult::InternalSwap(GetNewBlockResult* PROTOBUF_RESTRICT other) { - using std::swap; +void GetNewBlockResult::InternalSwap(GetNewBlockResult* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -10721,115 +14561,134 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetNewBlockBlobResult::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_._has_bits_); }; -GetNewBlockBlobResult::GetNewBlockBlobResult(::google::protobuf::Arena* arena) +GetNewBlockBlobResult::GetNewBlockBlobResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetNewBlockBlobResult_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetNewBlockBlobResult) } -inline PROTOBUF_NDEBUG_INLINE GetNewBlockBlobResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : block_hash_(arena, from.block_hash_), +PROTOBUF_NDEBUG_INLINE GetNewBlockBlobResult::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetNewBlockBlobResult& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + block_hash_(arena, from.block_hash_), header_(arena, from.header_), block_body_(arena, from.block_body_), merge_mining_hash_(arena, from.merge_mining_hash_), utxo_mr_(arena, from.utxo_mr_), - tari_unique_id_(arena, from.tari_unique_id_), - _cached_size_{0} {} + tari_unique_id_(arena, from.tari_unique_id_) {} GetNewBlockBlobResult::GetNewBlockBlobResult( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetNewBlockBlobResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetNewBlockBlobResult_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetNewBlockBlobResult* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.GetNewBlockBlobResult) } -inline PROTOBUF_NDEBUG_INLINE GetNewBlockBlobResult::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetNewBlockBlobResult::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : block_hash_(arena), + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + block_hash_(arena), header_(arena), block_body_(arena), merge_mining_hash_(arena), utxo_mr_(arena), - tari_unique_id_(arena), - _cached_size_{0} {} + tari_unique_id_(arena) {} -inline void GetNewBlockBlobResult::SharedCtor(::_pb::Arena* arena) { +inline void GetNewBlockBlobResult::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetNewBlockBlobResult::~GetNewBlockBlobResult() { // @@protoc_insertion_point(destructor:tari.rpc.GetNewBlockBlobResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetNewBlockBlobResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.block_hash_.Destroy(); - _impl_.header_.Destroy(); - _impl_.block_body_.Destroy(); - _impl_.merge_mining_hash_.Destroy(); - _impl_.utxo_mr_.Destroy(); - _impl_.tari_unique_id_.Destroy(); - _impl_.~Impl_(); +inline void GetNewBlockBlobResult::SharedDtor(MessageLite& self) { + GetNewBlockBlobResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.block_hash_.Destroy(); + this_._impl_.header_.Destroy(); + this_._impl_.block_body_.Destroy(); + this_._impl_.merge_mining_hash_.Destroy(); + this_._impl_.utxo_mr_.Destroy(); + this_._impl_.tari_unique_id_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL GetNewBlockBlobResult::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetNewBlockBlobResult(arena); +} +constexpr auto GetNewBlockBlobResult::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetNewBlockBlobResult), + alignof(GetNewBlockBlobResult)); +} +constexpr auto GetNewBlockBlobResult::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetNewBlockBlobResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.block_hash_.ClearToEmpty(); - _impl_.header_.ClearToEmpty(); - _impl_.block_body_.ClearToEmpty(); - _impl_.merge_mining_hash_.ClearToEmpty(); - _impl_.utxo_mr_.ClearToEmpty(); - _impl_.tari_unique_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetNewBlockBlobResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetNewBlockBlobResult::ByteSizeLong, + &GetNewBlockBlobResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_._cached_size_), + false, + }, + &GetNewBlockBlobResult::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetNewBlockBlobResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetNewBlockBlobResult_class_data_ = + GetNewBlockBlobResult::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetNewBlockBlobResult::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetNewBlockBlobResult_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetNewBlockBlobResult_class_data_.tc_table); + return GetNewBlockBlobResult_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 0, 2> GetNewBlockBlobResult::_table_ = { +const ::_pbi::TcParseTable<3, 6, 0, 0, 2> +GetNewBlockBlobResult::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_._has_bits_), 0, // no _extensions_ 6, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -10838,7 +14697,8 @@ const ::_pbi::TcParseTable<3, 6, 0, 0, 2> GetNewBlockBlobResult::_table_ = { 6, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GetNewBlockBlobResult_default_instance_._instance, + GetNewBlockBlobResult_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetNewBlockBlobResult>(), // to_prefetch @@ -10847,150 +14707,217 @@ const ::_pbi::TcParseTable<3, 6, 0, 0, 2> GetNewBlockBlobResult::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // bytes block_hash = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.block_hash_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.block_hash_)}}, // bytes header = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.header_)}}, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.header_)}}, // bytes block_body = 3; {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.block_body_)}}, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.block_body_)}}, // bytes merge_mining_hash = 4; {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.merge_mining_hash_)}}, + {34, 3, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.merge_mining_hash_)}}, // bytes utxo_mr = 5; {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.utxo_mr_)}}, + {42, 4, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.utxo_mr_)}}, // bytes tari_unique_id = 6; {::_pbi::TcParser::FastBS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.tari_unique_id_)}}, + {50, 5, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.tari_unique_id_)}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // bytes block_hash = 1; - {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.block_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.block_hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes header = 2; - {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.header_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.header_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes block_body = 3; - {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.block_body_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.block_body_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes merge_mining_hash = 4; - {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.merge_mining_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.merge_mining_hash_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes utxo_mr = 5; - {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.utxo_mr_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.utxo_mr_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes tari_unique_id = 6; - {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.tari_unique_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.tari_unique_id_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void GetNewBlockBlobResult::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetNewBlockBlobResult) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetNewBlockBlobResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.block_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.header_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.block_body_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.merge_mining_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + _impl_.utxo_mr_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000020u) != 0) { + _impl_.tari_unique_id_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetNewBlockBlobResult::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetNewBlockBlobResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetNewBlockBlobResult::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetNewBlockBlobResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetNewBlockBlobResult) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes block_hash = 1; - if (!this->_internal_block_hash().empty()) { - const std::string& _s = this->_internal_block_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_block_hash().empty()) { + const ::std::string& _s = this_._internal_block_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // bytes header = 2; - if (!this->_internal_header().empty()) { - const std::string& _s = this->_internal_header(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_header().empty()) { + const ::std::string& _s = this_._internal_header(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } // bytes block_body = 3; - if (!this->_internal_block_body().empty()) { - const std::string& _s = this->_internal_block_body(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (!this_._internal_block_body().empty()) { + const ::std::string& _s = this_._internal_block_body(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } // bytes merge_mining_hash = 4; - if (!this->_internal_merge_mining_hash().empty()) { - const std::string& _s = this->_internal_merge_mining_hash(); - target = stream->WriteBytesMaybeAliased(4, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (!this_._internal_merge_mining_hash().empty()) { + const ::std::string& _s = this_._internal_merge_mining_hash(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } } // bytes utxo_mr = 5; - if (!this->_internal_utxo_mr().empty()) { - const std::string& _s = this->_internal_utxo_mr(); - target = stream->WriteBytesMaybeAliased(5, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (!this_._internal_utxo_mr().empty()) { + const ::std::string& _s = this_._internal_utxo_mr(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } // bytes tari_unique_id = 6; - if (!this->_internal_tari_unique_id().empty()) { - const std::string& _s = this->_internal_tari_unique_id(); - target = stream->WriteBytesMaybeAliased(6, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { + if (!this_._internal_tari_unique_id().empty()) { + const ::std::string& _s = this_._internal_tari_unique_id(); + target = stream->WriteBytesMaybeAliased(6, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetNewBlockBlobResult) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetNewBlockBlobResult::ByteSizeLong(const MessageLite& base) { + const GetNewBlockBlobResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetNewBlockBlobResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetNewBlockBlobResult) + const GetNewBlockBlobResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetNewBlockBlobResult) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes block_hash = 1; - if (!this->_internal_block_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_block_hash()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000003fu) != 0) { + // bytes block_hash = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_block_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_block_hash()); + } + } + // bytes header = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_header().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_header()); + } + } + // bytes block_body = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_block_body().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_block_body()); + } + } + // bytes merge_mining_hash = 4; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_merge_mining_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_merge_mining_hash()); + } + } + // bytes utxo_mr = 5; + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_utxo_mr().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_utxo_mr()); + } + } + // bytes tari_unique_id = 6; + if ((cached_has_bits & 0x00000020u) != 0) { + if (!this_._internal_tari_unique_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_tari_unique_id()); + } + } } - - // bytes header = 2; - if (!this->_internal_header().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_header()); - } - - // bytes block_body = 3; - if (!this->_internal_block_body().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_block_body()); - } - - // bytes merge_mining_hash = 4; - if (!this->_internal_merge_mining_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_merge_mining_hash()); - } - - // bytes utxo_mr = 5; - if (!this->_internal_utxo_mr().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_utxo_mr()); - } - - // bytes tari_unique_id = 6; - if (!this->_internal_tari_unique_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_tari_unique_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -10999,24 +14926,64 @@ void GetNewBlockBlobResult::MergeImpl(::google::protobuf::MessageLite& to_msg, c ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_block_hash().empty()) { - _this->_internal_set_block_hash(from._internal_block_hash()); - } - if (!from._internal_header().empty()) { - _this->_internal_set_header(from._internal_header()); - } - if (!from._internal_block_body().empty()) { - _this->_internal_set_block_body(from._internal_block_body()); - } - if (!from._internal_merge_mining_hash().empty()) { - _this->_internal_set_merge_mining_hash(from._internal_merge_mining_hash()); - } - if (!from._internal_utxo_mr().empty()) { - _this->_internal_set_utxo_mr(from._internal_utxo_mr()); - } - if (!from._internal_tari_unique_id().empty()) { - _this->_internal_set_tari_unique_id(from._internal_tari_unique_id()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_block_hash().empty()) { + _this->_internal_set_block_hash(from._internal_block_hash()); + } else { + if (_this->_impl_.block_hash_.IsDefault()) { + _this->_internal_set_block_hash(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_header().empty()) { + _this->_internal_set_header(from._internal_header()); + } else { + if (_this->_impl_.header_.IsDefault()) { + _this->_internal_set_header(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_block_body().empty()) { + _this->_internal_set_block_body(from._internal_block_body()); + } else { + if (_this->_impl_.block_body_.IsDefault()) { + _this->_internal_set_block_body(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_merge_mining_hash().empty()) { + _this->_internal_set_merge_mining_hash(from._internal_merge_mining_hash()); + } else { + if (_this->_impl_.merge_mining_hash_.IsDefault()) { + _this->_internal_set_merge_mining_hash(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (!from._internal_utxo_mr().empty()) { + _this->_internal_set_utxo_mr(from._internal_utxo_mr()); + } else { + if (_this->_impl_.utxo_mr_.IsDefault()) { + _this->_internal_set_utxo_mr(""); + } + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (!from._internal_tari_unique_id().empty()) { + _this->_internal_set_tari_unique_id(from._internal_tari_unique_id()); + } else { + if (_this->_impl_.tari_unique_id_.IsDefault()) { + _this->_internal_set_tari_unique_id(""); + } + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -11027,15 +14994,13 @@ void GetNewBlockBlobResult::CopyFrom(const GetNewBlockBlobResult& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetNewBlockBlobResult::IsInitialized() const { - return true; -} -void GetNewBlockBlobResult::InternalSwap(GetNewBlockBlobResult* PROTOBUF_RESTRICT other) { - using std::swap; +void GetNewBlockBlobResult::InternalSwap(GetNewBlockBlobResult* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.block_hash_, &other->_impl_.block_hash_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.header_, &other->_impl_.header_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.block_body_, &other->_impl_.block_body_, arena); @@ -11045,48 +15010,56 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class MinerData::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MinerData, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(MinerData, _impl_._has_bits_); }; void MinerData::clear_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.algo_ != nullptr) _impl_.algo_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } -MinerData::MinerData(::google::protobuf::Arena* arena) +MinerData::MinerData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, MinerData_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.MinerData) } -inline PROTOBUF_NDEBUG_INLINE MinerData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE MinerData::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::MinerData& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} MinerData::MinerData( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MinerData& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, MinerData_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE MinerData* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.algo_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::PowAlgo>( - arena, *from._impl_.algo_) - : nullptr; + _impl_.algo_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.algo_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, target_difficulty_), reinterpret_cast(&from._impl_) + @@ -11097,12 +15070,12 @@ MinerData::MinerData( // @@protoc_insertion_point(copy_constructor:tari.rpc.MinerData) } -inline PROTOBUF_NDEBUG_INLINE MinerData::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE MinerData::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void MinerData::SharedCtor(::_pb::Arena* arena) { +inline void MinerData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, algo_), @@ -11113,57 +15086,61 @@ inline void MinerData::SharedCtor(::_pb::Arena* arena) { } MinerData::~MinerData() { // @@protoc_insertion_point(destructor:tari.rpc.MinerData) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void MinerData::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.algo_; - _impl_.~Impl_(); +inline void MinerData::SharedDtor(MessageLite& self) { + MinerData& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.algo_; + this_._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, - }, +inline void* PROTOBUF_NONNULL MinerData::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) MinerData(arena); +} +constexpr auto MinerData::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MinerData), + alignof(MinerData)); +} +constexpr auto MinerData::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_MinerData_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.algo_ != nullptr); - _impl_.algo_->Clear(); - } - ::memset(&_impl_.target_difficulty_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.total_fees_) - - reinterpret_cast(&_impl_.target_difficulty_)) + sizeof(_impl_.total_fees_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MinerData::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &MinerData::ByteSizeLong, + &MinerData::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MinerData, _impl_._cached_size_), + false, + }, + &MinerData::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* MinerData::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull MinerData_class_data_ = + MinerData::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +MinerData::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&MinerData_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(MinerData_class_data_.tc_table); + return MinerData_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 4, 1, 0, 2> MinerData::_table_ = { +const ::_pbi::TcParseTable<3, 4, 1, 0, 2> +MinerData::_table_ = { { PROTOBUF_FIELD_OFFSET(MinerData, _impl_._has_bits_), 0, // no _extensions_ @@ -11174,7 +15151,8 @@ const ::_pbi::TcParseTable<3, 4, 1, 0, 2> MinerData::_table_ = { 4, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_MinerData_default_instance_._instance, + MinerData_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::MinerData>(), // to_prefetch @@ -11185,15 +15163,15 @@ const ::_pbi::TcParseTable<3, 4, 1, 0, 2> MinerData::_table_ = { {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(MinerData, _impl_.algo_)}}, // uint64 target_difficulty = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MinerData, _impl_.target_difficulty_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MinerData, _impl_.target_difficulty_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MinerData, _impl_.target_difficulty_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(MinerData, _impl_.target_difficulty_)}}, // uint64 reward = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MinerData, _impl_.reward_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MinerData, _impl_.reward_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MinerData, _impl_.reward_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(MinerData, _impl_.reward_)}}, {::_pbi::TcParser::MiniParse, {}}, // uint64 total_fees = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MinerData, _impl_.total_fees_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(MinerData, _impl_.total_fees_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MinerData, _impl_.total_fees_), 3>(), + {40, 3, 0, PROTOBUF_FIELD_OFFSET(MinerData, _impl_.total_fees_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ @@ -11203,101 +15181,149 @@ const ::_pbi::TcParseTable<3, 4, 1, 0, 2> MinerData::_table_ = { {PROTOBUF_FIELD_OFFSET(MinerData, _impl_.algo_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint64 target_difficulty = 2; - {PROTOBUF_FIELD_OFFSET(MinerData, _impl_.target_difficulty_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(MinerData, _impl_.target_difficulty_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 reward = 3; - {PROTOBUF_FIELD_OFFSET(MinerData, _impl_.reward_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(MinerData, _impl_.reward_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 total_fees = 5; - {PROTOBUF_FIELD_OFFSET(MinerData, _impl_.total_fees_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::PowAlgo>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(MinerData, _impl_.total_fees_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::PowAlgo>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void MinerData::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.MinerData) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* MinerData::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.algo_ != nullptr); + _impl_.algo_->Clear(); + } + if ((cached_has_bits & 0x0000000eu) != 0) { + ::memset(&_impl_.target_difficulty_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.total_fees_) - + reinterpret_cast(&_impl_.target_difficulty_)) + sizeof(_impl_.total_fees_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL MinerData::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const MinerData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL MinerData::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const MinerData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.MinerData) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.PowAlgo algo = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.algo_, _impl_.algo_->GetCachedSize(), target, stream); + 1, *this_._impl_.algo_, this_._impl_.algo_->GetCachedSize(), target, + stream); } // uint64 target_difficulty = 2; - if (this->_internal_target_difficulty() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_target_difficulty(), target); + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_target_difficulty() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_target_difficulty(), target); + } } // uint64 reward = 3; - if (this->_internal_reward() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_reward(), target); + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_reward() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_reward(), target); + } } // uint64 total_fees = 5; - if (this->_internal_total_fees() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_total_fees(), target); + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_total_fees() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 5, this_._internal_total_fees(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.MinerData) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t MinerData::ByteSizeLong(const MessageLite& base) { + const MinerData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t MinerData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.MinerData) + const MinerData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.MinerData) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.PowAlgo algo = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.algo_); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + // .tari.rpc.PowAlgo algo = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.algo_); + } + // uint64 target_difficulty = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_target_difficulty() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_target_difficulty()); + } + } + // uint64 reward = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_reward() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_reward()); + } + } + // uint64 total_fees = 5; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_total_fees() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_total_fees()); + } + } } - - // uint64 target_difficulty = 2; - if (this->_internal_target_difficulty() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_target_difficulty()); - } - - // uint64 reward = 3; - if (this->_internal_reward() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_reward()); - } - - // uint64 total_fees = 5; - if (this->_internal_total_fees() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_total_fees()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -11308,23 +15334,30 @@ void MinerData::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::googl (void) cached_has_bits; 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 ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(from._impl_.algo_ != nullptr); + if (_this->_impl_.algo_ == nullptr) { + _this->_impl_.algo_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.algo_); + } else { + _this->_impl_.algo_->MergeFrom(*from._impl_.algo_); + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_target_difficulty() != 0) { + _this->_impl_.target_difficulty_ = from._impl_.target_difficulty_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_reward() != 0) { + _this->_impl_.reward_ = from._impl_.reward_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_total_fees() != 0) { + _this->_impl_.total_fees_ = from._impl_.total_fees_; + } } - } - if (from._internal_target_difficulty() != 0) { - _this->_impl_.target_difficulty_ = from._impl_.target_difficulty_; - } - if (from._internal_reward() != 0) { - _this->_impl_.reward_ = from._impl_.reward_; - } - if (from._internal_total_fees() != 0) { - _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_); @@ -11337,12 +15370,9 @@ void MinerData::CopyFrom(const MinerData& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MinerData::IsInitialized() const { - return true; -} -void MinerData::InternalSwap(MinerData* PROTOBUF_RESTRICT other) { - using std::swap; +void MinerData::InternalSwap(MinerData* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< @@ -11354,9 +15384,7 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -11365,85 +15393,118 @@ class SearchKernelsRequest::_Internal { }; void SearchKernelsRequest::clear_signatures() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.signatures_.Clear(); } -SearchKernelsRequest::SearchKernelsRequest(::google::protobuf::Arena* arena) +SearchKernelsRequest::SearchKernelsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SearchKernelsRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.SearchKernelsRequest) } -inline PROTOBUF_NDEBUG_INLINE SearchKernelsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE SearchKernelsRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::SearchKernelsRequest& from_msg) : signatures_{visibility, arena, from.signatures_}, _cached_size_{0} {} SearchKernelsRequest::SearchKernelsRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SearchKernelsRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SearchKernelsRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SearchKernelsRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.SearchKernelsRequest) } -inline PROTOBUF_NDEBUG_INLINE SearchKernelsRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE SearchKernelsRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : signatures_{visibility, arena}, _cached_size_{0} {} -inline void SearchKernelsRequest::SharedCtor(::_pb::Arena* arena) { +inline void SearchKernelsRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } SearchKernelsRequest::~SearchKernelsRequest() { // @@protoc_insertion_point(destructor:tari.rpc.SearchKernelsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void SearchKernelsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void SearchKernelsRequest::SharedDtor(MessageLite& self) { + SearchKernelsRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL SearchKernelsRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SearchKernelsRequest(arena); +} +constexpr auto SearchKernelsRequest::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SearchKernelsRequest, _impl_.signatures_) + + decltype(SearchKernelsRequest::_impl_.signatures_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SearchKernelsRequest), alignof(SearchKernelsRequest), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SearchKernelsRequest::PlacementNew_, + sizeof(SearchKernelsRequest), + alignof(SearchKernelsRequest)); + } +} +constexpr auto SearchKernelsRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SearchKernelsRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.signatures_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SearchKernelsRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SearchKernelsRequest::ByteSizeLong, + &SearchKernelsRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SearchKernelsRequest, _impl_._cached_size_), + false, + }, + &SearchKernelsRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* SearchKernelsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SearchKernelsRequest_class_data_ = + SearchKernelsRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SearchKernelsRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SearchKernelsRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SearchKernelsRequest_class_data_.tc_table); + return SearchKernelsRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SearchKernelsRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +SearchKernelsRequest::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -11454,7 +15515,8 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SearchKernelsRequest::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SearchKernelsRequest_default_instance_._instance, + SearchKernelsRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::SearchKernelsRequest>(), // to_prefetch @@ -11469,56 +15531,87 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SearchKernelsRequest::_table_ = { // repeated .tari.rpc.Signature signatures = 1; {PROTOBUF_FIELD_OFFSET(SearchKernelsRequest, _impl_.signatures_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void SearchKernelsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SearchKernelsRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* SearchKernelsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.signatures_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SearchKernelsRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SearchKernelsRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SearchKernelsRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SearchKernelsRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SearchKernelsRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated .tari.rpc.Signature signatures = 1; for (unsigned i = 0, n = static_cast( - this->_internal_signatures_size()); + this_._internal_signatures_size()); i < n; i++) { - const auto& repfield = this->_internal_signatures().Get(i); + const auto& repfield = this_._internal_signatures().Get(i); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, repfield, repfield.GetCachedSize(), target, stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SearchKernelsRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SearchKernelsRequest::ByteSizeLong(const MessageLite& base) { + const SearchKernelsRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t SearchKernelsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SearchKernelsRequest) + const SearchKernelsRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SearchKernelsRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // 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); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // 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); + } + } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -11539,20 +15632,15 @@ void SearchKernelsRequest::CopyFrom(const SearchKernelsRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SearchKernelsRequest::IsInitialized() const { - return true; -} -void SearchKernelsRequest::InternalSwap(SearchKernelsRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void SearchKernelsRequest::InternalSwap(SearchKernelsRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.signatures_.InternalSwap(&other->_impl_.signatures_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -11560,82 +15648,115 @@ class SearchUtxosRequest::_Internal { public: }; -SearchUtxosRequest::SearchUtxosRequest(::google::protobuf::Arena* arena) +SearchUtxosRequest::SearchUtxosRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SearchUtxosRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.SearchUtxosRequest) } -inline PROTOBUF_NDEBUG_INLINE SearchUtxosRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE SearchUtxosRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::SearchUtxosRequest& from_msg) : commitments_{visibility, arena, from.commitments_}, _cached_size_{0} {} SearchUtxosRequest::SearchUtxosRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SearchUtxosRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SearchUtxosRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SearchUtxosRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.SearchUtxosRequest) } -inline PROTOBUF_NDEBUG_INLINE SearchUtxosRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE SearchUtxosRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : commitments_{visibility, arena}, _cached_size_{0} {} -inline void SearchUtxosRequest::SharedCtor(::_pb::Arena* arena) { +inline void SearchUtxosRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } SearchUtxosRequest::~SearchUtxosRequest() { // @@protoc_insertion_point(destructor:tari.rpc.SearchUtxosRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void SearchUtxosRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void SearchUtxosRequest::SharedDtor(MessageLite& self) { + SearchUtxosRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL SearchUtxosRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SearchUtxosRequest(arena); +} +constexpr auto SearchUtxosRequest::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SearchUtxosRequest, _impl_.commitments_) + + decltype(SearchUtxosRequest::_impl_.commitments_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SearchUtxosRequest), alignof(SearchUtxosRequest), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SearchUtxosRequest::PlacementNew_, + sizeof(SearchUtxosRequest), + alignof(SearchUtxosRequest)); + } +} +constexpr auto SearchUtxosRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SearchUtxosRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.commitments_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SearchUtxosRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SearchUtxosRequest::ByteSizeLong, + &SearchUtxosRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SearchUtxosRequest, _impl_._cached_size_), + false, + }, + &SearchUtxosRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* SearchUtxosRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SearchUtxosRequest_class_data_ = + SearchUtxosRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SearchUtxosRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SearchUtxosRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SearchUtxosRequest_class_data_.tc_table); + return SearchUtxosRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SearchUtxosRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +SearchUtxosRequest::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -11646,7 +15767,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SearchUtxosRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SearchUtxosRequest_default_instance_._instance, + SearchUtxosRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::SearchUtxosRequest>(), // to_prefetch @@ -11666,47 +15788,77 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SearchUtxosRequest::_table_ = { {{ }}, }; +PROTOBUF_NOINLINE void SearchUtxosRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SearchUtxosRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* SearchUtxosRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.commitments_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SearchUtxosRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SearchUtxosRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SearchUtxosRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SearchUtxosRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SearchUtxosRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated bytes commitments = 1; - for (int i = 0, n = this->_internal_commitments_size(); i < n; ++i) { - const auto& s = this->_internal_commitments().Get(i); + for (int i = 0, n = this_._internal_commitments_size(); i < n; ++i) { + const auto& s = this_._internal_commitments().Get(i); target = stream->WriteBytes(1, s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SearchUtxosRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SearchUtxosRequest::ByteSizeLong(const MessageLite& base) { + const SearchUtxosRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t SearchUtxosRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SearchUtxosRequest) + const SearchUtxosRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SearchUtxosRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated bytes commitments = 1; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_commitments().size()); - for (int i = 0, n = _internal_commitments().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( - _internal_commitments().Get(i)); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated bytes commitments = 1; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_commitments().size()); + for (int i = 0, n = this_._internal_commitments().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_commitments().Get(i)); + } + } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -11726,20 +15878,15 @@ void SearchUtxosRequest::CopyFrom(const SearchUtxosRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SearchUtxosRequest::IsInitialized() const { - return true; -} -void SearchUtxosRequest::InternalSwap(SearchUtxosRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void SearchUtxosRequest::InternalSwap(SearchUtxosRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.commitments_.InternalSwap(&other->_impl_.commitments_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -11747,82 +15894,115 @@ class FetchMatchingUtxosRequest::_Internal { public: }; -FetchMatchingUtxosRequest::FetchMatchingUtxosRequest(::google::protobuf::Arena* arena) +FetchMatchingUtxosRequest::FetchMatchingUtxosRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, FetchMatchingUtxosRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.FetchMatchingUtxosRequest) } -inline PROTOBUF_NDEBUG_INLINE FetchMatchingUtxosRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE FetchMatchingUtxosRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::FetchMatchingUtxosRequest& from_msg) : hashes_{visibility, arena, from.hashes_}, _cached_size_{0} {} FetchMatchingUtxosRequest::FetchMatchingUtxosRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FetchMatchingUtxosRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, FetchMatchingUtxosRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE FetchMatchingUtxosRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.FetchMatchingUtxosRequest) } -inline PROTOBUF_NDEBUG_INLINE FetchMatchingUtxosRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE FetchMatchingUtxosRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : hashes_{visibility, arena}, _cached_size_{0} {} -inline void FetchMatchingUtxosRequest::SharedCtor(::_pb::Arena* arena) { +inline void FetchMatchingUtxosRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } FetchMatchingUtxosRequest::~FetchMatchingUtxosRequest() { // @@protoc_insertion_point(destructor:tari.rpc.FetchMatchingUtxosRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void FetchMatchingUtxosRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void FetchMatchingUtxosRequest::SharedDtor(MessageLite& self) { + FetchMatchingUtxosRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL FetchMatchingUtxosRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) FetchMatchingUtxosRequest(arena); +} +constexpr auto FetchMatchingUtxosRequest::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosRequest, _impl_.hashes_) + + decltype(FetchMatchingUtxosRequest::_impl_.hashes_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(FetchMatchingUtxosRequest), alignof(FetchMatchingUtxosRequest), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&FetchMatchingUtxosRequest::PlacementNew_, + sizeof(FetchMatchingUtxosRequest), + alignof(FetchMatchingUtxosRequest)); + } +} +constexpr auto FetchMatchingUtxosRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_FetchMatchingUtxosRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.hashes_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FetchMatchingUtxosRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FetchMatchingUtxosRequest::ByteSizeLong, + &FetchMatchingUtxosRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosRequest, _impl_._cached_size_), + false, + }, + &FetchMatchingUtxosRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* FetchMatchingUtxosRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull FetchMatchingUtxosRequest_class_data_ = + FetchMatchingUtxosRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +FetchMatchingUtxosRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&FetchMatchingUtxosRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(FetchMatchingUtxosRequest_class_data_.tc_table); + return FetchMatchingUtxosRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FetchMatchingUtxosRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +FetchMatchingUtxosRequest::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -11833,7 +16013,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FetchMatchingUtxosRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_FetchMatchingUtxosRequest_default_instance_._instance, + FetchMatchingUtxosRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::FetchMatchingUtxosRequest>(), // to_prefetch @@ -11853,47 +16034,77 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FetchMatchingUtxosRequest::_table_ = { {{ }}, }; +PROTOBUF_NOINLINE void FetchMatchingUtxosRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.FetchMatchingUtxosRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* FetchMatchingUtxosRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.hashes_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL FetchMatchingUtxosRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const FetchMatchingUtxosRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL FetchMatchingUtxosRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const FetchMatchingUtxosRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.FetchMatchingUtxosRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated bytes hashes = 1; - for (int i = 0, n = this->_internal_hashes_size(); i < n; ++i) { - const auto& s = this->_internal_hashes().Get(i); + for (int i = 0, n = this_._internal_hashes_size(); i < n; ++i) { + const auto& s = this_._internal_hashes().Get(i); target = stream->WriteBytes(1, s, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.FetchMatchingUtxosRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t FetchMatchingUtxosRequest::ByteSizeLong(const MessageLite& base) { + const FetchMatchingUtxosRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t FetchMatchingUtxosRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.FetchMatchingUtxosRequest) + const FetchMatchingUtxosRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.FetchMatchingUtxosRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated bytes hashes = 1; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_hashes().size()); - for (int i = 0, n = _internal_hashes().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( - _internal_hashes().Get(i)); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated bytes hashes = 1; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_hashes().size()); + for (int i = 0, n = this_._internal_hashes().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_hashes().Get(i)); + } + } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -11913,121 +16124,133 @@ void FetchMatchingUtxosRequest::CopyFrom(const FetchMatchingUtxosRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool FetchMatchingUtxosRequest::IsInitialized() const { - return true; -} -void FetchMatchingUtxosRequest::InternalSwap(FetchMatchingUtxosRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void FetchMatchingUtxosRequest::InternalSwap(FetchMatchingUtxosRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.hashes_.InternalSwap(&other->_impl_.hashes_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FetchMatchingUtxosResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosResponse, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosResponse, _impl_._has_bits_); }; void FetchMatchingUtxosResponse::clear_output() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.output_ != nullptr) _impl_.output_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } -FetchMatchingUtxosResponse::FetchMatchingUtxosResponse(::google::protobuf::Arena* arena) +FetchMatchingUtxosResponse::FetchMatchingUtxosResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, FetchMatchingUtxosResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.FetchMatchingUtxosResponse) } -inline PROTOBUF_NDEBUG_INLINE FetchMatchingUtxosResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE FetchMatchingUtxosResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::FetchMatchingUtxosResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} FetchMatchingUtxosResponse::FetchMatchingUtxosResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FetchMatchingUtxosResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, FetchMatchingUtxosResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE FetchMatchingUtxosResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.output_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::TransactionOutput>( - arena, *from._impl_.output_) - : nullptr; + _impl_.output_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.output_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.FetchMatchingUtxosResponse) } -inline PROTOBUF_NDEBUG_INLINE FetchMatchingUtxosResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE FetchMatchingUtxosResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void FetchMatchingUtxosResponse::SharedCtor(::_pb::Arena* arena) { +inline void FetchMatchingUtxosResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.output_ = {}; } FetchMatchingUtxosResponse::~FetchMatchingUtxosResponse() { // @@protoc_insertion_point(destructor:tari.rpc.FetchMatchingUtxosResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void FetchMatchingUtxosResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.output_; - _impl_.~Impl_(); +inline void FetchMatchingUtxosResponse::SharedDtor(MessageLite& self) { + FetchMatchingUtxosResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.output_; + this_._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, - }, +inline void* PROTOBUF_NONNULL FetchMatchingUtxosResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) FetchMatchingUtxosResponse(arena); +} +constexpr auto FetchMatchingUtxosResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FetchMatchingUtxosResponse), + alignof(FetchMatchingUtxosResponse)); +} +constexpr auto FetchMatchingUtxosResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_FetchMatchingUtxosResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.output_ != nullptr); - _impl_.output_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FetchMatchingUtxosResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FetchMatchingUtxosResponse::ByteSizeLong, + &FetchMatchingUtxosResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosResponse, _impl_._cached_size_), + false, + }, + &FetchMatchingUtxosResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* FetchMatchingUtxosResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull FetchMatchingUtxosResponse_class_data_ = + FetchMatchingUtxosResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +FetchMatchingUtxosResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&FetchMatchingUtxosResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(FetchMatchingUtxosResponse_class_data_.tc_table); + return FetchMatchingUtxosResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FetchMatchingUtxosResponse::_table_ = { +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +FetchMatchingUtxosResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosResponse, _impl_._has_bits_), 0, // no _extensions_ @@ -12038,7 +16261,8 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FetchMatchingUtxosResponse::_table_ = 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_FetchMatchingUtxosResponse_default_instance_._instance, + FetchMatchingUtxosResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::FetchMatchingUtxosResponse>(), // to_prefetch @@ -12053,54 +16277,87 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FetchMatchingUtxosResponse::_table_ = // .tari.rpc.TransactionOutput output = 1; {PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosResponse, _impl_.output_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::TransactionOutput>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::TransactionOutput>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void FetchMatchingUtxosResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.FetchMatchingUtxosResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* FetchMatchingUtxosResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.output_ != nullptr); + _impl_.output_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL FetchMatchingUtxosResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const FetchMatchingUtxosResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL FetchMatchingUtxosResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const FetchMatchingUtxosResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.FetchMatchingUtxosResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.TransactionOutput output = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.output_, _impl_.output_->GetCachedSize(), target, stream); + 1, *this_._impl_.output_, this_._impl_.output_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.FetchMatchingUtxosResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t FetchMatchingUtxosResponse::ByteSizeLong(const MessageLite& base) { + const FetchMatchingUtxosResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t FetchMatchingUtxosResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.FetchMatchingUtxosResponse) + const FetchMatchingUtxosResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.FetchMatchingUtxosResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.TransactionOutput output = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.output_); + { + // .tari.rpc.TransactionOutput output = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.output_); + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -12111,11 +16368,10 @@ void FetchMatchingUtxosResponse::MergeImpl(::google::protobuf::MessageLite& to_m (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { 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_); + _this->_impl_.output_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.output_); } else { _this->_impl_.output_->MergeFrom(*from._impl_.output_); } @@ -12131,122 +16387,134 @@ void FetchMatchingUtxosResponse::CopyFrom(const FetchMatchingUtxosResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool FetchMatchingUtxosResponse::IsInitialized() const { - return true; -} -void FetchMatchingUtxosResponse::InternalSwap(FetchMatchingUtxosResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void FetchMatchingUtxosResponse::InternalSwap(FetchMatchingUtxosResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.output_, other->_impl_.output_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetPeersResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPeersResponse, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(GetPeersResponse, _impl_._has_bits_); }; void GetPeersResponse::clear_peer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.peer_ != nullptr) _impl_.peer_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } -GetPeersResponse::GetPeersResponse(::google::protobuf::Arena* arena) +GetPeersResponse::GetPeersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetPeersResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetPeersResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPeersResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE GetPeersResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetPeersResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} GetPeersResponse::GetPeersResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetPeersResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetPeersResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetPeersResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.peer_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Peer>( - arena, *from._impl_.peer_) - : nullptr; + _impl_.peer_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.peer_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetPeersResponse) } -inline PROTOBUF_NDEBUG_INLINE GetPeersResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetPeersResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void GetPeersResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetPeersResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.peer_ = {}; } GetPeersResponse::~GetPeersResponse() { // @@protoc_insertion_point(destructor:tari.rpc.GetPeersResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetPeersResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.peer_; - _impl_.~Impl_(); +inline void GetPeersResponse::SharedDtor(MessageLite& self) { + GetPeersResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.peer_; + this_._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, - }, +inline void* PROTOBUF_NONNULL GetPeersResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetPeersResponse(arena); +} +constexpr auto GetPeersResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetPeersResponse), + alignof(GetPeersResponse)); +} +constexpr auto GetPeersResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetPeersResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.peer_ != nullptr); - _impl_.peer_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetPeersResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetPeersResponse::ByteSizeLong, + &GetPeersResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetPeersResponse, _impl_._cached_size_), + false, + }, + &GetPeersResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetPeersResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetPeersResponse_class_data_ = + GetPeersResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetPeersResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetPeersResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetPeersResponse_class_data_.tc_table); + return GetPeersResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetPeersResponse::_table_ = { +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +GetPeersResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(GetPeersResponse, _impl_._has_bits_), 0, // no _extensions_ @@ -12257,7 +16525,8 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetPeersResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetPeersResponse_default_instance_._instance, + GetPeersResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetPeersResponse>(), // to_prefetch @@ -12272,54 +16541,87 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetPeersResponse::_table_ = { // .tari.rpc.Peer peer = 1; {PROTOBUF_FIELD_OFFSET(GetPeersResponse, _impl_.peer_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Peer>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Peer>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void GetPeersResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetPeersResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetPeersResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.peer_ != nullptr); + _impl_.peer_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetPeersResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetPeersResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetPeersResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetPeersResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetPeersResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.Peer peer = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.peer_, _impl_.peer_->GetCachedSize(), target, stream); + 1, *this_._impl_.peer_, this_._impl_.peer_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetPeersResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetPeersResponse::ByteSizeLong(const MessageLite& base) { + const GetPeersResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetPeersResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetPeersResponse) + const GetPeersResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetPeersResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.Peer peer = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.peer_); + { + // .tari.rpc.Peer peer = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.peer_); + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -12330,11 +16632,10 @@ void GetPeersResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { 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_); + _this->_impl_.peer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.peer_); } else { _this->_impl_.peer_->MergeFrom(*from._impl_.peer_); } @@ -12350,21 +16651,16 @@ void GetPeersResponse::CopyFrom(const GetPeersResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetPeersResponse::IsInitialized() const { - return true; -} -void GetPeersResponse::InternalSwap(GetPeersResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetPeersResponse::InternalSwap(GetPeersResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.peer_, other->_impl_.peer_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -12372,14 +16668,22 @@ class GetPeersRequest::_Internal { public: }; -GetPeersRequest::GetPeersRequest(::google::protobuf::Arena* arena) +GetPeersRequest::GetPeersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, GetPeersRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:tari.rpc.GetPeersRequest) } GetPeersRequest::GetPeersRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetPeersRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, GetPeersRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetPeersRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -12388,7 +16692,75 @@ GetPeersRequest::GetPeersRequest( // @@protoc_insertion_point(copy_constructor:tari.rpc.GetPeersRequest) } +inline void* PROTOBUF_NONNULL GetPeersRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetPeersRequest(arena); +} +constexpr auto GetPeersRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetPeersRequest), + alignof(GetPeersRequest)); +} +constexpr auto GetPeersRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetPeersRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetPeersRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetPeersRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &GetPeersRequest::ByteSizeLong, + &GetPeersRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetPeersRequest, _impl_._cached_size_), + false, + }, + &GetPeersRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetPeersRequest_class_data_ = + GetPeersRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetPeersRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetPeersRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetPeersRequest_class_data_.tc_table); + return GetPeersRequest_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +GetPeersRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + GetPeersRequest_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetPeersRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; @@ -12397,110 +16769,125 @@ 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 ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubmitTransactionRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, _impl_._has_bits_); }; void SubmitTransactionRequest::clear_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.transaction_ != nullptr) _impl_.transaction_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } -SubmitTransactionRequest::SubmitTransactionRequest(::google::protobuf::Arena* arena) +SubmitTransactionRequest::SubmitTransactionRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SubmitTransactionRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.SubmitTransactionRequest) } -inline PROTOBUF_NDEBUG_INLINE SubmitTransactionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE SubmitTransactionRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::SubmitTransactionRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SubmitTransactionRequest::SubmitTransactionRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SubmitTransactionRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SubmitTransactionRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubmitTransactionRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.transaction_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Transaction>( - arena, *from._impl_.transaction_) - : nullptr; + _impl_.transaction_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.transaction_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.SubmitTransactionRequest) } -inline PROTOBUF_NDEBUG_INLINE SubmitTransactionRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE SubmitTransactionRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void SubmitTransactionRequest::SharedCtor(::_pb::Arena* arena) { +inline void SubmitTransactionRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.transaction_ = {}; } SubmitTransactionRequest::~SubmitTransactionRequest() { // @@protoc_insertion_point(destructor:tari.rpc.SubmitTransactionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void SubmitTransactionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.transaction_; - _impl_.~Impl_(); +inline void SubmitTransactionRequest::SharedDtor(MessageLite& self) { + SubmitTransactionRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.transaction_; + this_._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, - }, +inline void* PROTOBUF_NONNULL SubmitTransactionRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SubmitTransactionRequest(arena); +} +constexpr auto SubmitTransactionRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubmitTransactionRequest), + alignof(SubmitTransactionRequest)); +} +constexpr auto SubmitTransactionRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SubmitTransactionRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.transaction_ != nullptr); - _impl_.transaction_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubmitTransactionRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SubmitTransactionRequest::ByteSizeLong, + &SubmitTransactionRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, _impl_._cached_size_), + false, + }, + &SubmitTransactionRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* SubmitTransactionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SubmitTransactionRequest_class_data_ = + SubmitTransactionRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SubmitTransactionRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SubmitTransactionRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SubmitTransactionRequest_class_data_.tc_table); + return SubmitTransactionRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SubmitTransactionRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +SubmitTransactionRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, _impl_._has_bits_), 0, // no _extensions_ @@ -12511,7 +16898,8 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SubmitTransactionRequest::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SubmitTransactionRequest_default_instance_._instance, + SubmitTransactionRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::SubmitTransactionRequest>(), // to_prefetch @@ -12526,54 +16914,87 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SubmitTransactionRequest::_table_ = { // .tari.rpc.Transaction transaction = 1; {PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, _impl_.transaction_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Transaction>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Transaction>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void SubmitTransactionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SubmitTransactionRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* SubmitTransactionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.transaction_ != nullptr); + _impl_.transaction_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SubmitTransactionRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SubmitTransactionRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SubmitTransactionRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SubmitTransactionRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SubmitTransactionRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.Transaction transaction = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.transaction_, _impl_.transaction_->GetCachedSize(), target, stream); + 1, *this_._impl_.transaction_, this_._impl_.transaction_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SubmitTransactionRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SubmitTransactionRequest::ByteSizeLong(const MessageLite& base) { + const SubmitTransactionRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t SubmitTransactionRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SubmitTransactionRequest) + const SubmitTransactionRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SubmitTransactionRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.Transaction transaction = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.transaction_); + { + // .tari.rpc.Transaction transaction = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.transaction_); + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -12584,11 +17005,10 @@ void SubmitTransactionRequest::MergeImpl(::google::protobuf::MessageLite& to_msg (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { 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_); + _this->_impl_.transaction_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.transaction_); } else { _this->_impl_.transaction_->MergeFrom(*from._impl_.transaction_); } @@ -12604,93 +17024,114 @@ void SubmitTransactionRequest::CopyFrom(const SubmitTransactionRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SubmitTransactionRequest::IsInitialized() const { - return true; -} -void SubmitTransactionRequest::InternalSwap(SubmitTransactionRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void SubmitTransactionRequest::InternalSwap(SubmitTransactionRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.transaction_, other->_impl_.transaction_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SubmitTransactionResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SubmitTransactionResponse, _impl_._has_bits_); }; -SubmitTransactionResponse::SubmitTransactionResponse(::google::protobuf::Arena* arena) +SubmitTransactionResponse::SubmitTransactionResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SubmitTransactionResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.SubmitTransactionResponse) } SubmitTransactionResponse::SubmitTransactionResponse( - ::google::protobuf::Arena* arena, const SubmitTransactionResponse& from) - : SubmitTransactionResponse(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SubmitTransactionResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SubmitTransactionResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE SubmitTransactionResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE SubmitTransactionResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void SubmitTransactionResponse::SharedCtor(::_pb::Arena* arena) { +inline void SubmitTransactionResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.result_ = {}; } SubmitTransactionResponse::~SubmitTransactionResponse() { // @@protoc_insertion_point(destructor:tari.rpc.SubmitTransactionResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void SubmitTransactionResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void SubmitTransactionResponse::SharedDtor(MessageLite& self) { + SubmitTransactionResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL SubmitTransactionResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SubmitTransactionResponse(arena); +} +constexpr auto SubmitTransactionResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubmitTransactionResponse), + alignof(SubmitTransactionResponse)); +} +constexpr auto SubmitTransactionResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SubmitTransactionResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubmitTransactionResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SubmitTransactionResponse::ByteSizeLong, + &SubmitTransactionResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubmitTransactionResponse, _impl_._cached_size_), + false, + }, + &SubmitTransactionResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* SubmitTransactionResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SubmitTransactionResponse_class_data_ = + SubmitTransactionResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SubmitTransactionResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SubmitTransactionResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SubmitTransactionResponse_class_data_.tc_table); + return SubmitTransactionResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SubmitTransactionResponse::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +SubmitTransactionResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(SubmitTransactionResponse, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -12699,68 +17140,100 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SubmitTransactionResponse::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SubmitTransactionResponse_default_instance_._instance, + SubmitTransactionResponse_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitTransactionResponse, _impl_.result_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SubmitTransactionResponse, _impl_.result_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(SubmitTransactionResponse, _impl_.result_)}}, }}, {{ 65535, 65535 }}, {{ // .tari.rpc.SubmitTransactionResult result = 1; - {PROTOBUF_FIELD_OFFSET(SubmitTransactionResponse, _impl_.result_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + {PROTOBUF_FIELD_OFFSET(SubmitTransactionResponse, _impl_.result_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void SubmitTransactionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SubmitTransactionResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* SubmitTransactionResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.result_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SubmitTransactionResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SubmitTransactionResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SubmitTransactionResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SubmitTransactionResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SubmitTransactionResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // .tari.rpc.SubmitTransactionResult result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_result() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_result(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SubmitTransactionResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SubmitTransactionResponse::ByteSizeLong(const MessageLite& base) { + const SubmitTransactionResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t SubmitTransactionResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SubmitTransactionResponse) + const SubmitTransactionResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SubmitTransactionResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.SubmitTransactionResult result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); + { + // .tari.rpc.SubmitTransactionResult result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_result() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -12769,9 +17242,13 @@ void SubmitTransactionResponse::MergeImpl(::google::protobuf::MessageLite& to_ms ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_result() != 0) { - _this->_impl_.result_ = from._impl_.result_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_result() != 0) { + _this->_impl_.result_ = from._impl_.result_; + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -12782,20 +17259,16 @@ void SubmitTransactionResponse::CopyFrom(const SubmitTransactionResponse& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool SubmitTransactionResponse::IsInitialized() const { - return true; -} -void SubmitTransactionResponse::InternalSwap(SubmitTransactionResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void SubmitTransactionResponse::InternalSwap(SubmitTransactionResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.result_, other->_impl_.result_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -12803,14 +17276,22 @@ class GetMempoolTransactionsRequest::_Internal { public: }; -GetMempoolTransactionsRequest::GetMempoolTransactionsRequest(::google::protobuf::Arena* arena) +GetMempoolTransactionsRequest::GetMempoolTransactionsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, GetMempoolTransactionsRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:tari.rpc.GetMempoolTransactionsRequest) } GetMempoolTransactionsRequest::GetMempoolTransactionsRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetMempoolTransactionsRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, GetMempoolTransactionsRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetMempoolTransactionsRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -12819,7 +17300,75 @@ GetMempoolTransactionsRequest::GetMempoolTransactionsRequest( // @@protoc_insertion_point(copy_constructor:tari.rpc.GetMempoolTransactionsRequest) } +inline void* PROTOBUF_NONNULL GetMempoolTransactionsRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetMempoolTransactionsRequest(arena); +} +constexpr auto GetMempoolTransactionsRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetMempoolTransactionsRequest), + alignof(GetMempoolTransactionsRequest)); +} +constexpr auto GetMempoolTransactionsRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetMempoolTransactionsRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetMempoolTransactionsRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetMempoolTransactionsRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &GetMempoolTransactionsRequest::ByteSizeLong, + &GetMempoolTransactionsRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsRequest, _impl_._cached_size_), + false, + }, + &GetMempoolTransactionsRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetMempoolTransactionsRequest_class_data_ = + GetMempoolTransactionsRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetMempoolTransactionsRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetMempoolTransactionsRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetMempoolTransactionsRequest_class_data_.tc_table); + return GetMempoolTransactionsRequest_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +GetMempoolTransactionsRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + GetMempoolTransactionsRequest_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetMempoolTransactionsRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; @@ -12828,110 +17377,125 @@ 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 ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetMempoolTransactionsResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsResponse, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsResponse, _impl_._has_bits_); }; void GetMempoolTransactionsResponse::clear_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.transaction_ != nullptr) _impl_.transaction_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } -GetMempoolTransactionsResponse::GetMempoolTransactionsResponse(::google::protobuf::Arena* arena) +GetMempoolTransactionsResponse::GetMempoolTransactionsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetMempoolTransactionsResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetMempoolTransactionsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetMempoolTransactionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE GetMempoolTransactionsResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetMempoolTransactionsResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} GetMempoolTransactionsResponse::GetMempoolTransactionsResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetMempoolTransactionsResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetMempoolTransactionsResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetMempoolTransactionsResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.transaction_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Transaction>( - arena, *from._impl_.transaction_) - : nullptr; + _impl_.transaction_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.transaction_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetMempoolTransactionsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetMempoolTransactionsResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetMempoolTransactionsResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void GetMempoolTransactionsResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetMempoolTransactionsResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.transaction_ = {}; } GetMempoolTransactionsResponse::~GetMempoolTransactionsResponse() { // @@protoc_insertion_point(destructor:tari.rpc.GetMempoolTransactionsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetMempoolTransactionsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.transaction_; - _impl_.~Impl_(); +inline void GetMempoolTransactionsResponse::SharedDtor(MessageLite& self) { + GetMempoolTransactionsResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.transaction_; + this_._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, - }, +inline void* PROTOBUF_NONNULL GetMempoolTransactionsResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetMempoolTransactionsResponse(arena); +} +constexpr auto GetMempoolTransactionsResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetMempoolTransactionsResponse), + alignof(GetMempoolTransactionsResponse)); +} +constexpr auto GetMempoolTransactionsResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetMempoolTransactionsResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.transaction_ != nullptr); - _impl_.transaction_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetMempoolTransactionsResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetMempoolTransactionsResponse::ByteSizeLong, + &GetMempoolTransactionsResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsResponse, _impl_._cached_size_), + false, + }, + &GetMempoolTransactionsResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetMempoolTransactionsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetMempoolTransactionsResponse_class_data_ = + GetMempoolTransactionsResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetMempoolTransactionsResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetMempoolTransactionsResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetMempoolTransactionsResponse_class_data_.tc_table); + return GetMempoolTransactionsResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetMempoolTransactionsResponse::_table_ = { +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +GetMempoolTransactionsResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsResponse, _impl_._has_bits_), 0, // no _extensions_ @@ -12942,7 +17506,8 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetMempoolTransactionsResponse::_table 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetMempoolTransactionsResponse_default_instance_._instance, + GetMempoolTransactionsResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetMempoolTransactionsResponse>(), // to_prefetch @@ -12957,54 +17522,87 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetMempoolTransactionsResponse::_table // .tari.rpc.Transaction transaction = 1; {PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsResponse, _impl_.transaction_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Transaction>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Transaction>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void GetMempoolTransactionsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetMempoolTransactionsResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetMempoolTransactionsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.transaction_ != nullptr); + _impl_.transaction_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetMempoolTransactionsResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetMempoolTransactionsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetMempoolTransactionsResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetMempoolTransactionsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetMempoolTransactionsResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.Transaction transaction = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.transaction_, _impl_.transaction_->GetCachedSize(), target, stream); + 1, *this_._impl_.transaction_, this_._impl_.transaction_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetMempoolTransactionsResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetMempoolTransactionsResponse::ByteSizeLong(const MessageLite& base) { + const GetMempoolTransactionsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetMempoolTransactionsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetMempoolTransactionsResponse) + const GetMempoolTransactionsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetMempoolTransactionsResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.Transaction transaction = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.transaction_); + { + // .tari.rpc.Transaction transaction = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.transaction_); + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -13015,11 +17613,10 @@ void GetMempoolTransactionsResponse::MergeImpl(::google::protobuf::MessageLite& (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { 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_); + _this->_impl_.transaction_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.transaction_); } else { _this->_impl_.transaction_->MergeFrom(*from._impl_.transaction_); } @@ -13035,122 +17632,134 @@ void GetMempoolTransactionsResponse::CopyFrom(const GetMempoolTransactionsRespon MergeFrom(from); } -PROTOBUF_NOINLINE bool GetMempoolTransactionsResponse::IsInitialized() const { - return true; -} -void GetMempoolTransactionsResponse::InternalSwap(GetMempoolTransactionsResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetMempoolTransactionsResponse::InternalSwap(GetMempoolTransactionsResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.transaction_, other->_impl_.transaction_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TransactionStateRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransactionStateRequest, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(TransactionStateRequest, _impl_._has_bits_); }; void TransactionStateRequest::clear_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.excess_sig_ != nullptr) _impl_.excess_sig_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } -TransactionStateRequest::TransactionStateRequest(::google::protobuf::Arena* arena) +TransactionStateRequest::TransactionStateRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TransactionStateRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.TransactionStateRequest) } -inline PROTOBUF_NDEBUG_INLINE TransactionStateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE TransactionStateRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::TransactionStateRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} TransactionStateRequest::TransactionStateRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TransactionStateRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TransactionStateRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TransactionStateRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.excess_sig_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>( - arena, *from._impl_.excess_sig_) - : nullptr; + _impl_.excess_sig_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.excess_sig_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.TransactionStateRequest) } -inline PROTOBUF_NDEBUG_INLINE TransactionStateRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE TransactionStateRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void TransactionStateRequest::SharedCtor(::_pb::Arena* arena) { +inline void TransactionStateRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.excess_sig_ = {}; } TransactionStateRequest::~TransactionStateRequest() { // @@protoc_insertion_point(destructor:tari.rpc.TransactionStateRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void TransactionStateRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.excess_sig_; - _impl_.~Impl_(); +inline void TransactionStateRequest::SharedDtor(MessageLite& self) { + TransactionStateRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.excess_sig_; + this_._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, - }, +inline void* PROTOBUF_NONNULL TransactionStateRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) TransactionStateRequest(arena); +} +constexpr auto TransactionStateRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TransactionStateRequest), + alignof(TransactionStateRequest)); +} +constexpr auto TransactionStateRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_TransactionStateRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.excess_sig_ != nullptr); - _impl_.excess_sig_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransactionStateRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TransactionStateRequest::ByteSizeLong, + &TransactionStateRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransactionStateRequest, _impl_._cached_size_), + false, + }, + &TransactionStateRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* TransactionStateRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull TransactionStateRequest_class_data_ = + TransactionStateRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +TransactionStateRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&TransactionStateRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(TransactionStateRequest_class_data_.tc_table); + return TransactionStateRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransactionStateRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +TransactionStateRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(TransactionStateRequest, _impl_._has_bits_), 0, // no _extensions_ @@ -13161,7 +17770,8 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransactionStateRequest::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TransactionStateRequest_default_instance_._instance, + TransactionStateRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::TransactionStateRequest>(), // to_prefetch @@ -13176,54 +17786,87 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransactionStateRequest::_table_ = { // .tari.rpc.Signature excess_sig = 1; {PROTOBUF_FIELD_OFFSET(TransactionStateRequest, _impl_.excess_sig_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void TransactionStateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionStateRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* TransactionStateRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.excess_sig_ != nullptr); + _impl_.excess_sig_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL TransactionStateRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const TransactionStateRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL TransactionStateRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const TransactionStateRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TransactionStateRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.Signature excess_sig = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.excess_sig_, _impl_.excess_sig_->GetCachedSize(), target, stream); + 1, *this_._impl_.excess_sig_, this_._impl_.excess_sig_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TransactionStateRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TransactionStateRequest::ByteSizeLong(const MessageLite& base) { + const TransactionStateRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t TransactionStateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionStateRequest) + const TransactionStateRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionStateRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.Signature excess_sig = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.excess_sig_); + { + // .tari.rpc.Signature excess_sig = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.excess_sig_); + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -13234,11 +17877,10 @@ void TransactionStateRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { 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_); + _this->_impl_.excess_sig_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.excess_sig_); } else { _this->_impl_.excess_sig_->MergeFrom(*from._impl_.excess_sig_); } @@ -13254,93 +17896,114 @@ void TransactionStateRequest::CopyFrom(const TransactionStateRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TransactionStateRequest::IsInitialized() const { - return true; -} -void TransactionStateRequest::InternalSwap(TransactionStateRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void TransactionStateRequest::InternalSwap(TransactionStateRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.excess_sig_, other->_impl_.excess_sig_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TransactionStateResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TransactionStateResponse, _impl_._has_bits_); }; -TransactionStateResponse::TransactionStateResponse(::google::protobuf::Arena* arena) +TransactionStateResponse::TransactionStateResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TransactionStateResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.TransactionStateResponse) } TransactionStateResponse::TransactionStateResponse( - ::google::protobuf::Arena* arena, const TransactionStateResponse& from) - : TransactionStateResponse(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TransactionStateResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TransactionStateResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE TransactionStateResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE TransactionStateResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void TransactionStateResponse::SharedCtor(::_pb::Arena* arena) { +inline void TransactionStateResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.result_ = {}; } TransactionStateResponse::~TransactionStateResponse() { // @@protoc_insertion_point(destructor:tari.rpc.TransactionStateResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void TransactionStateResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void TransactionStateResponse::SharedDtor(MessageLite& self) { + TransactionStateResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL TransactionStateResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) TransactionStateResponse(arena); +} +constexpr auto TransactionStateResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TransactionStateResponse), + alignof(TransactionStateResponse)); +} +constexpr auto TransactionStateResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_TransactionStateResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransactionStateResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TransactionStateResponse::ByteSizeLong, + &TransactionStateResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransactionStateResponse, _impl_._cached_size_), + false, + }, + &TransactionStateResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* TransactionStateResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull TransactionStateResponse_class_data_ = + TransactionStateResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +TransactionStateResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&TransactionStateResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(TransactionStateResponse_class_data_.tc_table); + return TransactionStateResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> TransactionStateResponse::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +TransactionStateResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(TransactionStateResponse, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -13349,68 +18012,100 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> TransactionStateResponse::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_TransactionStateResponse_default_instance_._instance, + TransactionStateResponse_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionStateResponse, _impl_.result_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionStateResponse, _impl_.result_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(TransactionStateResponse, _impl_.result_)}}, }}, {{ 65535, 65535 }}, {{ // .tari.rpc.TransactionLocation result = 1; - {PROTOBUF_FIELD_OFFSET(TransactionStateResponse, _impl_.result_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + {PROTOBUF_FIELD_OFFSET(TransactionStateResponse, _impl_.result_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void TransactionStateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionStateResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* TransactionStateResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.result_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL TransactionStateResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const TransactionStateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL TransactionStateResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const TransactionStateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TransactionStateResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // .tari.rpc.TransactionLocation result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_result() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_result(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TransactionStateResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TransactionStateResponse::ByteSizeLong(const MessageLite& base) { + const TransactionStateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t TransactionStateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionStateResponse) + const TransactionStateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionStateResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.TransactionLocation result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); + { + // .tari.rpc.TransactionLocation result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_result() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -13419,9 +18114,13 @@ void TransactionStateResponse::MergeImpl(::google::protobuf::MessageLite& to_msg ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_result() != 0) { - _this->_impl_.result_ = from._impl_.result_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_result() != 0) { + _this->_impl_.result_ = from._impl_.result_; + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -13432,43 +18131,53 @@ void TransactionStateResponse::CopyFrom(const TransactionStateResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TransactionStateResponse::IsInitialized() const { - return true; -} -void TransactionStateResponse::InternalSwap(TransactionStateResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void TransactionStateResponse::InternalSwap(TransactionStateResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.result_, other->_impl_.result_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class MempoolStatsResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_._has_bits_); }; -MempoolStatsResponse::MempoolStatsResponse(::google::protobuf::Arena* arena) +MempoolStatsResponse::MempoolStatsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, MempoolStatsResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.MempoolStatsResponse) } MempoolStatsResponse::MempoolStatsResponse( - ::google::protobuf::Arena* arena, const MempoolStatsResponse& from) - : MempoolStatsResponse(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MempoolStatsResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, MempoolStatsResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE MempoolStatsResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE MempoolStatsResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void MempoolStatsResponse::SharedCtor(::_pb::Arena* arena) { +inline void MempoolStatsResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, unconfirmed_txs_), @@ -13479,52 +18188,62 @@ inline void MempoolStatsResponse::SharedCtor(::_pb::Arena* arena) { } MempoolStatsResponse::~MempoolStatsResponse() { // @@protoc_insertion_point(destructor:tari.rpc.MempoolStatsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void MempoolStatsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void MempoolStatsResponse::SharedDtor(MessageLite& self) { + MempoolStatsResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL MempoolStatsResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) MempoolStatsResponse(arena); +} +constexpr auto MempoolStatsResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MempoolStatsResponse), + alignof(MempoolStatsResponse)); +} +constexpr auto MempoolStatsResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_MempoolStatsResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.unconfirmed_txs_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.unconfirmed_weight_) - - reinterpret_cast(&_impl_.unconfirmed_txs_)) + sizeof(_impl_.unconfirmed_weight_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MempoolStatsResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &MempoolStatsResponse::ByteSizeLong, + &MempoolStatsResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_._cached_size_), + false, + }, + &MempoolStatsResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* MempoolStatsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull MempoolStatsResponse_class_data_ = + MempoolStatsResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +MempoolStatsResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&MempoolStatsResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(MempoolStatsResponse_class_data_.tc_table); + return MempoolStatsResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> MempoolStatsResponse::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +MempoolStatsResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_._has_bits_), 0, // no _extensions_ 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -13533,107 +18252,151 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> MempoolStatsResponse::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_MempoolStatsResponse_default_instance_._instance, + MempoolStatsResponse_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_weight_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MempoolStatsResponse, _impl_.unconfirmed_weight_), 2>(), + {32, 2, 0, PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_weight_)}}, {::_pbi::TcParser::MiniParse, {}}, // uint64 unconfirmed_txs = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MempoolStatsResponse, _impl_.unconfirmed_txs_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_txs_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MempoolStatsResponse, _impl_.unconfirmed_txs_), 0>(), + {16, 0, 0, PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_txs_)}}, // uint64 reorg_txs = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MempoolStatsResponse, _impl_.reorg_txs_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.reorg_txs_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MempoolStatsResponse, _impl_.reorg_txs_), 1>(), + {24, 1, 0, PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.reorg_txs_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 unconfirmed_txs = 2; - {PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_txs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_txs_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 reorg_txs = 3; - {PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.reorg_txs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.reorg_txs_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 unconfirmed_weight = 4; - {PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_weight_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_weight_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void MempoolStatsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.MempoolStatsResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* MempoolStatsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + ::memset(&_impl_.unconfirmed_txs_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.unconfirmed_weight_) - + reinterpret_cast(&_impl_.unconfirmed_txs_)) + sizeof(_impl_.unconfirmed_weight_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL MempoolStatsResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const MempoolStatsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL MempoolStatsResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const MempoolStatsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.MempoolStatsResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 unconfirmed_txs = 2; - if (this->_internal_unconfirmed_txs() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_unconfirmed_txs(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_unconfirmed_txs() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_unconfirmed_txs(), target); + } } // uint64 reorg_txs = 3; - if (this->_internal_reorg_txs() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_reorg_txs(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_reorg_txs() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_reorg_txs(), target); + } } // uint64 unconfirmed_weight = 4; - if (this->_internal_unconfirmed_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_unconfirmed_weight(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_unconfirmed_weight() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_unconfirmed_weight(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.MempoolStatsResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t MempoolStatsResponse::ByteSizeLong(const MessageLite& base) { + const MempoolStatsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t MempoolStatsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.MempoolStatsResponse) + const MempoolStatsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.MempoolStatsResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 unconfirmed_txs = 2; - if (this->_internal_unconfirmed_txs() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_unconfirmed_txs()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // uint64 unconfirmed_txs = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_unconfirmed_txs() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_unconfirmed_txs()); + } + } + // uint64 reorg_txs = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_reorg_txs() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_reorg_txs()); + } + } + // uint64 unconfirmed_weight = 4; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_unconfirmed_weight() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_unconfirmed_weight()); + } + } } - - // uint64 reorg_txs = 3; - if (this->_internal_reorg_txs() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_reorg_txs()); - } - - // uint64 unconfirmed_weight = 4; - if (this->_internal_unconfirmed_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_unconfirmed_weight()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -13642,15 +18405,25 @@ void MempoolStatsResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, co ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_unconfirmed_txs() != 0) { - _this->_impl_.unconfirmed_txs_ = from._impl_.unconfirmed_txs_; - } - if (from._internal_reorg_txs() != 0) { - _this->_impl_.reorg_txs_ = from._impl_.reorg_txs_; - } - if (from._internal_unconfirmed_weight() != 0) { - _this->_impl_.unconfirmed_weight_ = from._impl_.unconfirmed_weight_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_unconfirmed_txs() != 0) { + _this->_impl_.unconfirmed_txs_ = from._impl_.unconfirmed_txs_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_reorg_txs() != 0) { + _this->_impl_.reorg_txs_ = from._impl_.reorg_txs_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_unconfirmed_weight() != 0) { + _this->_impl_.unconfirmed_weight_ = from._impl_.unconfirmed_weight_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -13661,13 +18434,11 @@ void MempoolStatsResponse::CopyFrom(const MempoolStatsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool MempoolStatsResponse::IsInitialized() const { - return true; -} -void MempoolStatsResponse::InternalSwap(MempoolStatsResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void MempoolStatsResponse::InternalSwap(MempoolStatsResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_weight_) + sizeof(MempoolStatsResponse::_impl_.unconfirmed_weight_) @@ -13677,151 +18448,249 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetActiveValidatorNodesRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_._has_bits_); }; -GetActiveValidatorNodesRequest::GetActiveValidatorNodesRequest(::google::protobuf::Arena* arena) +GetActiveValidatorNodesRequest::GetActiveValidatorNodesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetActiveValidatorNodesRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetActiveValidatorNodesRequest) } -GetActiveValidatorNodesRequest::GetActiveValidatorNodesRequest( - ::google::protobuf::Arena* arena, const GetActiveValidatorNodesRequest& from) - : GetActiveValidatorNodesRequest(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE GetActiveValidatorNodesRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetActiveValidatorNodesRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetActiveValidatorNodesRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + sidechain_id_(arena, from.sidechain_id_) {} -inline void GetActiveValidatorNodesRequest::SharedCtor(::_pb::Arena* arena) { +GetActiveValidatorNodesRequest::GetActiveValidatorNodesRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const GetActiveValidatorNodesRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetActiveValidatorNodesRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + GetActiveValidatorNodesRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.height_ = from._impl_.height_; + + // @@protoc_insertion_point(copy_constructor:tari.rpc.GetActiveValidatorNodesRequest) +} +PROTOBUF_NDEBUG_INLINE GetActiveValidatorNodesRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + sidechain_id_(arena) {} + +inline void GetActiveValidatorNodesRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.height_ = {}; } GetActiveValidatorNodesRequest::~GetActiveValidatorNodesRequest() { // @@protoc_insertion_point(destructor:tari.rpc.GetActiveValidatorNodesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetActiveValidatorNodesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void GetActiveValidatorNodesRequest::SharedDtor(MessageLite& self) { + GetActiveValidatorNodesRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.sidechain_id_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL GetActiveValidatorNodesRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetActiveValidatorNodesRequest(arena); +} +constexpr auto GetActiveValidatorNodesRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetActiveValidatorNodesRequest), + alignof(GetActiveValidatorNodesRequest)); +} +constexpr auto GetActiveValidatorNodesRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetActiveValidatorNodesRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.height_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetActiveValidatorNodesRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetActiveValidatorNodesRequest::ByteSizeLong, + &GetActiveValidatorNodesRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_._cached_size_), + false, + }, + &GetActiveValidatorNodesRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetActiveValidatorNodesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetActiveValidatorNodesRequest_class_data_ = + GetActiveValidatorNodesRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetActiveValidatorNodesRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetActiveValidatorNodesRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetActiveValidatorNodesRequest_class_data_.tc_table); + return GetActiveValidatorNodesRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetActiveValidatorNodesRequest::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +GetActiveValidatorNodesRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_._has_bits_), 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask + 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap + 4294967292, // skipmap offsetof(decltype(_table_), field_entries), - 1, // num_field_entries + 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GetActiveValidatorNodesRequest_default_instance_._instance, + GetActiveValidatorNodesRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetActiveValidatorNodesRequest>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ + // bytes sidechain_id = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_.sidechain_id_)}}, // uint64 height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetActiveValidatorNodesRequest, _impl_.height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_.height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetActiveValidatorNodesRequest, _impl_.height_), 1>(), + {8, 1, 0, PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_.height_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 height = 1; - {PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_.height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_.height_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // bytes sidechain_id = 2; + {PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_.sidechain_id_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void GetActiveValidatorNodesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetActiveValidatorNodesRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetActiveValidatorNodesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.sidechain_id_.ClearNonDefaultToEmpty(); + } + _impl_.height_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetActiveValidatorNodesRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetActiveValidatorNodesRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetActiveValidatorNodesRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetActiveValidatorNodesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetActiveValidatorNodesRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 height = 1; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_height(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + // bytes sidechain_id = 2; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_sidechain_id().empty()) { + const ::std::string& _s = this_._internal_sidechain_id(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetActiveValidatorNodesRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetActiveValidatorNodesRequest::ByteSizeLong(const MessageLite& base) { + const GetActiveValidatorNodesRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetActiveValidatorNodesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetActiveValidatorNodesRequest) + const GetActiveValidatorNodesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetActiveValidatorNodesRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 height = 1; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes sidechain_id = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_sidechain_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_sidechain_id()); + } + } + // uint64 height = 1; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_height()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -13830,9 +18699,24 @@ void GetActiveValidatorNodesRequest::MergeImpl(::google::protobuf::MessageLite& ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_sidechain_id().empty()) { + _this->_internal_set_sidechain_id(from._internal_sidechain_id()); + } else { + if (_this->_impl_.sidechain_id_.IsDefault()) { + _this->_internal_set_sidechain_id(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_height() != 0) { + _this->_impl_.height_ = from._impl_.height_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -13843,197 +18727,293 @@ void GetActiveValidatorNodesRequest::CopyFrom(const GetActiveValidatorNodesReque MergeFrom(from); } -PROTOBUF_NOINLINE bool GetActiveValidatorNodesRequest::IsInitialized() const { - return true; -} -void GetActiveValidatorNodesRequest::InternalSwap(GetActiveValidatorNodesRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetActiveValidatorNodesRequest::InternalSwap(GetActiveValidatorNodesRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.height_, other->_impl_.height_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sidechain_id_, &other->_impl_.sidechain_id_, arena); + swap(_impl_.height_, other->_impl_.height_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetActiveValidatorNodesResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_._has_bits_); }; -GetActiveValidatorNodesResponse::GetActiveValidatorNodesResponse(::google::protobuf::Arena* arena) +GetActiveValidatorNodesResponse::GetActiveValidatorNodesResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetActiveValidatorNodesResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetActiveValidatorNodesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetActiveValidatorNodesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : shard_key_(arena, from.shard_key_), +PROTOBUF_NDEBUG_INLINE GetActiveValidatorNodesResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetActiveValidatorNodesResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + shard_key_(arena, from.shard_key_), public_key_(arena, from.public_key_), - _cached_size_{0} {} + sidechain_id_(arena, from.sidechain_id_) {} GetActiveValidatorNodesResponse::GetActiveValidatorNodesResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetActiveValidatorNodesResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetActiveValidatorNodesResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetActiveValidatorNodesResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.GetActiveValidatorNodesResponse) } -inline PROTOBUF_NDEBUG_INLINE GetActiveValidatorNodesResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetActiveValidatorNodesResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : shard_key_(arena), + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + shard_key_(arena), public_key_(arena), - _cached_size_{0} {} + sidechain_id_(arena) {} -inline void GetActiveValidatorNodesResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetActiveValidatorNodesResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetActiveValidatorNodesResponse::~GetActiveValidatorNodesResponse() { // @@protoc_insertion_point(destructor:tari.rpc.GetActiveValidatorNodesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetActiveValidatorNodesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.shard_key_.Destroy(); - _impl_.public_key_.Destroy(); - _impl_.~Impl_(); +inline void GetActiveValidatorNodesResponse::SharedDtor(MessageLite& self) { + GetActiveValidatorNodesResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.shard_key_.Destroy(); + this_._impl_.public_key_.Destroy(); + this_._impl_.sidechain_id_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL GetActiveValidatorNodesResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetActiveValidatorNodesResponse(arena); +} +constexpr auto GetActiveValidatorNodesResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetActiveValidatorNodesResponse), + alignof(GetActiveValidatorNodesResponse)); +} +constexpr auto GetActiveValidatorNodesResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetActiveValidatorNodesResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.shard_key_.ClearToEmpty(); - _impl_.public_key_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetActiveValidatorNodesResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetActiveValidatorNodesResponse::ByteSizeLong, + &GetActiveValidatorNodesResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_._cached_size_), + false, + }, + &GetActiveValidatorNodesResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetActiveValidatorNodesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetActiveValidatorNodesResponse_class_data_ = + GetActiveValidatorNodesResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetActiveValidatorNodesResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetActiveValidatorNodesResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetActiveValidatorNodesResponse_class_data_.tc_table); + return GetActiveValidatorNodesResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetActiveValidatorNodesResponse::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +GetActiveValidatorNodesResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_._has_bits_), 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask + 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap + 4294967288, // skipmap offsetof(decltype(_table_), field_entries), - 2, // num_field_entries + 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GetActiveValidatorNodesResponse_default_instance_._instance, + GetActiveValidatorNodesResponse_class_data_.base(), + nullptr, // post_loop_handler ::_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, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.public_key_)}}, + {::_pbi::TcParser::MiniParse, {}}, // bytes shard_key = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.shard_key_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.shard_key_)}}, + // bytes public_key = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.public_key_)}}, + // bytes sidechain_id = 3; + {::_pbi::TcParser::FastBS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.sidechain_id_)}}, }}, {{ 65535, 65535 }}, {{ // bytes shard_key = 1; - {PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.shard_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.shard_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes public_key = 2; - {PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.public_key_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes sidechain_id = 3; + {PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.sidechain_id_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void GetActiveValidatorNodesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetActiveValidatorNodesResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetActiveValidatorNodesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.shard_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.sidechain_id_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetActiveValidatorNodesResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetActiveValidatorNodesResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetActiveValidatorNodesResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetActiveValidatorNodesResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetActiveValidatorNodesResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes shard_key = 1; - if (!this->_internal_shard_key().empty()) { - const std::string& _s = this->_internal_shard_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_shard_key().empty()) { + const ::std::string& _s = this_._internal_shard_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // bytes public_key = 2; - if (!this->_internal_public_key().empty()) { - const std::string& _s = this->_internal_public_key(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_public_key().empty()) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + // bytes sidechain_id = 3; + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (!this_._internal_sidechain_id().empty()) { + const ::std::string& _s = this_._internal_sidechain_id(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetActiveValidatorNodesResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetActiveValidatorNodesResponse::ByteSizeLong(const MessageLite& base) { + const GetActiveValidatorNodesResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetActiveValidatorNodesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetActiveValidatorNodesResponse) + const GetActiveValidatorNodesResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetActiveValidatorNodesResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes shard_key = 1; - if (!this->_internal_shard_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_shard_key()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // bytes shard_key = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_shard_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_shard_key()); + } + } + // bytes public_key = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + } + // bytes sidechain_id = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_sidechain_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_sidechain_id()); + } + } } - - // bytes public_key = 2; - if (!this->_internal_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -14042,12 +19022,37 @@ void GetActiveValidatorNodesResponse::MergeImpl(::google::protobuf::MessageLite& ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_shard_key().empty()) { - _this->_internal_set_shard_key(from._internal_shard_key()); - } - if (!from._internal_public_key().empty()) { - _this->_internal_set_public_key(from._internal_public_key()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_shard_key().empty()) { + _this->_internal_set_shard_key(from._internal_shard_key()); + } else { + if (_this->_impl_.shard_key_.IsDefault()) { + _this->_internal_set_shard_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_public_key().empty()) { + _this->_internal_set_public_key(from._internal_public_key()); + } else { + if (_this->_impl_.public_key_.IsDefault()) { + _this->_internal_set_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_sidechain_id().empty()) { + _this->_internal_set_sidechain_id(from._internal_sidechain_id()); + } else { + if (_this->_impl_.sidechain_id_.IsDefault()) { + _this->_internal_set_sidechain_id(""); + } + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -14058,112 +19063,134 @@ void GetActiveValidatorNodesResponse::CopyFrom(const GetActiveValidatorNodesResp MergeFrom(from); } -PROTOBUF_NOINLINE bool GetActiveValidatorNodesResponse::IsInitialized() const { - return true; -} -void GetActiveValidatorNodesResponse::InternalSwap(GetActiveValidatorNodesResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetActiveValidatorNodesResponse::InternalSwap(GetActiveValidatorNodesResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.shard_key_, &other->_impl_.shard_key_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sidechain_id_, &other->_impl_.sidechain_id_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== -class GetShardKeyRequest::_Internal { +class GetValidatorNodeChangesRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetValidatorNodeChangesRequest, _impl_._has_bits_); }; -GetShardKeyRequest::GetShardKeyRequest(::google::protobuf::Arena* arena) +GetValidatorNodeChangesRequest::GetValidatorNodeChangesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetValidatorNodeChangesRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetShardKeyRequest) + // @@protoc_insertion_point(arena_constructor:tari.rpc.GetValidatorNodeChangesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetShardKeyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : public_key_(arena, from.public_key_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetValidatorNodeChangesRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetValidatorNodeChangesRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + sidechain_id_(arena, from.sidechain_id_) {} -GetShardKeyRequest::GetShardKeyRequest( - ::google::protobuf::Arena* arena, - const GetShardKeyRequest& from) +GetValidatorNodeChangesRequest::GetValidatorNodeChangesRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const GetValidatorNodeChangesRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetValidatorNodeChangesRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { - GetShardKeyRequest* const _this = this; +#endif // PROTOBUF_CUSTOM_VTABLE + GetValidatorNodeChangesRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.height_ = from._impl_.height_; + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.epoch_ = from._impl_.epoch_; - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetShardKeyRequest) + // @@protoc_insertion_point(copy_constructor:tari.rpc.GetValidatorNodeChangesRequest) } -inline PROTOBUF_NDEBUG_INLINE GetShardKeyRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetValidatorNodeChangesRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : public_key_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + sidechain_id_(arena) {} -inline void GetShardKeyRequest::SharedCtor(::_pb::Arena* arena) { +inline void GetValidatorNodeChangesRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.height_ = {}; + _impl_.epoch_ = {}; } -GetShardKeyRequest::~GetShardKeyRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.GetShardKeyRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); +GetValidatorNodeChangesRequest::~GetValidatorNodeChangesRequest() { + // @@protoc_insertion_point(destructor:tari.rpc.GetValidatorNodeChangesRequest) + SharedDtor(*this); } -inline void GetShardKeyRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_key_.Destroy(); - _impl_.~Impl_(); +inline void GetValidatorNodeChangesRequest::SharedDtor(MessageLite& self) { + GetValidatorNodeChangesRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.sidechain_id_.Destroy(); + this_._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_; +inline void* PROTOBUF_NONNULL GetValidatorNodeChangesRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetValidatorNodeChangesRequest(arena); } -PROTOBUF_NOINLINE void GetShardKeyRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetShardKeyRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_key_.ClearToEmpty(); - _impl_.height_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +constexpr auto GetValidatorNodeChangesRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetValidatorNodeChangesRequest), + alignof(GetValidatorNodeChangesRequest)); +} +constexpr auto GetValidatorNodeChangesRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetValidatorNodeChangesRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetValidatorNodeChangesRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetValidatorNodeChangesRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetValidatorNodeChangesRequest::ByteSizeLong, + &GetValidatorNodeChangesRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetValidatorNodeChangesRequest, _impl_._cached_size_), + false, + }, + &GetValidatorNodeChangesRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetShardKeyRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetValidatorNodeChangesRequest_class_data_ = + GetValidatorNodeChangesRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetValidatorNodeChangesRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetValidatorNodeChangesRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetValidatorNodeChangesRequest_class_data_.tc_table); + return GetValidatorNodeChangesRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetShardKeyRequest::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +GetValidatorNodeChangesRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetValidatorNodeChangesRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -14172,7 +19199,1548 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetShardKeyRequest::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GetShardKeyRequest_default_instance_._instance, + GetValidatorNodeChangesRequest_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetValidatorNodeChangesRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // bytes sidechain_id = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetValidatorNodeChangesRequest, _impl_.sidechain_id_)}}, + // uint64 epoch = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetValidatorNodeChangesRequest, _impl_.epoch_), 1>(), + {8, 1, 0, PROTOBUF_FIELD_OFFSET(GetValidatorNodeChangesRequest, _impl_.epoch_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // uint64 epoch = 1; + {PROTOBUF_FIELD_OFFSET(GetValidatorNodeChangesRequest, _impl_.epoch_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // bytes sidechain_id = 2; + {PROTOBUF_FIELD_OFFSET(GetValidatorNodeChangesRequest, _impl_.sidechain_id_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void GetValidatorNodeChangesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetValidatorNodeChangesRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.sidechain_id_.ClearNonDefaultToEmpty(); + } + _impl_.epoch_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetValidatorNodeChangesRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetValidatorNodeChangesRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetValidatorNodeChangesRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetValidatorNodeChangesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetValidatorNodeChangesRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // uint64 epoch = 1; + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_epoch() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_epoch(), target); + } + } + + // bytes sidechain_id = 2; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_sidechain_id().empty()) { + const ::std::string& _s = this_._internal_sidechain_id(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetValidatorNodeChangesRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetValidatorNodeChangesRequest::ByteSizeLong(const MessageLite& base) { + const GetValidatorNodeChangesRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GetValidatorNodeChangesRequest::ByteSizeLong() const { + const GetValidatorNodeChangesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetValidatorNodeChangesRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes sidechain_id = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_sidechain_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_sidechain_id()); + } + } + // uint64 epoch = 1; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_epoch() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_epoch()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void GetValidatorNodeChangesRequest::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.GetValidatorNodeChangesRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_sidechain_id().empty()) { + _this->_internal_set_sidechain_id(from._internal_sidechain_id()); + } else { + if (_this->_impl_.sidechain_id_.IsDefault()) { + _this->_internal_set_sidechain_id(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_epoch() != 0) { + _this->_impl_.epoch_ = from._impl_.epoch_; + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetValidatorNodeChangesRequest::CopyFrom(const GetValidatorNodeChangesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetValidatorNodeChangesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void GetValidatorNodeChangesRequest::InternalSwap(GetValidatorNodeChangesRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sidechain_id_, &other->_impl_.sidechain_id_, arena); + swap(_impl_.epoch_, other->_impl_.epoch_); +} + +::google::protobuf::Metadata GetValidatorNodeChangesRequest::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class ValidatorNodeChange::_Internal { + public: + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeChange, _impl_._oneof_case_); +}; + +void ValidatorNodeChange::set_allocated_add(::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NULLABLE add) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_change(); + if (add) { + ::google::protobuf::Arena* submessage_arena = add->GetArena(); + if (message_arena != submessage_arena) { + add = ::google::protobuf::internal::GetOwnedMessage(message_arena, add, submessage_arena); + } + set_has_add(); + _impl_.change_.add_ = add; + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeChange.add) +} +void ValidatorNodeChange::set_allocated_remove(::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NULLABLE remove) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_change(); + if (remove) { + ::google::protobuf::Arena* submessage_arena = remove->GetArena(); + if (message_arena != submessage_arena) { + remove = ::google::protobuf::internal::GetOwnedMessage(message_arena, remove, submessage_arena); + } + set_has_remove(); + _impl_.change_.remove_ = remove; + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeChange.remove) +} +ValidatorNodeChange::ValidatorNodeChange(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValidatorNodeChange_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.ValidatorNodeChange) +} +PROTOBUF_NDEBUG_INLINE ValidatorNodeChange::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ValidatorNodeChange& from_msg) + : change_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +ValidatorNodeChange::ValidatorNodeChange( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ValidatorNodeChange& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValidatorNodeChange_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ValidatorNodeChange* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + switch (change_case()) { + case CHANGE_NOT_SET: + break; + case kAdd: + _impl_.change_.add_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.change_.add_); + break; + case kRemove: + _impl_.change_.remove_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.change_.remove_); + break; + } + + // @@protoc_insertion_point(copy_constructor:tari.rpc.ValidatorNodeChange) +} +PROTOBUF_NDEBUG_INLINE ValidatorNodeChange::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : change_{}, + _cached_size_{0}, + _oneof_case_{} {} + +inline void ValidatorNodeChange::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +ValidatorNodeChange::~ValidatorNodeChange() { + // @@protoc_insertion_point(destructor:tari.rpc.ValidatorNodeChange) + SharedDtor(*this); +} +inline void ValidatorNodeChange::SharedDtor(MessageLite& self) { + ValidatorNodeChange& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + if (this_.has_change()) { + this_.clear_change(); + } + this_._impl_.~Impl_(); +} + +void ValidatorNodeChange::clear_change() { +// @@protoc_insertion_point(one_of_clear_start:tari.rpc.ValidatorNodeChange) + ::google::protobuf::internal::TSanWrite(&_impl_); + switch (change_case()) { + case kAdd: { + if (GetArena() == nullptr) { + delete _impl_.change_.add_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.change_.add_); + } + break; + } + case kRemove: { + if (GetArena() == nullptr) { + delete _impl_.change_.remove_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.change_.remove_); + } + break; + } + case CHANGE_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = CHANGE_NOT_SET; +} + + +inline void* PROTOBUF_NONNULL ValidatorNodeChange::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ValidatorNodeChange(arena); +} +constexpr auto ValidatorNodeChange::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ValidatorNodeChange), + alignof(ValidatorNodeChange)); +} +constexpr auto ValidatorNodeChange::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ValidatorNodeChange_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ValidatorNodeChange::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ValidatorNodeChange::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ValidatorNodeChange::ByteSizeLong, + &ValidatorNodeChange::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ValidatorNodeChange, _impl_._cached_size_), + false, + }, + &ValidatorNodeChange::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ValidatorNodeChange_class_data_ = + ValidatorNodeChange::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ValidatorNodeChange::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ValidatorNodeChange_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ValidatorNodeChange_class_data_.tc_table); + return ValidatorNodeChange_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 2, 2, 0, 2> +ValidatorNodeChange::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + ValidatorNodeChange_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeChange>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // .tari.rpc.ValidatorNodeChangeAdd add = 1; + {PROTOBUF_FIELD_OFFSET(ValidatorNodeChange, _impl_.change_.add_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .tari.rpc.ValidatorNodeChangeRemove remove = 2; + {PROTOBUF_FIELD_OFFSET(ValidatorNodeChange, _impl_.change_.remove_), _Internal::kOneofCaseOffset + 0, 1, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeChangeAdd>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeChangeRemove>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void ValidatorNodeChange::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ValidatorNodeChange) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_change(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ValidatorNodeChange::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ValidatorNodeChange& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ValidatorNodeChange::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ValidatorNodeChange& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ValidatorNodeChange) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + switch (this_.change_case()) { + case kAdd: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.change_.add_, this_._impl_.change_.add_->GetCachedSize(), target, + stream); + break; + } + case kRemove: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.change_.remove_, this_._impl_.change_.remove_->GetCachedSize(), target, + stream); + break; + } + default: + break; + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ValidatorNodeChange) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ValidatorNodeChange::ByteSizeLong(const MessageLite& base) { + const ValidatorNodeChange& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ValidatorNodeChange::ByteSizeLong() const { + const ValidatorNodeChange& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ValidatorNodeChange) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + switch (this_.change_case()) { + // .tari.rpc.ValidatorNodeChangeAdd add = 1; + case kAdd: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.change_.add_); + break; + } + // .tari.rpc.ValidatorNodeChangeRemove remove = 2; + case kRemove: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.change_.remove_); + break; + } + case CHANGE_NOT_SET: { + break; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ValidatorNodeChange::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.ValidatorNodeChange) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + 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_change(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; + } + + switch (oneof_from_case) { + case kAdd: { + if (oneof_needs_init) { + _this->_impl_.change_.add_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.change_.add_); + } else { + _this->_impl_.change_.add_->MergeFrom(*from._impl_.change_.add_); + } + break; + } + case kRemove: { + if (oneof_needs_init) { + _this->_impl_.change_.remove_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.change_.remove_); + } else { + _this->_impl_.change_.remove_->MergeFrom(*from._impl_.change_.remove_); + } + break; + } + case CHANGE_NOT_SET: + break; + } + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ValidatorNodeChange::CopyFrom(const ValidatorNodeChange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ValidatorNodeChange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void ValidatorNodeChange::InternalSwap(ValidatorNodeChange* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.change_, other->_impl_.change_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::google::protobuf::Metadata ValidatorNodeChange::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class ValidatorNodeChangeAdd::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_._has_bits_); +}; + +void ValidatorNodeChangeAdd::clear_registration() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.registration_ != nullptr) _impl_.registration_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +ValidatorNodeChangeAdd::ValidatorNodeChangeAdd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValidatorNodeChangeAdd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.ValidatorNodeChangeAdd) +} +PROTOBUF_NDEBUG_INLINE ValidatorNodeChangeAdd::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ValidatorNodeChangeAdd& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + shard_key_(arena, from.shard_key_) {} + +ValidatorNodeChangeAdd::ValidatorNodeChangeAdd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ValidatorNodeChangeAdd& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValidatorNodeChangeAdd_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ValidatorNodeChangeAdd* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.registration_ = ((cached_has_bits & 0x00000002u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.registration_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, activation_epoch_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, activation_epoch_), + offsetof(Impl_, minimum_value_promise_) - + offsetof(Impl_, activation_epoch_) + + sizeof(Impl_::minimum_value_promise_)); + + // @@protoc_insertion_point(copy_constructor:tari.rpc.ValidatorNodeChangeAdd) +} +PROTOBUF_NDEBUG_INLINE ValidatorNodeChangeAdd::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + shard_key_(arena) {} + +inline void ValidatorNodeChangeAdd::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, registration_), + 0, + offsetof(Impl_, minimum_value_promise_) - + offsetof(Impl_, registration_) + + sizeof(Impl_::minimum_value_promise_)); +} +ValidatorNodeChangeAdd::~ValidatorNodeChangeAdd() { + // @@protoc_insertion_point(destructor:tari.rpc.ValidatorNodeChangeAdd) + SharedDtor(*this); +} +inline void ValidatorNodeChangeAdd::SharedDtor(MessageLite& self) { + ValidatorNodeChangeAdd& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.shard_key_.Destroy(); + delete this_._impl_.registration_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL ValidatorNodeChangeAdd::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ValidatorNodeChangeAdd(arena); +} +constexpr auto ValidatorNodeChangeAdd::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ValidatorNodeChangeAdd), + alignof(ValidatorNodeChangeAdd)); +} +constexpr auto ValidatorNodeChangeAdd::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ValidatorNodeChangeAdd_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ValidatorNodeChangeAdd::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ValidatorNodeChangeAdd::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ValidatorNodeChangeAdd::ByteSizeLong, + &ValidatorNodeChangeAdd::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_._cached_size_), + false, + }, + &ValidatorNodeChangeAdd::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ValidatorNodeChangeAdd_class_data_ = + ValidatorNodeChangeAdd::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ValidatorNodeChangeAdd::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ValidatorNodeChangeAdd_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ValidatorNodeChangeAdd_class_data_.tc_table); + return ValidatorNodeChangeAdd_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +ValidatorNodeChangeAdd::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + ValidatorNodeChangeAdd_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeChangeAdd>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // bytes shard_key = 4; + {::_pbi::TcParser::FastBS1, + {34, 0, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_.shard_key_)}}, + // uint64 activation_epoch = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValidatorNodeChangeAdd, _impl_.activation_epoch_), 2>(), + {8, 2, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_.activation_epoch_)}}, + // .tari.rpc.ValidatorNodeRegistration registration = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_.registration_)}}, + // uint64 minimum_value_promise = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValidatorNodeChangeAdd, _impl_.minimum_value_promise_), 3>(), + {24, 3, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_.minimum_value_promise_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // uint64 activation_epoch = 1; + {PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_.activation_epoch_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // .tari.rpc.ValidatorNodeRegistration registration = 2; + {PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_.registration_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // uint64 minimum_value_promise = 3; + {PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_.minimum_value_promise_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // bytes shard_key = 4; + {PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_.shard_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeRegistration>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void ValidatorNodeChangeAdd::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ValidatorNodeChangeAdd) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.shard_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(_impl_.registration_ != nullptr); + _impl_.registration_->Clear(); + } + } + if ((cached_has_bits & 0x0000000cu) != 0) { + ::memset(&_impl_.activation_epoch_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.minimum_value_promise_) - + reinterpret_cast(&_impl_.activation_epoch_)) + sizeof(_impl_.minimum_value_promise_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ValidatorNodeChangeAdd::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ValidatorNodeChangeAdd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ValidatorNodeChangeAdd::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ValidatorNodeChangeAdd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ValidatorNodeChangeAdd) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // uint64 activation_epoch = 1; + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_activation_epoch() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_activation_epoch(), target); + } + } + + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.ValidatorNodeRegistration registration = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.registration_, this_._impl_.registration_->GetCachedSize(), target, + stream); + } + + // uint64 minimum_value_promise = 3; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_minimum_value_promise() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_minimum_value_promise(), target); + } + } + + // bytes shard_key = 4; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_shard_key().empty()) { + const ::std::string& _s = this_._internal_shard_key(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ValidatorNodeChangeAdd) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ValidatorNodeChangeAdd::ByteSizeLong(const MessageLite& base) { + const ValidatorNodeChangeAdd& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ValidatorNodeChangeAdd::ByteSizeLong() const { + const ValidatorNodeChangeAdd& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ValidatorNodeChangeAdd) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + // bytes shard_key = 4; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_shard_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_shard_key()); + } + } + // .tari.rpc.ValidatorNodeRegistration registration = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.registration_); + } + // uint64 activation_epoch = 1; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_activation_epoch() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_activation_epoch()); + } + } + // uint64 minimum_value_promise = 3; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_minimum_value_promise() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_minimum_value_promise()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ValidatorNodeChangeAdd::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.ValidatorNodeChangeAdd) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_shard_key().empty()) { + _this->_internal_set_shard_key(from._internal_shard_key()); + } else { + if (_this->_impl_.shard_key_.IsDefault()) { + _this->_internal_set_shard_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(from._impl_.registration_ != nullptr); + if (_this->_impl_.registration_ == nullptr) { + _this->_impl_.registration_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.registration_); + } else { + _this->_impl_.registration_->MergeFrom(*from._impl_.registration_); + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_activation_epoch() != 0) { + _this->_impl_.activation_epoch_ = from._impl_.activation_epoch_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_minimum_value_promise() != 0) { + _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_); +} + +void ValidatorNodeChangeAdd::CopyFrom(const ValidatorNodeChangeAdd& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ValidatorNodeChangeAdd) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void ValidatorNodeChangeAdd::InternalSwap(ValidatorNodeChangeAdd* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.shard_key_, &other->_impl_.shard_key_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_.minimum_value_promise_) + + sizeof(ValidatorNodeChangeAdd::_impl_.minimum_value_promise_) + - PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeAdd, _impl_.registration_)>( + reinterpret_cast(&_impl_.registration_), + reinterpret_cast(&other->_impl_.registration_)); +} + +::google::protobuf::Metadata ValidatorNodeChangeAdd::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class ValidatorNodeChangeRemove::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeRemove, _impl_._has_bits_); +}; + +ValidatorNodeChangeRemove::ValidatorNodeChangeRemove(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValidatorNodeChangeRemove_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.ValidatorNodeChangeRemove) +} +PROTOBUF_NDEBUG_INLINE ValidatorNodeChangeRemove::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ValidatorNodeChangeRemove& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + public_key_(arena, from.public_key_) {} + +ValidatorNodeChangeRemove::ValidatorNodeChangeRemove( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ValidatorNodeChangeRemove& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValidatorNodeChangeRemove_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ValidatorNodeChangeRemove* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:tari.rpc.ValidatorNodeChangeRemove) +} +PROTOBUF_NDEBUG_INLINE ValidatorNodeChangeRemove::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + public_key_(arena) {} + +inline void ValidatorNodeChangeRemove::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +ValidatorNodeChangeRemove::~ValidatorNodeChangeRemove() { + // @@protoc_insertion_point(destructor:tari.rpc.ValidatorNodeChangeRemove) + SharedDtor(*this); +} +inline void ValidatorNodeChangeRemove::SharedDtor(MessageLite& self) { + ValidatorNodeChangeRemove& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_key_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL ValidatorNodeChangeRemove::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ValidatorNodeChangeRemove(arena); +} +constexpr auto ValidatorNodeChangeRemove::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ValidatorNodeChangeRemove), + alignof(ValidatorNodeChangeRemove)); +} +constexpr auto ValidatorNodeChangeRemove::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ValidatorNodeChangeRemove_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ValidatorNodeChangeRemove::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ValidatorNodeChangeRemove::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ValidatorNodeChangeRemove::ByteSizeLong, + &ValidatorNodeChangeRemove::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeRemove, _impl_._cached_size_), + false, + }, + &ValidatorNodeChangeRemove::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ValidatorNodeChangeRemove_class_data_ = + ValidatorNodeChangeRemove::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ValidatorNodeChangeRemove::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ValidatorNodeChangeRemove_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ValidatorNodeChangeRemove_class_data_.tc_table); + return ValidatorNodeChangeRemove_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +ValidatorNodeChangeRemove::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeRemove, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + ValidatorNodeChangeRemove_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeChangeRemove>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // bytes public_key = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeRemove, _impl_.public_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes public_key = 1; + {PROTOBUF_FIELD_OFFSET(ValidatorNodeChangeRemove, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void ValidatorNodeChangeRemove::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ValidatorNodeChangeRemove) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ValidatorNodeChangeRemove::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ValidatorNodeChangeRemove& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ValidatorNodeChangeRemove::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ValidatorNodeChangeRemove& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ValidatorNodeChangeRemove) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bytes public_key = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ValidatorNodeChangeRemove) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ValidatorNodeChangeRemove::ByteSizeLong(const MessageLite& base) { + const ValidatorNodeChangeRemove& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ValidatorNodeChangeRemove::ByteSizeLong() const { + const ValidatorNodeChangeRemove& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ValidatorNodeChangeRemove) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // bytes public_key = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ValidatorNodeChangeRemove::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.ValidatorNodeChangeRemove) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_public_key().empty()) { + _this->_internal_set_public_key(from._internal_public_key()); + } else { + if (_this->_impl_.public_key_.IsDefault()) { + _this->_internal_set_public_key(""); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ValidatorNodeChangeRemove::CopyFrom(const ValidatorNodeChangeRemove& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ValidatorNodeChangeRemove) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void ValidatorNodeChangeRemove::InternalSwap(ValidatorNodeChangeRemove* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); +} + +::google::protobuf::Metadata ValidatorNodeChangeRemove::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class GetValidatorNodeChangesResponse::_Internal { + public: +}; + +GetValidatorNodeChangesResponse::GetValidatorNodeChangesResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetValidatorNodeChangesResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.GetValidatorNodeChangesResponse) +} +PROTOBUF_NDEBUG_INLINE GetValidatorNodeChangesResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetValidatorNodeChangesResponse& from_msg) + : changes_{visibility, arena, from.changes_}, + _cached_size_{0} {} + +GetValidatorNodeChangesResponse::GetValidatorNodeChangesResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const GetValidatorNodeChangesResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetValidatorNodeChangesResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + GetValidatorNodeChangesResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:tari.rpc.GetValidatorNodeChangesResponse) +} +PROTOBUF_NDEBUG_INLINE GetValidatorNodeChangesResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : changes_{visibility, arena}, + _cached_size_{0} {} + +inline void GetValidatorNodeChangesResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +GetValidatorNodeChangesResponse::~GetValidatorNodeChangesResponse() { + // @@protoc_insertion_point(destructor:tari.rpc.GetValidatorNodeChangesResponse) + SharedDtor(*this); +} +inline void GetValidatorNodeChangesResponse::SharedDtor(MessageLite& self) { + GetValidatorNodeChangesResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL GetValidatorNodeChangesResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetValidatorNodeChangesResponse(arena); +} +constexpr auto GetValidatorNodeChangesResponse::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GetValidatorNodeChangesResponse, _impl_.changes_) + + decltype(GetValidatorNodeChangesResponse::_impl_.changes_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetValidatorNodeChangesResponse), alignof(GetValidatorNodeChangesResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GetValidatorNodeChangesResponse::PlacementNew_, + sizeof(GetValidatorNodeChangesResponse), + alignof(GetValidatorNodeChangesResponse)); + } +} +constexpr auto GetValidatorNodeChangesResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetValidatorNodeChangesResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetValidatorNodeChangesResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetValidatorNodeChangesResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetValidatorNodeChangesResponse::ByteSizeLong, + &GetValidatorNodeChangesResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetValidatorNodeChangesResponse, _impl_._cached_size_), + false, + }, + &GetValidatorNodeChangesResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetValidatorNodeChangesResponse_class_data_ = + GetValidatorNodeChangesResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetValidatorNodeChangesResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetValidatorNodeChangesResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetValidatorNodeChangesResponse_class_data_.tc_table); + return GetValidatorNodeChangesResponse_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +GetValidatorNodeChangesResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + GetValidatorNodeChangesResponse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetValidatorNodeChangesResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .tari.rpc.ValidatorNodeChange changes = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetValidatorNodeChangesResponse, _impl_.changes_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .tari.rpc.ValidatorNodeChange changes = 1; + {PROTOBUF_FIELD_OFFSET(GetValidatorNodeChangesResponse, _impl_.changes_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeChange>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void GetValidatorNodeChangesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetValidatorNodeChangesResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.changes_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetValidatorNodeChangesResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetValidatorNodeChangesResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetValidatorNodeChangesResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetValidatorNodeChangesResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetValidatorNodeChangesResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .tari.rpc.ValidatorNodeChange changes = 1; + for (unsigned i = 0, n = static_cast( + this_._internal_changes_size()); + i < n; i++) { + const auto& repfield = this_._internal_changes().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetValidatorNodeChangesResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetValidatorNodeChangesResponse::ByteSizeLong(const MessageLite& base) { + const GetValidatorNodeChangesResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GetValidatorNodeChangesResponse::ByteSizeLong() const { + const GetValidatorNodeChangesResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetValidatorNodeChangesResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .tari.rpc.ValidatorNodeChange changes = 1; + { + total_size += 1UL * this_._internal_changes_size(); + for (const auto& msg : this_._internal_changes()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void GetValidatorNodeChangesResponse::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.GetValidatorNodeChangesResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_changes()->MergeFrom( + from._internal_changes()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetValidatorNodeChangesResponse::CopyFrom(const GetValidatorNodeChangesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetValidatorNodeChangesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void GetValidatorNodeChangesResponse::InternalSwap(GetValidatorNodeChangesResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.changes_.InternalSwap(&other->_impl_.changes_); +} + +::google::protobuf::Metadata GetValidatorNodeChangesResponse::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class GetShardKeyRequest::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_._has_bits_); +}; + +GetShardKeyRequest::GetShardKeyRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetShardKeyRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.GetShardKeyRequest) +} +PROTOBUF_NDEBUG_INLINE GetShardKeyRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetShardKeyRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + public_key_(arena, from.public_key_) {} + +GetShardKeyRequest::GetShardKeyRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const GetShardKeyRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetShardKeyRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + GetShardKeyRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.epoch_ = from._impl_.epoch_; + + // @@protoc_insertion_point(copy_constructor:tari.rpc.GetShardKeyRequest) +} +PROTOBUF_NDEBUG_INLINE GetShardKeyRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + public_key_(arena) {} + +inline void GetShardKeyRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.epoch_ = {}; +} +GetShardKeyRequest::~GetShardKeyRequest() { + // @@protoc_insertion_point(destructor:tari.rpc.GetShardKeyRequest) + SharedDtor(*this); +} +inline void GetShardKeyRequest::SharedDtor(MessageLite& self) { + GetShardKeyRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_key_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL GetShardKeyRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetShardKeyRequest(arena); +} +constexpr auto GetShardKeyRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetShardKeyRequest), + alignof(GetShardKeyRequest)); +} +constexpr auto GetShardKeyRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetShardKeyRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetShardKeyRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetShardKeyRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetShardKeyRequest::ByteSizeLong, + &GetShardKeyRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_._cached_size_), + false, + }, + &GetShardKeyRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetShardKeyRequest_class_data_ = + GetShardKeyRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetShardKeyRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetShardKeyRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetShardKeyRequest_class_data_.tc_table); + return GetShardKeyRequest_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +GetShardKeyRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + GetShardKeyRequest_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetShardKeyRequest>(), // to_prefetch @@ -14180,78 +20748,117 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetShardKeyRequest::_table_ = { }, {{ // bytes public_key = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_.public_key_)}}, - // uint64 height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetShardKeyRequest, _impl_.height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_.height_)}}, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_.public_key_)}}, + // uint64 epoch = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetShardKeyRequest, _impl_.epoch_), 1>(), + {8, 1, 0, PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_.epoch_)}}, }}, {{ 65535, 65535 }}, {{ - // uint64 height = 1; - {PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_.height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + // uint64 epoch = 1; + {PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_.epoch_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes public_key = 2; - {PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_.public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void GetShardKeyRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetShardKeyRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetShardKeyRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + _impl_.epoch_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetShardKeyRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetShardKeyRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetShardKeyRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetShardKeyRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetShardKeyRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - // uint64 height = 1; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_height(), target); + // uint64 epoch = 1; + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_epoch() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_epoch(), target); + } } // bytes public_key = 2; - if (!this->_internal_public_key().empty()) { - const std::string& _s = this->_internal_public_key(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetShardKeyRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetShardKeyRequest::ByteSizeLong(const MessageLite& base) { + const GetShardKeyRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetShardKeyRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetShardKeyRequest) + const GetShardKeyRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetShardKeyRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes public_key = 2; - if (!this->_internal_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes public_key = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + } + // uint64 epoch = 1; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_epoch() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_epoch()); + } + } } - - // uint64 height = 1; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -14260,12 +20867,24 @@ void GetShardKeyRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, cons ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_public_key().empty()) { - _this->_internal_set_public_key(from._internal_public_key()); - } - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_public_key().empty()) { + _this->_internal_set_public_key(from._internal_public_key()); + } else { + if (_this->_impl_.public_key_.IsDefault()) { + _this->_internal_set_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_epoch() != 0) { + _this->_impl_.epoch_ = from._impl_.epoch_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -14276,199 +20895,235 @@ void GetShardKeyRequest::CopyFrom(const GetShardKeyRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetShardKeyRequest::IsInitialized() const { - return true; -} -void GetShardKeyRequest::InternalSwap(GetShardKeyRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetShardKeyRequest::InternalSwap(GetShardKeyRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); - swap(_impl_.height_, other->_impl_.height_); + swap(_impl_.epoch_, other->_impl_.epoch_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetShardKeyResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_._has_bits_); }; -GetShardKeyResponse::GetShardKeyResponse(::google::protobuf::Arena* arena) +GetShardKeyResponse::GetShardKeyResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetShardKeyResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetShardKeyResponse) } -inline PROTOBUF_NDEBUG_INLINE GetShardKeyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : shard_key_(arena, from.shard_key_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetShardKeyResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetShardKeyResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + shard_key_(arena, from.shard_key_) {} GetShardKeyResponse::GetShardKeyResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetShardKeyResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetShardKeyResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetShardKeyResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.found_ = from._impl_.found_; + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.GetShardKeyResponse) } -inline PROTOBUF_NDEBUG_INLINE GetShardKeyResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetShardKeyResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : shard_key_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + shard_key_(arena) {} -inline void GetShardKeyResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetShardKeyResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.found_ = {}; } GetShardKeyResponse::~GetShardKeyResponse() { // @@protoc_insertion_point(destructor:tari.rpc.GetShardKeyResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetShardKeyResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.shard_key_.Destroy(); - _impl_.~Impl_(); +inline void GetShardKeyResponse::SharedDtor(MessageLite& self) { + GetShardKeyResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.shard_key_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL GetShardKeyResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetShardKeyResponse(arena); +} +constexpr auto GetShardKeyResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetShardKeyResponse), + alignof(GetShardKeyResponse)); +} +constexpr auto GetShardKeyResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetShardKeyResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.shard_key_.ClearToEmpty(); - _impl_.found_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetShardKeyResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetShardKeyResponse::ByteSizeLong, + &GetShardKeyResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_._cached_size_), + false, + }, + &GetShardKeyResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetShardKeyResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetShardKeyResponse_class_data_ = + GetShardKeyResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetShardKeyResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetShardKeyResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetShardKeyResponse_class_data_.tc_table); + return GetShardKeyResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetShardKeyResponse::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +GetShardKeyResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_._has_bits_), 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask + 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap + 4294967294, // skipmap offsetof(decltype(_table_), field_entries), - 2, // num_field_entries + 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GetShardKeyResponse_default_instance_._instance, + GetShardKeyResponse_class_data_.base(), + nullptr, // post_loop_handler ::_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(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_.found_)}}, // bytes shard_key = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_.shard_key_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_.shard_key_)}}, }}, {{ 65535, 65535 }}, {{ // bytes shard_key = 1; - {PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_.shard_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bool found = 2; - {PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_.found_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_.shard_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void GetShardKeyResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetShardKeyResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetShardKeyResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.shard_key_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetShardKeyResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetShardKeyResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetShardKeyResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetShardKeyResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetShardKeyResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes shard_key = 1; - if (!this->_internal_shard_key().empty()) { - const std::string& _s = this->_internal_shard_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_shard_key().empty()) { + const ::std::string& _s = this_._internal_shard_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } - // bool found = 2; - if (this->_internal_found() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_found(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetShardKeyResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetShardKeyResponse::ByteSizeLong(const MessageLite& base) { + const GetShardKeyResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetShardKeyResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetShardKeyResponse) + const GetShardKeyResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetShardKeyResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes shard_key = 1; - if (!this->_internal_shard_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_shard_key()); + { + // bytes shard_key = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_shard_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_shard_key()); + } + } } - - // bool found = 2; - if (this->_internal_found() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -14477,12 +21132,17 @@ void GetShardKeyResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, con ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_shard_key().empty()) { - _this->_internal_set_shard_key(from._internal_shard_key()); - } - if (from._internal_found() != 0) { - _this->_impl_.found_ = from._impl_.found_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_shard_key().empty()) { + _this->_internal_set_shard_key(from._internal_shard_key()); + } else { + if (_this->_impl_.shard_key_.IsDefault()) { + _this->_internal_set_shard_key(""); + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -14493,112 +21153,132 @@ void GetShardKeyResponse::CopyFrom(const GetShardKeyResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetShardKeyResponse::IsInitialized() const { - return true; -} -void GetShardKeyResponse::InternalSwap(GetShardKeyResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetShardKeyResponse::InternalSwap(GetShardKeyResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.shard_key_, &other->_impl_.shard_key_, arena); - swap(_impl_.found_, other->_impl_.found_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetTemplateRegistrationsRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_._has_bits_); }; -GetTemplateRegistrationsRequest::GetTemplateRegistrationsRequest(::google::protobuf::Arena* arena) +GetTemplateRegistrationsRequest::GetTemplateRegistrationsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetTemplateRegistrationsRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetTemplateRegistrationsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetTemplateRegistrationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : start_hash_(arena, from.start_hash_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetTemplateRegistrationsRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetTemplateRegistrationsRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + start_hash_(arena, from.start_hash_) {} GetTemplateRegistrationsRequest::GetTemplateRegistrationsRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTemplateRegistrationsRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetTemplateRegistrationsRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetTemplateRegistrationsRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.count_ = from._impl_.count_; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetTemplateRegistrationsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetTemplateRegistrationsRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetTemplateRegistrationsRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : start_hash_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + start_hash_(arena) {} -inline void GetTemplateRegistrationsRequest::SharedCtor(::_pb::Arena* arena) { +inline void GetTemplateRegistrationsRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.count_ = {}; } GetTemplateRegistrationsRequest::~GetTemplateRegistrationsRequest() { // @@protoc_insertion_point(destructor:tari.rpc.GetTemplateRegistrationsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetTemplateRegistrationsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.start_hash_.Destroy(); - _impl_.~Impl_(); +inline void GetTemplateRegistrationsRequest::SharedDtor(MessageLite& self) { + GetTemplateRegistrationsRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.start_hash_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL GetTemplateRegistrationsRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetTemplateRegistrationsRequest(arena); +} +constexpr auto GetTemplateRegistrationsRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetTemplateRegistrationsRequest), + alignof(GetTemplateRegistrationsRequest)); +} +constexpr auto GetTemplateRegistrationsRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetTemplateRegistrationsRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.start_hash_.ClearToEmpty(); - _impl_.count_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetTemplateRegistrationsRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetTemplateRegistrationsRequest::ByteSizeLong, + &GetTemplateRegistrationsRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_._cached_size_), + false, + }, + &GetTemplateRegistrationsRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetTemplateRegistrationsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetTemplateRegistrationsRequest_class_data_ = + GetTemplateRegistrationsRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetTemplateRegistrationsRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetTemplateRegistrationsRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetTemplateRegistrationsRequest_class_data_.tc_table); + return GetTemplateRegistrationsRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetTemplateRegistrationsRequest::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +GetTemplateRegistrationsRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -14607,86 +21287,126 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetTemplateRegistrationsRequest::_tabl 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GetTemplateRegistrationsRequest_default_instance_._instance, + GetTemplateRegistrationsRequest_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_.count_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetTemplateRegistrationsRequest, _impl_.count_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_.count_)}}, // bytes start_hash = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_.start_hash_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_.start_hash_)}}, }}, {{ 65535, 65535 }}, {{ // bytes start_hash = 1; - {PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_.start_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_.start_hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint64 count = 2; - {PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_.count_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_.count_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void GetTemplateRegistrationsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetTemplateRegistrationsRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetTemplateRegistrationsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.start_hash_.ClearNonDefaultToEmpty(); + } + _impl_.count_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetTemplateRegistrationsRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetTemplateRegistrationsRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetTemplateRegistrationsRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetTemplateRegistrationsRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetTemplateRegistrationsRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes start_hash = 1; - if (!this->_internal_start_hash().empty()) { - const std::string& _s = this->_internal_start_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_start_hash().empty()) { + const ::std::string& _s = this_._internal_start_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // uint64 count = 2; - if (this->_internal_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_count(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_count() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_count(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetTemplateRegistrationsRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetTemplateRegistrationsRequest::ByteSizeLong(const MessageLite& base) { + const GetTemplateRegistrationsRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetTemplateRegistrationsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetTemplateRegistrationsRequest) + const GetTemplateRegistrationsRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetTemplateRegistrationsRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes start_hash = 1; - if (!this->_internal_start_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_start_hash()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes start_hash = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_start_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_start_hash()); + } + } + // uint64 count = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_count() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_count()); + } + } } - - // uint64 count = 2; - if (this->_internal_count() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_count()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -14695,12 +21415,24 @@ void GetTemplateRegistrationsRequest::MergeImpl(::google::protobuf::MessageLite& ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_start_hash().empty()) { - _this->_internal_set_start_hash(from._internal_start_hash()); - } - if (from._internal_count() != 0) { - _this->_impl_.count_ = from._impl_.count_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_start_hash().empty()) { + _this->_internal_set_start_hash(from._internal_start_hash()); + } else { + if (_this->_impl_.start_hash_.IsDefault()) { + _this->_internal_set_start_hash(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_count() != 0) { + _this->_impl_.count_ = from._impl_.count_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -14711,128 +21443,140 @@ void GetTemplateRegistrationsRequest::CopyFrom(const GetTemplateRegistrationsReq MergeFrom(from); } -PROTOBUF_NOINLINE bool GetTemplateRegistrationsRequest::IsInitialized() const { - return true; -} -void GetTemplateRegistrationsRequest::InternalSwap(GetTemplateRegistrationsRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetTemplateRegistrationsRequest::InternalSwap(GetTemplateRegistrationsRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.start_hash_, &other->_impl_.start_hash_, arena); - swap(_impl_.count_, other->_impl_.count_); + swap(_impl_.count_, other->_impl_.count_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetTemplateRegistrationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_._has_bits_); }; void GetTemplateRegistrationResponse::clear_registration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.registration_ != nullptr) _impl_.registration_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000002u; } -GetTemplateRegistrationResponse::GetTemplateRegistrationResponse(::google::protobuf::Arena* arena) +GetTemplateRegistrationResponse::GetTemplateRegistrationResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetTemplateRegistrationResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetTemplateRegistrationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetTemplateRegistrationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE GetTemplateRegistrationResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetTemplateRegistrationResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, utxo_hash_(arena, from.utxo_hash_) {} GetTemplateRegistrationResponse::GetTemplateRegistrationResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTemplateRegistrationResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetTemplateRegistrationResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetTemplateRegistrationResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.registration_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateRegistration>( - arena, *from._impl_.registration_) - : nullptr; + _impl_.registration_ = ((cached_has_bits & 0x00000002u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.registration_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetTemplateRegistrationResponse) } -inline PROTOBUF_NDEBUG_INLINE GetTemplateRegistrationResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetTemplateRegistrationResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, utxo_hash_(arena) {} -inline void GetTemplateRegistrationResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetTemplateRegistrationResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.registration_ = {}; } GetTemplateRegistrationResponse::~GetTemplateRegistrationResponse() { // @@protoc_insertion_point(destructor:tari.rpc.GetTemplateRegistrationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetTemplateRegistrationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.utxo_hash_.Destroy(); - delete _impl_.registration_; - _impl_.~Impl_(); +inline void GetTemplateRegistrationResponse::SharedDtor(MessageLite& self) { + GetTemplateRegistrationResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.utxo_hash_.Destroy(); + delete this_._impl_.registration_; + this_._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, - }, +inline void* PROTOBUF_NONNULL GetTemplateRegistrationResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetTemplateRegistrationResponse(arena); +} +constexpr auto GetTemplateRegistrationResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetTemplateRegistrationResponse), + alignof(GetTemplateRegistrationResponse)); +} +constexpr auto GetTemplateRegistrationResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetTemplateRegistrationResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.utxo_hash_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.registration_ != nullptr); - _impl_.registration_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetTemplateRegistrationResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetTemplateRegistrationResponse::ByteSizeLong, + &GetTemplateRegistrationResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_._cached_size_), + false, + }, + &GetTemplateRegistrationResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetTemplateRegistrationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetTemplateRegistrationResponse_class_data_ = + GetTemplateRegistrationResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetTemplateRegistrationResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetTemplateRegistrationResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetTemplateRegistrationResponse_class_data_.tc_table); + return GetTemplateRegistrationResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetTemplateRegistrationResponse::_table_ = { +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +GetTemplateRegistrationResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_._has_bits_), 0, // no _extensions_ @@ -14843,7 +21587,8 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetTemplateRegistrationResponse::_tabl 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetTemplateRegistrationResponse_default_instance_._instance, + GetTemplateRegistrationResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetTemplateRegistrationResponse>(), // to_prefetch @@ -14851,79 +21596,121 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetTemplateRegistrationResponse::_tabl }, {{ // .tari.rpc.TemplateRegistration registration = 2; {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_.registration_)}}, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_.registration_)}}, // bytes utxo_hash = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_.utxo_hash_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_.utxo_hash_)}}, }}, {{ 65535, 65535 }}, {{ // bytes utxo_hash = 1; - {PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_.utxo_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_.utxo_hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.TemplateRegistration registration = 2; - {PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_.registration_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_.registration_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::TemplateRegistration>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::TemplateRegistration>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void GetTemplateRegistrationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetTemplateRegistrationResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetTemplateRegistrationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.utxo_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(_impl_.registration_ != nullptr); + _impl_.registration_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetTemplateRegistrationResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetTemplateRegistrationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetTemplateRegistrationResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetTemplateRegistrationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetTemplateRegistrationResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes utxo_hash = 1; - if (!this->_internal_utxo_hash().empty()) { - const std::string& _s = this->_internal_utxo_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_utxo_hash().empty()) { + const ::std::string& _s = this_._internal_utxo_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.TemplateRegistration registration = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.registration_, _impl_.registration_->GetCachedSize(), target, stream); + 2, *this_._impl_.registration_, this_._impl_.registration_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetTemplateRegistrationResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetTemplateRegistrationResponse::ByteSizeLong(const MessageLite& base) { + const GetTemplateRegistrationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetTemplateRegistrationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetTemplateRegistrationResponse) + const GetTemplateRegistrationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetTemplateRegistrationResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes utxo_hash = 1; - if (!this->_internal_utxo_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_utxo_hash()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes utxo_hash = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_utxo_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_utxo_hash()); + } + } + // .tari.rpc.TemplateRegistration registration = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.registration_); + } } - - // .tari.rpc.TemplateRegistration registration = 2; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.registration_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -14933,17 +21720,24 @@ void GetTemplateRegistrationResponse::MergeImpl(::google::protobuf::MessageLite& ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_utxo_hash().empty()) { - _this->_internal_set_utxo_hash(from._internal_utxo_hash()); - } 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_); + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_utxo_hash().empty()) { + _this->_internal_set_utxo_hash(from._internal_utxo_hash()); + } else { + if (_this->_impl_.utxo_hash_.IsDefault()) { + _this->_internal_set_utxo_hash(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(from._impl_.registration_ != nullptr); + if (_this->_impl_.registration_ == nullptr) { + _this->_impl_.registration_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.registration_); + } else { + _this->_impl_.registration_->MergeFrom(*from._impl_.registration_); + } } } _this->_impl_._has_bits_[0] |= cached_has_bits; @@ -14957,12 +21751,9 @@ void GetTemplateRegistrationResponse::CopyFrom(const GetTemplateRegistrationResp MergeFrom(from); } -PROTOBUF_NOINLINE bool GetTemplateRegistrationResponse::IsInitialized() const { - return true; -} -void GetTemplateRegistrationResponse::InternalSwap(GetTemplateRegistrationResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetTemplateRegistrationResponse::InternalSwap(GetTemplateRegistrationResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -14972,102 +21763,124 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class BlockInfo::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_._has_bits_); }; -BlockInfo::BlockInfo(::google::protobuf::Arena* arena) +BlockInfo::BlockInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockInfo) } -inline PROTOBUF_NDEBUG_INLINE BlockInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : hash_(arena, from.hash_), - next_block_hash_(arena, from.next_block_hash_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE BlockInfo::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::BlockInfo& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + hash_(arena, from.hash_), + next_block_hash_(arena, from.next_block_hash_) {} BlockInfo::BlockInfo( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE BlockInfo* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.height_ = from._impl_.height_; // @@protoc_insertion_point(copy_constructor:tari.rpc.BlockInfo) } -inline PROTOBUF_NDEBUG_INLINE BlockInfo::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE BlockInfo::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : hash_(arena), - next_block_hash_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + hash_(arena), + next_block_hash_(arena) {} -inline void BlockInfo::SharedCtor(::_pb::Arena* arena) { +inline void BlockInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.height_ = {}; } BlockInfo::~BlockInfo() { // @@protoc_insertion_point(destructor:tari.rpc.BlockInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void BlockInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.hash_.Destroy(); - _impl_.next_block_hash_.Destroy(); - _impl_.~Impl_(); +inline void BlockInfo::SharedDtor(MessageLite& self) { + BlockInfo& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.hash_.Destroy(); + this_._impl_.next_block_hash_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL BlockInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BlockInfo(arena); +} +constexpr auto BlockInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BlockInfo), + alignof(BlockInfo)); +} +constexpr auto BlockInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_BlockInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.hash_.ClearToEmpty(); - _impl_.next_block_hash_.ClearToEmpty(); - _impl_.height_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BlockInfo::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &BlockInfo::ByteSizeLong, + &BlockInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_._cached_size_), + false, + }, + &BlockInfo::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* BlockInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull BlockInfo_class_data_ = + BlockInfo::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BlockInfo::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&BlockInfo_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(BlockInfo_class_data_.tc_table); + return BlockInfo_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> BlockInfo::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +BlockInfo::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -15076,7 +21889,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> BlockInfo::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_BlockInfo_default_instance_._instance, + BlockInfo_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::BlockInfo>(), // to_prefetch @@ -15084,97 +21898,144 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> BlockInfo::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockInfo, _impl_.height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockInfo, _impl_.height_), 2>(), + {8, 2, 0, PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.height_)}}, // bytes hash = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.hash_)}}, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.hash_)}}, // bytes next_block_hash = 3; {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.next_block_hash_)}}, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.next_block_hash_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 height = 1; - {PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.height_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes hash = 2; - {PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes next_block_hash = 3; - {PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.next_block_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.next_block_hash_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void BlockInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockInfo) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* BlockInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.next_block_hash_.ClearNonDefaultToEmpty(); + } + } + _impl_.height_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BlockInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BlockInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BlockInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BlockInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockInfo) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 height = 1; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_height(), target); + } } // bytes hash = 2; - if (!this->_internal_hash().empty()) { - const std::string& _s = this->_internal_hash(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_hash().empty()) { + const ::std::string& _s = this_._internal_hash(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } // bytes next_block_hash = 3; - if (!this->_internal_next_block_hash().empty()) { - const std::string& _s = this->_internal_next_block_hash(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_next_block_hash().empty()) { + const ::std::string& _s = this_._internal_next_block_hash(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockInfo) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BlockInfo::ByteSizeLong(const MessageLite& base) { + const BlockInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t BlockInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockInfo) + const BlockInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockInfo) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes hash = 2; - if (!this->_internal_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_hash()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // bytes hash = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_hash()); + } + } + // bytes next_block_hash = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_next_block_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_next_block_hash()); + } + } + // uint64 height = 1; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_height()); + } + } } - - // bytes next_block_hash = 3; - if (!this->_internal_next_block_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_next_block_hash()); - } - - // uint64 height = 1; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -15183,15 +22044,33 @@ void BlockInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::googl ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_hash().empty()) { - _this->_internal_set_hash(from._internal_hash()); - } - if (!from._internal_next_block_hash().empty()) { - _this->_internal_set_next_block_hash(from._internal_next_block_hash()); - } - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_hash().empty()) { + _this->_internal_set_hash(from._internal_hash()); + } else { + if (_this->_impl_.hash_.IsDefault()) { + _this->_internal_set_hash(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_next_block_hash().empty()) { + _this->_internal_set_next_block_hash(from._internal_next_block_hash()); + } else { + if (_this->_impl_.next_block_hash_.IsDefault()) { + _this->_internal_set_next_block_hash(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_height() != 0) { + _this->_impl_.height_ = from._impl_.height_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -15202,113 +22081,134 @@ void BlockInfo::CopyFrom(const BlockInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool BlockInfo::IsInitialized() const { - return true; -} -void BlockInfo::InternalSwap(BlockInfo* PROTOBUF_RESTRICT other) { - using std::swap; +void BlockInfo::InternalSwap(BlockInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.hash_, &other->_impl_.hash_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.next_block_hash_, &other->_impl_.next_block_hash_, arena); - swap(_impl_.height_, other->_impl_.height_); + swap(_impl_.height_, other->_impl_.height_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetSideChainUtxosRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_._has_bits_); }; -GetSideChainUtxosRequest::GetSideChainUtxosRequest(::google::protobuf::Arena* arena) +GetSideChainUtxosRequest::GetSideChainUtxosRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetSideChainUtxosRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetSideChainUtxosRequest) } -inline PROTOBUF_NDEBUG_INLINE GetSideChainUtxosRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : start_hash_(arena, from.start_hash_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetSideChainUtxosRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetSideChainUtxosRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + start_hash_(arena, from.start_hash_) {} GetSideChainUtxosRequest::GetSideChainUtxosRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetSideChainUtxosRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetSideChainUtxosRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetSideChainUtxosRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.count_ = from._impl_.count_; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetSideChainUtxosRequest) } -inline PROTOBUF_NDEBUG_INLINE GetSideChainUtxosRequest::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetSideChainUtxosRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : start_hash_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + start_hash_(arena) {} -inline void GetSideChainUtxosRequest::SharedCtor(::_pb::Arena* arena) { +inline void GetSideChainUtxosRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.count_ = {}; } GetSideChainUtxosRequest::~GetSideChainUtxosRequest() { // @@protoc_insertion_point(destructor:tari.rpc.GetSideChainUtxosRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetSideChainUtxosRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.start_hash_.Destroy(); - _impl_.~Impl_(); +inline void GetSideChainUtxosRequest::SharedDtor(MessageLite& self) { + GetSideChainUtxosRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.start_hash_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL GetSideChainUtxosRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetSideChainUtxosRequest(arena); +} +constexpr auto GetSideChainUtxosRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetSideChainUtxosRequest), + alignof(GetSideChainUtxosRequest)); +} +constexpr auto GetSideChainUtxosRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetSideChainUtxosRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.start_hash_.ClearToEmpty(); - _impl_.count_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetSideChainUtxosRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetSideChainUtxosRequest::ByteSizeLong, + &GetSideChainUtxosRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_._cached_size_), + false, + }, + &GetSideChainUtxosRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetSideChainUtxosRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetSideChainUtxosRequest_class_data_ = + GetSideChainUtxosRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetSideChainUtxosRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetSideChainUtxosRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetSideChainUtxosRequest_class_data_.tc_table); + return GetSideChainUtxosRequest_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetSideChainUtxosRequest::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +GetSideChainUtxosRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -15317,86 +22217,126 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetSideChainUtxosRequest::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GetSideChainUtxosRequest_default_instance_._instance, + GetSideChainUtxosRequest_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_.count_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetSideChainUtxosRequest, _impl_.count_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_.count_)}}, // bytes start_hash = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_.start_hash_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_.start_hash_)}}, }}, {{ 65535, 65535 }}, {{ // bytes start_hash = 1; - {PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_.start_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_.start_hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint64 count = 2; - {PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_.count_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_.count_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void GetSideChainUtxosRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetSideChainUtxosRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetSideChainUtxosRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.start_hash_.ClearNonDefaultToEmpty(); + } + _impl_.count_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetSideChainUtxosRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetSideChainUtxosRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetSideChainUtxosRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetSideChainUtxosRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetSideChainUtxosRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes start_hash = 1; - if (!this->_internal_start_hash().empty()) { - const std::string& _s = this->_internal_start_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_start_hash().empty()) { + const ::std::string& _s = this_._internal_start_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // uint64 count = 2; - if (this->_internal_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_count(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_count() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_count(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetSideChainUtxosRequest) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetSideChainUtxosRequest::ByteSizeLong(const MessageLite& base) { + const GetSideChainUtxosRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetSideChainUtxosRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetSideChainUtxosRequest) + const GetSideChainUtxosRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetSideChainUtxosRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes start_hash = 1; - if (!this->_internal_start_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_start_hash()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes start_hash = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_start_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_start_hash()); + } + } + // uint64 count = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_count() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_count()); + } + } } - - // uint64 count = 2; - if (this->_internal_count() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_count()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -15405,12 +22345,24 @@ void GetSideChainUtxosRequest::MergeImpl(::google::protobuf::MessageLite& to_msg ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_start_hash().empty()) { - _this->_internal_set_start_hash(from._internal_start_hash()); - } - if (from._internal_count() != 0) { - _this->_impl_.count_ = from._impl_.count_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_start_hash().empty()) { + _this->_internal_set_start_hash(from._internal_start_hash()); + } else { + if (_this->_impl_.start_hash_.IsDefault()) { + _this->_internal_set_start_hash(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_count() != 0) { + _this->_impl_.count_ = from._impl_.count_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -15421,126 +22373,150 @@ void GetSideChainUtxosRequest::CopyFrom(const GetSideChainUtxosRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetSideChainUtxosRequest::IsInitialized() const { - return true; -} -void GetSideChainUtxosRequest::InternalSwap(GetSideChainUtxosRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetSideChainUtxosRequest::InternalSwap(GetSideChainUtxosRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.start_hash_, &other->_impl_.start_hash_, arena); - swap(_impl_.count_, other->_impl_.count_); + swap(_impl_.count_, other->_impl_.count_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetSideChainUtxosResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_._has_bits_); }; void GetSideChainUtxosResponse::clear_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.outputs_.Clear(); } -GetSideChainUtxosResponse::GetSideChainUtxosResponse(::google::protobuf::Arena* arena) +GetSideChainUtxosResponse::GetSideChainUtxosResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetSideChainUtxosResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetSideChainUtxosResponse) } -inline PROTOBUF_NDEBUG_INLINE GetSideChainUtxosResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE GetSideChainUtxosResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetSideChainUtxosResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, outputs_{visibility, arena, from.outputs_} {} GetSideChainUtxosResponse::GetSideChainUtxosResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetSideChainUtxosResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetSideChainUtxosResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetSideChainUtxosResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.block_info_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockInfo>( - arena, *from._impl_.block_info_) - : nullptr; + _impl_.block_info_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.block_info_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.GetSideChainUtxosResponse) } -inline PROTOBUF_NDEBUG_INLINE GetSideChainUtxosResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetSideChainUtxosResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, outputs_{visibility, arena} {} -inline void GetSideChainUtxosResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetSideChainUtxosResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.block_info_ = {}; } GetSideChainUtxosResponse::~GetSideChainUtxosResponse() { // @@protoc_insertion_point(destructor:tari.rpc.GetSideChainUtxosResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetSideChainUtxosResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.block_info_; - _impl_.~Impl_(); +inline void GetSideChainUtxosResponse::SharedDtor(MessageLite& self) { + GetSideChainUtxosResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.block_info_; + this_._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_; +inline void* PROTOBUF_NONNULL GetSideChainUtxosResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetSideChainUtxosResponse(arena); } -PROTOBUF_NOINLINE void GetSideChainUtxosResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetSideChainUtxosResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.outputs_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.block_info_ != nullptr); - _impl_.block_info_->Clear(); +constexpr auto GetSideChainUtxosResponse::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_.outputs_) + + decltype(GetSideChainUtxosResponse::_impl_.outputs_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetSideChainUtxosResponse), alignof(GetSideChainUtxosResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GetSideChainUtxosResponse::PlacementNew_, + sizeof(GetSideChainUtxosResponse), + alignof(GetSideChainUtxosResponse)); } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +constexpr auto GetSideChainUtxosResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetSideChainUtxosResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetSideChainUtxosResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetSideChainUtxosResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetSideChainUtxosResponse::ByteSizeLong, + &GetSideChainUtxosResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_._cached_size_), + false, + }, + &GetSideChainUtxosResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetSideChainUtxosResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetSideChainUtxosResponse_class_data_ = + GetSideChainUtxosResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetSideChainUtxosResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetSideChainUtxosResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetSideChainUtxosResponse_class_data_.tc_table); + return GetSideChainUtxosResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetSideChainUtxosResponse::_table_ = { +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +GetSideChainUtxosResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_._has_bits_), 0, // no _extensions_ @@ -15551,7 +22527,8 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetSideChainUtxosResponse::_table_ = { 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetSideChainUtxosResponse_default_instance_._instance, + GetSideChainUtxosResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetSideChainUtxosResponse>(), // to_prefetch @@ -15572,71 +22549,110 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetSideChainUtxosResponse::_table_ = { // repeated .tari.rpc.TransactionOutput outputs = 2; {PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_.outputs_), -1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::BlockInfo>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::TransactionOutput>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::BlockInfo>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::TransactionOutput>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void GetSideChainUtxosResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetSideChainUtxosResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetSideChainUtxosResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.outputs_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.block_info_ != nullptr); + _impl_.block_info_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetSideChainUtxosResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetSideChainUtxosResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetSideChainUtxosResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetSideChainUtxosResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetSideChainUtxosResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.BlockInfo block_info = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.block_info_, _impl_.block_info_->GetCachedSize(), target, stream); + 1, *this_._impl_.block_info_, this_._impl_.block_info_->GetCachedSize(), target, + stream); } // repeated .tari.rpc.TransactionOutput outputs = 2; for (unsigned i = 0, n = static_cast( - this->_internal_outputs_size()); + this_._internal_outputs_size()); i < n; i++) { - const auto& repfield = this->_internal_outputs().Get(i); + const auto& repfield = this_._internal_outputs().Get(i); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2, repfield, repfield.GetCachedSize(), target, stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetSideChainUtxosResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetSideChainUtxosResponse::ByteSizeLong(const MessageLite& base) { + const GetSideChainUtxosResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetSideChainUtxosResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetSideChainUtxosResponse) + const GetSideChainUtxosResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetSideChainUtxosResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // 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); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // 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); + } + } } - // .tari.rpc.BlockInfo block_info = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.block_info_); + { + // .tari.rpc.BlockInfo block_info = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.block_info_); + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -15649,11 +22665,10 @@ void GetSideChainUtxosResponse::MergeImpl(::google::protobuf::MessageLite& to_ms _this->_internal_mutable_outputs()->MergeFrom( from._internal_outputs()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { 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_); + _this->_impl_.block_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.block_info_); } else { _this->_impl_.block_info_->MergeFrom(*from._impl_.block_info_); } @@ -15669,12 +22684,9 @@ void GetSideChainUtxosResponse::CopyFrom(const GetSideChainUtxosResponse& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool GetSideChainUtxosResponse::IsInitialized() const { - return true; -} -void GetSideChainUtxosResponse::InternalSwap(GetSideChainUtxosResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetSideChainUtxosResponse::InternalSwap(GetSideChainUtxosResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.outputs_.InternalSwap(&other->_impl_.outputs_); @@ -15682,9 +22694,7 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -15692,14 +22702,22 @@ class GetNetworkStateRequest::_Internal { public: }; -GetNetworkStateRequest::GetNetworkStateRequest(::google::protobuf::Arena* arena) +GetNetworkStateRequest::GetNetworkStateRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, GetNetworkStateRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:tari.rpc.GetNetworkStateRequest) } GetNetworkStateRequest::GetNetworkStateRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetNetworkStateRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, GetNetworkStateRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetNetworkStateRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -15708,7 +22726,75 @@ GetNetworkStateRequest::GetNetworkStateRequest( // @@protoc_insertion_point(copy_constructor:tari.rpc.GetNetworkStateRequest) } +inline void* PROTOBUF_NONNULL GetNetworkStateRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetNetworkStateRequest(arena); +} +constexpr auto GetNetworkStateRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetNetworkStateRequest), + alignof(GetNetworkStateRequest)); +} +constexpr auto GetNetworkStateRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetNetworkStateRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetNetworkStateRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetNetworkStateRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &GetNetworkStateRequest::ByteSizeLong, + &GetNetworkStateRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetNetworkStateRequest, _impl_._cached_size_), + false, + }, + &GetNetworkStateRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetNetworkStateRequest_class_data_ = + GetNetworkStateRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetNetworkStateRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetNetworkStateRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetNetworkStateRequest_class_data_.tc_table); + return GetNetworkStateRequest_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +GetNetworkStateRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + GetNetworkStateRequest_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetNetworkStateRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; @@ -15717,44 +22803,55 @@ GetNetworkStateRequest::GetNetworkStateRequest( ::google::protobuf::Metadata GetNetworkStateRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[55]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetNetworkStateResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_._has_bits_); }; -GetNetworkStateResponse::GetNetworkStateResponse(::google::protobuf::Arena* arena) +GetNetworkStateResponse::GetNetworkStateResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetNetworkStateResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetNetworkStateResponse) } -inline PROTOBUF_NDEBUG_INLINE GetNetworkStateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE GetNetworkStateResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetNetworkStateResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, liveness_results_{visibility, arena, from.liveness_results_} {} GetNetworkStateResponse::GetNetworkStateResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetNetworkStateResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetNetworkStateResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetNetworkStateResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::MetaData>( - arena, *from._impl_.metadata_) - : nullptr; + _impl_.metadata_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_) + : nullptr; + _impl_.readiness_status_ = ((cached_has_bits & 0x00000002u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.readiness_status_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, base_node_state_), reinterpret_cast(&from._impl_) + @@ -15765,13 +22862,13 @@ GetNetworkStateResponse::GetNetworkStateResponse( // @@protoc_insertion_point(copy_constructor:tari.rpc.GetNetworkStateResponse) } -inline PROTOBUF_NDEBUG_INLINE GetNetworkStateResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetNetworkStateResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, liveness_results_{visibility, arena} {} -inline void GetNetworkStateResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetNetworkStateResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, metadata_), @@ -15782,69 +22879,86 @@ inline void GetNetworkStateResponse::SharedCtor(::_pb::Arena* arena) { } GetNetworkStateResponse::~GetNetworkStateResponse() { // @@protoc_insertion_point(destructor:tari.rpc.GetNetworkStateResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetNetworkStateResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.metadata_; - _impl_.~Impl_(); +inline void GetNetworkStateResponse::SharedDtor(MessageLite& self) { + GetNetworkStateResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.metadata_; + delete this_._impl_.readiness_status_; + this_._impl_.~Impl_(); } -const ::google::protobuf::MessageLite::ClassData* -GetNetworkStateResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_._cached_size_), - false, - }, - &GetNetworkStateResponse::MergeImpl, - &GetNetworkStateResponse::kDescriptorMethods, - }; - return &_data_; +inline void* PROTOBUF_NONNULL GetNetworkStateResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetNetworkStateResponse(arena); } -PROTOBUF_NOINLINE void GetNetworkStateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetNetworkStateResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.liveness_results_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.metadata_ != nullptr); - _impl_.metadata_->Clear(); +constexpr auto GetNetworkStateResponse::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.liveness_results_) + + decltype(GetNetworkStateResponse::_impl_.liveness_results_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GetNetworkStateResponse), alignof(GetNetworkStateResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GetNetworkStateResponse::PlacementNew_, + sizeof(GetNetworkStateResponse), + alignof(GetNetworkStateResponse)); } - ::memset(&_impl_.base_node_state_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.tari_randomx_estimated_hash_rate_) - - reinterpret_cast(&_impl_.base_node_state_)) + sizeof(_impl_.tari_randomx_estimated_hash_rate_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} +constexpr auto GetNetworkStateResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetNetworkStateResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetNetworkStateResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetNetworkStateResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetNetworkStateResponse::ByteSizeLong, + &GetNetworkStateResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_._cached_size_), + false, + }, + &GetNetworkStateResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* GetNetworkStateResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetNetworkStateResponse_class_data_ = + GetNetworkStateResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetNetworkStateResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetNetworkStateResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetNetworkStateResponse_class_data_.tc_table); + return GetNetworkStateResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 10, 2, 0, 2> GetNetworkStateResponse::_table_ = { +const ::_pbi::TcParseTable<4, 11, 3, 0, 2> +GetNetworkStateResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_._has_bits_), 0, // no _extensions_ - 10, 120, // max_field_number, fast_idx_mask + 11, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294966272, // skipmap + 4294965248, // skipmap offsetof(decltype(_table_), field_entries), - 10, // num_field_entries - 2, // num_aux_entries + 11, // num_field_entries + 3, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetNetworkStateResponse_default_instance_._instance, + GetNetworkStateResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetNetworkStateResponse>(), // to_prefetch @@ -15855,33 +22969,35 @@ const ::_pbi::TcParseTable<4, 10, 2, 0, 2> GetNetworkStateResponse::_table_ = { {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.metadata_)}}, // bool initial_sync_achieved = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.initial_sync_achieved_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 3, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.initial_sync_achieved_)}}, // .tari.rpc.BaseNodeState base_node_state = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetNetworkStateResponse, _impl_.base_node_state_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.base_node_state_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetNetworkStateResponse, _impl_.base_node_state_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.base_node_state_)}}, // bool failed_checkpoints = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.failed_checkpoints_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 4, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.failed_checkpoints_)}}, // uint64 reward = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetNetworkStateResponse, _impl_.reward_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.reward_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetNetworkStateResponse, _impl_.reward_), 5>(), + {40, 5, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.reward_)}}, // uint64 sha3x_estimated_hash_rate = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetNetworkStateResponse, _impl_.sha3x_estimated_hash_rate_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.sha3x_estimated_hash_rate_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetNetworkStateResponse, _impl_.sha3x_estimated_hash_rate_), 6>(), + {48, 6, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.sha3x_estimated_hash_rate_)}}, // uint64 monero_randomx_estimated_hash_rate = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetNetworkStateResponse, _impl_.monero_randomx_estimated_hash_rate_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.monero_randomx_estimated_hash_rate_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetNetworkStateResponse, _impl_.monero_randomx_estimated_hash_rate_), 7>(), + {56, 7, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.monero_randomx_estimated_hash_rate_)}}, // uint64 num_connections = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetNetworkStateResponse, _impl_.num_connections_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.num_connections_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetNetworkStateResponse, _impl_.num_connections_), 8>(), + {64, 8, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.num_connections_)}}, // repeated .tari.rpc.LivenessResult liveness_results = 9; {::_pbi::TcParser::FastMtR1, {74, 63, 1, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.liveness_results_)}}, // uint64 tari_randomx_estimated_hash_rate = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetNetworkStateResponse, _impl_.tari_randomx_estimated_hash_rate_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.tari_randomx_estimated_hash_rate_)}}, - {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetNetworkStateResponse, _impl_.tari_randomx_estimated_hash_rate_), 9>(), + {80, 9, 0, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.tari_randomx_estimated_hash_rate_)}}, + // .tari.rpc.ReadinessStatus readiness_status = 11; + {::_pbi::TcParser::FastMtS1, + {90, 1, 2, PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.readiness_status_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -15893,107 +23009,168 @@ const ::_pbi::TcParseTable<4, 10, 2, 0, 2> GetNetworkStateResponse::_table_ = { {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bool initial_sync_achieved = 2; - {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.initial_sync_achieved_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.initial_sync_achieved_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // .tari.rpc.BaseNodeState base_node_state = 3; - {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.base_node_state_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.base_node_state_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, // bool failed_checkpoints = 4; - {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.failed_checkpoints_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.failed_checkpoints_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // uint64 reward = 5; - {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.reward_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.reward_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 sha3x_estimated_hash_rate = 6; - {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.sha3x_estimated_hash_rate_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.sha3x_estimated_hash_rate_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 monero_randomx_estimated_hash_rate = 7; - {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.monero_randomx_estimated_hash_rate_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.monero_randomx_estimated_hash_rate_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 num_connections = 8; - {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.num_connections_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.num_connections_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // repeated .tari.rpc.LivenessResult liveness_results = 9; {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.liveness_results_), -1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, // uint64 tari_randomx_estimated_hash_rate = 10; - {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.tari_randomx_estimated_hash_rate_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::MetaData>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::LivenessResult>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.tari_randomx_estimated_hash_rate_), _Internal::kHasBitsOffset + 9, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // .tari.rpc.ReadinessStatus readiness_status = 11; + {PROTOBUF_FIELD_OFFSET(GetNetworkStateResponse, _impl_.readiness_status_), _Internal::kHasBitsOffset + 1, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::MetaData>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::LivenessResult>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::ReadinessStatus>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void GetNetworkStateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetNetworkStateResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetNetworkStateResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.liveness_results_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.metadata_ != nullptr); + _impl_.metadata_->Clear(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(_impl_.readiness_status_ != nullptr); + _impl_.readiness_status_->Clear(); + } + } + if ((cached_has_bits & 0x000000fcu) != 0) { + ::memset(&_impl_.base_node_state_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.monero_randomx_estimated_hash_rate_) - + reinterpret_cast(&_impl_.base_node_state_)) + sizeof(_impl_.monero_randomx_estimated_hash_rate_)); + } + if ((cached_has_bits & 0x00000300u) != 0) { + ::memset(&_impl_.num_connections_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.tari_randomx_estimated_hash_rate_) - + reinterpret_cast(&_impl_.num_connections_)) + sizeof(_impl_.tari_randomx_estimated_hash_rate_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetNetworkStateResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetNetworkStateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetNetworkStateResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetNetworkStateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetNetworkStateResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.MetaData metadata = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.metadata_, _impl_.metadata_->GetCachedSize(), target, stream); + 1, *this_._impl_.metadata_, this_._impl_.metadata_->GetCachedSize(), target, + stream); } // bool initial_sync_achieved = 2; - if (this->_internal_initial_sync_achieved() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_initial_sync_achieved(), target); + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_initial_sync_achieved() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_initial_sync_achieved(), target); + } } // .tari.rpc.BaseNodeState base_node_state = 3; - if (this->_internal_base_node_state() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_base_node_state(), target); + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_base_node_state() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_base_node_state(), target); + } } // bool failed_checkpoints = 4; - if (this->_internal_failed_checkpoints() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_failed_checkpoints(), target); + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_failed_checkpoints() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_failed_checkpoints(), target); + } } // uint64 reward = 5; - if (this->_internal_reward() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_reward(), target); + if ((cached_has_bits & 0x00000020u) != 0) { + if (this_._internal_reward() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 5, this_._internal_reward(), target); + } } // uint64 sha3x_estimated_hash_rate = 6; - if (this->_internal_sha3x_estimated_hash_rate() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 6, this->_internal_sha3x_estimated_hash_rate(), target); + if ((cached_has_bits & 0x00000040u) != 0) { + if (this_._internal_sha3x_estimated_hash_rate() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 6, this_._internal_sha3x_estimated_hash_rate(), target); + } } // uint64 monero_randomx_estimated_hash_rate = 7; - if (this->_internal_monero_randomx_estimated_hash_rate() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 7, this->_internal_monero_randomx_estimated_hash_rate(), target); + if ((cached_has_bits & 0x00000080u) != 0) { + if (this_._internal_monero_randomx_estimated_hash_rate() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 7, this_._internal_monero_randomx_estimated_hash_rate(), target); + } } // uint64 num_connections = 8; - if (this->_internal_num_connections() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 8, this->_internal_num_connections(), target); + if ((cached_has_bits & 0x00000100u) != 0) { + if (this_._internal_num_connections() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 8, this_._internal_num_connections(), target); + } } // repeated .tari.rpc.LivenessResult liveness_results = 9; for (unsigned i = 0, n = static_cast( - this->_internal_liveness_results_size()); + this_._internal_liveness_results_size()); i < n; i++) { - const auto& repfield = this->_internal_liveness_results().Get(i); + const auto& repfield = this_._internal_liveness_results().Get(i); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 9, repfield, repfield.GetCachedSize(), @@ -16001,91 +23178,127 @@ const ::_pbi::TcParseTable<4, 10, 2, 0, 2> GetNetworkStateResponse::_table_ = { } // uint64 tari_randomx_estimated_hash_rate = 10; - if (this->_internal_tari_randomx_estimated_hash_rate() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 10, this->_internal_tari_randomx_estimated_hash_rate(), target); + if ((cached_has_bits & 0x00000200u) != 0) { + if (this_._internal_tari_randomx_estimated_hash_rate() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 10, this_._internal_tari_randomx_estimated_hash_rate(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + // .tari.rpc.ReadinessStatus readiness_status = 11; + if ((cached_has_bits & 0x00000002u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, *this_._impl_.readiness_status_, this_._impl_.readiness_status_->GetCachedSize(), target, + stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetNetworkStateResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetNetworkStateResponse::ByteSizeLong(const MessageLite& base) { + const GetNetworkStateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetNetworkStateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetNetworkStateResponse) + const GetNetworkStateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetNetworkStateResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .tari.rpc.LivenessResult liveness_results = 9; - total_size += 1UL * this->_internal_liveness_results_size(); - for (const auto& msg : this->_internal_liveness_results()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .tari.rpc.LivenessResult liveness_results = 9; + { + total_size += 1UL * this_._internal_liveness_results_size(); + for (const auto& msg : this_._internal_liveness_results()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } } - // .tari.rpc.MetaData metadata = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + // .tari.rpc.MetaData metadata = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.metadata_); + } + // .tari.rpc.ReadinessStatus readiness_status = 11; + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.readiness_status_); + } + // .tari.rpc.BaseNodeState base_node_state = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_base_node_state() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_base_node_state()); + } + } + // bool initial_sync_achieved = 2; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_initial_sync_achieved() != 0) { + total_size += 2; + } + } + // bool failed_checkpoints = 4; + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_failed_checkpoints() != 0) { + total_size += 2; + } + } + // uint64 reward = 5; + if ((cached_has_bits & 0x00000020u) != 0) { + if (this_._internal_reward() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_reward()); + } + } + // uint64 sha3x_estimated_hash_rate = 6; + if ((cached_has_bits & 0x00000040u) != 0) { + if (this_._internal_sha3x_estimated_hash_rate() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_sha3x_estimated_hash_rate()); + } + } + // uint64 monero_randomx_estimated_hash_rate = 7; + if ((cached_has_bits & 0x00000080u) != 0) { + if (this_._internal_monero_randomx_estimated_hash_rate() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_monero_randomx_estimated_hash_rate()); + } + } } - - // .tari.rpc.BaseNodeState base_node_state = 3; - if (this->_internal_base_node_state() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_base_node_state()); + if ((cached_has_bits & 0x00000300u) != 0) { + // uint64 num_connections = 8; + if ((cached_has_bits & 0x00000100u) != 0) { + if (this_._internal_num_connections() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_num_connections()); + } + } + // uint64 tari_randomx_estimated_hash_rate = 10; + if ((cached_has_bits & 0x00000200u) != 0) { + if (this_._internal_tari_randomx_estimated_hash_rate() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_tari_randomx_estimated_hash_rate()); + } + } } - - // bool initial_sync_achieved = 2; - if (this->_internal_initial_sync_achieved() != 0) { - total_size += 2; - } - - // bool failed_checkpoints = 4; - if (this->_internal_failed_checkpoints() != 0) { - total_size += 2; - } - - // uint64 reward = 5; - if (this->_internal_reward() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_reward()); - } - - // uint64 sha3x_estimated_hash_rate = 6; - if (this->_internal_sha3x_estimated_hash_rate() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_sha3x_estimated_hash_rate()); - } - - // uint64 monero_randomx_estimated_hash_rate = 7; - if (this->_internal_monero_randomx_estimated_hash_rate() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_monero_randomx_estimated_hash_rate()); - } - - // uint64 num_connections = 8; - if (this->_internal_num_connections() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_num_connections()); - } - - // uint64 tari_randomx_estimated_hash_rate = 10; - if (this->_internal_tari_randomx_estimated_hash_rate() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_tari_randomx_estimated_hash_rate()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - void GetNetworkStateResponse::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); @@ -16098,38 +23311,65 @@ void GetNetworkStateResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_internal_mutable_liveness_results()->MergeFrom( from._internal_liveness_results()); 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 ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(from._impl_.metadata_ != nullptr); + if (_this->_impl_.metadata_ == nullptr) { + _this->_impl_.metadata_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_); + } else { + _this->_impl_.metadata_->MergeFrom(*from._impl_.metadata_); + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(from._impl_.readiness_status_ != nullptr); + if (_this->_impl_.readiness_status_ == nullptr) { + _this->_impl_.readiness_status_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.readiness_status_); + } else { + _this->_impl_.readiness_status_->MergeFrom(*from._impl_.readiness_status_); + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_base_node_state() != 0) { + _this->_impl_.base_node_state_ = from._impl_.base_node_state_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_initial_sync_achieved() != 0) { + _this->_impl_.initial_sync_achieved_ = from._impl_.initial_sync_achieved_; + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (from._internal_failed_checkpoints() != 0) { + _this->_impl_.failed_checkpoints_ = from._impl_.failed_checkpoints_; + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (from._internal_reward() != 0) { + _this->_impl_.reward_ = from._impl_.reward_; + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (from._internal_sha3x_estimated_hash_rate() != 0) { + _this->_impl_.sha3x_estimated_hash_rate_ = from._impl_.sha3x_estimated_hash_rate_; + } + } + if ((cached_has_bits & 0x00000080u) != 0) { + if (from._internal_monero_randomx_estimated_hash_rate() != 0) { + _this->_impl_.monero_randomx_estimated_hash_rate_ = from._impl_.monero_randomx_estimated_hash_rate_; + } } } - if (from._internal_base_node_state() != 0) { - _this->_impl_.base_node_state_ = from._impl_.base_node_state_; - } - if (from._internal_initial_sync_achieved() != 0) { - _this->_impl_.initial_sync_achieved_ = from._impl_.initial_sync_achieved_; - } - if (from._internal_failed_checkpoints() != 0) { - _this->_impl_.failed_checkpoints_ = from._impl_.failed_checkpoints_; - } - if (from._internal_reward() != 0) { - _this->_impl_.reward_ = from._impl_.reward_; - } - if (from._internal_sha3x_estimated_hash_rate() != 0) { - _this->_impl_.sha3x_estimated_hash_rate_ = from._impl_.sha3x_estimated_hash_rate_; - } - if (from._internal_monero_randomx_estimated_hash_rate() != 0) { - _this->_impl_.monero_randomx_estimated_hash_rate_ = from._impl_.monero_randomx_estimated_hash_rate_; - } - if (from._internal_num_connections() != 0) { - _this->_impl_.num_connections_ = from._impl_.num_connections_; - } - if (from._internal_tari_randomx_estimated_hash_rate() != 0) { - _this->_impl_.tari_randomx_estimated_hash_rate_ = from._impl_.tari_randomx_estimated_hash_rate_; + if ((cached_has_bits & 0x00000300u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { + if (from._internal_num_connections() != 0) { + _this->_impl_.num_connections_ = from._impl_.num_connections_; + } + } + if ((cached_has_bits & 0x00000200u) != 0) { + if (from._internal_tari_randomx_estimated_hash_rate() != 0) { + _this->_impl_.tari_randomx_estimated_hash_rate_ = from._impl_.tari_randomx_estimated_hash_rate_; + } + } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); @@ -16142,12 +23382,9 @@ void GetNetworkStateResponse::CopyFrom(const GetNetworkStateResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetNetworkStateResponse::IsInitialized() const { - return true; -} -void GetNetworkStateResponse::InternalSwap(GetNetworkStateResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetNetworkStateResponse::InternalSwap(GetNetworkStateResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.liveness_results_.InternalSwap(&other->_impl_.liveness_results_); @@ -16160,36 +23397,48 @@ void GetNetworkStateResponse::InternalSwap(GetNetworkStateResponse* PROTOBUF_RES } ::google::protobuf::Metadata GetNetworkStateResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[56]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class LivenessResult::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_._has_bits_); }; -LivenessResult::LivenessResult(::google::protobuf::Arena* arena) +LivenessResult::LivenessResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, LivenessResult_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.LivenessResult) } -inline PROTOBUF_NDEBUG_INLINE LivenessResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : peer_node_id_(arena, from.peer_node_id_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE LivenessResult::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::LivenessResult& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + peer_node_id_(arena, from.peer_node_id_) {} LivenessResult::LivenessResult( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LivenessResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, LivenessResult_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE LivenessResult* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, discover_latency_), reinterpret_cast(&from._impl_) + @@ -16200,13 +23449,13 @@ LivenessResult::LivenessResult( // @@protoc_insertion_point(copy_constructor:tari.rpc.LivenessResult) } -inline PROTOBUF_NDEBUG_INLINE LivenessResult::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE LivenessResult::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : peer_node_id_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + peer_node_id_(arena) {} -inline void LivenessResult::SharedCtor(::_pb::Arena* arena) { +inline void LivenessResult::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, discover_latency_), @@ -16217,54 +23466,63 @@ inline void LivenessResult::SharedCtor(::_pb::Arena* arena) { } LivenessResult::~LivenessResult() { // @@protoc_insertion_point(destructor:tari.rpc.LivenessResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void LivenessResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.peer_node_id_.Destroy(); - _impl_.~Impl_(); +inline void LivenessResult::SharedDtor(MessageLite& self) { + LivenessResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.peer_node_id_.Destroy(); + this_._impl_.~Impl_(); } -const ::google::protobuf::MessageLite::ClassData* -LivenessResult::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_._cached_size_), - false, - }, +inline void* PROTOBUF_NONNULL LivenessResult::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) LivenessResult(arena); +} +constexpr auto LivenessResult::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LivenessResult), + alignof(LivenessResult)); +} +constexpr auto LivenessResult::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_LivenessResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &LivenessResult::MergeImpl, - &LivenessResult::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void LivenessResult::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.LivenessResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.peer_node_id_.ClearToEmpty(); - ::memset(&_impl_.discover_latency_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.ping_latency_) - - reinterpret_cast(&_impl_.discover_latency_)) + sizeof(_impl_.ping_latency_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LivenessResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &LivenessResult::ByteSizeLong, + &LivenessResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_._cached_size_), + false, + }, + &LivenessResult::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; } -const char* LivenessResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull LivenessResult_class_data_ = + LivenessResult::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +LivenessResult::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&LivenessResult_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(LivenessResult_class_data_.tc_table); + return LivenessResult_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> LivenessResult::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +LivenessResult::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -16273,7 +23531,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> LivenessResult::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_LivenessResult_default_instance_._instance, + LivenessResult_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::LivenessResult>(), // to_prefetch @@ -16282,97 +23541,143 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> LivenessResult::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // bytes peer_node_id = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.peer_node_id_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.peer_node_id_)}}, // uint64 discover_latency = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LivenessResult, _impl_.discover_latency_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.discover_latency_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LivenessResult, _impl_.discover_latency_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.discover_latency_)}}, // uint64 ping_latency = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LivenessResult, _impl_.ping_latency_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.ping_latency_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LivenessResult, _impl_.ping_latency_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.ping_latency_)}}, }}, {{ 65535, 65535 }}, {{ // bytes peer_node_id = 1; - {PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.peer_node_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.peer_node_id_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint64 discover_latency = 2; - {PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.discover_latency_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.discover_latency_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 ping_latency = 3; - {PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.ping_latency_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.ping_latency_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void LivenessResult::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.LivenessResult) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* LivenessResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.peer_node_id_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000006u) != 0) { + ::memset(&_impl_.discover_latency_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.ping_latency_) - + reinterpret_cast(&_impl_.discover_latency_)) + sizeof(_impl_.ping_latency_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL LivenessResult::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const LivenessResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL LivenessResult::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const LivenessResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.LivenessResult) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes peer_node_id = 1; - if (!this->_internal_peer_node_id().empty()) { - const std::string& _s = this->_internal_peer_node_id(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_peer_node_id().empty()) { + const ::std::string& _s = this_._internal_peer_node_id(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // uint64 discover_latency = 2; - if (this->_internal_discover_latency() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_discover_latency(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_discover_latency() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_discover_latency(), target); + } } // uint64 ping_latency = 3; - if (this->_internal_ping_latency() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_ping_latency(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_ping_latency() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_ping_latency(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.LivenessResult) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t LivenessResult::ByteSizeLong(const MessageLite& base) { + const LivenessResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t LivenessResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.LivenessResult) + const LivenessResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.LivenessResult) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes peer_node_id = 1; - if (!this->_internal_peer_node_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_peer_node_id()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // bytes peer_node_id = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_peer_node_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_peer_node_id()); + } + } + // uint64 discover_latency = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_discover_latency() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_discover_latency()); + } + } + // uint64 ping_latency = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_ping_latency() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_ping_latency()); + } + } } - - // uint64 discover_latency = 2; - if (this->_internal_discover_latency() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_discover_latency()); - } - - // uint64 ping_latency = 3; - if (this->_internal_ping_latency() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_ping_latency()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - void LivenessResult::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); @@ -16381,15 +23686,29 @@ void LivenessResult::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_peer_node_id().empty()) { - _this->_internal_set_peer_node_id(from._internal_peer_node_id()); - } - if (from._internal_discover_latency() != 0) { - _this->_impl_.discover_latency_ = from._impl_.discover_latency_; - } - if (from._internal_ping_latency() != 0) { - _this->_impl_.ping_latency_ = from._impl_.ping_latency_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_peer_node_id().empty()) { + _this->_internal_set_peer_node_id(from._internal_peer_node_id()); + } else { + if (_this->_impl_.peer_node_id_.IsDefault()) { + _this->_internal_set_peer_node_id(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_discover_latency() != 0) { + _this->_impl_.discover_latency_ = from._impl_.discover_latency_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_ping_latency() != 0) { + _this->_impl_.ping_latency_ = from._impl_.ping_latency_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -16400,15 +23719,13 @@ void LivenessResult::CopyFrom(const LivenessResult& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LivenessResult::IsInitialized() const { - return true; -} -void LivenessResult::InternalSwap(LivenessResult* PROTOBUF_RESTRICT other) { - using std::swap; +void LivenessResult::InternalSwap(LivenessResult* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.peer_node_id_, &other->_impl_.peer_node_id_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(LivenessResult, _impl_.ping_latency_) @@ -16419,9 +23736,945 @@ void LivenessResult::InternalSwap(LivenessResult* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata LivenessResult::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[57]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class SearchPaymentReferencesRequest::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SearchPaymentReferencesRequest, _impl_._has_bits_); +}; + +SearchPaymentReferencesRequest::SearchPaymentReferencesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SearchPaymentReferencesRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.SearchPaymentReferencesRequest) +} +PROTOBUF_NDEBUG_INLINE SearchPaymentReferencesRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::SearchPaymentReferencesRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + payment_reference_hex_{visibility, arena, from.payment_reference_hex_}, + payment_reference_bytes_{visibility, arena, from.payment_reference_bytes_} {} + +SearchPaymentReferencesRequest::SearchPaymentReferencesRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SearchPaymentReferencesRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SearchPaymentReferencesRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SearchPaymentReferencesRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.include_spent_ = from._impl_.include_spent_; + + // @@protoc_insertion_point(copy_constructor:tari.rpc.SearchPaymentReferencesRequest) +} +PROTOBUF_NDEBUG_INLINE SearchPaymentReferencesRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + payment_reference_hex_{visibility, arena}, + payment_reference_bytes_{visibility, arena} {} + +inline void SearchPaymentReferencesRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.include_spent_ = {}; +} +SearchPaymentReferencesRequest::~SearchPaymentReferencesRequest() { + // @@protoc_insertion_point(destructor:tari.rpc.SearchPaymentReferencesRequest) + SharedDtor(*this); +} +inline void SearchPaymentReferencesRequest::SharedDtor(MessageLite& self) { + SearchPaymentReferencesRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL SearchPaymentReferencesRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SearchPaymentReferencesRequest(arena); +} +constexpr auto SearchPaymentReferencesRequest::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SearchPaymentReferencesRequest, _impl_.payment_reference_hex_) + + decltype(SearchPaymentReferencesRequest::_impl_.payment_reference_hex_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(SearchPaymentReferencesRequest, _impl_.payment_reference_bytes_) + + decltype(SearchPaymentReferencesRequest::_impl_.payment_reference_bytes_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SearchPaymentReferencesRequest), alignof(SearchPaymentReferencesRequest), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SearchPaymentReferencesRequest::PlacementNew_, + sizeof(SearchPaymentReferencesRequest), + alignof(SearchPaymentReferencesRequest)); + } +} +constexpr auto SearchPaymentReferencesRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SearchPaymentReferencesRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SearchPaymentReferencesRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SearchPaymentReferencesRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SearchPaymentReferencesRequest::ByteSizeLong, + &SearchPaymentReferencesRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SearchPaymentReferencesRequest, _impl_._cached_size_), + false, + }, + &SearchPaymentReferencesRequest::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SearchPaymentReferencesRequest_class_data_ = + SearchPaymentReferencesRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SearchPaymentReferencesRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SearchPaymentReferencesRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SearchPaymentReferencesRequest_class_data_.tc_table); + return SearchPaymentReferencesRequest_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 69, 2> +SearchPaymentReferencesRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SearchPaymentReferencesRequest, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + SearchPaymentReferencesRequest_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SearchPaymentReferencesRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // repeated string payment_reference_hex = 1; + {::_pbi::TcParser::FastUR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(SearchPaymentReferencesRequest, _impl_.payment_reference_hex_)}}, + // repeated bytes payment_reference_bytes = 2; + {::_pbi::TcParser::FastBR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(SearchPaymentReferencesRequest, _impl_.payment_reference_bytes_)}}, + // bool include_spent = 3; + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 0, 0, PROTOBUF_FIELD_OFFSET(SearchPaymentReferencesRequest, _impl_.include_spent_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated string payment_reference_hex = 1; + {PROTOBUF_FIELD_OFFSET(SearchPaymentReferencesRequest, _impl_.payment_reference_hex_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated bytes payment_reference_bytes = 2; + {PROTOBUF_FIELD_OFFSET(SearchPaymentReferencesRequest, _impl_.payment_reference_bytes_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, + // bool include_spent = 3; + {PROTOBUF_FIELD_OFFSET(SearchPaymentReferencesRequest, _impl_.include_spent_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + "\47\25\0\0\0\0\0\0" + "tari.rpc.SearchPaymentReferencesRequest" + "payment_reference_hex" + }}, +}; +PROTOBUF_NOINLINE void SearchPaymentReferencesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SearchPaymentReferencesRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.payment_reference_hex_.Clear(); + _impl_.payment_reference_bytes_.Clear(); + _impl_.include_spent_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SearchPaymentReferencesRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SearchPaymentReferencesRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SearchPaymentReferencesRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SearchPaymentReferencesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SearchPaymentReferencesRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated string payment_reference_hex = 1; + for (int i = 0, n = this_._internal_payment_reference_hex_size(); i < n; ++i) { + const auto& s = this_._internal_payment_reference_hex().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.SearchPaymentReferencesRequest.payment_reference_hex"); + target = stream->WriteString(1, s, target); + } + + // repeated bytes payment_reference_bytes = 2; + for (int i = 0, n = this_._internal_payment_reference_bytes_size(); i < n; ++i) { + const auto& s = this_._internal_payment_reference_bytes().Get(i); + target = stream->WriteBytes(2, s, target); + } + + // bool include_spent = 3; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_include_spent() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_include_spent(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SearchPaymentReferencesRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SearchPaymentReferencesRequest::ByteSizeLong(const MessageLite& base) { + const SearchPaymentReferencesRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SearchPaymentReferencesRequest::ByteSizeLong() const { + const SearchPaymentReferencesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SearchPaymentReferencesRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated string payment_reference_hex = 1; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_payment_reference_hex().size()); + for (int i = 0, n = this_._internal_payment_reference_hex().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_payment_reference_hex().Get(i)); + } + } + // repeated bytes payment_reference_bytes = 2; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_payment_reference_bytes().size()); + for (int i = 0, n = this_._internal_payment_reference_bytes().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_payment_reference_bytes().Get(i)); + } + } + } + { + // bool include_spent = 3; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_include_spent() != 0) { + total_size += 2; + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void SearchPaymentReferencesRequest::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.SearchPaymentReferencesRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_payment_reference_hex()->MergeFrom(from._internal_payment_reference_hex()); + _this->_internal_mutable_payment_reference_bytes()->MergeFrom(from._internal_payment_reference_bytes()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_include_spent() != 0) { + _this->_impl_.include_spent_ = from._impl_.include_spent_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void SearchPaymentReferencesRequest::CopyFrom(const SearchPaymentReferencesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SearchPaymentReferencesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void SearchPaymentReferencesRequest::InternalSwap(SearchPaymentReferencesRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.payment_reference_hex_.InternalSwap(&other->_impl_.payment_reference_hex_); + _impl_.payment_reference_bytes_.InternalSwap(&other->_impl_.payment_reference_bytes_); + swap(_impl_.include_spent_, other->_impl_.include_spent_); +} + +::google::protobuf::Metadata SearchPaymentReferencesRequest::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class PaymentReferenceResponse::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_._has_bits_); +}; + +PaymentReferenceResponse::PaymentReferenceResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, PaymentReferenceResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.PaymentReferenceResponse) +} +PROTOBUF_NDEBUG_INLINE PaymentReferenceResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::PaymentReferenceResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + payment_reference_hex_(arena, from.payment_reference_hex_), + block_hash_(arena, from.block_hash_), + commitment_(arena, from.commitment_), + spent_block_hash_(arena, from.spent_block_hash_), + output_hash_(arena, from.output_hash_) {} + +PaymentReferenceResponse::PaymentReferenceResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const PaymentReferenceResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, PaymentReferenceResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + PaymentReferenceResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, block_height_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, block_height_), + offsetof(Impl_, is_spent_) - + offsetof(Impl_, block_height_) + + sizeof(Impl_::is_spent_)); + + // @@protoc_insertion_point(copy_constructor:tari.rpc.PaymentReferenceResponse) +} +PROTOBUF_NDEBUG_INLINE PaymentReferenceResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + payment_reference_hex_(arena), + block_hash_(arena), + commitment_(arena), + spent_block_hash_(arena), + output_hash_(arena) {} + +inline void PaymentReferenceResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, block_height_), + 0, + offsetof(Impl_, is_spent_) - + offsetof(Impl_, block_height_) + + sizeof(Impl_::is_spent_)); +} +PaymentReferenceResponse::~PaymentReferenceResponse() { + // @@protoc_insertion_point(destructor:tari.rpc.PaymentReferenceResponse) + SharedDtor(*this); +} +inline void PaymentReferenceResponse::SharedDtor(MessageLite& self) { + PaymentReferenceResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.payment_reference_hex_.Destroy(); + this_._impl_.block_hash_.Destroy(); + this_._impl_.commitment_.Destroy(); + this_._impl_.spent_block_hash_.Destroy(); + this_._impl_.output_hash_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL PaymentReferenceResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PaymentReferenceResponse(arena); +} +constexpr auto PaymentReferenceResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PaymentReferenceResponse), + alignof(PaymentReferenceResponse)); +} +constexpr auto PaymentReferenceResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_PaymentReferenceResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PaymentReferenceResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PaymentReferenceResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &PaymentReferenceResponse::ByteSizeLong, + &PaymentReferenceResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_._cached_size_), + false, + }, + &PaymentReferenceResponse::kDescriptorMethods, + &descriptor_table_base_5fnode_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull PaymentReferenceResponse_class_data_ = + PaymentReferenceResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PaymentReferenceResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&PaymentReferenceResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(PaymentReferenceResponse_class_data_.tc_table); + return PaymentReferenceResponse_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 11, 0, 71, 2> +PaymentReferenceResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_._has_bits_), + 0, // no _extensions_ + 11, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294965248, // skipmap + offsetof(decltype(_table_), field_entries), + 11, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + PaymentReferenceResponse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::PaymentReferenceResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string payment_reference_hex = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.payment_reference_hex_)}}, + // uint64 block_height = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PaymentReferenceResponse, _impl_.block_height_), 5>(), + {16, 5, 0, PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.block_height_)}}, + // bytes block_hash = 3; + {::_pbi::TcParser::FastBS1, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.block_hash_)}}, + // uint64 mined_timestamp = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PaymentReferenceResponse, _impl_.mined_timestamp_), 6>(), + {32, 6, 0, PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.mined_timestamp_)}}, + // bytes commitment = 5; + {::_pbi::TcParser::FastBS1, + {42, 2, 0, PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.commitment_)}}, + // bool is_spent = 6; + {::_pbi::TcParser::SingularVarintNoZag1(), + {48, 10, 0, PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.is_spent_)}}, + // uint64 spent_height = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PaymentReferenceResponse, _impl_.spent_height_), 7>(), + {56, 7, 0, PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.spent_height_)}}, + // bytes spent_block_hash = 8; + {::_pbi::TcParser::FastBS1, + {66, 3, 0, PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.spent_block_hash_)}}, + // uint64 min_value_promise = 9; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PaymentReferenceResponse, _impl_.min_value_promise_), 8>(), + {72, 8, 0, PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.min_value_promise_)}}, + // uint64 spent_timestamp = 10; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PaymentReferenceResponse, _impl_.spent_timestamp_), 9>(), + {80, 9, 0, PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.spent_timestamp_)}}, + // bytes output_hash = 11; + {::_pbi::TcParser::FastBS1, + {90, 4, 0, PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.output_hash_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string payment_reference_hex = 1; + {PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.payment_reference_hex_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // uint64 block_height = 2; + {PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.block_height_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // bytes block_hash = 3; + {PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.block_hash_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // uint64 mined_timestamp = 4; + {PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.mined_timestamp_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // bytes commitment = 5; + {PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.commitment_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bool is_spent = 6; + {PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.is_spent_), _Internal::kHasBitsOffset + 10, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // uint64 spent_height = 7; + {PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.spent_height_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // bytes spent_block_hash = 8; + {PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.spent_block_hash_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // uint64 min_value_promise = 9; + {PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.min_value_promise_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 spent_timestamp = 10; + {PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.spent_timestamp_), _Internal::kHasBitsOffset + 9, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // bytes output_hash = 11; + {PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.output_hash_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\41\25\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "tari.rpc.PaymentReferenceResponse" + "payment_reference_hex" + }}, +}; +PROTOBUF_NOINLINE void PaymentReferenceResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.PaymentReferenceResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.payment_reference_hex_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.block_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.commitment_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.spent_block_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + _impl_.output_hash_.ClearNonDefaultToEmpty(); + } + } + if ((cached_has_bits & 0x000000e0u) != 0) { + ::memset(&_impl_.block_height_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.spent_height_) - + reinterpret_cast(&_impl_.block_height_)) + sizeof(_impl_.spent_height_)); + } + if ((cached_has_bits & 0x00000700u) != 0) { + ::memset(&_impl_.min_value_promise_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.is_spent_) - + reinterpret_cast(&_impl_.min_value_promise_)) + sizeof(_impl_.is_spent_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PaymentReferenceResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PaymentReferenceResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PaymentReferenceResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PaymentReferenceResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.PaymentReferenceResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string payment_reference_hex = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_payment_reference_hex().empty()) { + const ::std::string& _s = this_._internal_payment_reference_hex(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.PaymentReferenceResponse.payment_reference_hex"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // uint64 block_height = 2; + if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { + if (this_._internal_block_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_block_height(), target); + } + } + + // bytes block_hash = 3; + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_block_hash().empty()) { + const ::std::string& _s = this_._internal_block_hash(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + } + + // uint64 mined_timestamp = 4; + if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { + if (this_._internal_mined_timestamp() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_mined_timestamp(), target); + } + } + + // bytes commitment = 5; + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (!this_._internal_commitment().empty()) { + const ::std::string& _s = this_._internal_commitment(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } + } + + // bool is_spent = 6; + if ((this_._impl_._has_bits_[0] & 0x00000400u) != 0) { + if (this_._internal_is_spent() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_is_spent(), target); + } + } + + // uint64 spent_height = 7; + if ((this_._impl_._has_bits_[0] & 0x00000080u) != 0) { + if (this_._internal_spent_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 7, this_._internal_spent_height(), target); + } + } + + // bytes spent_block_hash = 8; + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (!this_._internal_spent_block_hash().empty()) { + const ::std::string& _s = this_._internal_spent_block_hash(); + target = stream->WriteBytesMaybeAliased(8, _s, target); + } + } + + // uint64 min_value_promise = 9; + if ((this_._impl_._has_bits_[0] & 0x00000100u) != 0) { + if (this_._internal_min_value_promise() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 9, this_._internal_min_value_promise(), target); + } + } + + // uint64 spent_timestamp = 10; + if ((this_._impl_._has_bits_[0] & 0x00000200u) != 0) { + if (this_._internal_spent_timestamp() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 10, this_._internal_spent_timestamp(), target); + } + } + + // bytes output_hash = 11; + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (!this_._internal_output_hash().empty()) { + const ::std::string& _s = this_._internal_output_hash(); + target = stream->WriteBytesMaybeAliased(11, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.PaymentReferenceResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PaymentReferenceResponse::ByteSizeLong(const MessageLite& base) { + const PaymentReferenceResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PaymentReferenceResponse::ByteSizeLong() const { + const PaymentReferenceResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.PaymentReferenceResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + // string payment_reference_hex = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_payment_reference_hex().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_payment_reference_hex()); + } + } + // bytes block_hash = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_block_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_block_hash()); + } + } + // bytes commitment = 5; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_commitment().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_commitment()); + } + } + // bytes spent_block_hash = 8; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_spent_block_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_spent_block_hash()); + } + } + // bytes output_hash = 11; + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_output_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_output_hash()); + } + } + // uint64 block_height = 2; + if ((cached_has_bits & 0x00000020u) != 0) { + if (this_._internal_block_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_block_height()); + } + } + // uint64 mined_timestamp = 4; + if ((cached_has_bits & 0x00000040u) != 0) { + if (this_._internal_mined_timestamp() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_mined_timestamp()); + } + } + // uint64 spent_height = 7; + if ((cached_has_bits & 0x00000080u) != 0) { + if (this_._internal_spent_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_spent_height()); + } + } + } + if ((cached_has_bits & 0x00000700u) != 0) { + // uint64 min_value_promise = 9; + if ((cached_has_bits & 0x00000100u) != 0) { + if (this_._internal_min_value_promise() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_min_value_promise()); + } + } + // uint64 spent_timestamp = 10; + if ((cached_has_bits & 0x00000200u) != 0) { + if (this_._internal_spent_timestamp() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_spent_timestamp()); + } + } + // bool is_spent = 6; + if ((cached_has_bits & 0x00000400u) != 0) { + if (this_._internal_is_spent() != 0) { + total_size += 2; + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void PaymentReferenceResponse::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.PaymentReferenceResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_payment_reference_hex().empty()) { + _this->_internal_set_payment_reference_hex(from._internal_payment_reference_hex()); + } else { + if (_this->_impl_.payment_reference_hex_.IsDefault()) { + _this->_internal_set_payment_reference_hex(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_block_hash().empty()) { + _this->_internal_set_block_hash(from._internal_block_hash()); + } else { + if (_this->_impl_.block_hash_.IsDefault()) { + _this->_internal_set_block_hash(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_commitment().empty()) { + _this->_internal_set_commitment(from._internal_commitment()); + } else { + if (_this->_impl_.commitment_.IsDefault()) { + _this->_internal_set_commitment(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_spent_block_hash().empty()) { + _this->_internal_set_spent_block_hash(from._internal_spent_block_hash()); + } else { + if (_this->_impl_.spent_block_hash_.IsDefault()) { + _this->_internal_set_spent_block_hash(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (!from._internal_output_hash().empty()) { + _this->_internal_set_output_hash(from._internal_output_hash()); + } else { + if (_this->_impl_.output_hash_.IsDefault()) { + _this->_internal_set_output_hash(""); + } + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (from._internal_block_height() != 0) { + _this->_impl_.block_height_ = from._impl_.block_height_; + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (from._internal_mined_timestamp() != 0) { + _this->_impl_.mined_timestamp_ = from._impl_.mined_timestamp_; + } + } + if ((cached_has_bits & 0x00000080u) != 0) { + if (from._internal_spent_height() != 0) { + _this->_impl_.spent_height_ = from._impl_.spent_height_; + } + } + } + if ((cached_has_bits & 0x00000700u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { + if (from._internal_min_value_promise() != 0) { + _this->_impl_.min_value_promise_ = from._impl_.min_value_promise_; + } + } + if ((cached_has_bits & 0x00000200u) != 0) { + if (from._internal_spent_timestamp() != 0) { + _this->_impl_.spent_timestamp_ = from._impl_.spent_timestamp_; + } + } + if ((cached_has_bits & 0x00000400u) != 0) { + if (from._internal_is_spent() != 0) { + _this->_impl_.is_spent_ = from._impl_.is_spent_; + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void PaymentReferenceResponse::CopyFrom(const PaymentReferenceResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.PaymentReferenceResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void PaymentReferenceResponse::InternalSwap(PaymentReferenceResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payment_reference_hex_, &other->_impl_.payment_reference_hex_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.block_hash_, &other->_impl_.block_hash_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.commitment_, &other->_impl_.commitment_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.spent_block_hash_, &other->_impl_.spent_block_hash_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.output_hash_, &other->_impl_.output_hash_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.is_spent_) + + sizeof(PaymentReferenceResponse::_impl_.is_spent_) + - PROTOBUF_FIELD_OFFSET(PaymentReferenceResponse, _impl_.block_height_)>( + reinterpret_cast(&_impl_.block_height_), + reinterpret_cast(&other->_impl_.block_height_)); +} + +::google::protobuf::Metadata PaymentReferenceResponse::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -16431,8 +24684,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{}); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ [[maybe_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 f9df006..7f27fa4 100644 --- a/external/src/Tari/proto/gRPC/base_node.pb.h +++ b/external/src/Tari/proto/gRPC/base_node.pb.h @@ -1,22 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: base_node.proto -// Protobuf C++ Version: 5.26.1 +// Protobuf C++ Version: 6.31.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_base_5fnode_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_base_5fnode_2eproto_2epb_2eh +#ifndef base_5fnode_2eproto_2epb_2eh +#define base_5fnode_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026001 +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6031001 #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" #include "google/protobuf/arenastring.h" @@ -26,6 +26,7 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/generated_enum_reflection.h" @@ -45,7 +46,8 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal } // namespace protobuf } // namespace google @@ -54,193 +56,361 @@ class AnyMetadata; struct TableStruct_base_5fnode_2eproto { static const ::uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_base_5fnode_2eproto; +extern "C" { +extern const ::google::protobuf::internal::DescriptorTable descriptor_table_base_5fnode_2eproto; +} // extern "C" namespace tari { namespace rpc { +enum BaseNodeState : int; +extern const uint32_t BaseNodeState_internal_data_[]; +enum CalcType : int; +extern const uint32_t CalcType_internal_data_[]; +enum ReadinessStatus_State : int; +extern const uint32_t ReadinessStatus_State_internal_data_[]; +enum Sorting : int; +extern const uint32_t Sorting_internal_data_[]; +enum SubmitTransactionResult : int; +extern const uint32_t SubmitTransactionResult_internal_data_[]; +enum SyncState : int; +extern const uint32_t SyncState_internal_data_[]; +enum TransactionLocation : int; +extern const uint32_t TransactionLocation_internal_data_[]; +class BaseNodeGetVersionResponse; +struct BaseNodeGetVersionResponseDefaultTypeInternal; +extern BaseNodeGetVersionResponseDefaultTypeInternal _BaseNodeGetVersionResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull BaseNodeGetVersionResponse_class_data_; class BlockBlobRequest; struct BlockBlobRequestDefaultTypeInternal; extern BlockBlobRequestDefaultTypeInternal _BlockBlobRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull BlockBlobRequest_class_data_; class BlockGroupRequest; struct BlockGroupRequestDefaultTypeInternal; extern BlockGroupRequestDefaultTypeInternal _BlockGroupRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull BlockGroupRequest_class_data_; class BlockGroupResponse; struct BlockGroupResponseDefaultTypeInternal; extern BlockGroupResponseDefaultTypeInternal _BlockGroupResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull BlockGroupResponse_class_data_; class BlockHeaderResponse; struct BlockHeaderResponseDefaultTypeInternal; extern BlockHeaderResponseDefaultTypeInternal _BlockHeaderResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull BlockHeaderResponse_class_data_; class BlockInfo; struct BlockInfoDefaultTypeInternal; extern BlockInfoDefaultTypeInternal _BlockInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull BlockInfo_class_data_; class BlockTimingResponse; struct BlockTimingResponseDefaultTypeInternal; extern BlockTimingResponseDefaultTypeInternal _BlockTimingResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull BlockTimingResponse_class_data_; class FetchMatchingUtxosRequest; struct FetchMatchingUtxosRequestDefaultTypeInternal; extern FetchMatchingUtxosRequestDefaultTypeInternal _FetchMatchingUtxosRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull FetchMatchingUtxosRequest_class_data_; class FetchMatchingUtxosResponse; struct FetchMatchingUtxosResponseDefaultTypeInternal; extern FetchMatchingUtxosResponseDefaultTypeInternal _FetchMatchingUtxosResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull FetchMatchingUtxosResponse_class_data_; class GetActiveValidatorNodesRequest; struct GetActiveValidatorNodesRequestDefaultTypeInternal; extern GetActiveValidatorNodesRequestDefaultTypeInternal _GetActiveValidatorNodesRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetActiveValidatorNodesRequest_class_data_; class GetActiveValidatorNodesResponse; struct GetActiveValidatorNodesResponseDefaultTypeInternal; extern GetActiveValidatorNodesResponseDefaultTypeInternal _GetActiveValidatorNodesResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetActiveValidatorNodesResponse_class_data_; class GetAssetMetadataRequest; struct GetAssetMetadataRequestDefaultTypeInternal; extern GetAssetMetadataRequestDefaultTypeInternal _GetAssetMetadataRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetAssetMetadataRequest_class_data_; class GetAssetMetadataResponse; struct GetAssetMetadataResponseDefaultTypeInternal; extern GetAssetMetadataResponseDefaultTypeInternal _GetAssetMetadataResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetAssetMetadataResponse_class_data_; class GetBlocksRequest; struct GetBlocksRequestDefaultTypeInternal; extern GetBlocksRequestDefaultTypeInternal _GetBlocksRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetBlocksRequest_class_data_; class GetBlocksResponse; struct GetBlocksResponseDefaultTypeInternal; extern GetBlocksResponseDefaultTypeInternal _GetBlocksResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetBlocksResponse_class_data_; class GetHeaderByHashRequest; struct GetHeaderByHashRequestDefaultTypeInternal; extern GetHeaderByHashRequestDefaultTypeInternal _GetHeaderByHashRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetHeaderByHashRequest_class_data_; class GetMempoolTransactionsRequest; struct GetMempoolTransactionsRequestDefaultTypeInternal; extern GetMempoolTransactionsRequestDefaultTypeInternal _GetMempoolTransactionsRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetMempoolTransactionsRequest_class_data_; class GetMempoolTransactionsResponse; struct GetMempoolTransactionsResponseDefaultTypeInternal; extern GetMempoolTransactionsResponseDefaultTypeInternal _GetMempoolTransactionsResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetMempoolTransactionsResponse_class_data_; class GetNetworkStateRequest; struct GetNetworkStateRequestDefaultTypeInternal; extern GetNetworkStateRequestDefaultTypeInternal _GetNetworkStateRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetNetworkStateRequest_class_data_; class GetNetworkStateResponse; struct GetNetworkStateResponseDefaultTypeInternal; extern GetNetworkStateResponseDefaultTypeInternal _GetNetworkStateResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetNetworkStateResponse_class_data_; class GetNewBlockBlobResult; struct GetNewBlockBlobResultDefaultTypeInternal; extern GetNewBlockBlobResultDefaultTypeInternal _GetNewBlockBlobResult_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetNewBlockBlobResult_class_data_; class GetNewBlockResult; struct GetNewBlockResultDefaultTypeInternal; extern GetNewBlockResultDefaultTypeInternal _GetNewBlockResult_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetNewBlockResult_class_data_; class GetNewBlockTemplateWithCoinbasesRequest; struct GetNewBlockTemplateWithCoinbasesRequestDefaultTypeInternal; extern GetNewBlockTemplateWithCoinbasesRequestDefaultTypeInternal _GetNewBlockTemplateWithCoinbasesRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetNewBlockTemplateWithCoinbasesRequest_class_data_; class GetNewBlockWithCoinbasesRequest; struct GetNewBlockWithCoinbasesRequestDefaultTypeInternal; extern GetNewBlockWithCoinbasesRequestDefaultTypeInternal _GetNewBlockWithCoinbasesRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetNewBlockWithCoinbasesRequest_class_data_; class GetPeersRequest; struct GetPeersRequestDefaultTypeInternal; extern GetPeersRequestDefaultTypeInternal _GetPeersRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetPeersRequest_class_data_; class GetPeersResponse; struct GetPeersResponseDefaultTypeInternal; extern GetPeersResponseDefaultTypeInternal _GetPeersResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetPeersResponse_class_data_; class GetShardKeyRequest; struct GetShardKeyRequestDefaultTypeInternal; extern GetShardKeyRequestDefaultTypeInternal _GetShardKeyRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetShardKeyRequest_class_data_; class GetShardKeyResponse; struct GetShardKeyResponseDefaultTypeInternal; extern GetShardKeyResponseDefaultTypeInternal _GetShardKeyResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetShardKeyResponse_class_data_; class GetSideChainUtxosRequest; struct GetSideChainUtxosRequestDefaultTypeInternal; extern GetSideChainUtxosRequestDefaultTypeInternal _GetSideChainUtxosRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetSideChainUtxosRequest_class_data_; class GetSideChainUtxosResponse; struct GetSideChainUtxosResponseDefaultTypeInternal; extern GetSideChainUtxosResponseDefaultTypeInternal _GetSideChainUtxosResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetSideChainUtxosResponse_class_data_; class GetTemplateRegistrationResponse; struct GetTemplateRegistrationResponseDefaultTypeInternal; extern GetTemplateRegistrationResponseDefaultTypeInternal _GetTemplateRegistrationResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetTemplateRegistrationResponse_class_data_; class GetTemplateRegistrationsRequest; struct GetTemplateRegistrationsRequestDefaultTypeInternal; extern GetTemplateRegistrationsRequestDefaultTypeInternal _GetTemplateRegistrationsRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetTemplateRegistrationsRequest_class_data_; class GetTokensRequest; struct GetTokensRequestDefaultTypeInternal; extern GetTokensRequestDefaultTypeInternal _GetTokensRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetTokensRequest_class_data_; class GetTokensResponse; struct GetTokensResponseDefaultTypeInternal; extern GetTokensResponseDefaultTypeInternal _GetTokensResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetTokensResponse_class_data_; +class GetValidatorNodeChangesRequest; +struct GetValidatorNodeChangesRequestDefaultTypeInternal; +extern GetValidatorNodeChangesRequestDefaultTypeInternal _GetValidatorNodeChangesRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetValidatorNodeChangesRequest_class_data_; +class GetValidatorNodeChangesResponse; +struct GetValidatorNodeChangesResponseDefaultTypeInternal; +extern GetValidatorNodeChangesResponseDefaultTypeInternal _GetValidatorNodeChangesResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetValidatorNodeChangesResponse_class_data_; class HeightRequest; struct HeightRequestDefaultTypeInternal; extern HeightRequestDefaultTypeInternal _HeightRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull HeightRequest_class_data_; class IntegerValue; struct IntegerValueDefaultTypeInternal; extern IntegerValueDefaultTypeInternal _IntegerValue_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull IntegerValue_class_data_; class ListAssetRegistrationsRequest; struct ListAssetRegistrationsRequestDefaultTypeInternal; extern ListAssetRegistrationsRequestDefaultTypeInternal _ListAssetRegistrationsRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ListAssetRegistrationsRequest_class_data_; class ListAssetRegistrationsResponse; struct ListAssetRegistrationsResponseDefaultTypeInternal; extern ListAssetRegistrationsResponseDefaultTypeInternal _ListAssetRegistrationsResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ListAssetRegistrationsResponse_class_data_; class ListHeadersRequest; struct ListHeadersRequestDefaultTypeInternal; extern ListHeadersRequestDefaultTypeInternal _ListHeadersRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ListHeadersRequest_class_data_; class LivenessResult; struct LivenessResultDefaultTypeInternal; extern LivenessResultDefaultTypeInternal _LivenessResult_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull LivenessResult_class_data_; class MempoolStatsResponse; struct MempoolStatsResponseDefaultTypeInternal; extern MempoolStatsResponseDefaultTypeInternal _MempoolStatsResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull MempoolStatsResponse_class_data_; class MetaData; struct MetaDataDefaultTypeInternal; extern MetaDataDefaultTypeInternal _MetaData_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull MetaData_class_data_; +class MigrationProgress; +struct MigrationProgressDefaultTypeInternal; +extern MigrationProgressDefaultTypeInternal _MigrationProgress_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull MigrationProgress_class_data_; class MinerData; struct MinerDataDefaultTypeInternal; extern MinerDataDefaultTypeInternal _MinerData_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull MinerData_class_data_; class NetworkDifficultyResponse; struct NetworkDifficultyResponseDefaultTypeInternal; extern NetworkDifficultyResponseDefaultTypeInternal _NetworkDifficultyResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull NetworkDifficultyResponse_class_data_; class NewBlockCoinbase; struct NewBlockCoinbaseDefaultTypeInternal; extern NewBlockCoinbaseDefaultTypeInternal _NewBlockCoinbase_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull NewBlockCoinbase_class_data_; class NewBlockTemplateRequest; struct NewBlockTemplateRequestDefaultTypeInternal; extern NewBlockTemplateRequestDefaultTypeInternal _NewBlockTemplateRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull NewBlockTemplateRequest_class_data_; class NewBlockTemplateResponse; struct NewBlockTemplateResponseDefaultTypeInternal; extern NewBlockTemplateResponseDefaultTypeInternal _NewBlockTemplateResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull NewBlockTemplateResponse_class_data_; +class PaymentReferenceResponse; +struct PaymentReferenceResponseDefaultTypeInternal; +extern PaymentReferenceResponseDefaultTypeInternal _PaymentReferenceResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull PaymentReferenceResponse_class_data_; +class ReadinessStatus; +struct ReadinessStatusDefaultTypeInternal; +extern ReadinessStatusDefaultTypeInternal _ReadinessStatus_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ReadinessStatus_class_data_; class SearchKernelsRequest; struct SearchKernelsRequestDefaultTypeInternal; extern SearchKernelsRequestDefaultTypeInternal _SearchKernelsRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SearchKernelsRequest_class_data_; +class SearchPaymentReferencesRequest; +struct SearchPaymentReferencesRequestDefaultTypeInternal; +extern SearchPaymentReferencesRequestDefaultTypeInternal _SearchPaymentReferencesRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SearchPaymentReferencesRequest_class_data_; class SearchUtxosRequest; struct SearchUtxosRequestDefaultTypeInternal; extern SearchUtxosRequestDefaultTypeInternal _SearchUtxosRequest_default_instance_; -class StringValue; -struct StringValueDefaultTypeInternal; -extern StringValueDefaultTypeInternal _StringValue_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SearchUtxosRequest_class_data_; class SubmitBlockResponse; struct SubmitBlockResponseDefaultTypeInternal; extern SubmitBlockResponseDefaultTypeInternal _SubmitBlockResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SubmitBlockResponse_class_data_; class SubmitTransactionRequest; struct SubmitTransactionRequestDefaultTypeInternal; extern SubmitTransactionRequestDefaultTypeInternal _SubmitTransactionRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SubmitTransactionRequest_class_data_; class SubmitTransactionResponse; struct SubmitTransactionResponseDefaultTypeInternal; extern SubmitTransactionResponseDefaultTypeInternal _SubmitTransactionResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SubmitTransactionResponse_class_data_; class SyncInfoResponse; struct SyncInfoResponseDefaultTypeInternal; extern SyncInfoResponseDefaultTypeInternal _SyncInfoResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SyncInfoResponse_class_data_; class SyncProgressResponse; struct SyncProgressResponseDefaultTypeInternal; extern SyncProgressResponseDefaultTypeInternal _SyncProgressResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SyncProgressResponse_class_data_; class TipInfoResponse; struct TipInfoResponseDefaultTypeInternal; extern TipInfoResponseDefaultTypeInternal _TipInfoResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull TipInfoResponse_class_data_; class TransactionStateRequest; struct TransactionStateRequestDefaultTypeInternal; extern TransactionStateRequestDefaultTypeInternal _TransactionStateRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull TransactionStateRequest_class_data_; class TransactionStateResponse; struct TransactionStateResponseDefaultTypeInternal; extern TransactionStateResponseDefaultTypeInternal _TransactionStateResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull TransactionStateResponse_class_data_; +class ValidatorNodeChange; +struct ValidatorNodeChangeDefaultTypeInternal; +extern ValidatorNodeChangeDefaultTypeInternal _ValidatorNodeChange_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ValidatorNodeChange_class_data_; +class ValidatorNodeChangeAdd; +struct ValidatorNodeChangeAddDefaultTypeInternal; +extern ValidatorNodeChangeAddDefaultTypeInternal _ValidatorNodeChangeAdd_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ValidatorNodeChangeAdd_class_data_; +class ValidatorNodeChangeRemove; +struct ValidatorNodeChangeRemoveDefaultTypeInternal; +extern ValidatorNodeChangeRemoveDefaultTypeInternal _ValidatorNodeChangeRemove_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ValidatorNodeChangeRemove_class_data_; class ValueAtHeightResponse; struct ValueAtHeightResponseDefaultTypeInternal; extern ValueAtHeightResponseDefaultTypeInternal _ValueAtHeightResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ValueAtHeightResponse_class_data_; } // namespace rpc } // namespace tari namespace google { namespace protobuf { +template <> +internal::EnumTraitsT<::tari::rpc::BaseNodeState_internal_data_> + internal::EnumTraitsImpl::value<::tari::rpc::BaseNodeState>; +template <> +internal::EnumTraitsT<::tari::rpc::CalcType_internal_data_> + internal::EnumTraitsImpl::value<::tari::rpc::CalcType>; +template <> +internal::EnumTraitsT<::tari::rpc::ReadinessStatus_State_internal_data_> + internal::EnumTraitsImpl::value<::tari::rpc::ReadinessStatus_State>; +template <> +internal::EnumTraitsT<::tari::rpc::Sorting_internal_data_> + internal::EnumTraitsImpl::value<::tari::rpc::Sorting>; +template <> +internal::EnumTraitsT<::tari::rpc::SubmitTransactionResult_internal_data_> + internal::EnumTraitsImpl::value<::tari::rpc::SubmitTransactionResult>; +template <> +internal::EnumTraitsT<::tari::rpc::SyncState_internal_data_> + internal::EnumTraitsImpl::value<::tari::rpc::SyncState>; +template <> +internal::EnumTraitsT<::tari::rpc::TransactionLocation_internal_data_> + internal::EnumTraitsImpl::value<::tari::rpc::TransactionLocation>; } // namespace protobuf } // namespace google namespace tari { namespace rpc { +enum ReadinessStatus_State : int { + ReadinessStatus_State_NOT_READY = 0, + ReadinessStatus_State_STARTING_UP = 1, + ReadinessStatus_State_DATABASE_INITIALIZING = 10, + ReadinessStatus_State_RECOVERING_PREPARING = 20, + ReadinessStatus_State_RECOVERING_REBUILDING = 21, + ReadinessStatus_State_RECOVERING_REBUILDING_DATABASE = 22, + ReadinessStatus_State_BUILDING_CONTEXT_BLOCKCHAIN = 32, + ReadinessStatus_State_BUILDING_CONTEXT_BOOTSTRAP = 34, + ReadinessStatus_State_READY = 100, + ReadinessStatus_State_ReadinessStatus_State_INT_MIN_SENTINEL_DO_NOT_USE_ = + ::std::numeric_limits<::int32_t>::min(), + ReadinessStatus_State_ReadinessStatus_State_INT_MAX_SENTINEL_DO_NOT_USE_ = + ::std::numeric_limits<::int32_t>::max(), +}; + +extern const uint32_t ReadinessStatus_State_internal_data_[]; +inline constexpr ReadinessStatus_State ReadinessStatus_State_State_MIN = + static_cast(0); +inline constexpr ReadinessStatus_State ReadinessStatus_State_State_MAX = + static_cast(100); +inline bool ReadinessStatus_State_IsValid(int value) { + return ::google::protobuf::internal::ValidateEnum(value, ReadinessStatus_State_internal_data_); +} +inline constexpr int ReadinessStatus_State_State_ARRAYSIZE = 100 + 1; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL ReadinessStatus_State_descriptor(); +template +const ::std::string& ReadinessStatus_State_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to State_Name()."); + return ::google::protobuf::internal::NameOfEnum(ReadinessStatus_State_descriptor(), value); +} +inline bool ReadinessStatus_State_Parse( + ::absl::string_view name, ReadinessStatus_State* PROTOBUF_NONNULL value) { + return ::google::protobuf::internal::ParseNamedEnum(ReadinessStatus_State_descriptor(), name, + value); +} enum BaseNodeState : int { START_UP = 0, HEADER_SYNC = 1, @@ -250,34 +420,37 @@ enum BaseNodeState : int { LISTENING = 5, SYNC_FAILED = 6, BaseNodeState_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), + ::std::numeric_limits<::int32_t>::min(), BaseNodeState_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ::std::numeric_limits<::int32_t>::max(), }; -bool BaseNodeState_IsValid(int value); extern const uint32_t BaseNodeState_internal_data_[]; -constexpr BaseNodeState BaseNodeState_MIN = static_cast(0); -constexpr BaseNodeState BaseNodeState_MAX = static_cast(6); -constexpr int BaseNodeState_ARRAYSIZE = 6 + 1; -const ::google::protobuf::EnumDescriptor* -BaseNodeState_descriptor(); +inline constexpr BaseNodeState BaseNodeState_MIN = + static_cast(0); +inline constexpr BaseNodeState BaseNodeState_MAX = + static_cast(6); +inline bool BaseNodeState_IsValid(int value) { + return 0 <= value && value <= 6; +} +inline constexpr int BaseNodeState_ARRAYSIZE = 6 + 1; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL BaseNodeState_descriptor(); template -const std::string& BaseNodeState_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, +const ::std::string& BaseNodeState_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, "Incorrect type passed to BaseNodeState_Name()."); return BaseNodeState_Name(static_cast(value)); } template <> -inline const std::string& BaseNodeState_Name(BaseNodeState value) { - return ::google::protobuf::internal::NameOfDenseEnum( +inline const ::std::string& BaseNodeState_Name(BaseNodeState value) { + return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool BaseNodeState_Parse(absl::string_view name, BaseNodeState* value) { - return ::google::protobuf::internal::ParseNamedEnum( - BaseNodeState_descriptor(), name, value); +inline bool BaseNodeState_Parse( + ::absl::string_view name, BaseNodeState* PROTOBUF_NONNULL value) { + return ::google::protobuf::internal::ParseNamedEnum(BaseNodeState_descriptor(), name, + value); } enum CalcType : int { MEAN = 0, @@ -285,67 +458,73 @@ enum CalcType : int { QUANTILE = 2, QUARTILE = 3, CalcType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), + ::std::numeric_limits<::int32_t>::min(), CalcType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ::std::numeric_limits<::int32_t>::max(), }; -bool CalcType_IsValid(int value); extern const uint32_t CalcType_internal_data_[]; -constexpr CalcType CalcType_MIN = static_cast(0); -constexpr CalcType CalcType_MAX = static_cast(3); -constexpr int CalcType_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -CalcType_descriptor(); +inline constexpr CalcType CalcType_MIN = + static_cast(0); +inline constexpr CalcType CalcType_MAX = + static_cast(3); +inline bool CalcType_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int CalcType_ARRAYSIZE = 3 + 1; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL CalcType_descriptor(); template -const std::string& CalcType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, +const ::std::string& CalcType_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, "Incorrect type passed to CalcType_Name()."); return CalcType_Name(static_cast(value)); } template <> -inline const std::string& CalcType_Name(CalcType value) { - return ::google::protobuf::internal::NameOfDenseEnum( +inline const ::std::string& CalcType_Name(CalcType value) { + return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool CalcType_Parse(absl::string_view name, CalcType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - CalcType_descriptor(), name, value); +inline bool CalcType_Parse( + ::absl::string_view name, CalcType* PROTOBUF_NONNULL value) { + return ::google::protobuf::internal::ParseNamedEnum(CalcType_descriptor(), name, + value); } enum Sorting : int { SORTING_DESC = 0, SORTING_ASC = 1, Sorting_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), + ::std::numeric_limits<::int32_t>::min(), Sorting_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ::std::numeric_limits<::int32_t>::max(), }; -bool Sorting_IsValid(int value); extern const uint32_t Sorting_internal_data_[]; -constexpr Sorting Sorting_MIN = static_cast(0); -constexpr Sorting Sorting_MAX = static_cast(1); -constexpr int Sorting_ARRAYSIZE = 1 + 1; -const ::google::protobuf::EnumDescriptor* -Sorting_descriptor(); +inline constexpr Sorting Sorting_MIN = + static_cast(0); +inline constexpr Sorting Sorting_MAX = + static_cast(1); +inline bool Sorting_IsValid(int value) { + return 0 <= value && value <= 1; +} +inline constexpr int Sorting_ARRAYSIZE = 1 + 1; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Sorting_descriptor(); template -const std::string& Sorting_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, +const ::std::string& Sorting_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, "Incorrect type passed to Sorting_Name()."); return Sorting_Name(static_cast(value)); } template <> -inline const std::string& Sorting_Name(Sorting value) { - return ::google::protobuf::internal::NameOfDenseEnum( +inline const ::std::string& Sorting_Name(Sorting value) { + return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool Sorting_Parse(absl::string_view name, Sorting* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Sorting_descriptor(), name, value); +inline bool Sorting_Parse( + ::absl::string_view name, Sorting* PROTOBUF_NONNULL value) { + return ::google::protobuf::internal::ParseNamedEnum(Sorting_descriptor(), name, + value); } enum SyncState : int { STARTUP = 0, @@ -355,34 +534,37 @@ enum SyncState : int { BLOCK = 4, DONE = 5, SyncState_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), + ::std::numeric_limits<::int32_t>::min(), SyncState_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ::std::numeric_limits<::int32_t>::max(), }; -bool SyncState_IsValid(int value); extern const uint32_t SyncState_internal_data_[]; -constexpr SyncState SyncState_MIN = static_cast(0); -constexpr SyncState SyncState_MAX = static_cast(5); -constexpr int SyncState_ARRAYSIZE = 5 + 1; -const ::google::protobuf::EnumDescriptor* -SyncState_descriptor(); +inline constexpr SyncState SyncState_MIN = + static_cast(0); +inline constexpr SyncState SyncState_MAX = + static_cast(5); +inline bool SyncState_IsValid(int value) { + return 0 <= value && value <= 5; +} +inline constexpr int SyncState_ARRAYSIZE = 5 + 1; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SyncState_descriptor(); template -const std::string& SyncState_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, +const ::std::string& SyncState_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, "Incorrect type passed to SyncState_Name()."); return SyncState_Name(static_cast(value)); } template <> -inline const std::string& SyncState_Name(SyncState value) { - return ::google::protobuf::internal::NameOfDenseEnum( +inline const ::std::string& SyncState_Name(SyncState value) { + return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool SyncState_Parse(absl::string_view name, SyncState* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SyncState_descriptor(), name, value); +inline bool SyncState_Parse( + ::absl::string_view name, SyncState* PROTOBUF_NONNULL value) { + return ::google::protobuf::internal::ParseNamedEnum(SyncState_descriptor(), name, + value); } enum SubmitTransactionResult : int { NONE = 0, @@ -391,34 +573,37 @@ enum SubmitTransactionResult : int { ALREADY_MINED = 3, REJECTED = 4, SubmitTransactionResult_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), + ::std::numeric_limits<::int32_t>::min(), SubmitTransactionResult_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ::std::numeric_limits<::int32_t>::max(), }; -bool SubmitTransactionResult_IsValid(int value); extern const uint32_t SubmitTransactionResult_internal_data_[]; -constexpr SubmitTransactionResult SubmitTransactionResult_MIN = static_cast(0); -constexpr SubmitTransactionResult SubmitTransactionResult_MAX = static_cast(4); -constexpr int SubmitTransactionResult_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -SubmitTransactionResult_descriptor(); +inline constexpr SubmitTransactionResult SubmitTransactionResult_MIN = + static_cast(0); +inline constexpr SubmitTransactionResult SubmitTransactionResult_MAX = + static_cast(4); +inline bool SubmitTransactionResult_IsValid(int value) { + return 0 <= value && value <= 4; +} +inline constexpr int SubmitTransactionResult_ARRAYSIZE = 4 + 1; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SubmitTransactionResult_descriptor(); template -const std::string& SubmitTransactionResult_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, +const ::std::string& SubmitTransactionResult_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, "Incorrect type passed to SubmitTransactionResult_Name()."); return SubmitTransactionResult_Name(static_cast(value)); } template <> -inline const std::string& SubmitTransactionResult_Name(SubmitTransactionResult value) { - return ::google::protobuf::internal::NameOfDenseEnum( +inline const ::std::string& SubmitTransactionResult_Name(SubmitTransactionResult value) { + return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool SubmitTransactionResult_Parse(absl::string_view name, SubmitTransactionResult* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SubmitTransactionResult_descriptor(), name, value); +inline bool SubmitTransactionResult_Parse( + ::absl::string_view name, SubmitTransactionResult* PROTOBUF_NONNULL value) { + return ::google::protobuf::internal::ParseNamedEnum(SubmitTransactionResult_descriptor(), name, + value); } enum TransactionLocation : int { UNKNOWN = 0, @@ -426,34 +611,37 @@ enum TransactionLocation : int { MINED = 2, NOT_STORED = 3, TransactionLocation_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), + ::std::numeric_limits<::int32_t>::min(), TransactionLocation_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ::std::numeric_limits<::int32_t>::max(), }; -bool TransactionLocation_IsValid(int value); extern const uint32_t TransactionLocation_internal_data_[]; -constexpr TransactionLocation TransactionLocation_MIN = static_cast(0); -constexpr TransactionLocation TransactionLocation_MAX = static_cast(3); -constexpr int TransactionLocation_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -TransactionLocation_descriptor(); +inline constexpr TransactionLocation TransactionLocation_MIN = + static_cast(0); +inline constexpr TransactionLocation TransactionLocation_MAX = + static_cast(3); +inline bool TransactionLocation_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int TransactionLocation_ARRAYSIZE = 3 + 1; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL TransactionLocation_descriptor(); template -const std::string& TransactionLocation_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, +const ::std::string& TransactionLocation_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, "Incorrect type passed to TransactionLocation_Name()."); return TransactionLocation_Name(static_cast(value)); } template <> -inline const std::string& TransactionLocation_Name(TransactionLocation value) { - return ::google::protobuf::internal::NameOfDenseEnum( +inline const ::std::string& TransactionLocation_Name(TransactionLocation value) { + return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool TransactionLocation_Parse(absl::string_view name, TransactionLocation* value) { - return ::google::protobuf::internal::ParseNamedEnum( - TransactionLocation_descriptor(), name, value); +inline bool TransactionLocation_Parse( + ::absl::string_view name, TransactionLocation* PROTOBUF_NONNULL value) { + return ::google::protobuf::internal::ParseNamedEnum(TransactionLocation_descriptor(), name, + value); } // =================================================================== @@ -465,25 +653,28 @@ class ValueAtHeightResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ValueAtHeightResponse) */ { public: inline ValueAtHeightResponse() : ValueAtHeightResponse(nullptr) {} - ~ValueAtHeightResponse() override; + ~ValueAtHeightResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ValueAtHeightResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ValueAtHeightResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR ValueAtHeightResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : ValueAtHeightResponse(nullptr, ::std::move(from)) {} inline ValueAtHeightResponse& operator=(const ValueAtHeightResponse& from) { CopyFrom(from); return *this; } inline ValueAtHeightResponse& operator=(ValueAtHeightResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -495,42 +686,35 @@ class ValueAtHeightResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ValueAtHeightResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ValueAtHeightResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ValueAtHeightResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 15; + static constexpr int kIndexInFileMessages = 17; friend void swap(ValueAtHeightResponse& a, ValueAtHeightResponse& b) { a.Swap(&b); } - inline void Swap(ValueAtHeightResponse* other) { + inline void Swap(ValueAtHeightResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ValueAtHeightResponse* other) { + void UnsafeArenaSwap(ValueAtHeightResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -538,7 +722,7 @@ class ValueAtHeightResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ValueAtHeightResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + ValueAtHeightResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -547,48 +731,75 @@ class ValueAtHeightResponse final : public ::google::protobuf::Message void MergeFrom(const ValueAtHeightResponse& from) { ValueAtHeightResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ValueAtHeightResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ValueAtHeightResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.ValueAtHeightResponse"; } protected: - explicit ValueAtHeightResponse(::google::protobuf::Arena* arena); - ValueAtHeightResponse(::google::protobuf::Arena* arena, const ValueAtHeightResponse& from); - ValueAtHeightResponse(::google::protobuf::Arena* arena, ValueAtHeightResponse&& from) noexcept + explicit ValueAtHeightResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ValueAtHeightResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ValueAtHeightResponse& from); + ValueAtHeightResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ValueAtHeightResponse&& from) noexcept : ValueAtHeightResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kCirculatingSupplyFieldNumber = 1, - kSpendableSupplyFieldNumber = 2, kHeightFieldNumber = 3, + kMinedRewardsFieldNumber = 4, + kSpendableRewardsFieldNumber = 5, + kSpendablePreMineFieldNumber = 6, + kTotalSpendableFieldNumber = 7, + kTotalPreMineFieldNumber = 8, + kTimeLockedPreMineFieldNumber = 9, }; // uint64 circulating_supply = 1; void clear_circulating_supply() ; @@ -599,16 +810,6 @@ class ValueAtHeightResponse final : public ::google::protobuf::Message ::uint64_t _internal_circulating_supply() const; void _internal_set_circulating_supply(::uint64_t value); - public: - // uint64 spendable_supply = 2; - void clear_spendable_supply() ; - ::uint64_t spendable_supply() const; - void set_spendable_supply(::uint64_t value); - - private: - ::uint64_t _internal_spendable_supply() const; - void _internal_set_spendable_supply(::uint64_t value); - public: // uint64 height = 3; void clear_height() ; @@ -619,15 +820,76 @@ class ValueAtHeightResponse final : public ::google::protobuf::Message ::uint64_t _internal_height() const; void _internal_set_height(::uint64_t value); + public: + // uint64 mined_rewards = 4; + void clear_mined_rewards() ; + ::uint64_t mined_rewards() const; + void set_mined_rewards(::uint64_t value); + + private: + ::uint64_t _internal_mined_rewards() const; + void _internal_set_mined_rewards(::uint64_t value); + + public: + // uint64 spendable_rewards = 5; + void clear_spendable_rewards() ; + ::uint64_t spendable_rewards() const; + void set_spendable_rewards(::uint64_t value); + + private: + ::uint64_t _internal_spendable_rewards() const; + void _internal_set_spendable_rewards(::uint64_t value); + + public: + // uint64 spendable_pre_mine = 6; + void clear_spendable_pre_mine() ; + ::uint64_t spendable_pre_mine() const; + void set_spendable_pre_mine(::uint64_t value); + + private: + ::uint64_t _internal_spendable_pre_mine() const; + void _internal_set_spendable_pre_mine(::uint64_t value); + + public: + // uint64 total_spendable = 7; + void clear_total_spendable() ; + ::uint64_t total_spendable() const; + void set_total_spendable(::uint64_t value); + + private: + ::uint64_t _internal_total_spendable() const; + void _internal_set_total_spendable(::uint64_t value); + + public: + // uint64 total_pre_mine = 8; + void clear_total_pre_mine() ; + ::uint64_t total_pre_mine() const; + void set_total_pre_mine(::uint64_t value); + + private: + ::uint64_t _internal_total_pre_mine() const; + void _internal_set_total_pre_mine(::uint64_t value); + + public: + // uint64 time_locked_pre_mine = 9; + void clear_time_locked_pre_mine() ; + ::uint64_t time_locked_pre_mine() const; + void set_time_locked_pre_mine(::uint64_t value); + + private: + ::uint64_t _internal_time_locked_pre_mine() const; + void _internal_set_time_locked_pre_mine(::uint64_t value); + public: // @@protoc_insertion_point(class_scope:tari.rpc.ValueAtHeightResponse) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<4, 8, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -635,46 +897,59 @@ class ValueAtHeightResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ValueAtHeightResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t circulating_supply_; - ::uint64_t spendable_supply_; ::uint64_t height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint64_t mined_rewards_; + ::uint64_t spendable_rewards_; + ::uint64_t spendable_pre_mine_; + ::uint64_t total_spendable_; + ::uint64_t total_pre_mine_; + ::uint64_t time_locked_pre_mine_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ValueAtHeightResponse_class_data_; // ------------------------------------------------------------------- -class TransactionStateResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionStateResponse) */ { +class ValidatorNodeChangeRemove final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ValidatorNodeChangeRemove) */ { public: - inline TransactionStateResponse() : TransactionStateResponse(nullptr) {} - ~TransactionStateResponse() override; - template - explicit PROTOBUF_CONSTEXPR TransactionStateResponse( - ::google::protobuf::internal::ConstantInitialized); + inline ValidatorNodeChangeRemove() : ValidatorNodeChangeRemove(nullptr) {} + ~ValidatorNodeChangeRemove() PROTOBUF_FINAL; - inline TransactionStateResponse(const TransactionStateResponse& from) : TransactionStateResponse(nullptr, from) {} - inline TransactionStateResponse(TransactionStateResponse&& from) noexcept - : TransactionStateResponse(nullptr, std::move(from)) {} - inline TransactionStateResponse& operator=(const TransactionStateResponse& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ValidatorNodeChangeRemove* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ValidatorNodeChangeRemove)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ValidatorNodeChangeRemove(::google::protobuf::internal::ConstantInitialized); + + inline ValidatorNodeChangeRemove(const ValidatorNodeChangeRemove& from) : ValidatorNodeChangeRemove(nullptr, from) {} + inline ValidatorNodeChangeRemove(ValidatorNodeChangeRemove&& from) noexcept + : ValidatorNodeChangeRemove(nullptr, ::std::move(from)) {} + inline ValidatorNodeChangeRemove& operator=(const ValidatorNodeChangeRemove& from) { CopyFrom(from); return *this; } - inline TransactionStateResponse& operator=(TransactionStateResponse&& from) noexcept { + inline ValidatorNodeChangeRemove& operator=(ValidatorNodeChangeRemove&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -686,42 +961,35 @@ class TransactionStateResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const TransactionStateResponse& default_instance() { - return *internal_default_instance(); + static const ValidatorNodeChangeRemove& default_instance() { + return *reinterpret_cast( + &_ValidatorNodeChangeRemove_default_instance_); } - 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); } - inline void Swap(TransactionStateResponse* other) { + static constexpr int kIndexInFileMessages = 53; + friend void swap(ValidatorNodeChangeRemove& a, ValidatorNodeChangeRemove& b) { a.Swap(&b); } + inline void Swap(ValidatorNodeChangeRemove* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransactionStateResponse* other) { + void UnsafeArenaSwap(ValidatorNodeChangeRemove* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -729,7 +997,203 @@ class TransactionStateResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - TransactionStateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + ValidatorNodeChangeRemove* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ValidatorNodeChangeRemove& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ValidatorNodeChangeRemove& from) { ValidatorNodeChangeRemove::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ValidatorNodeChangeRemove* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.ValidatorNodeChangeRemove"; } + + protected: + explicit ValidatorNodeChangeRemove(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ValidatorNodeChangeRemove(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ValidatorNodeChangeRemove& from); + ValidatorNodeChangeRemove( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ValidatorNodeChangeRemove&& from) noexcept + : ValidatorNodeChangeRemove(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPublicKeyFieldNumber = 1, + }; + // bytes public_key = 1; + void clear_public_key() ; + const ::std::string& public_key() const; + template + void set_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.ValidatorNodeChangeRemove) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ValidatorNodeChangeRemove& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_base_5fnode_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull ValidatorNodeChangeRemove_class_data_; +// ------------------------------------------------------------------- + +class TransactionStateResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionStateResponse) */ { + public: + inline TransactionStateResponse() : TransactionStateResponse(nullptr) {} + ~TransactionStateResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransactionStateResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransactionStateResponse)); + } +#endif + + 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; + } + inline TransactionStateResponse& operator=(TransactionStateResponse&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const TransactionStateResponse& default_instance() { + return *reinterpret_cast( + &_TransactionStateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 46; + friend void swap(TransactionStateResponse& a, TransactionStateResponse& b) { a.Swap(&b); } + inline void Swap(TransactionStateResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TransactionStateResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TransactionStateResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -738,41 +1202,63 @@ class TransactionStateResponse final : public ::google::protobuf::Message void MergeFrom(const TransactionStateResponse& from) { TransactionStateResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TransactionStateResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TransactionStateResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionStateResponse"; } protected: - explicit TransactionStateResponse(::google::protobuf::Arena* arena); - TransactionStateResponse(::google::protobuf::Arena* arena, const TransactionStateResponse& from); - TransactionStateResponse(::google::protobuf::Arena* arena, TransactionStateResponse&& from) noexcept + explicit TransactionStateResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + TransactionStateResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TransactionStateResponse& from); + TransactionStateResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, TransactionStateResponse&& from) noexcept : TransactionStateResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -793,10 +1279,11 @@ class TransactionStateResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -804,44 +1291,52 @@ class TransactionStateResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const TransactionStateResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; int result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull TransactionStateResponse_class_data_; // ------------------------------------------------------------------- class SyncProgressResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SyncProgressResponse) */ { public: inline SyncProgressResponse() : SyncProgressResponse(nullptr) {} - ~SyncProgressResponse() override; + ~SyncProgressResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SyncProgressResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SyncProgressResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR SyncProgressResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : SyncProgressResponse(nullptr, ::std::move(from)) {} inline SyncProgressResponse& operator=(const SyncProgressResponse& from) { CopyFrom(from); return *this; } inline SyncProgressResponse& operator=(SyncProgressResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -853,42 +1348,35 @@ class SyncProgressResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const SyncProgressResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SyncProgressResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_SyncProgressResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 29; + static constexpr int kIndexInFileMessages = 31; friend void swap(SyncProgressResponse& a, SyncProgressResponse& b) { a.Swap(&b); } - inline void Swap(SyncProgressResponse* other) { + inline void Swap(SyncProgressResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SyncProgressResponse* other) { + void UnsafeArenaSwap(SyncProgressResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -896,7 +1384,7 @@ class SyncProgressResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - SyncProgressResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + SyncProgressResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -905,41 +1393,63 @@ class SyncProgressResponse final : public ::google::protobuf::Message void MergeFrom(const SyncProgressResponse& from) { SyncProgressResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SyncProgressResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SyncProgressResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.SyncProgressResponse"; } protected: - explicit SyncProgressResponse(::google::protobuf::Arena* arena); - SyncProgressResponse(::google::protobuf::Arena* arena, const SyncProgressResponse& from); - SyncProgressResponse(::google::protobuf::Arena* arena, SyncProgressResponse&& from) noexcept + explicit SyncProgressResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SyncProgressResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SyncProgressResponse& from); + SyncProgressResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SyncProgressResponse&& from) noexcept : SyncProgressResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -952,18 +1462,17 @@ class SyncProgressResponse final : public ::google::protobuf::Message }; // string short_desc = 4; void clear_short_desc() ; - const std::string& short_desc() const; - template + const ::std::string& short_desc() const; + template void set_short_desc(Arg_&& arg, Args_... args); - std::string* mutable_short_desc(); - PROTOBUF_NODISCARD std::string* release_short_desc(); - void set_allocated_short_desc(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_short_desc(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_short_desc(); + void set_allocated_short_desc(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_short_desc() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_short_desc( - const std::string& value); - std::string* _internal_mutable_short_desc(); + const ::std::string& _internal_short_desc() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_short_desc(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_short_desc(); public: // uint64 tip_height = 1; @@ -1010,10 +1519,11 @@ class SyncProgressResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 0, - 48, 2> + static const ::google::protobuf::internal::TcParseTable<3, 5, + 0, 48, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1021,48 +1531,56 @@ class SyncProgressResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SyncProgressResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr short_desc_; ::uint64_t tip_height_; ::uint64_t local_height_; ::uint64_t initial_connected_peers_; int state_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull SyncProgressResponse_class_data_; // ------------------------------------------------------------------- class SyncInfoResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SyncInfoResponse) */ { public: inline SyncInfoResponse() : SyncInfoResponse(nullptr) {} - ~SyncInfoResponse() override; + ~SyncInfoResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SyncInfoResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SyncInfoResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR SyncInfoResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : SyncInfoResponse(nullptr, ::std::move(from)) {} inline SyncInfoResponse& operator=(const SyncInfoResponse& from) { CopyFrom(from); return *this; } inline SyncInfoResponse& operator=(SyncInfoResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1074,42 +1592,35 @@ class SyncInfoResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const SyncInfoResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SyncInfoResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_SyncInfoResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 28; + static constexpr int kIndexInFileMessages = 30; friend void swap(SyncInfoResponse& a, SyncInfoResponse& b) { a.Swap(&b); } - inline void Swap(SyncInfoResponse* other) { + inline void Swap(SyncInfoResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SyncInfoResponse* other) { + void UnsafeArenaSwap(SyncInfoResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1117,7 +1628,7 @@ class SyncInfoResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - SyncInfoResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + SyncInfoResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1126,41 +1637,63 @@ class SyncInfoResponse final : public ::google::protobuf::Message void MergeFrom(const SyncInfoResponse& from) { SyncInfoResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SyncInfoResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SyncInfoResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.SyncInfoResponse"; } protected: - explicit SyncInfoResponse(::google::protobuf::Arena* arena); - SyncInfoResponse(::google::protobuf::Arena* arena, const SyncInfoResponse& from); - SyncInfoResponse(::google::protobuf::Arena* arena, SyncInfoResponse&& from) noexcept + explicit SyncInfoResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SyncInfoResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SyncInfoResponse& from); + SyncInfoResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SyncInfoResponse&& from) noexcept : SyncInfoResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1176,25 +1709,19 @@ class SyncInfoResponse final : public ::google::protobuf::Message public: void clear_peer_node_id() ; - const std::string& peer_node_id(int index) const; - std::string* mutable_peer_node_id(int index); - void set_peer_node_id(int index, const std::string& value); - void set_peer_node_id(int index, std::string&& value); - void set_peer_node_id(int index, const char* value); - void set_peer_node_id(int index, const void* value, std::size_t size); - void set_peer_node_id(int index, absl::string_view value); - std::string* add_peer_node_id(); - void add_peer_node_id(const std::string& value); - void add_peer_node_id(std::string&& value); - void add_peer_node_id(const char* value); - void add_peer_node_id(const void* value, std::size_t size); - void add_peer_node_id(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& peer_node_id() const; - ::google::protobuf::RepeatedPtrField* mutable_peer_node_id(); + const ::std::string& peer_node_id(int index) const; + ::std::string* PROTOBUF_NONNULL mutable_peer_node_id(int index); + template + void set_peer_node_id(int index, Arg_&& value, Args_... args); + ::std::string* PROTOBUF_NONNULL add_peer_node_id(); + template + void add_peer_node_id(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField<::std::string>& peer_node_id() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_peer_node_id(); private: - const ::google::protobuf::RepeatedPtrField& _internal_peer_node_id() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_peer_node_id(); + const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_peer_node_id() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_peer_node_id(); public: // uint64 tip_height = 1; @@ -1221,10 +1748,11 @@ class SyncInfoResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1232,46 +1760,54 @@ class SyncInfoResponse final : public ::google::protobuf::Message 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::RepeatedPtrField peer_node_id_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SyncInfoResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField<::std::string> peer_node_id_; ::uint64_t tip_height_; ::uint64_t local_height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull SyncInfoResponse_class_data_; // ------------------------------------------------------------------- class SubmitTransactionResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SubmitTransactionResponse) */ { public: inline SubmitTransactionResponse() : SubmitTransactionResponse(nullptr) {} - ~SubmitTransactionResponse() override; + ~SubmitTransactionResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubmitTransactionResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubmitTransactionResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR SubmitTransactionResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : SubmitTransactionResponse(nullptr, ::std::move(from)) {} inline SubmitTransactionResponse& operator=(const SubmitTransactionResponse& from) { CopyFrom(from); return *this; } inline SubmitTransactionResponse& operator=(SubmitTransactionResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1283,42 +1819,35 @@ class SubmitTransactionResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const SubmitTransactionResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SubmitTransactionResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_SubmitTransactionResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 40; + static constexpr int kIndexInFileMessages = 42; friend void swap(SubmitTransactionResponse& a, SubmitTransactionResponse& b) { a.Swap(&b); } - inline void Swap(SubmitTransactionResponse* other) { + inline void Swap(SubmitTransactionResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubmitTransactionResponse* other) { + void UnsafeArenaSwap(SubmitTransactionResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1326,7 +1855,7 @@ class SubmitTransactionResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - SubmitTransactionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + SubmitTransactionResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1335,41 +1864,63 @@ class SubmitTransactionResponse final : public ::google::protobuf::Message void MergeFrom(const SubmitTransactionResponse& from) { SubmitTransactionResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SubmitTransactionResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SubmitTransactionResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.SubmitTransactionResponse"; } protected: - explicit SubmitTransactionResponse(::google::protobuf::Arena* arena); - SubmitTransactionResponse(::google::protobuf::Arena* arena, const SubmitTransactionResponse& from); - SubmitTransactionResponse(::google::protobuf::Arena* arena, SubmitTransactionResponse&& from) noexcept + explicit SubmitTransactionResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SubmitTransactionResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SubmitTransactionResponse& from); + SubmitTransactionResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SubmitTransactionResponse&& from) noexcept : SubmitTransactionResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1390,10 +1941,11 @@ class SubmitTransactionResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1401,44 +1953,52 @@ class SubmitTransactionResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SubmitTransactionResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; int result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull SubmitTransactionResponse_class_data_; // ------------------------------------------------------------------- class SubmitBlockResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SubmitBlockResponse) */ { public: inline SubmitBlockResponse() : SubmitBlockResponse(nullptr) {} - ~SubmitBlockResponse() override; + ~SubmitBlockResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubmitBlockResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubmitBlockResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR SubmitBlockResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : SubmitBlockResponse(nullptr, ::std::move(from)) {} inline SubmitBlockResponse& operator=(const SubmitBlockResponse& from) { CopyFrom(from); return *this; } inline SubmitBlockResponse& operator=(SubmitBlockResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1450,42 +2010,35 @@ class SubmitBlockResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const SubmitBlockResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SubmitBlockResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_SubmitBlockResponse_default_instance_); } static constexpr int kIndexInFileMessages = 6; friend void swap(SubmitBlockResponse& a, SubmitBlockResponse& b) { a.Swap(&b); } - inline void Swap(SubmitBlockResponse* other) { + inline void Swap(SubmitBlockResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubmitBlockResponse* other) { + void UnsafeArenaSwap(SubmitBlockResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1493,7 +2046,7 @@ class SubmitBlockResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - SubmitBlockResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + SubmitBlockResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1502,41 +2055,63 @@ class SubmitBlockResponse final : public ::google::protobuf::Message void MergeFrom(const SubmitBlockResponse& from) { SubmitBlockResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SubmitBlockResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SubmitBlockResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.SubmitBlockResponse"; } protected: - explicit SubmitBlockResponse(::google::protobuf::Arena* arena); - SubmitBlockResponse(::google::protobuf::Arena* arena, const SubmitBlockResponse& from); - SubmitBlockResponse(::google::protobuf::Arena* arena, SubmitBlockResponse&& from) noexcept + explicit SubmitBlockResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SubmitBlockResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SubmitBlockResponse& from); + SubmitBlockResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SubmitBlockResponse&& from) noexcept : SubmitBlockResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1545,28 +2120,28 @@ class SubmitBlockResponse final : public ::google::protobuf::Message }; // bytes block_hash = 1; void clear_block_hash() ; - const std::string& block_hash() const; - template + const ::std::string& block_hash() const; + template void set_block_hash(Arg_&& arg, Args_... args); - std::string* mutable_block_hash(); - PROTOBUF_NODISCARD std::string* release_block_hash(); - void set_allocated_block_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_block_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_block_hash(); + void set_allocated_block_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_block_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_block_hash( - const std::string& value); - std::string* _internal_mutable_block_hash(); + const ::std::string& _internal_block_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_block_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_block_hash(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1574,217 +2149,52 @@ class SubmitBlockResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SubmitBlockResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::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) */ { - public: - inline StringValue() : StringValue(nullptr) {} - ~StringValue() override; - 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; - } - inline StringValue& operator=(StringValue&& 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 StringValue& default_instance() { - return *internal_default_instance(); - } - 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); } - 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 - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(StringValue* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - StringValue* New(::google::protobuf::Arena* arena = nullptr) const final { - 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); } - - 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(StringValue* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.StringValue"; } - - protected: - explicit StringValue(::google::protobuf::Arena* arena); - StringValue(::google::protobuf::Arena* arena, const StringValue& from); - 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, - }; - // string value = 1; - void clear_value() ; - const std::string& value() const; - template - void set_value(Arg_&& arg, Args_... args); - std::string* mutable_value(); - PROTOBUF_NODISCARD std::string* release_value(); - void set_allocated_value(std::string* value); - - private: - const std::string& _internal_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( - const std::string& value); - std::string* _internal_mutable_value(); - - public: - // @@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, - 34, 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::ArenaStringPtr value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; +extern const ::google::protobuf::internal::ClassDataFull SubmitBlockResponse_class_data_; // ------------------------------------------------------------------- class SearchUtxosRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SearchUtxosRequest) */ { public: inline SearchUtxosRequest() : SearchUtxosRequest(nullptr) {} - ~SearchUtxosRequest() override; + ~SearchUtxosRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SearchUtxosRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SearchUtxosRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR SearchUtxosRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : SearchUtxosRequest(nullptr, ::std::move(from)) {} inline SearchUtxosRequest& operator=(const SearchUtxosRequest& from) { CopyFrom(from); return *this; } inline SearchUtxosRequest& operator=(SearchUtxosRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1796,42 +2206,35 @@ class SearchUtxosRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const SearchUtxosRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SearchUtxosRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_SearchUtxosRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 34; + static constexpr int kIndexInFileMessages = 36; friend void swap(SearchUtxosRequest& a, SearchUtxosRequest& b) { a.Swap(&b); } - inline void Swap(SearchUtxosRequest* other) { + inline void Swap(SearchUtxosRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SearchUtxosRequest* other) { + void UnsafeArenaSwap(SearchUtxosRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1839,7 +2242,7 @@ class SearchUtxosRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - SearchUtxosRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + SearchUtxosRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1848,41 +2251,63 @@ class SearchUtxosRequest final : public ::google::protobuf::Message void MergeFrom(const SearchUtxosRequest& from) { SearchUtxosRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SearchUtxosRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SearchUtxosRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.SearchUtxosRequest"; } protected: - explicit SearchUtxosRequest(::google::protobuf::Arena* arena); - SearchUtxosRequest(::google::protobuf::Arena* arena, const SearchUtxosRequest& from); - SearchUtxosRequest(::google::protobuf::Arena* arena, SearchUtxosRequest&& from) noexcept + explicit SearchUtxosRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SearchUtxosRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SearchUtxosRequest& from); + SearchUtxosRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SearchUtxosRequest&& from) noexcept : SearchUtxosRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1896,35 +2321,30 @@ class SearchUtxosRequest final : public ::google::protobuf::Message public: void clear_commitments() ; - const std::string& commitments(int index) const; - std::string* mutable_commitments(int index); - void set_commitments(int index, const std::string& value); - void set_commitments(int index, std::string&& value); - void set_commitments(int index, const char* value); - void set_commitments(int index, const void* value, std::size_t size); - void set_commitments(int index, absl::string_view value); - std::string* add_commitments(); - void add_commitments(const std::string& value); - void add_commitments(std::string&& value); - void add_commitments(const char* value); - void add_commitments(const void* value, std::size_t size); - void add_commitments(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& commitments() const; - ::google::protobuf::RepeatedPtrField* mutable_commitments(); + const ::std::string& commitments(int index) const; + ::std::string* PROTOBUF_NONNULL mutable_commitments(int index); + template + void set_commitments(int index, Arg_&& value, Args_... args); + ::std::string* PROTOBUF_NONNULL add_commitments(); + template + void add_commitments(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField<::std::string>& commitments() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_commitments(); private: - const ::google::protobuf::RepeatedPtrField& _internal_commitments() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_commitments(); + const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_commitments() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_commitments(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1932,44 +2352,51 @@ class SearchUtxosRequest final : public ::google::protobuf::Message 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::RepeatedPtrField commitments_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SearchUtxosRequest& from_msg); + ::google::protobuf::RepeatedPtrField<::std::string> commitments_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull SearchUtxosRequest_class_data_; // ------------------------------------------------------------------- -class NewBlockCoinbase final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockCoinbase) */ { +class SearchPaymentReferencesRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SearchPaymentReferencesRequest) */ { public: - inline NewBlockCoinbase() : NewBlockCoinbase(nullptr) {} - ~NewBlockCoinbase() override; - template - explicit PROTOBUF_CONSTEXPR NewBlockCoinbase( - ::google::protobuf::internal::ConstantInitialized); + inline SearchPaymentReferencesRequest() : SearchPaymentReferencesRequest(nullptr) {} + ~SearchPaymentReferencesRequest() PROTOBUF_FINAL; - inline NewBlockCoinbase(const NewBlockCoinbase& from) : NewBlockCoinbase(nullptr, from) {} - inline NewBlockCoinbase(NewBlockCoinbase&& from) noexcept - : NewBlockCoinbase(nullptr, std::move(from)) {} - inline NewBlockCoinbase& operator=(const NewBlockCoinbase& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SearchPaymentReferencesRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SearchPaymentReferencesRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SearchPaymentReferencesRequest(::google::protobuf::internal::ConstantInitialized); + + inline SearchPaymentReferencesRequest(const SearchPaymentReferencesRequest& from) : SearchPaymentReferencesRequest(nullptr, from) {} + inline SearchPaymentReferencesRequest(SearchPaymentReferencesRequest&& from) noexcept + : SearchPaymentReferencesRequest(nullptr, ::std::move(from)) {} + inline SearchPaymentReferencesRequest& operator=(const SearchPaymentReferencesRequest& from) { CopyFrom(from); return *this; } - inline NewBlockCoinbase& operator=(NewBlockCoinbase&& from) noexcept { + inline SearchPaymentReferencesRequest& operator=(SearchPaymentReferencesRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1981,42 +2408,35 @@ class NewBlockCoinbase final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const NewBlockCoinbase& default_instance() { - return *internal_default_instance(); + static const SearchPaymentReferencesRequest& default_instance() { + return *reinterpret_cast( + &_SearchPaymentReferencesRequest_default_instance_); } - 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); } - inline void Swap(NewBlockCoinbase* other) { + static constexpr int kIndexInFileMessages = 65; + friend void swap(SearchPaymentReferencesRequest& a, SearchPaymentReferencesRequest& b) { a.Swap(&b); } + inline void Swap(SearchPaymentReferencesRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NewBlockCoinbase* other) { + void UnsafeArenaSwap(SearchPaymentReferencesRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2024,7 +2444,582 @@ class NewBlockCoinbase final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - NewBlockCoinbase* New(::google::protobuf::Arena* arena = nullptr) const final { + SearchPaymentReferencesRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SearchPaymentReferencesRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SearchPaymentReferencesRequest& from) { SearchPaymentReferencesRequest::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SearchPaymentReferencesRequest* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.SearchPaymentReferencesRequest"; } + + protected: + explicit SearchPaymentReferencesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SearchPaymentReferencesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SearchPaymentReferencesRequest& from); + SearchPaymentReferencesRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SearchPaymentReferencesRequest&& from) noexcept + : SearchPaymentReferencesRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPaymentReferenceHexFieldNumber = 1, + kPaymentReferenceBytesFieldNumber = 2, + kIncludeSpentFieldNumber = 3, + }; + // repeated string payment_reference_hex = 1; + int payment_reference_hex_size() const; + private: + int _internal_payment_reference_hex_size() const; + + public: + void clear_payment_reference_hex() ; + const ::std::string& payment_reference_hex(int index) const; + ::std::string* PROTOBUF_NONNULL mutable_payment_reference_hex(int index); + template + void set_payment_reference_hex(int index, Arg_&& value, Args_... args); + ::std::string* PROTOBUF_NONNULL add_payment_reference_hex(); + template + void add_payment_reference_hex(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField<::std::string>& payment_reference_hex() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_payment_reference_hex(); + + private: + const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_payment_reference_hex() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_payment_reference_hex(); + + public: + // repeated bytes payment_reference_bytes = 2; + int payment_reference_bytes_size() const; + private: + int _internal_payment_reference_bytes_size() const; + + public: + void clear_payment_reference_bytes() ; + const ::std::string& payment_reference_bytes(int index) const; + ::std::string* PROTOBUF_NONNULL mutable_payment_reference_bytes(int index); + template + void set_payment_reference_bytes(int index, Arg_&& value, Args_... args); + ::std::string* PROTOBUF_NONNULL add_payment_reference_bytes(); + template + void add_payment_reference_bytes(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField<::std::string>& payment_reference_bytes() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_payment_reference_bytes(); + + private: + const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_payment_reference_bytes() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_payment_reference_bytes(); + + public: + // bool include_spent = 3; + void clear_include_spent() ; + bool include_spent() const; + void set_include_spent(bool value); + + private: + bool _internal_include_spent() const; + void _internal_set_include_spent(bool value); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.SearchPaymentReferencesRequest) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 69, + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SearchPaymentReferencesRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField<::std::string> payment_reference_hex_; + ::google::protobuf::RepeatedPtrField<::std::string> payment_reference_bytes_; + bool include_spent_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_base_5fnode_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull SearchPaymentReferencesRequest_class_data_; +// ------------------------------------------------------------------- + +class PaymentReferenceResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.PaymentReferenceResponse) */ { + public: + inline PaymentReferenceResponse() : PaymentReferenceResponse(nullptr) {} + ~PaymentReferenceResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PaymentReferenceResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PaymentReferenceResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR PaymentReferenceResponse(::google::protobuf::internal::ConstantInitialized); + + inline PaymentReferenceResponse(const PaymentReferenceResponse& from) : PaymentReferenceResponse(nullptr, from) {} + inline PaymentReferenceResponse(PaymentReferenceResponse&& from) noexcept + : PaymentReferenceResponse(nullptr, ::std::move(from)) {} + inline PaymentReferenceResponse& operator=(const PaymentReferenceResponse& from) { + CopyFrom(from); + return *this; + } + inline PaymentReferenceResponse& operator=(PaymentReferenceResponse&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const PaymentReferenceResponse& default_instance() { + return *reinterpret_cast( + &_PaymentReferenceResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 66; + friend void swap(PaymentReferenceResponse& a, PaymentReferenceResponse& b) { a.Swap(&b); } + inline void Swap(PaymentReferenceResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PaymentReferenceResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PaymentReferenceResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const PaymentReferenceResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const PaymentReferenceResponse& from) { PaymentReferenceResponse::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PaymentReferenceResponse* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.PaymentReferenceResponse"; } + + protected: + explicit PaymentReferenceResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PaymentReferenceResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PaymentReferenceResponse& from); + PaymentReferenceResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PaymentReferenceResponse&& from) noexcept + : PaymentReferenceResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPaymentReferenceHexFieldNumber = 1, + kBlockHashFieldNumber = 3, + kCommitmentFieldNumber = 5, + kSpentBlockHashFieldNumber = 8, + kOutputHashFieldNumber = 11, + kBlockHeightFieldNumber = 2, + kMinedTimestampFieldNumber = 4, + kSpentHeightFieldNumber = 7, + kMinValuePromiseFieldNumber = 9, + kSpentTimestampFieldNumber = 10, + kIsSpentFieldNumber = 6, + }; + // string payment_reference_hex = 1; + void clear_payment_reference_hex() ; + const ::std::string& payment_reference_hex() const; + template + void set_payment_reference_hex(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_payment_reference_hex(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_payment_reference_hex(); + void set_allocated_payment_reference_hex(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_payment_reference_hex() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_payment_reference_hex(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_payment_reference_hex(); + + public: + // bytes block_hash = 3; + void clear_block_hash() ; + const ::std::string& block_hash() const; + template + void set_block_hash(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_block_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_block_hash(); + void set_allocated_block_hash(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_block_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_block_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_block_hash(); + + public: + // bytes commitment = 5; + void clear_commitment() ; + const ::std::string& commitment() const; + template + void set_commitment(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_commitment(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_commitment(); + void set_allocated_commitment(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_commitment() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_commitment(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_commitment(); + + public: + // bytes spent_block_hash = 8; + void clear_spent_block_hash() ; + const ::std::string& spent_block_hash() const; + template + void set_spent_block_hash(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_spent_block_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_spent_block_hash(); + void set_allocated_spent_block_hash(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_spent_block_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_spent_block_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_spent_block_hash(); + + public: + // bytes output_hash = 11; + void clear_output_hash() ; + const ::std::string& output_hash() const; + template + void set_output_hash(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_output_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_output_hash(); + void set_allocated_output_hash(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_output_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_output_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_output_hash(); + + public: + // uint64 block_height = 2; + void clear_block_height() ; + ::uint64_t block_height() const; + void set_block_height(::uint64_t value); + + private: + ::uint64_t _internal_block_height() const; + void _internal_set_block_height(::uint64_t value); + + public: + // uint64 mined_timestamp = 4; + void clear_mined_timestamp() ; + ::uint64_t mined_timestamp() const; + void set_mined_timestamp(::uint64_t value); + + private: + ::uint64_t _internal_mined_timestamp() const; + void _internal_set_mined_timestamp(::uint64_t value); + + public: + // uint64 spent_height = 7; + void clear_spent_height() ; + ::uint64_t spent_height() const; + void set_spent_height(::uint64_t value); + + private: + ::uint64_t _internal_spent_height() const; + void _internal_set_spent_height(::uint64_t value); + + public: + // uint64 min_value_promise = 9; + void clear_min_value_promise() ; + ::uint64_t min_value_promise() const; + void set_min_value_promise(::uint64_t value); + + private: + ::uint64_t _internal_min_value_promise() const; + void _internal_set_min_value_promise(::uint64_t value); + + public: + // uint64 spent_timestamp = 10; + void clear_spent_timestamp() ; + ::uint64_t spent_timestamp() const; + void set_spent_timestamp(::uint64_t value); + + private: + ::uint64_t _internal_spent_timestamp() const; + void _internal_set_spent_timestamp(::uint64_t value); + + public: + // bool is_spent = 6; + void clear_is_spent() ; + bool is_spent() const; + void set_is_spent(bool value); + + private: + bool _internal_is_spent() const; + void _internal_set_is_spent(bool value); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.PaymentReferenceResponse) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 11, + 0, 71, + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PaymentReferenceResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr payment_reference_hex_; + ::google::protobuf::internal::ArenaStringPtr block_hash_; + ::google::protobuf::internal::ArenaStringPtr commitment_; + ::google::protobuf::internal::ArenaStringPtr spent_block_hash_; + ::google::protobuf::internal::ArenaStringPtr output_hash_; + ::uint64_t block_height_; + ::uint64_t mined_timestamp_; + ::uint64_t spent_height_; + ::uint64_t min_value_promise_; + ::uint64_t spent_timestamp_; + bool is_spent_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_base_5fnode_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull PaymentReferenceResponse_class_data_; +// ------------------------------------------------------------------- + +class NewBlockCoinbase final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockCoinbase) */ { + public: + inline NewBlockCoinbase() : NewBlockCoinbase(nullptr) {} + ~NewBlockCoinbase() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(NewBlockCoinbase* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(NewBlockCoinbase)); + } +#endif + + 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; + } + inline NewBlockCoinbase& operator=(NewBlockCoinbase&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const NewBlockCoinbase& default_instance() { + return *reinterpret_cast( + &_NewBlockCoinbase_default_instance_); + } + static constexpr int kIndexInFileMessages = 15; + friend void swap(NewBlockCoinbase& a, NewBlockCoinbase& b) { a.Swap(&b); } + inline void Swap(NewBlockCoinbase* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(NewBlockCoinbase* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + NewBlockCoinbase* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2033,41 +3028,63 @@ class NewBlockCoinbase final : public ::google::protobuf::Message void MergeFrom(const NewBlockCoinbase& from) { NewBlockCoinbase::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NewBlockCoinbase* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(NewBlockCoinbase* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockCoinbase"; } protected: - explicit NewBlockCoinbase(::google::protobuf::Arena* arena); - NewBlockCoinbase(::google::protobuf::Arena* arena, const NewBlockCoinbase& from); - NewBlockCoinbase(::google::protobuf::Arena* arena, NewBlockCoinbase&& from) noexcept + explicit NewBlockCoinbase(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + NewBlockCoinbase(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NewBlockCoinbase& from); + NewBlockCoinbase( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, NewBlockCoinbase&& from) noexcept : NewBlockCoinbase(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -2080,34 +3097,32 @@ class NewBlockCoinbase final : public ::google::protobuf::Message }; // string address = 1; void clear_address() ; - const std::string& address() const; - template + const ::std::string& address() const; + template void set_address(Arg_&& arg, Args_... args); - std::string* mutable_address(); - PROTOBUF_NODISCARD std::string* release_address(); - void set_allocated_address(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_address(); + void set_allocated_address(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_address( - const std::string& value); - std::string* _internal_mutable_address(); + const ::std::string& _internal_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_address(); public: // bytes coinbase_extra = 5; void clear_coinbase_extra() ; - const std::string& coinbase_extra() const; - template + const ::std::string& coinbase_extra() const; + template void set_coinbase_extra(Arg_&& arg, Args_... args); - std::string* mutable_coinbase_extra(); - PROTOBUF_NODISCARD std::string* release_coinbase_extra(); - void set_allocated_coinbase_extra(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_coinbase_extra(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_coinbase_extra(); + void set_allocated_coinbase_extra(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_coinbase_extra() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_coinbase_extra( - const std::string& value); - std::string* _internal_mutable_coinbase_extra(); + const ::std::string& _internal_coinbase_extra() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_coinbase_extra(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_coinbase_extra(); public: // uint64 value = 2; @@ -2144,10 +3159,11 @@ class NewBlockCoinbase final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 0, - 41, 2> + static const ::google::protobuf::internal::TcParseTable<3, 5, + 0, 41, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2155,48 +3171,56 @@ class NewBlockCoinbase final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const NewBlockCoinbase& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr address_; ::google::protobuf::internal::ArenaStringPtr coinbase_extra_; ::uint64_t value_; bool stealth_payment_; bool revealed_value_proof_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull NewBlockCoinbase_class_data_; // ------------------------------------------------------------------- class NetworkDifficultyResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NetworkDifficultyResponse) */ { public: inline NetworkDifficultyResponse() : NetworkDifficultyResponse(nullptr) {} - ~NetworkDifficultyResponse() override; + ~NetworkDifficultyResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(NetworkDifficultyResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(NetworkDifficultyResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR NetworkDifficultyResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : NetworkDifficultyResponse(nullptr, ::std::move(from)) {} inline NetworkDifficultyResponse& operator=(const NetworkDifficultyResponse& from) { CopyFrom(from); return *this; } inline NetworkDifficultyResponse& operator=(NetworkDifficultyResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2208,42 +3232,35 @@ class NetworkDifficultyResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const NetworkDifficultyResponse& default_instance() { - return *internal_default_instance(); - } - static inline const NetworkDifficultyResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_NetworkDifficultyResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 14; + static constexpr int kIndexInFileMessages = 16; friend void swap(NetworkDifficultyResponse& a, NetworkDifficultyResponse& b) { a.Swap(&b); } - inline void Swap(NetworkDifficultyResponse* other) { + inline void Swap(NetworkDifficultyResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NetworkDifficultyResponse* other) { + void UnsafeArenaSwap(NetworkDifficultyResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2251,7 +3268,7 @@ class NetworkDifficultyResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - NetworkDifficultyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + NetworkDifficultyResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2260,41 +3277,63 @@ class NetworkDifficultyResponse final : public ::google::protobuf::Message void MergeFrom(const NetworkDifficultyResponse& from) { NetworkDifficultyResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NetworkDifficultyResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(NetworkDifficultyResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.NetworkDifficultyResponse"; } protected: - explicit NetworkDifficultyResponse(::google::protobuf::Arena* arena); - NetworkDifficultyResponse(::google::protobuf::Arena* arena, const NetworkDifficultyResponse& from); - NetworkDifficultyResponse(::google::protobuf::Arena* arena, NetworkDifficultyResponse&& from) noexcept + explicit NetworkDifficultyResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + NetworkDifficultyResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NetworkDifficultyResponse& from); + NetworkDifficultyResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, NetworkDifficultyResponse&& from) noexcept : NetworkDifficultyResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -2317,25 +3356,19 @@ class NetworkDifficultyResponse final : public ::google::protobuf::Message public: void clear_coinbase_extras() ; - const std::string& coinbase_extras(int index) const; - std::string* mutable_coinbase_extras(int index); - void set_coinbase_extras(int index, const std::string& value); - void set_coinbase_extras(int index, std::string&& value); - void set_coinbase_extras(int index, const char* value); - void set_coinbase_extras(int index, const void* value, std::size_t size); - void set_coinbase_extras(int index, absl::string_view value); - std::string* add_coinbase_extras(); - void add_coinbase_extras(const std::string& value); - void add_coinbase_extras(std::string&& value); - void add_coinbase_extras(const char* value); - void add_coinbase_extras(const void* value, std::size_t size); - void add_coinbase_extras(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& coinbase_extras() const; - ::google::protobuf::RepeatedPtrField* mutable_coinbase_extras(); + const ::std::string& coinbase_extras(int index) const; + ::std::string* PROTOBUF_NONNULL mutable_coinbase_extras(int index); + template + void set_coinbase_extras(int index, Arg_&& value, Args_... args); + ::std::string* PROTOBUF_NONNULL add_coinbase_extras(); + template + void add_coinbase_extras(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField<::std::string>& coinbase_extras() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_coinbase_extras(); private: - const ::google::protobuf::RepeatedPtrField& _internal_coinbase_extras() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_coinbase_extras(); + const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_coinbase_extras() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_coinbase_extras(); public: // uint64 difficulty = 1; @@ -2432,10 +3465,11 @@ class NetworkDifficultyResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 10, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<4, 10, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2443,13 +3477,17 @@ class NetworkDifficultyResponse final : public ::google::protobuf::Message 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::RepeatedPtrField coinbase_extras_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const NetworkDifficultyResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField<::std::string> coinbase_extras_; ::uint64_t difficulty_; ::uint64_t estimated_hash_rate_; ::uint64_t height_; @@ -2459,37 +3497,41 @@ class NetworkDifficultyResponse final : public ::google::protobuf::Message ::uint64_t monero_randomx_estimated_hash_rate_; ::uint64_t num_coinbases_; ::uint64_t tari_randomx_estimated_hash_rate_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull NetworkDifficultyResponse_class_data_; // ------------------------------------------------------------------- -class MetaData final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.MetaData) */ { +class MigrationProgress final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.MigrationProgress) */ { public: - inline MetaData() : MetaData(nullptr) {} - ~MetaData() override; - template - explicit PROTOBUF_CONSTEXPR MetaData( - ::google::protobuf::internal::ConstantInitialized); + inline MigrationProgress() : MigrationProgress(nullptr) {} + ~MigrationProgress() PROTOBUF_FINAL; - inline MetaData(const MetaData& from) : MetaData(nullptr, from) {} - inline MetaData(MetaData&& from) noexcept - : MetaData(nullptr, std::move(from)) {} - inline MetaData& operator=(const MetaData& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MigrationProgress* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MigrationProgress)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR MigrationProgress(::google::protobuf::internal::ConstantInitialized); + + inline MigrationProgress(const MigrationProgress& from) : MigrationProgress(nullptr, from) {} + inline MigrationProgress(MigrationProgress&& from) noexcept + : MigrationProgress(nullptr, ::std::move(from)) {} + inline MigrationProgress& operator=(const MigrationProgress& from) { CopyFrom(from); return *this; } - inline MetaData& operator=(MetaData&& from) noexcept { + inline MigrationProgress& operator=(MigrationProgress&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2501,42 +3543,35 @@ class MetaData final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const MetaData& default_instance() { - return *internal_default_instance(); + static const MigrationProgress& default_instance() { + return *reinterpret_cast( + &_MigrationProgress_default_instance_); } - 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); } - inline void Swap(MetaData* other) { + static constexpr int kIndexInFileMessages = 10; + friend void swap(MigrationProgress& a, MigrationProgress& b) { a.Swap(&b); } + inline void Swap(MigrationProgress* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MetaData* other) { + void UnsafeArenaSwap(MigrationProgress* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2544,7 +3579,246 @@ class MetaData final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - MetaData* New(::google::protobuf::Arena* arena = nullptr) const final { + MigrationProgress* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const MigrationProgress& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const MigrationProgress& from) { MigrationProgress::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(MigrationProgress* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.MigrationProgress"; } + + protected: + explicit MigrationProgress(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + MigrationProgress(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MigrationProgress& from); + MigrationProgress( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MigrationProgress&& from) noexcept + : MigrationProgress(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kCurrentBlockFieldNumber = 1, + kTotalBlocksFieldNumber = 2, + kProgressPercentageFieldNumber = 3, + kCurrentDbVersionFieldNumber = 4, + kTargetDbVersionFieldNumber = 5, + }; + // uint64 current_block = 1; + void clear_current_block() ; + ::uint64_t current_block() const; + void set_current_block(::uint64_t value); + + private: + ::uint64_t _internal_current_block() const; + void _internal_set_current_block(::uint64_t value); + + public: + // uint64 total_blocks = 2; + void clear_total_blocks() ; + ::uint64_t total_blocks() const; + void set_total_blocks(::uint64_t value); + + private: + ::uint64_t _internal_total_blocks() const; + void _internal_set_total_blocks(::uint64_t value); + + public: + // double progress_percentage = 3; + void clear_progress_percentage() ; + double progress_percentage() const; + void set_progress_percentage(double value); + + private: + double _internal_progress_percentage() const; + void _internal_set_progress_percentage(double value); + + public: + // uint64 current_db_version = 4; + void clear_current_db_version() ; + ::uint64_t current_db_version() const; + void set_current_db_version(::uint64_t value); + + private: + ::uint64_t _internal_current_db_version() const; + void _internal_set_current_db_version(::uint64_t value); + + public: + // uint64 target_db_version = 5; + void clear_target_db_version() ; + ::uint64_t target_db_version() const; + void set_target_db_version(::uint64_t value); + + private: + ::uint64_t _internal_target_db_version() const; + void _internal_set_target_db_version(::uint64_t value); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.MigrationProgress) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, + 0, 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const MigrationProgress& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::uint64_t current_block_; + ::uint64_t total_blocks_; + double progress_percentage_; + ::uint64_t current_db_version_; + ::uint64_t target_db_version_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_base_5fnode_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull MigrationProgress_class_data_; +// ------------------------------------------------------------------- + +class MetaData final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.MetaData) */ { + public: + inline MetaData() : MetaData(nullptr) {} + ~MetaData() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MetaData* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MetaData)); + } +#endif + + 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; + } + inline MetaData& operator=(MetaData&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const MetaData& default_instance() { + return *reinterpret_cast( + &_MetaData_default_instance_); + } + static constexpr int kIndexInFileMessages = 29; + friend void swap(MetaData& a, MetaData& b) { a.Swap(&b); } + inline void Swap(MetaData* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MetaData* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MetaData* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2553,41 +3827,63 @@ class MetaData final : public ::google::protobuf::Message void MergeFrom(const MetaData& from) { MetaData::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(MetaData* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(MetaData* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.MetaData"; } protected: - explicit MetaData(::google::protobuf::Arena* arena); - MetaData(::google::protobuf::Arena* arena, const MetaData& from); - MetaData(::google::protobuf::Arena* arena, MetaData&& from) noexcept + explicit MetaData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + MetaData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MetaData& from); + MetaData( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MetaData&& from) noexcept : MetaData(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -2600,34 +3896,32 @@ class MetaData final : public ::google::protobuf::Message }; // bytes best_block_hash = 2; void clear_best_block_hash() ; - const std::string& best_block_hash() const; - template + const ::std::string& best_block_hash() const; + template void set_best_block_hash(Arg_&& arg, Args_... args); - std::string* mutable_best_block_hash(); - PROTOBUF_NODISCARD std::string* release_best_block_hash(); - void set_allocated_best_block_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_best_block_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_best_block_hash(); + void set_allocated_best_block_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_best_block_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_best_block_hash( - const std::string& value); - std::string* _internal_mutable_best_block_hash(); + const ::std::string& _internal_best_block_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_best_block_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_best_block_hash(); public: // bytes accumulated_difficulty = 5; void clear_accumulated_difficulty() ; - const std::string& accumulated_difficulty() const; - template + const ::std::string& accumulated_difficulty() const; + template void set_accumulated_difficulty(Arg_&& arg, Args_... args); - std::string* mutable_accumulated_difficulty(); - PROTOBUF_NODISCARD std::string* release_accumulated_difficulty(); - void set_allocated_accumulated_difficulty(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_accumulated_difficulty(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_accumulated_difficulty(); + void set_allocated_accumulated_difficulty(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_accumulated_difficulty() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_accumulated_difficulty( - const std::string& value); - std::string* _internal_mutable_accumulated_difficulty(); + const ::std::string& _internal_accumulated_difficulty() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_accumulated_difficulty(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_accumulated_difficulty(); public: // uint64 best_block_height = 1; @@ -2664,10 +3958,11 @@ class MetaData final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<3, 5, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2675,48 +3970,56 @@ class MetaData final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const MetaData& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr best_block_hash_; ::google::protobuf::internal::ArenaStringPtr accumulated_difficulty_; ::uint64_t best_block_height_; ::uint64_t pruned_height_; ::uint64_t timestamp_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull MetaData_class_data_; // ------------------------------------------------------------------- class MempoolStatsResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.MempoolStatsResponse) */ { public: inline MempoolStatsResponse() : MempoolStatsResponse(nullptr) {} - ~MempoolStatsResponse() override; + ~MempoolStatsResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MempoolStatsResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MempoolStatsResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR MempoolStatsResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : MempoolStatsResponse(nullptr, ::std::move(from)) {} inline MempoolStatsResponse& operator=(const MempoolStatsResponse& from) { CopyFrom(from); return *this; } inline MempoolStatsResponse& operator=(MempoolStatsResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2728,42 +4031,35 @@ class MempoolStatsResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const MempoolStatsResponse& default_instance() { - return *internal_default_instance(); - } - static inline const MempoolStatsResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_MempoolStatsResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 45; + static constexpr int kIndexInFileMessages = 47; friend void swap(MempoolStatsResponse& a, MempoolStatsResponse& b) { a.Swap(&b); } - inline void Swap(MempoolStatsResponse* other) { + inline void Swap(MempoolStatsResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MempoolStatsResponse* other) { + void UnsafeArenaSwap(MempoolStatsResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2771,7 +4067,7 @@ class MempoolStatsResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - MempoolStatsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + MempoolStatsResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2780,41 +4076,63 @@ class MempoolStatsResponse final : public ::google::protobuf::Message void MergeFrom(const MempoolStatsResponse& from) { MempoolStatsResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(MempoolStatsResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(MempoolStatsResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.MempoolStatsResponse"; } protected: - explicit MempoolStatsResponse(::google::protobuf::Arena* arena); - MempoolStatsResponse(::google::protobuf::Arena* arena, const MempoolStatsResponse& from); - MempoolStatsResponse(::google::protobuf::Arena* arena, MempoolStatsResponse&& from) noexcept + explicit MempoolStatsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + MempoolStatsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MempoolStatsResponse& from); + MempoolStatsResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MempoolStatsResponse&& from) noexcept : MempoolStatsResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -2857,10 +4175,11 @@ class MempoolStatsResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2868,46 +4187,54 @@ class MempoolStatsResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const MempoolStatsResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t unconfirmed_txs_; ::uint64_t reorg_txs_; ::uint64_t unconfirmed_weight_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull MempoolStatsResponse_class_data_; // ------------------------------------------------------------------- class LivenessResult final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.LivenessResult) */ { public: inline LivenessResult() : LivenessResult(nullptr) {} - ~LivenessResult() override; + ~LivenessResult() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LivenessResult* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LivenessResult)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR LivenessResult( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR LivenessResult(::google::protobuf::internal::ConstantInitialized); inline LivenessResult(const LivenessResult& from) : LivenessResult(nullptr, from) {} inline LivenessResult(LivenessResult&& from) noexcept - : LivenessResult(nullptr, std::move(from)) {} + : LivenessResult(nullptr, ::std::move(from)) {} inline LivenessResult& operator=(const LivenessResult& from) { CopyFrom(from); return *this; } inline LivenessResult& operator=(LivenessResult&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2919,42 +4246,35 @@ class LivenessResult final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const LivenessResult& default_instance() { - return *internal_default_instance(); - } - static inline const LivenessResult* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_LivenessResult_default_instance_); } - static constexpr int kIndexInFileMessages = 57; + static constexpr int kIndexInFileMessages = 64; friend void swap(LivenessResult& a, LivenessResult& b) { a.Swap(&b); } - inline void Swap(LivenessResult* other) { + inline void Swap(LivenessResult* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LivenessResult* other) { + void UnsafeArenaSwap(LivenessResult* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2962,7 +4282,7 @@ class LivenessResult final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - LivenessResult* New(::google::protobuf::Arena* arena = nullptr) const final { + LivenessResult* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2971,41 +4291,63 @@ class LivenessResult final : public ::google::protobuf::Message void MergeFrom(const LivenessResult& from) { LivenessResult::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(LivenessResult* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(LivenessResult* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.LivenessResult"; } protected: - explicit LivenessResult(::google::protobuf::Arena* arena); - LivenessResult(::google::protobuf::Arena* arena, const LivenessResult& from); - LivenessResult(::google::protobuf::Arena* arena, LivenessResult&& from) noexcept + explicit LivenessResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + LivenessResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LivenessResult& from); + LivenessResult( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LivenessResult&& from) noexcept : LivenessResult(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -3016,18 +4358,17 @@ class LivenessResult final : public ::google::protobuf::Message }; // bytes peer_node_id = 1; void clear_peer_node_id() ; - const std::string& peer_node_id() const; - template + const ::std::string& peer_node_id() const; + template void set_peer_node_id(Arg_&& arg, Args_... args); - std::string* mutable_peer_node_id(); - PROTOBUF_NODISCARD std::string* release_peer_node_id(); - void set_allocated_peer_node_id(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_peer_node_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_peer_node_id(); + void set_allocated_peer_node_id(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_peer_node_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_peer_node_id( - const std::string& value); - std::string* _internal_mutable_peer_node_id(); + const ::std::string& _internal_peer_node_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_peer_node_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_peer_node_id(); public: // uint64 discover_latency = 2; @@ -3054,10 +4395,11 @@ class LivenessResult final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3065,46 +4407,54 @@ class LivenessResult final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const LivenessResult& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr peer_node_id_; ::uint64_t discover_latency_; ::uint64_t ping_latency_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull LivenessResult_class_data_; // ------------------------------------------------------------------- class ListHeadersRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ListHeadersRequest) */ { public: inline ListHeadersRequest() : ListHeadersRequest(nullptr) {} - ~ListHeadersRequest() override; + ~ListHeadersRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ListHeadersRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ListHeadersRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR ListHeadersRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : ListHeadersRequest(nullptr, ::std::move(from)) {} inline ListHeadersRequest& operator=(const ListHeadersRequest& from) { CopyFrom(from); return *this; } inline ListHeadersRequest& operator=(ListHeadersRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3116,42 +4466,35 @@ class ListHeadersRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ListHeadersRequest& default_instance() { - return *internal_default_instance(); - } - static inline const ListHeadersRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ListHeadersRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 24; + static constexpr int kIndexInFileMessages = 26; friend void swap(ListHeadersRequest& a, ListHeadersRequest& b) { a.Swap(&b); } - inline void Swap(ListHeadersRequest* other) { + inline void Swap(ListHeadersRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListHeadersRequest* other) { + void UnsafeArenaSwap(ListHeadersRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -3159,7 +4502,7 @@ class ListHeadersRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ListHeadersRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + ListHeadersRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3168,41 +4511,63 @@ class ListHeadersRequest final : public ::google::protobuf::Message void MergeFrom(const ListHeadersRequest& from) { ListHeadersRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ListHeadersRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ListHeadersRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.ListHeadersRequest"; } protected: - explicit ListHeadersRequest(::google::protobuf::Arena* arena); - ListHeadersRequest(::google::protobuf::Arena* arena, const ListHeadersRequest& from); - ListHeadersRequest(::google::protobuf::Arena* arena, ListHeadersRequest&& from) noexcept + explicit ListHeadersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ListHeadersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ListHeadersRequest& from); + ListHeadersRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ListHeadersRequest&& from) noexcept : ListHeadersRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -3245,10 +4610,11 @@ class ListHeadersRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3256,46 +4622,54 @@ class ListHeadersRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ListHeadersRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t from_height_; ::uint64_t num_headers_; int sorting_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ListHeadersRequest_class_data_; // ------------------------------------------------------------------- class ListAssetRegistrationsRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ListAssetRegistrationsRequest) */ { public: inline ListAssetRegistrationsRequest() : ListAssetRegistrationsRequest(nullptr) {} - ~ListAssetRegistrationsRequest() override; + ~ListAssetRegistrationsRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ListAssetRegistrationsRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ListAssetRegistrationsRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR ListAssetRegistrationsRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : ListAssetRegistrationsRequest(nullptr, ::std::move(from)) {} inline ListAssetRegistrationsRequest& operator=(const ListAssetRegistrationsRequest& from) { CopyFrom(from); return *this; } inline ListAssetRegistrationsRequest& operator=(ListAssetRegistrationsRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3307,42 +4681,35 @@ class ListAssetRegistrationsRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ListAssetRegistrationsRequest& default_instance() { - return *internal_default_instance(); - } - static inline const ListAssetRegistrationsRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ListAssetRegistrationsRequest_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(ListAssetRegistrationsRequest& a, ListAssetRegistrationsRequest& b) { a.Swap(&b); } - inline void Swap(ListAssetRegistrationsRequest* other) { + inline void Swap(ListAssetRegistrationsRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListAssetRegistrationsRequest* other) { + void UnsafeArenaSwap(ListAssetRegistrationsRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -3350,7 +4717,7 @@ class ListAssetRegistrationsRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ListAssetRegistrationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + ListAssetRegistrationsRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3359,41 +4726,63 @@ class ListAssetRegistrationsRequest final : public ::google::protobuf::Message void MergeFrom(const ListAssetRegistrationsRequest& from) { ListAssetRegistrationsRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ListAssetRegistrationsRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ListAssetRegistrationsRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.ListAssetRegistrationsRequest"; } protected: - explicit ListAssetRegistrationsRequest(::google::protobuf::Arena* arena); - ListAssetRegistrationsRequest(::google::protobuf::Arena* arena, const ListAssetRegistrationsRequest& from); - ListAssetRegistrationsRequest(::google::protobuf::Arena* arena, ListAssetRegistrationsRequest&& from) noexcept + explicit ListAssetRegistrationsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ListAssetRegistrationsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ListAssetRegistrationsRequest& from); + ListAssetRegistrationsRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ListAssetRegistrationsRequest&& from) noexcept : ListAssetRegistrationsRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -3425,10 +4814,11 @@ class ListAssetRegistrationsRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3436,45 +4826,53 @@ class ListAssetRegistrationsRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ListAssetRegistrationsRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t offset_; ::uint64_t count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ListAssetRegistrationsRequest_class_data_; // ------------------------------------------------------------------- class IntegerValue final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.IntegerValue) */ { public: inline IntegerValue() : IntegerValue(nullptr) {} - ~IntegerValue() override; + ~IntegerValue() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(IntegerValue* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(IntegerValue)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR IntegerValue( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : IntegerValue(nullptr, ::std::move(from)) {} inline IntegerValue& operator=(const IntegerValue& from) { CopyFrom(from); return *this; } inline IntegerValue& operator=(IntegerValue&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3486,42 +4884,35 @@ class IntegerValue final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const IntegerValue& default_instance() { - return *internal_default_instance(); - } - static inline const IntegerValue* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_IntegerValue_default_instance_); } - static constexpr int kIndexInFileMessages = 16; + static constexpr int kIndexInFileMessages = 18; friend void swap(IntegerValue& a, IntegerValue& b) { a.Swap(&b); } - inline void Swap(IntegerValue* other) { + inline void Swap(IntegerValue* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IntegerValue* other) { + void UnsafeArenaSwap(IntegerValue* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -3529,7 +4920,7 @@ class IntegerValue final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - IntegerValue* New(::google::protobuf::Arena* arena = nullptr) const final { + IntegerValue* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3538,41 +4929,63 @@ class IntegerValue final : public ::google::protobuf::Message void MergeFrom(const IntegerValue& from) { IntegerValue::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(IntegerValue* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(IntegerValue* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.IntegerValue"; } protected: - explicit IntegerValue(::google::protobuf::Arena* arena); - IntegerValue(::google::protobuf::Arena* arena, const IntegerValue& from); - IntegerValue(::google::protobuf::Arena* arena, IntegerValue&& from) noexcept + explicit IntegerValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + IntegerValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const IntegerValue& from); + IntegerValue( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, IntegerValue&& from) noexcept : IntegerValue(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -3593,10 +5006,11 @@ class IntegerValue final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3604,44 +5018,52 @@ class IntegerValue final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const IntegerValue& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull IntegerValue_class_data_; // ------------------------------------------------------------------- class HeightRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.HeightRequest) */ { public: inline HeightRequest() : HeightRequest(nullptr) {} - ~HeightRequest() override; + ~HeightRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(HeightRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(HeightRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR HeightRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : HeightRequest(nullptr, ::std::move(from)) {} inline HeightRequest& operator=(const HeightRequest& from) { CopyFrom(from); return *this; } inline HeightRequest& operator=(HeightRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3653,42 +5075,35 @@ class HeightRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const HeightRequest& default_instance() { - return *internal_default_instance(); - } - static inline const HeightRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_HeightRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 20; + static constexpr int kIndexInFileMessages = 22; friend void swap(HeightRequest& a, HeightRequest& b) { a.Swap(&b); } - inline void Swap(HeightRequest* other) { + inline void Swap(HeightRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(HeightRequest* other) { + void UnsafeArenaSwap(HeightRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -3696,7 +5111,7 @@ class HeightRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - HeightRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + HeightRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3705,41 +5120,63 @@ class HeightRequest final : public ::google::protobuf::Message void MergeFrom(const HeightRequest& from) { HeightRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(HeightRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(HeightRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.HeightRequest"; } protected: - explicit HeightRequest(::google::protobuf::Arena* arena); - HeightRequest(::google::protobuf::Arena* arena, const HeightRequest& from); - HeightRequest(::google::protobuf::Arena* arena, HeightRequest&& from) noexcept + explicit HeightRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + HeightRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HeightRequest& from); + HeightRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, HeightRequest&& from) noexcept : HeightRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -3782,10 +5219,11 @@ class HeightRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3793,46 +5231,54 @@ class HeightRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const HeightRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t from_tip_; ::uint64_t start_height_; ::uint64_t end_height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull HeightRequest_class_data_; // ------------------------------------------------------------------- -class GetTokensRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetTokensRequest) */ { +class GetValidatorNodeChangesRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetValidatorNodeChangesRequest) */ { public: - inline GetTokensRequest() : GetTokensRequest(nullptr) {} - ~GetTokensRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetTokensRequest( - ::google::protobuf::internal::ConstantInitialized); + inline GetValidatorNodeChangesRequest() : GetValidatorNodeChangesRequest(nullptr) {} + ~GetValidatorNodeChangesRequest() PROTOBUF_FINAL; - inline GetTokensRequest(const GetTokensRequest& from) : GetTokensRequest(nullptr, from) {} - inline GetTokensRequest(GetTokensRequest&& from) noexcept - : GetTokensRequest(nullptr, std::move(from)) {} - inline GetTokensRequest& operator=(const GetTokensRequest& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetValidatorNodeChangesRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetValidatorNodeChangesRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR GetValidatorNodeChangesRequest(::google::protobuf::internal::ConstantInitialized); + + inline GetValidatorNodeChangesRequest(const GetValidatorNodeChangesRequest& from) : GetValidatorNodeChangesRequest(nullptr, from) {} + inline GetValidatorNodeChangesRequest(GetValidatorNodeChangesRequest&& from) noexcept + : GetValidatorNodeChangesRequest(nullptr, ::std::move(from)) {} + inline GetValidatorNodeChangesRequest& operator=(const GetValidatorNodeChangesRequest& from) { CopyFrom(from); return *this; } - inline GetTokensRequest& operator=(GetTokensRequest&& from) noexcept { + inline GetValidatorNodeChangesRequest& operator=(GetValidatorNodeChangesRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3844,42 +5290,35 @@ class GetTokensRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetTokensRequest& default_instance() { - return *internal_default_instance(); + static const GetValidatorNodeChangesRequest& default_instance() { + return *reinterpret_cast( + &_GetValidatorNodeChangesRequest_default_instance_); } - 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); } - inline void Swap(GetTokensRequest* other) { + static constexpr int kIndexInFileMessages = 50; + friend void swap(GetValidatorNodeChangesRequest& a, GetValidatorNodeChangesRequest& b) { a.Swap(&b); } + inline void Swap(GetValidatorNodeChangesRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetTokensRequest* other) { + void UnsafeArenaSwap(GetValidatorNodeChangesRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -3887,7 +5326,215 @@ class GetTokensRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetTokensRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetValidatorNodeChangesRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetValidatorNodeChangesRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GetValidatorNodeChangesRequest& from) { GetValidatorNodeChangesRequest::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetValidatorNodeChangesRequest* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.GetValidatorNodeChangesRequest"; } + + protected: + explicit GetValidatorNodeChangesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetValidatorNodeChangesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetValidatorNodeChangesRequest& from); + GetValidatorNodeChangesRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetValidatorNodeChangesRequest&& from) noexcept + : GetValidatorNodeChangesRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSidechainIdFieldNumber = 2, + kEpochFieldNumber = 1, + }; + // bytes sidechain_id = 2; + void clear_sidechain_id() ; + const ::std::string& sidechain_id() const; + template + void set_sidechain_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_sidechain_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_sidechain_id(); + void set_allocated_sidechain_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_sidechain_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_sidechain_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_sidechain_id(); + + public: + // uint64 epoch = 1; + void clear_epoch() ; + ::uint64_t epoch() const; + void set_epoch(::uint64_t value); + + private: + ::uint64_t _internal_epoch() const; + void _internal_set_epoch(::uint64_t value); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.GetValidatorNodeChangesRequest) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetValidatorNodeChangesRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr sidechain_id_; + ::uint64_t epoch_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_base_5fnode_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull GetValidatorNodeChangesRequest_class_data_; +// ------------------------------------------------------------------- + +class GetTokensRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetTokensRequest) */ { + public: + inline GetTokensRequest() : GetTokensRequest(nullptr) {} + ~GetTokensRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetTokensRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetTokensRequest)); + } +#endif + + 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; + } + inline GetTokensRequest& operator=(GetTokensRequest&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetTokensRequest& default_instance() { + return *reinterpret_cast( + &_GetTokensRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(GetTokensRequest& a, GetTokensRequest& b) { a.Swap(&b); } + inline void Swap(GetTokensRequest* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetTokensRequest* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetTokensRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3896,41 +5543,63 @@ class GetTokensRequest final : public ::google::protobuf::Message void MergeFrom(const GetTokensRequest& from) { GetTokensRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetTokensRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetTokensRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetTokensRequest"; } protected: - explicit GetTokensRequest(::google::protobuf::Arena* arena); - GetTokensRequest(::google::protobuf::Arena* arena, const GetTokensRequest& from); - GetTokensRequest(::google::protobuf::Arena* arena, GetTokensRequest&& from) noexcept + explicit GetTokensRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetTokensRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTokensRequest& from); + GetTokensRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetTokensRequest&& from) noexcept : GetTokensRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -3945,51 +5614,45 @@ class GetTokensRequest final : public ::google::protobuf::Message public: void clear_unique_ids() ; - const std::string& unique_ids(int index) const; - std::string* mutable_unique_ids(int index); - void set_unique_ids(int index, const std::string& value); - void set_unique_ids(int index, std::string&& value); - void set_unique_ids(int index, const char* value); - void set_unique_ids(int index, const void* value, std::size_t size); - void set_unique_ids(int index, absl::string_view value); - std::string* add_unique_ids(); - void add_unique_ids(const std::string& value); - void add_unique_ids(std::string&& value); - void add_unique_ids(const char* value); - void add_unique_ids(const void* value, std::size_t size); - void add_unique_ids(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& unique_ids() const; - ::google::protobuf::RepeatedPtrField* mutable_unique_ids(); + const ::std::string& unique_ids(int index) const; + ::std::string* PROTOBUF_NONNULL mutable_unique_ids(int index); + template + void set_unique_ids(int index, Arg_&& value, Args_... args); + ::std::string* PROTOBUF_NONNULL add_unique_ids(); + template + void add_unique_ids(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField<::std::string>& unique_ids() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_unique_ids(); private: - const ::google::protobuf::RepeatedPtrField& _internal_unique_ids() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_unique_ids(); + const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_unique_ids() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_unique_ids(); public: // bytes asset_public_key = 1; void clear_asset_public_key() ; - const std::string& asset_public_key() const; - template + const ::std::string& asset_public_key() const; + template void set_asset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_asset_public_key(); - PROTOBUF_NODISCARD std::string* release_asset_public_key(); - void set_allocated_asset_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_asset_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_asset_public_key(); + void set_allocated_asset_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_asset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_asset_public_key( - const std::string& value); - std::string* _internal_mutable_asset_public_key(); + const ::std::string& _internal_asset_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_asset_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_asset_public_key(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3997,45 +5660,53 @@ class GetTokensRequest final : public ::google::protobuf::Message 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::RepeatedPtrField unique_ids_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetTokensRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField<::std::string> unique_ids_; ::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; }; + +extern const ::google::protobuf::internal::ClassDataFull GetTokensRequest_class_data_; // ------------------------------------------------------------------- class GetTemplateRegistrationsRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetTemplateRegistrationsRequest) */ { public: inline GetTemplateRegistrationsRequest() : GetTemplateRegistrationsRequest(nullptr) {} - ~GetTemplateRegistrationsRequest() override; + ~GetTemplateRegistrationsRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetTemplateRegistrationsRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetTemplateRegistrationsRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetTemplateRegistrationsRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetTemplateRegistrationsRequest(nullptr, ::std::move(from)) {} inline GetTemplateRegistrationsRequest& operator=(const GetTemplateRegistrationsRequest& from) { CopyFrom(from); return *this; } inline GetTemplateRegistrationsRequest& operator=(GetTemplateRegistrationsRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4047,42 +5718,35 @@ class GetTemplateRegistrationsRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetTemplateRegistrationsRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetTemplateRegistrationsRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetTemplateRegistrationsRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 50; + static constexpr int kIndexInFileMessages = 57; friend void swap(GetTemplateRegistrationsRequest& a, GetTemplateRegistrationsRequest& b) { a.Swap(&b); } - inline void Swap(GetTemplateRegistrationsRequest* other) { + inline void Swap(GetTemplateRegistrationsRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetTemplateRegistrationsRequest* other) { + void UnsafeArenaSwap(GetTemplateRegistrationsRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -4090,7 +5754,7 @@ class GetTemplateRegistrationsRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetTemplateRegistrationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetTemplateRegistrationsRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4099,41 +5763,63 @@ class GetTemplateRegistrationsRequest final : public ::google::protobuf::Message void MergeFrom(const GetTemplateRegistrationsRequest& from) { GetTemplateRegistrationsRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetTemplateRegistrationsRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetTemplateRegistrationsRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetTemplateRegistrationsRequest"; } protected: - explicit GetTemplateRegistrationsRequest(::google::protobuf::Arena* arena); - GetTemplateRegistrationsRequest(::google::protobuf::Arena* arena, const GetTemplateRegistrationsRequest& from); - GetTemplateRegistrationsRequest(::google::protobuf::Arena* arena, GetTemplateRegistrationsRequest&& from) noexcept + explicit GetTemplateRegistrationsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetTemplateRegistrationsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTemplateRegistrationsRequest& from); + GetTemplateRegistrationsRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetTemplateRegistrationsRequest&& from) noexcept : GetTemplateRegistrationsRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -4143,18 +5829,17 @@ class GetTemplateRegistrationsRequest final : public ::google::protobuf::Message }; // bytes start_hash = 1; void clear_start_hash() ; - const std::string& start_hash() const; - template + const ::std::string& start_hash() const; + template void set_start_hash(Arg_&& arg, Args_... args); - std::string* mutable_start_hash(); - PROTOBUF_NODISCARD std::string* release_start_hash(); - void set_allocated_start_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_start_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_start_hash(); + void set_allocated_start_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_start_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_start_hash( - const std::string& value); - std::string* _internal_mutable_start_hash(); + const ::std::string& _internal_start_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_start_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_start_hash(); public: // uint64 count = 2; @@ -4171,10 +5856,11 @@ class GetTemplateRegistrationsRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4182,45 +5868,53 @@ class GetTemplateRegistrationsRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetTemplateRegistrationsRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr start_hash_; ::uint64_t count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetTemplateRegistrationsRequest_class_data_; // ------------------------------------------------------------------- class GetSideChainUtxosRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetSideChainUtxosRequest) */ { public: inline GetSideChainUtxosRequest() : GetSideChainUtxosRequest(nullptr) {} - ~GetSideChainUtxosRequest() override; + ~GetSideChainUtxosRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetSideChainUtxosRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetSideChainUtxosRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetSideChainUtxosRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetSideChainUtxosRequest(nullptr, ::std::move(from)) {} inline GetSideChainUtxosRequest& operator=(const GetSideChainUtxosRequest& from) { CopyFrom(from); return *this; } inline GetSideChainUtxosRequest& operator=(GetSideChainUtxosRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4232,42 +5926,35 @@ class GetSideChainUtxosRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetSideChainUtxosRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetSideChainUtxosRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetSideChainUtxosRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 53; + static constexpr int kIndexInFileMessages = 60; friend void swap(GetSideChainUtxosRequest& a, GetSideChainUtxosRequest& b) { a.Swap(&b); } - inline void Swap(GetSideChainUtxosRequest* other) { + inline void Swap(GetSideChainUtxosRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetSideChainUtxosRequest* other) { + void UnsafeArenaSwap(GetSideChainUtxosRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -4275,7 +5962,7 @@ class GetSideChainUtxosRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetSideChainUtxosRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetSideChainUtxosRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4284,41 +5971,63 @@ class GetSideChainUtxosRequest final : public ::google::protobuf::Message void MergeFrom(const GetSideChainUtxosRequest& from) { GetSideChainUtxosRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetSideChainUtxosRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetSideChainUtxosRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetSideChainUtxosRequest"; } protected: - explicit GetSideChainUtxosRequest(::google::protobuf::Arena* arena); - GetSideChainUtxosRequest(::google::protobuf::Arena* arena, const GetSideChainUtxosRequest& from); - GetSideChainUtxosRequest(::google::protobuf::Arena* arena, GetSideChainUtxosRequest&& from) noexcept + explicit GetSideChainUtxosRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetSideChainUtxosRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetSideChainUtxosRequest& from); + GetSideChainUtxosRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetSideChainUtxosRequest&& from) noexcept : GetSideChainUtxosRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -4328,18 +6037,17 @@ class GetSideChainUtxosRequest final : public ::google::protobuf::Message }; // bytes start_hash = 1; void clear_start_hash() ; - const std::string& start_hash() const; - template + const ::std::string& start_hash() const; + template void set_start_hash(Arg_&& arg, Args_... args); - std::string* mutable_start_hash(); - PROTOBUF_NODISCARD std::string* release_start_hash(); - void set_allocated_start_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_start_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_start_hash(); + void set_allocated_start_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_start_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_start_hash( - const std::string& value); - std::string* _internal_mutable_start_hash(); + const ::std::string& _internal_start_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_start_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_start_hash(); public: // uint64 count = 2; @@ -4356,10 +6064,11 @@ class GetSideChainUtxosRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4367,45 +6076,53 @@ class GetSideChainUtxosRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetSideChainUtxosRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr start_hash_; ::uint64_t count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetSideChainUtxosRequest_class_data_; // ------------------------------------------------------------------- class GetShardKeyResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetShardKeyResponse) */ { public: inline GetShardKeyResponse() : GetShardKeyResponse(nullptr) {} - ~GetShardKeyResponse() override; + ~GetShardKeyResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetShardKeyResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetShardKeyResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetShardKeyResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetShardKeyResponse(nullptr, ::std::move(from)) {} inline GetShardKeyResponse& operator=(const GetShardKeyResponse& from) { CopyFrom(from); return *this; } inline GetShardKeyResponse& operator=(GetShardKeyResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4417,42 +6134,35 @@ class GetShardKeyResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetShardKeyResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetShardKeyResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetShardKeyResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 49; + static constexpr int kIndexInFileMessages = 56; friend void swap(GetShardKeyResponse& a, GetShardKeyResponse& b) { a.Swap(&b); } - inline void Swap(GetShardKeyResponse* other) { + inline void Swap(GetShardKeyResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetShardKeyResponse* other) { + void UnsafeArenaSwap(GetShardKeyResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -4460,7 +6170,7 @@ class GetShardKeyResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetShardKeyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetShardKeyResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4469,82 +6179,93 @@ class GetShardKeyResponse final : public ::google::protobuf::Message void MergeFrom(const GetShardKeyResponse& from) { GetShardKeyResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetShardKeyResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetShardKeyResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetShardKeyResponse"; } protected: - explicit GetShardKeyResponse(::google::protobuf::Arena* arena); - GetShardKeyResponse(::google::protobuf::Arena* arena, const GetShardKeyResponse& from); - GetShardKeyResponse(::google::protobuf::Arena* arena, GetShardKeyResponse&& from) noexcept + explicit GetShardKeyResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetShardKeyResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetShardKeyResponse& from); + GetShardKeyResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetShardKeyResponse&& from) noexcept : GetShardKeyResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kShardKeyFieldNumber = 1, - kFoundFieldNumber = 2, }; // bytes shard_key = 1; void clear_shard_key() ; - const std::string& shard_key() const; - template + const ::std::string& shard_key() const; + template void set_shard_key(Arg_&& arg, Args_... args); - std::string* mutable_shard_key(); - PROTOBUF_NODISCARD std::string* release_shard_key(); - void set_allocated_shard_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_shard_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_shard_key(); + void set_allocated_shard_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_shard_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_shard_key( - const std::string& value); - std::string* _internal_mutable_shard_key(); - - public: - // bool found = 2; - void clear_found() ; - bool found() const; - void set_found(bool value); - - private: - bool _internal_found() const; - void _internal_set_found(bool value); + const ::std::string& _internal_shard_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_shard_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_shard_key(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4552,45 +6273,52 @@ class GetShardKeyResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetShardKeyResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr shard_key_; - bool found_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetShardKeyResponse_class_data_; // ------------------------------------------------------------------- class GetShardKeyRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetShardKeyRequest) */ { public: inline GetShardKeyRequest() : GetShardKeyRequest(nullptr) {} - ~GetShardKeyRequest() override; + ~GetShardKeyRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetShardKeyRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetShardKeyRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetShardKeyRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetShardKeyRequest(nullptr, ::std::move(from)) {} inline GetShardKeyRequest& operator=(const GetShardKeyRequest& from) { CopyFrom(from); return *this; } inline GetShardKeyRequest& operator=(GetShardKeyRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4602,42 +6330,35 @@ class GetShardKeyRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetShardKeyRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetShardKeyRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetShardKeyRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 48; + static constexpr int kIndexInFileMessages = 55; friend void swap(GetShardKeyRequest& a, GetShardKeyRequest& b) { a.Swap(&b); } - inline void Swap(GetShardKeyRequest* other) { + inline void Swap(GetShardKeyRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetShardKeyRequest* other) { + void UnsafeArenaSwap(GetShardKeyRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -4645,7 +6366,7 @@ class GetShardKeyRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetShardKeyRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetShardKeyRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4654,82 +6375,104 @@ class GetShardKeyRequest final : public ::google::protobuf::Message void MergeFrom(const GetShardKeyRequest& from) { GetShardKeyRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetShardKeyRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetShardKeyRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetShardKeyRequest"; } protected: - explicit GetShardKeyRequest(::google::protobuf::Arena* arena); - GetShardKeyRequest(::google::protobuf::Arena* arena, const GetShardKeyRequest& from); - GetShardKeyRequest(::google::protobuf::Arena* arena, GetShardKeyRequest&& from) noexcept + explicit GetShardKeyRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetShardKeyRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetShardKeyRequest& from); + GetShardKeyRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetShardKeyRequest&& from) noexcept : GetShardKeyRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kPublicKeyFieldNumber = 2, - kHeightFieldNumber = 1, + kEpochFieldNumber = 1, }; // bytes public_key = 2; void clear_public_key() ; - const std::string& public_key() const; - template + const ::std::string& public_key() const; + template void set_public_key(Arg_&& arg, Args_... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key( - const std::string& value); - std::string* _internal_mutable_public_key(); + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); public: - // uint64 height = 1; - void clear_height() ; - ::uint64_t height() const; - void set_height(::uint64_t value); + // uint64 epoch = 1; + void clear_epoch() ; + ::uint64_t epoch() const; + void set_epoch(::uint64_t value); private: - ::uint64_t _internal_height() const; - void _internal_set_height(::uint64_t value); + ::uint64_t _internal_epoch() const; + void _internal_set_epoch(::uint64_t value); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4737,44 +6480,52 @@ class GetShardKeyRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetShardKeyRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr public_key_; - ::uint64_t height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint64_t epoch_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetShardKeyRequest_class_data_; // ------------------------------------------------------------------- class GetPeersRequest final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:tari.rpc.GetPeersRequest) */ { public: inline GetPeersRequest() : GetPeersRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetPeersRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetPeersRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetPeersRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetPeersRequest(nullptr, ::std::move(from)) {} inline GetPeersRequest& operator=(const GetPeersRequest& from) { CopyFrom(from); return *this; } inline GetPeersRequest& operator=(GetPeersRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4786,42 +6537,35 @@ class GetPeersRequest final : public ::google::protobuf::internal::ZeroFieldsBas ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetPeersRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetPeersRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetPeersRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 38; + static constexpr int kIndexInFileMessages = 40; friend void swap(GetPeersRequest& a, GetPeersRequest& b) { a.Swap(&b); } - inline void Swap(GetPeersRequest* other) { + inline void Swap(GetPeersRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPeersRequest* other) { + void UnsafeArenaSwap(GetPeersRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -4829,7 +6573,7 @@ class GetPeersRequest final : public ::google::protobuf::internal::ZeroFieldsBas // implements Message ---------------------------------------------- - GetPeersRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetPeersRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; @@ -4842,26 +6586,44 @@ class GetPeersRequest final : public ::google::protobuf::internal::ZeroFieldsBas } public: + bool IsInitialized() const { + return true; + } private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetPeersRequest"; } protected: - explicit GetPeersRequest(::google::protobuf::Arena* arena); - GetPeersRequest(::google::protobuf::Arena* arena, const GetPeersRequest& from); - GetPeersRequest(::google::protobuf::Arena* arena, GetPeersRequest&& from) noexcept + explicit GetPeersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetPeersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetPeersRequest& from); + GetPeersRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetPeersRequest&& from) noexcept : GetPeersRequest(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // @@protoc_insertion_point(class_scope:tari.rpc.GetPeersRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4869,41 +6631,48 @@ class GetPeersRequest final : public ::google::protobuf::internal::ZeroFieldsBas 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetPeersRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetPeersRequest_class_data_; // ------------------------------------------------------------------- class GetNewBlockBlobResult final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockBlobResult) */ { public: inline GetNewBlockBlobResult() : GetNewBlockBlobResult(nullptr) {} - ~GetNewBlockBlobResult() override; + ~GetNewBlockBlobResult() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetNewBlockBlobResult* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetNewBlockBlobResult)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetNewBlockBlobResult( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetNewBlockBlobResult(nullptr, ::std::move(from)) {} inline GetNewBlockBlobResult& operator=(const GetNewBlockBlobResult& from) { CopyFrom(from); return *this; } inline GetNewBlockBlobResult& operator=(GetNewBlockBlobResult&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4915,42 +6684,35 @@ class GetNewBlockBlobResult final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetNewBlockBlobResult& default_instance() { - return *internal_default_instance(); - } - static inline const GetNewBlockBlobResult* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetNewBlockBlobResult_default_instance_); } - static constexpr int kIndexInFileMessages = 31; + static constexpr int kIndexInFileMessages = 33; friend void swap(GetNewBlockBlobResult& a, GetNewBlockBlobResult& b) { a.Swap(&b); } - inline void Swap(GetNewBlockBlobResult* other) { + inline void Swap(GetNewBlockBlobResult* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetNewBlockBlobResult* other) { + void UnsafeArenaSwap(GetNewBlockBlobResult* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -4958,7 +6720,7 @@ class GetNewBlockBlobResult final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetNewBlockBlobResult* New(::google::protobuf::Arena* arena = nullptr) const final { + GetNewBlockBlobResult* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4967,41 +6729,63 @@ class GetNewBlockBlobResult final : public ::google::protobuf::Message void MergeFrom(const GetNewBlockBlobResult& from) { GetNewBlockBlobResult::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetNewBlockBlobResult* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetNewBlockBlobResult* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetNewBlockBlobResult"; } protected: - explicit GetNewBlockBlobResult(::google::protobuf::Arena* arena); - GetNewBlockBlobResult(::google::protobuf::Arena* arena, const GetNewBlockBlobResult& from); - GetNewBlockBlobResult(::google::protobuf::Arena* arena, GetNewBlockBlobResult&& from) noexcept + explicit GetNewBlockBlobResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetNewBlockBlobResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetNewBlockBlobResult& from); + GetNewBlockBlobResult( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetNewBlockBlobResult&& from) noexcept : GetNewBlockBlobResult(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -5015,108 +6799,103 @@ class GetNewBlockBlobResult final : public ::google::protobuf::Message }; // bytes block_hash = 1; void clear_block_hash() ; - const std::string& block_hash() const; - template + const ::std::string& block_hash() const; + template void set_block_hash(Arg_&& arg, Args_... args); - std::string* mutable_block_hash(); - PROTOBUF_NODISCARD std::string* release_block_hash(); - void set_allocated_block_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_block_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_block_hash(); + void set_allocated_block_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_block_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_block_hash( - const std::string& value); - std::string* _internal_mutable_block_hash(); + const ::std::string& _internal_block_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_block_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_block_hash(); public: // bytes header = 2; void clear_header() ; - const std::string& header() const; - template + const ::std::string& header() const; + template void set_header(Arg_&& arg, Args_... args); - std::string* mutable_header(); - PROTOBUF_NODISCARD std::string* release_header(); - void set_allocated_header(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_header(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_header(); + void set_allocated_header(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_header() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_header( - const std::string& value); - std::string* _internal_mutable_header(); + const ::std::string& _internal_header() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_header(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_header(); public: // bytes block_body = 3; void clear_block_body() ; - const std::string& block_body() const; - template + const ::std::string& block_body() const; + template void set_block_body(Arg_&& arg, Args_... args); - std::string* mutable_block_body(); - PROTOBUF_NODISCARD std::string* release_block_body(); - void set_allocated_block_body(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_block_body(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_block_body(); + void set_allocated_block_body(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_block_body() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_block_body( - const std::string& value); - std::string* _internal_mutable_block_body(); + const ::std::string& _internal_block_body() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_block_body(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_block_body(); public: // bytes merge_mining_hash = 4; void clear_merge_mining_hash() ; - const std::string& merge_mining_hash() const; - template + const ::std::string& merge_mining_hash() const; + template void set_merge_mining_hash(Arg_&& arg, Args_... args); - std::string* mutable_merge_mining_hash(); - PROTOBUF_NODISCARD std::string* release_merge_mining_hash(); - void set_allocated_merge_mining_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_merge_mining_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_merge_mining_hash(); + void set_allocated_merge_mining_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_merge_mining_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_merge_mining_hash( - const std::string& value); - std::string* _internal_mutable_merge_mining_hash(); + const ::std::string& _internal_merge_mining_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_merge_mining_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_merge_mining_hash(); public: // bytes utxo_mr = 5; void clear_utxo_mr() ; - const std::string& utxo_mr() const; - template + const ::std::string& utxo_mr() const; + template void set_utxo_mr(Arg_&& arg, Args_... args); - std::string* mutable_utxo_mr(); - PROTOBUF_NODISCARD std::string* release_utxo_mr(); - void set_allocated_utxo_mr(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_utxo_mr(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_utxo_mr(); + void set_allocated_utxo_mr(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_utxo_mr() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_utxo_mr( - const std::string& value); - std::string* _internal_mutable_utxo_mr(); + const ::std::string& _internal_utxo_mr() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_utxo_mr(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_utxo_mr(); public: // bytes tari_unique_id = 6; void clear_tari_unique_id() ; - const std::string& tari_unique_id() const; - template + const ::std::string& tari_unique_id() const; + template void set_tari_unique_id(Arg_&& arg, Args_... args); - std::string* mutable_tari_unique_id(); - PROTOBUF_NODISCARD std::string* release_tari_unique_id(); - void set_allocated_tari_unique_id(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_tari_unique_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_tari_unique_id(); + void set_allocated_tari_unique_id(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_tari_unique_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tari_unique_id( - const std::string& value); - std::string* _internal_mutable_tari_unique_id(); + const ::std::string& _internal_tari_unique_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_tari_unique_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_tari_unique_id(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<3, 6, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -5124,48 +6903,56 @@ class GetNewBlockBlobResult final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetNewBlockBlobResult& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr block_hash_; ::google::protobuf::internal::ArenaStringPtr header_; ::google::protobuf::internal::ArenaStringPtr block_body_; ::google::protobuf::internal::ArenaStringPtr merge_mining_hash_; ::google::protobuf::internal::ArenaStringPtr utxo_mr_; ::google::protobuf::internal::ArenaStringPtr tari_unique_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetNewBlockBlobResult_class_data_; // ------------------------------------------------------------------- class GetNetworkStateRequest final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:tari.rpc.GetNetworkStateRequest) */ { public: inline GetNetworkStateRequest() : GetNetworkStateRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetNetworkStateRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetNetworkStateRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetNetworkStateRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetNetworkStateRequest(::google::protobuf::internal::ConstantInitialized); inline GetNetworkStateRequest(const GetNetworkStateRequest& from) : GetNetworkStateRequest(nullptr, from) {} inline GetNetworkStateRequest(GetNetworkStateRequest&& from) noexcept - : GetNetworkStateRequest(nullptr, std::move(from)) {} + : GetNetworkStateRequest(nullptr, ::std::move(from)) {} inline GetNetworkStateRequest& operator=(const GetNetworkStateRequest& from) { CopyFrom(from); return *this; } inline GetNetworkStateRequest& operator=(GetNetworkStateRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5177,42 +6964,35 @@ class GetNetworkStateRequest final : public ::google::protobuf::internal::ZeroFi ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetNetworkStateRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetNetworkStateRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetNetworkStateRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 55; + static constexpr int kIndexInFileMessages = 62; friend void swap(GetNetworkStateRequest& a, GetNetworkStateRequest& b) { a.Swap(&b); } - inline void Swap(GetNetworkStateRequest* other) { + inline void Swap(GetNetworkStateRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetNetworkStateRequest* other) { + void UnsafeArenaSwap(GetNetworkStateRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -5220,7 +7000,7 @@ class GetNetworkStateRequest final : public ::google::protobuf::internal::ZeroFi // implements Message ---------------------------------------------- - GetNetworkStateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetNetworkStateRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; @@ -5233,26 +7013,44 @@ class GetNetworkStateRequest final : public ::google::protobuf::internal::ZeroFi } public: + bool IsInitialized() const { + return true; + } private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetNetworkStateRequest"; } protected: - explicit GetNetworkStateRequest(::google::protobuf::Arena* arena); - GetNetworkStateRequest(::google::protobuf::Arena* arena, const GetNetworkStateRequest& from); - GetNetworkStateRequest(::google::protobuf::Arena* arena, GetNetworkStateRequest&& from) noexcept + explicit GetNetworkStateRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetNetworkStateRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetNetworkStateRequest& from); + GetNetworkStateRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetNetworkStateRequest&& from) noexcept : GetNetworkStateRequest(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // @@protoc_insertion_point(class_scope:tari.rpc.GetNetworkStateRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -5260,40 +7058,47 @@ class GetNetworkStateRequest final : public ::google::protobuf::internal::ZeroFi 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetNetworkStateRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetNetworkStateRequest_class_data_; // ------------------------------------------------------------------- class GetMempoolTransactionsRequest final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:tari.rpc.GetMempoolTransactionsRequest) */ { public: inline GetMempoolTransactionsRequest() : GetMempoolTransactionsRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetMempoolTransactionsRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetMempoolTransactionsRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetMempoolTransactionsRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetMempoolTransactionsRequest(nullptr, ::std::move(from)) {} inline GetMempoolTransactionsRequest& operator=(const GetMempoolTransactionsRequest& from) { CopyFrom(from); return *this; } inline GetMempoolTransactionsRequest& operator=(GetMempoolTransactionsRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5305,42 +7110,35 @@ class GetMempoolTransactionsRequest final : public ::google::protobuf::internal: ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetMempoolTransactionsRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetMempoolTransactionsRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetMempoolTransactionsRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 41; + static constexpr int kIndexInFileMessages = 43; friend void swap(GetMempoolTransactionsRequest& a, GetMempoolTransactionsRequest& b) { a.Swap(&b); } - inline void Swap(GetMempoolTransactionsRequest* other) { + inline void Swap(GetMempoolTransactionsRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetMempoolTransactionsRequest* other) { + void UnsafeArenaSwap(GetMempoolTransactionsRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -5348,7 +7146,7 @@ class GetMempoolTransactionsRequest final : public ::google::protobuf::internal: // implements Message ---------------------------------------------- - GetMempoolTransactionsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetMempoolTransactionsRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; @@ -5361,26 +7159,44 @@ class GetMempoolTransactionsRequest final : public ::google::protobuf::internal: } public: + bool IsInitialized() const { + return true; + } private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetMempoolTransactionsRequest"; } protected: - explicit GetMempoolTransactionsRequest(::google::protobuf::Arena* arena); - GetMempoolTransactionsRequest(::google::protobuf::Arena* arena, const GetMempoolTransactionsRequest& from); - GetMempoolTransactionsRequest(::google::protobuf::Arena* arena, GetMempoolTransactionsRequest&& from) noexcept + explicit GetMempoolTransactionsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetMempoolTransactionsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetMempoolTransactionsRequest& from); + GetMempoolTransactionsRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetMempoolTransactionsRequest&& from) noexcept : GetMempoolTransactionsRequest(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // @@protoc_insertion_point(class_scope:tari.rpc.GetMempoolTransactionsRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -5388,41 +7204,48 @@ class GetMempoolTransactionsRequest final : public ::google::protobuf::internal: 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetMempoolTransactionsRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetMempoolTransactionsRequest_class_data_; // ------------------------------------------------------------------- class GetHeaderByHashRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetHeaderByHashRequest) */ { public: inline GetHeaderByHashRequest() : GetHeaderByHashRequest(nullptr) {} - ~GetHeaderByHashRequest() override; + ~GetHeaderByHashRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetHeaderByHashRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetHeaderByHashRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetHeaderByHashRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetHeaderByHashRequest(nullptr, ::std::move(from)) {} inline GetHeaderByHashRequest& operator=(const GetHeaderByHashRequest& from) { CopyFrom(from); return *this; } inline GetHeaderByHashRequest& operator=(GetHeaderByHashRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5434,42 +7257,35 @@ class GetHeaderByHashRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetHeaderByHashRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetHeaderByHashRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetHeaderByHashRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 22; + static constexpr int kIndexInFileMessages = 24; friend void swap(GetHeaderByHashRequest& a, GetHeaderByHashRequest& b) { a.Swap(&b); } - inline void Swap(GetHeaderByHashRequest* other) { + inline void Swap(GetHeaderByHashRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetHeaderByHashRequest* other) { + void UnsafeArenaSwap(GetHeaderByHashRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -5477,7 +7293,7 @@ class GetHeaderByHashRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetHeaderByHashRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetHeaderByHashRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -5486,41 +7302,63 @@ class GetHeaderByHashRequest final : public ::google::protobuf::Message void MergeFrom(const GetHeaderByHashRequest& from) { GetHeaderByHashRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetHeaderByHashRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetHeaderByHashRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetHeaderByHashRequest"; } protected: - explicit GetHeaderByHashRequest(::google::protobuf::Arena* arena); - GetHeaderByHashRequest(::google::protobuf::Arena* arena, const GetHeaderByHashRequest& from); - GetHeaderByHashRequest(::google::protobuf::Arena* arena, GetHeaderByHashRequest&& from) noexcept + explicit GetHeaderByHashRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetHeaderByHashRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetHeaderByHashRequest& from); + GetHeaderByHashRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetHeaderByHashRequest&& from) noexcept : GetHeaderByHashRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -5529,28 +7367,28 @@ class GetHeaderByHashRequest final : public ::google::protobuf::Message }; // bytes hash = 1; void clear_hash() ; - const std::string& hash() const; - template + const ::std::string& hash() const; + template void set_hash(Arg_&& arg, Args_... args); - std::string* mutable_hash(); - PROTOBUF_NODISCARD std::string* release_hash(); - void set_allocated_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_hash(); + void set_allocated_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash( - const std::string& value); - std::string* _internal_mutable_hash(); + const ::std::string& _internal_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_hash(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -5558,44 +7396,52 @@ class GetHeaderByHashRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetHeaderByHashRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::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; }; + +extern const ::google::protobuf::internal::ClassDataFull GetHeaderByHashRequest_class_data_; // ------------------------------------------------------------------- class GetBlocksRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetBlocksRequest) */ { public: inline GetBlocksRequest() : GetBlocksRequest(nullptr) {} - ~GetBlocksRequest() override; + ~GetBlocksRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetBlocksRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetBlocksRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetBlocksRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetBlocksRequest(nullptr, ::std::move(from)) {} inline GetBlocksRequest& operator=(const GetBlocksRequest& from) { CopyFrom(from); return *this; } inline GetBlocksRequest& operator=(GetBlocksRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5607,42 +7453,35 @@ class GetBlocksRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetBlocksRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetBlocksRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetBlocksRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 25; + static constexpr int kIndexInFileMessages = 27; friend void swap(GetBlocksRequest& a, GetBlocksRequest& b) { a.Swap(&b); } - inline void Swap(GetBlocksRequest* other) { + inline void Swap(GetBlocksRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetBlocksRequest* other) { + void UnsafeArenaSwap(GetBlocksRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -5650,7 +7489,7 @@ class GetBlocksRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetBlocksRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetBlocksRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -5659,41 +7498,63 @@ class GetBlocksRequest final : public ::google::protobuf::Message void MergeFrom(const GetBlocksRequest& from) { GetBlocksRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetBlocksRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetBlocksRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetBlocksRequest"; } protected: - explicit GetBlocksRequest(::google::protobuf::Arena* arena); - GetBlocksRequest(::google::protobuf::Arena* arena, const GetBlocksRequest& from); - GetBlocksRequest(::google::protobuf::Arena* arena, GetBlocksRequest&& from) noexcept + explicit GetBlocksRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetBlocksRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetBlocksRequest& from); + GetBlocksRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetBlocksRequest&& from) noexcept : GetBlocksRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -5711,21 +7572,22 @@ class GetBlocksRequest final : public ::google::protobuf::Message void set_heights(int index, ::uint64_t value); void add_heights(::uint64_t value); const ::google::protobuf::RepeatedField<::uint64_t>& heights() const; - ::google::protobuf::RepeatedField<::uint64_t>* mutable_heights(); + ::google::protobuf::RepeatedField<::uint64_t>* PROTOBUF_NONNULL mutable_heights(); private: const ::google::protobuf::RepeatedField<::uint64_t>& _internal_heights() const; - ::google::protobuf::RepeatedField<::uint64_t>* _internal_mutable_heights(); + ::google::protobuf::RepeatedField<::uint64_t>* PROTOBUF_NONNULL _internal_mutable_heights(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -5733,45 +7595,52 @@ class GetBlocksRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetBlocksRequest& from_msg); ::google::protobuf::RepeatedField<::uint64_t> heights_; - mutable ::google::protobuf::internal::CachedSize _heights_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _heights_cached_byte_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetBlocksRequest_class_data_; // ------------------------------------------------------------------- class GetAssetMetadataRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetAssetMetadataRequest) */ { public: inline GetAssetMetadataRequest() : GetAssetMetadataRequest(nullptr) {} - ~GetAssetMetadataRequest() override; + ~GetAssetMetadataRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetAssetMetadataRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetAssetMetadataRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetAssetMetadataRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetAssetMetadataRequest(nullptr, ::std::move(from)) {} inline GetAssetMetadataRequest& operator=(const GetAssetMetadataRequest& from) { CopyFrom(from); return *this; } inline GetAssetMetadataRequest& operator=(GetAssetMetadataRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5783,42 +7652,35 @@ class GetAssetMetadataRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetAssetMetadataRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetAssetMetadataRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetAssetMetadataRequest_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(GetAssetMetadataRequest& a, GetAssetMetadataRequest& b) { a.Swap(&b); } - inline void Swap(GetAssetMetadataRequest* other) { + inline void Swap(GetAssetMetadataRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetAssetMetadataRequest* other) { + void UnsafeArenaSwap(GetAssetMetadataRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -5826,7 +7688,7 @@ class GetAssetMetadataRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetAssetMetadataRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetAssetMetadataRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -5835,41 +7697,63 @@ class GetAssetMetadataRequest final : public ::google::protobuf::Message void MergeFrom(const GetAssetMetadataRequest& from) { GetAssetMetadataRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetAssetMetadataRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetAssetMetadataRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetAssetMetadataRequest"; } protected: - explicit GetAssetMetadataRequest(::google::protobuf::Arena* arena); - GetAssetMetadataRequest(::google::protobuf::Arena* arena, const GetAssetMetadataRequest& from); - GetAssetMetadataRequest(::google::protobuf::Arena* arena, GetAssetMetadataRequest&& from) noexcept + explicit GetAssetMetadataRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetAssetMetadataRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetAssetMetadataRequest& from); + GetAssetMetadataRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetAssetMetadataRequest&& from) noexcept : GetAssetMetadataRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -5878,28 +7762,28 @@ class GetAssetMetadataRequest final : public ::google::protobuf::Message }; // bytes asset_public_key = 1; void clear_asset_public_key() ; - const std::string& asset_public_key() const; - template + const ::std::string& asset_public_key() const; + template void set_asset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_asset_public_key(); - PROTOBUF_NODISCARD std::string* release_asset_public_key(); - void set_allocated_asset_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_asset_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_asset_public_key(); + void set_allocated_asset_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_asset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_asset_public_key( - const std::string& value); - std::string* _internal_mutable_asset_public_key(); + const ::std::string& _internal_asset_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_asset_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_asset_public_key(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -5907,44 +7791,52 @@ class GetAssetMetadataRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetAssetMetadataRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::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; }; + +extern const ::google::protobuf::internal::ClassDataFull GetAssetMetadataRequest_class_data_; // ------------------------------------------------------------------- class GetActiveValidatorNodesResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetActiveValidatorNodesResponse) */ { public: inline GetActiveValidatorNodesResponse() : GetActiveValidatorNodesResponse(nullptr) {} - ~GetActiveValidatorNodesResponse() override; + ~GetActiveValidatorNodesResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetActiveValidatorNodesResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetActiveValidatorNodesResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetActiveValidatorNodesResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetActiveValidatorNodesResponse(nullptr, ::std::move(from)) {} inline GetActiveValidatorNodesResponse& operator=(const GetActiveValidatorNodesResponse& from) { CopyFrom(from); return *this; } inline GetActiveValidatorNodesResponse& operator=(GetActiveValidatorNodesResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5956,42 +7848,35 @@ class GetActiveValidatorNodesResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetActiveValidatorNodesResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetActiveValidatorNodesResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetActiveValidatorNodesResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 47; + static constexpr int kIndexInFileMessages = 49; friend void swap(GetActiveValidatorNodesResponse& a, GetActiveValidatorNodesResponse& b) { a.Swap(&b); } - inline void Swap(GetActiveValidatorNodesResponse* other) { + inline void Swap(GetActiveValidatorNodesResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetActiveValidatorNodesResponse* other) { + void UnsafeArenaSwap(GetActiveValidatorNodesResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -5999,7 +7884,7 @@ class GetActiveValidatorNodesResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetActiveValidatorNodesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetActiveValidatorNodesResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -6008,88 +7893,125 @@ class GetActiveValidatorNodesResponse final : public ::google::protobuf::Message void MergeFrom(const GetActiveValidatorNodesResponse& from) { GetActiveValidatorNodesResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetActiveValidatorNodesResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetActiveValidatorNodesResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetActiveValidatorNodesResponse"; } protected: - explicit GetActiveValidatorNodesResponse(::google::protobuf::Arena* arena); - GetActiveValidatorNodesResponse(::google::protobuf::Arena* arena, const GetActiveValidatorNodesResponse& from); - GetActiveValidatorNodesResponse(::google::protobuf::Arena* arena, GetActiveValidatorNodesResponse&& from) noexcept + explicit GetActiveValidatorNodesResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetActiveValidatorNodesResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetActiveValidatorNodesResponse& from); + GetActiveValidatorNodesResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetActiveValidatorNodesResponse&& from) noexcept : GetActiveValidatorNodesResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kShardKeyFieldNumber = 1, kPublicKeyFieldNumber = 2, + kSidechainIdFieldNumber = 3, }; // bytes shard_key = 1; void clear_shard_key() ; - const std::string& shard_key() const; - template + const ::std::string& shard_key() const; + template void set_shard_key(Arg_&& arg, Args_... args); - std::string* mutable_shard_key(); - PROTOBUF_NODISCARD std::string* release_shard_key(); - void set_allocated_shard_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_shard_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_shard_key(); + void set_allocated_shard_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_shard_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_shard_key( - const std::string& value); - std::string* _internal_mutable_shard_key(); + const ::std::string& _internal_shard_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_shard_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_shard_key(); public: // bytes public_key = 2; void clear_public_key() ; - const std::string& public_key() const; - template + const ::std::string& public_key() const; + template void set_public_key(Arg_&& arg, Args_... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key( - const std::string& value); - std::string* _internal_mutable_public_key(); + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); + + public: + // bytes sidechain_id = 3; + void clear_sidechain_id() ; + const ::std::string& sidechain_id() const; + template + void set_sidechain_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_sidechain_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_sidechain_id(); + void set_allocated_sidechain_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_sidechain_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_sidechain_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_sidechain_id(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -6097,45 +8019,54 @@ class GetActiveValidatorNodesResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetActiveValidatorNodesResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr shard_key_; ::google::protobuf::internal::ArenaStringPtr public_key_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr sidechain_id_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetActiveValidatorNodesResponse_class_data_; // ------------------------------------------------------------------- class GetActiveValidatorNodesRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetActiveValidatorNodesRequest) */ { public: inline GetActiveValidatorNodesRequest() : GetActiveValidatorNodesRequest(nullptr) {} - ~GetActiveValidatorNodesRequest() override; + ~GetActiveValidatorNodesRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetActiveValidatorNodesRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetActiveValidatorNodesRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetActiveValidatorNodesRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetActiveValidatorNodesRequest(nullptr, ::std::move(from)) {} inline GetActiveValidatorNodesRequest& operator=(const GetActiveValidatorNodesRequest& from) { CopyFrom(from); return *this; } inline GetActiveValidatorNodesRequest& operator=(GetActiveValidatorNodesRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -6147,42 +8078,35 @@ class GetActiveValidatorNodesRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetActiveValidatorNodesRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetActiveValidatorNodesRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetActiveValidatorNodesRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 46; + static constexpr int kIndexInFileMessages = 48; friend void swap(GetActiveValidatorNodesRequest& a, GetActiveValidatorNodesRequest& b) { a.Swap(&b); } - inline void Swap(GetActiveValidatorNodesRequest* other) { + inline void Swap(GetActiveValidatorNodesRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetActiveValidatorNodesRequest* other) { + void UnsafeArenaSwap(GetActiveValidatorNodesRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -6190,7 +8114,7 @@ class GetActiveValidatorNodesRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetActiveValidatorNodesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetActiveValidatorNodesRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -6199,47 +8123,85 @@ class GetActiveValidatorNodesRequest final : public ::google::protobuf::Message void MergeFrom(const GetActiveValidatorNodesRequest& from) { GetActiveValidatorNodesRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetActiveValidatorNodesRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetActiveValidatorNodesRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetActiveValidatorNodesRequest"; } protected: - explicit GetActiveValidatorNodesRequest(::google::protobuf::Arena* arena); - GetActiveValidatorNodesRequest(::google::protobuf::Arena* arena, const GetActiveValidatorNodesRequest& from); - GetActiveValidatorNodesRequest(::google::protobuf::Arena* arena, GetActiveValidatorNodesRequest&& from) noexcept + explicit GetActiveValidatorNodesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetActiveValidatorNodesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetActiveValidatorNodesRequest& from); + GetActiveValidatorNodesRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetActiveValidatorNodesRequest&& from) noexcept : GetActiveValidatorNodesRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { + kSidechainIdFieldNumber = 2, kHeightFieldNumber = 1, }; + // bytes sidechain_id = 2; + void clear_sidechain_id() ; + const ::std::string& sidechain_id() const; + template + void set_sidechain_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_sidechain_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_sidechain_id(); + void set_allocated_sidechain_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_sidechain_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_sidechain_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_sidechain_id(); + + public: // uint64 height = 1; void clear_height() ; ::uint64_t height() const; @@ -6254,10 +8216,11 @@ class GetActiveValidatorNodesRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -6265,44 +8228,53 @@ class GetActiveValidatorNodesRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetActiveValidatorNodesRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr sidechain_id_; ::uint64_t height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetActiveValidatorNodesRequest_class_data_; // ------------------------------------------------------------------- class FetchMatchingUtxosRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.FetchMatchingUtxosRequest) */ { public: inline FetchMatchingUtxosRequest() : FetchMatchingUtxosRequest(nullptr) {} - ~FetchMatchingUtxosRequest() override; + ~FetchMatchingUtxosRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(FetchMatchingUtxosRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(FetchMatchingUtxosRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR FetchMatchingUtxosRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : FetchMatchingUtxosRequest(nullptr, ::std::move(from)) {} inline FetchMatchingUtxosRequest& operator=(const FetchMatchingUtxosRequest& from) { CopyFrom(from); return *this; } inline FetchMatchingUtxosRequest& operator=(FetchMatchingUtxosRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -6314,42 +8286,35 @@ class FetchMatchingUtxosRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const FetchMatchingUtxosRequest& default_instance() { - return *internal_default_instance(); - } - static inline const FetchMatchingUtxosRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_FetchMatchingUtxosRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 35; + static constexpr int kIndexInFileMessages = 37; friend void swap(FetchMatchingUtxosRequest& a, FetchMatchingUtxosRequest& b) { a.Swap(&b); } - inline void Swap(FetchMatchingUtxosRequest* other) { + inline void Swap(FetchMatchingUtxosRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FetchMatchingUtxosRequest* other) { + void UnsafeArenaSwap(FetchMatchingUtxosRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -6357,7 +8322,7 @@ class FetchMatchingUtxosRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - FetchMatchingUtxosRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + FetchMatchingUtxosRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -6366,41 +8331,63 @@ class FetchMatchingUtxosRequest final : public ::google::protobuf::Message void MergeFrom(const FetchMatchingUtxosRequest& from) { FetchMatchingUtxosRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(FetchMatchingUtxosRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(FetchMatchingUtxosRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.FetchMatchingUtxosRequest"; } protected: - explicit FetchMatchingUtxosRequest(::google::protobuf::Arena* arena); - FetchMatchingUtxosRequest(::google::protobuf::Arena* arena, const FetchMatchingUtxosRequest& from); - FetchMatchingUtxosRequest(::google::protobuf::Arena* arena, FetchMatchingUtxosRequest&& from) noexcept + explicit FetchMatchingUtxosRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + FetchMatchingUtxosRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FetchMatchingUtxosRequest& from); + FetchMatchingUtxosRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, FetchMatchingUtxosRequest&& from) noexcept : FetchMatchingUtxosRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -6414,35 +8401,30 @@ class FetchMatchingUtxosRequest final : public ::google::protobuf::Message public: void clear_hashes() ; - const std::string& hashes(int index) const; - std::string* mutable_hashes(int index); - void set_hashes(int index, const std::string& value); - void set_hashes(int index, std::string&& value); - void set_hashes(int index, const char* value); - void set_hashes(int index, const void* value, std::size_t size); - void set_hashes(int index, absl::string_view value); - std::string* add_hashes(); - void add_hashes(const std::string& value); - void add_hashes(std::string&& value); - void add_hashes(const char* value); - void add_hashes(const void* value, std::size_t size); - void add_hashes(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& hashes() const; - ::google::protobuf::RepeatedPtrField* mutable_hashes(); + const ::std::string& hashes(int index) const; + ::std::string* PROTOBUF_NONNULL mutable_hashes(int index); + template + void set_hashes(int index, Arg_&& value, Args_... args); + ::std::string* PROTOBUF_NONNULL add_hashes(); + template + void add_hashes(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField<::std::string>& hashes() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_hashes(); private: - const ::google::protobuf::RepeatedPtrField& _internal_hashes() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_hashes(); + const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_hashes() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_hashes(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -6450,44 +8432,51 @@ class FetchMatchingUtxosRequest final : public ::google::protobuf::Message 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::RepeatedPtrField hashes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const FetchMatchingUtxosRequest& from_msg); + ::google::protobuf::RepeatedPtrField<::std::string> hashes_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull FetchMatchingUtxosRequest_class_data_; // ------------------------------------------------------------------- class BlockTimingResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockTimingResponse) */ { public: inline BlockTimingResponse() : BlockTimingResponse(nullptr) {} - ~BlockTimingResponse() override; + ~BlockTimingResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BlockTimingResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BlockTimingResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR BlockTimingResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : BlockTimingResponse(nullptr, ::std::move(from)) {} inline BlockTimingResponse& operator=(const BlockTimingResponse& from) { CopyFrom(from); return *this; } inline BlockTimingResponse& operator=(BlockTimingResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -6499,42 +8488,35 @@ class BlockTimingResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const BlockTimingResponse& default_instance() { - return *internal_default_instance(); - } - static inline const BlockTimingResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_BlockTimingResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 21; + static constexpr int kIndexInFileMessages = 23; friend void swap(BlockTimingResponse& a, BlockTimingResponse& b) { a.Swap(&b); } - inline void Swap(BlockTimingResponse* other) { + inline void Swap(BlockTimingResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BlockTimingResponse* other) { + void UnsafeArenaSwap(BlockTimingResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -6542,7 +8524,7 @@ class BlockTimingResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - BlockTimingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + BlockTimingResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -6551,41 +8533,63 @@ class BlockTimingResponse final : public ::google::protobuf::Message void MergeFrom(const BlockTimingResponse& from) { BlockTimingResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockTimingResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BlockTimingResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.BlockTimingResponse"; } protected: - explicit BlockTimingResponse(::google::protobuf::Arena* arena); - BlockTimingResponse(::google::protobuf::Arena* arena, const BlockTimingResponse& from); - BlockTimingResponse(::google::protobuf::Arena* arena, BlockTimingResponse&& from) noexcept + explicit BlockTimingResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BlockTimingResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockTimingResponse& from); + BlockTimingResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BlockTimingResponse&& from) noexcept : BlockTimingResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -6628,10 +8632,11 @@ class BlockTimingResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -6639,46 +8644,54 @@ class BlockTimingResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BlockTimingResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t max_; ::uint64_t min_; double avg_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull BlockTimingResponse_class_data_; // ------------------------------------------------------------------- class BlockInfo final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockInfo) */ { public: inline BlockInfo() : BlockInfo(nullptr) {} - ~BlockInfo() override; + ~BlockInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BlockInfo* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BlockInfo)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR BlockInfo( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : BlockInfo(nullptr, ::std::move(from)) {} inline BlockInfo& operator=(const BlockInfo& from) { CopyFrom(from); return *this; } inline BlockInfo& operator=(BlockInfo&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -6690,42 +8703,35 @@ class BlockInfo final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const BlockInfo& default_instance() { - return *internal_default_instance(); - } - static inline const BlockInfo* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_BlockInfo_default_instance_); } - static constexpr int kIndexInFileMessages = 52; + static constexpr int kIndexInFileMessages = 59; friend void swap(BlockInfo& a, BlockInfo& b) { a.Swap(&b); } - inline void Swap(BlockInfo* other) { + inline void Swap(BlockInfo* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BlockInfo* other) { + void UnsafeArenaSwap(BlockInfo* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -6733,7 +8739,7 @@ class BlockInfo final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - BlockInfo* New(::google::protobuf::Arena* arena = nullptr) const final { + BlockInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -6742,41 +8748,63 @@ class BlockInfo final : public ::google::protobuf::Message void MergeFrom(const BlockInfo& from) { BlockInfo::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockInfo* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BlockInfo* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.BlockInfo"; } protected: - explicit BlockInfo(::google::protobuf::Arena* arena); - BlockInfo(::google::protobuf::Arena* arena, const BlockInfo& from); - BlockInfo(::google::protobuf::Arena* arena, BlockInfo&& from) noexcept + explicit BlockInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BlockInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockInfo& from); + BlockInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BlockInfo&& from) noexcept : BlockInfo(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -6787,34 +8815,32 @@ class BlockInfo final : public ::google::protobuf::Message }; // bytes hash = 2; void clear_hash() ; - const std::string& hash() const; - template + const ::std::string& hash() const; + template void set_hash(Arg_&& arg, Args_... args); - std::string* mutable_hash(); - PROTOBUF_NODISCARD std::string* release_hash(); - void set_allocated_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_hash(); + void set_allocated_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash( - const std::string& value); - std::string* _internal_mutable_hash(); + const ::std::string& _internal_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_hash(); public: // bytes next_block_hash = 3; void clear_next_block_hash() ; - const std::string& next_block_hash() const; - template + const ::std::string& next_block_hash() const; + template void set_next_block_hash(Arg_&& arg, Args_... args); - std::string* mutable_next_block_hash(); - PROTOBUF_NODISCARD std::string* release_next_block_hash(); - void set_allocated_next_block_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_next_block_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_next_block_hash(); + void set_allocated_next_block_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_next_block_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_block_hash( - const std::string& value); - std::string* _internal_mutable_next_block_hash(); + const ::std::string& _internal_next_block_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_next_block_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_next_block_hash(); public: // uint64 height = 1; @@ -6831,10 +8857,11 @@ class BlockInfo final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -6842,46 +8869,54 @@ class BlockInfo final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BlockInfo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr hash_; ::google::protobuf::internal::ArenaStringPtr next_block_hash_; ::uint64_t height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull BlockInfo_class_data_; // ------------------------------------------------------------------- class BlockGroupResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockGroupResponse) */ { public: inline BlockGroupResponse() : BlockGroupResponse(nullptr) {} - ~BlockGroupResponse() override; + ~BlockGroupResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BlockGroupResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BlockGroupResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR BlockGroupResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : BlockGroupResponse(nullptr, ::std::move(from)) {} inline BlockGroupResponse& operator=(const BlockGroupResponse& from) { CopyFrom(from); return *this; } inline BlockGroupResponse& operator=(BlockGroupResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -6893,42 +8928,35 @@ class BlockGroupResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const BlockGroupResponse& default_instance() { - return *internal_default_instance(); - } - static inline const BlockGroupResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_BlockGroupResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 19; + static constexpr int kIndexInFileMessages = 21; friend void swap(BlockGroupResponse& a, BlockGroupResponse& b) { a.Swap(&b); } - inline void Swap(BlockGroupResponse* other) { + inline void Swap(BlockGroupResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BlockGroupResponse* other) { + void UnsafeArenaSwap(BlockGroupResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -6936,7 +8964,7 @@ class BlockGroupResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - BlockGroupResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + BlockGroupResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -6945,41 +8973,63 @@ class BlockGroupResponse final : public ::google::protobuf::Message void MergeFrom(const BlockGroupResponse& from) { BlockGroupResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockGroupResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BlockGroupResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.BlockGroupResponse"; } protected: - explicit BlockGroupResponse(::google::protobuf::Arena* arena); - BlockGroupResponse(::google::protobuf::Arena* arena, const BlockGroupResponse& from); - BlockGroupResponse(::google::protobuf::Arena* arena, BlockGroupResponse&& from) noexcept + explicit BlockGroupResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BlockGroupResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockGroupResponse& from); + BlockGroupResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BlockGroupResponse&& from) noexcept : BlockGroupResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -6998,11 +9048,11 @@ class BlockGroupResponse final : public ::google::protobuf::Message void set_value(int index, double value); void add_value(double value); const ::google::protobuf::RepeatedField& value() const; - ::google::protobuf::RepeatedField* mutable_value(); + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_value(); private: const ::google::protobuf::RepeatedField& _internal_value() const; - ::google::protobuf::RepeatedField* _internal_mutable_value(); + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_value(); public: // .tari.rpc.CalcType calc_type = 2; @@ -7019,10 +9069,11 @@ class BlockGroupResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -7030,45 +9081,53 @@ class BlockGroupResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BlockGroupResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedField value_; int calc_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull BlockGroupResponse_class_data_; // ------------------------------------------------------------------- class BlockGroupRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockGroupRequest) */ { public: inline BlockGroupRequest() : BlockGroupRequest(nullptr) {} - ~BlockGroupRequest() override; + ~BlockGroupRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BlockGroupRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BlockGroupRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR BlockGroupRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : BlockGroupRequest(nullptr, ::std::move(from)) {} inline BlockGroupRequest& operator=(const BlockGroupRequest& from) { CopyFrom(from); return *this; } inline BlockGroupRequest& operator=(BlockGroupRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -7080,42 +9139,35 @@ class BlockGroupRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const BlockGroupRequest& default_instance() { - return *internal_default_instance(); - } - static inline const BlockGroupRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_BlockGroupRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 18; + static constexpr int kIndexInFileMessages = 20; friend void swap(BlockGroupRequest& a, BlockGroupRequest& b) { a.Swap(&b); } - inline void Swap(BlockGroupRequest* other) { + inline void Swap(BlockGroupRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BlockGroupRequest* other) { + void UnsafeArenaSwap(BlockGroupRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -7123,7 +9175,7 @@ class BlockGroupRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - BlockGroupRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + BlockGroupRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -7132,41 +9184,63 @@ class BlockGroupRequest final : public ::google::protobuf::Message void MergeFrom(const BlockGroupRequest& from) { BlockGroupRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockGroupRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BlockGroupRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.BlockGroupRequest"; } protected: - explicit BlockGroupRequest(::google::protobuf::Arena* arena); - BlockGroupRequest(::google::protobuf::Arena* arena, const BlockGroupRequest& from); - BlockGroupRequest(::google::protobuf::Arena* arena, BlockGroupRequest&& from) noexcept + explicit BlockGroupRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BlockGroupRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockGroupRequest& from); + BlockGroupRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BlockGroupRequest&& from) noexcept : BlockGroupRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -7220,10 +9294,11 @@ class BlockGroupRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -7231,47 +9306,55 @@ class BlockGroupRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BlockGroupRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t from_tip_; ::uint64_t start_height_; ::uint64_t end_height_; int calc_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull BlockGroupRequest_class_data_; // ------------------------------------------------------------------- class BlockBlobRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockBlobRequest) */ { public: inline BlockBlobRequest() : BlockBlobRequest(nullptr) {} - ~BlockBlobRequest() override; + ~BlockBlobRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BlockBlobRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BlockBlobRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR BlockBlobRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : BlockBlobRequest(nullptr, ::std::move(from)) {} inline BlockBlobRequest& operator=(const BlockBlobRequest& from) { CopyFrom(from); return *this; } inline BlockBlobRequest& operator=(BlockBlobRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -7283,42 +9366,35 @@ class BlockBlobRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const BlockBlobRequest& default_instance() { - return *internal_default_instance(); - } - static inline const BlockBlobRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_BlockBlobRequest_default_instance_); } static constexpr int kIndexInFileMessages = 7; friend void swap(BlockBlobRequest& a, BlockBlobRequest& b) { a.Swap(&b); } - inline void Swap(BlockBlobRequest* other) { + inline void Swap(BlockBlobRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BlockBlobRequest* other) { + void UnsafeArenaSwap(BlockBlobRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -7326,7 +9402,7 @@ class BlockBlobRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - BlockBlobRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + BlockBlobRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -7335,41 +9411,63 @@ class BlockBlobRequest final : public ::google::protobuf::Message void MergeFrom(const BlockBlobRequest& from) { BlockBlobRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockBlobRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BlockBlobRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.BlockBlobRequest"; } protected: - explicit BlockBlobRequest(::google::protobuf::Arena* arena); - BlockBlobRequest(::google::protobuf::Arena* arena, const BlockBlobRequest& from); - BlockBlobRequest(::google::protobuf::Arena* arena, BlockBlobRequest&& from) noexcept + explicit BlockBlobRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BlockBlobRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockBlobRequest& from); + BlockBlobRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BlockBlobRequest&& from) noexcept : BlockBlobRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -7379,44 +9477,43 @@ class BlockBlobRequest final : public ::google::protobuf::Message }; // bytes header_blob = 1; void clear_header_blob() ; - const std::string& header_blob() const; - template + const ::std::string& header_blob() const; + template void set_header_blob(Arg_&& arg, Args_... args); - std::string* mutable_header_blob(); - PROTOBUF_NODISCARD std::string* release_header_blob(); - void set_allocated_header_blob(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_header_blob(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_header_blob(); + void set_allocated_header_blob(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_header_blob() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_header_blob( - const std::string& value); - std::string* _internal_mutable_header_blob(); + const ::std::string& _internal_header_blob() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_header_blob(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_header_blob(); public: // bytes body_blob = 2; void clear_body_blob() ; - const std::string& body_blob() const; - template + const ::std::string& body_blob() const; + template void set_body_blob(Arg_&& arg, Args_... args); - std::string* mutable_body_blob(); - PROTOBUF_NODISCARD std::string* release_body_blob(); - void set_allocated_body_blob(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_body_blob(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_body_blob(); + void set_allocated_body_blob(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_body_blob() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_body_blob( - const std::string& value); - std::string* _internal_mutable_body_blob(); + const ::std::string& _internal_body_blob() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_body_blob(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_body_blob(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -7424,45 +9521,53 @@ class BlockBlobRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BlockBlobRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr header_blob_; ::google::protobuf::internal::ArenaStringPtr body_blob_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull BlockBlobRequest_class_data_; // ------------------------------------------------------------------- -class TransactionStateRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionStateRequest) */ { +class BaseNodeGetVersionResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.BaseNodeGetVersionResponse) */ { public: - inline TransactionStateRequest() : TransactionStateRequest(nullptr) {} - ~TransactionStateRequest() override; - template - explicit PROTOBUF_CONSTEXPR TransactionStateRequest( - ::google::protobuf::internal::ConstantInitialized); + inline BaseNodeGetVersionResponse() : BaseNodeGetVersionResponse(nullptr) {} + ~BaseNodeGetVersionResponse() PROTOBUF_FINAL; - inline TransactionStateRequest(const TransactionStateRequest& from) : TransactionStateRequest(nullptr, from) {} - inline TransactionStateRequest(TransactionStateRequest&& from) noexcept - : TransactionStateRequest(nullptr, std::move(from)) {} - inline TransactionStateRequest& operator=(const TransactionStateRequest& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BaseNodeGetVersionResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BaseNodeGetVersionResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR BaseNodeGetVersionResponse(::google::protobuf::internal::ConstantInitialized); + + inline BaseNodeGetVersionResponse(const BaseNodeGetVersionResponse& from) : BaseNodeGetVersionResponse(nullptr, from) {} + inline BaseNodeGetVersionResponse(BaseNodeGetVersionResponse&& from) noexcept + : BaseNodeGetVersionResponse(nullptr, ::std::move(from)) {} + inline BaseNodeGetVersionResponse& operator=(const BaseNodeGetVersionResponse& from) { CopyFrom(from); return *this; } - inline TransactionStateRequest& operator=(TransactionStateRequest&& from) noexcept { + inline BaseNodeGetVersionResponse& operator=(BaseNodeGetVersionResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -7474,42 +9579,35 @@ class TransactionStateRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const TransactionStateRequest& default_instance() { - return *internal_default_instance(); + static const BaseNodeGetVersionResponse& default_instance() { + return *reinterpret_cast( + &_BaseNodeGetVersionResponse_default_instance_); } - 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); } - inline void Swap(TransactionStateRequest* other) { + static constexpr int kIndexInFileMessages = 19; + friend void swap(BaseNodeGetVersionResponse& a, BaseNodeGetVersionResponse& b) { a.Swap(&b); } + inline void Swap(BaseNodeGetVersionResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransactionStateRequest* other) { + void UnsafeArenaSwap(BaseNodeGetVersionResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -7517,7 +9615,215 @@ class TransactionStateRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - TransactionStateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + BaseNodeGetVersionResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const BaseNodeGetVersionResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const BaseNodeGetVersionResponse& from) { BaseNodeGetVersionResponse::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BaseNodeGetVersionResponse* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.BaseNodeGetVersionResponse"; } + + protected: + explicit BaseNodeGetVersionResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BaseNodeGetVersionResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BaseNodeGetVersionResponse& from); + BaseNodeGetVersionResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BaseNodeGetVersionResponse&& from) noexcept + : BaseNodeGetVersionResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kVersionFieldNumber = 1, + kNetworkFieldNumber = 2, + }; + // string version = 1; + void clear_version() ; + const ::std::string& version() const; + template + void set_version(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_version(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_version(); + void set_allocated_version(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_version(); + + public: + // uint32 network = 2; + void clear_network() ; + ::uint32_t network() const; + void set_network(::uint32_t value); + + private: + ::uint32_t _internal_network() const; + void _internal_set_network(::uint32_t value); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.BaseNodeGetVersionResponse) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 51, + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BaseNodeGetVersionResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::uint32_t network_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_base_5fnode_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull BaseNodeGetVersionResponse_class_data_; +// ------------------------------------------------------------------- + +class TransactionStateRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionStateRequest) */ { + public: + inline TransactionStateRequest() : TransactionStateRequest(nullptr) {} + ~TransactionStateRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransactionStateRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransactionStateRequest)); + } +#endif + + 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; + } + inline TransactionStateRequest& operator=(TransactionStateRequest&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const TransactionStateRequest& default_instance() { + return *reinterpret_cast( + &_TransactionStateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 45; + friend void swap(TransactionStateRequest& a, TransactionStateRequest& b) { a.Swap(&b); } + inline void Swap(TransactionStateRequest* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TransactionStateRequest* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TransactionStateRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -7526,41 +9832,63 @@ class TransactionStateRequest final : public ::google::protobuf::Message void MergeFrom(const TransactionStateRequest& from) { TransactionStateRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TransactionStateRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TransactionStateRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionStateRequest"; } protected: - explicit TransactionStateRequest(::google::protobuf::Arena* arena); - TransactionStateRequest(::google::protobuf::Arena* arena, const TransactionStateRequest& from); - TransactionStateRequest(::google::protobuf::Arena* arena, TransactionStateRequest&& from) noexcept + explicit TransactionStateRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + TransactionStateRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TransactionStateRequest& from); + TransactionStateRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, TransactionStateRequest&& from) noexcept : TransactionStateRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -7571,25 +9899,26 @@ class TransactionStateRequest final : public ::google::protobuf::Message bool has_excess_sig() const; void clear_excess_sig() ; const ::tari::rpc::Signature& excess_sig() const; - PROTOBUF_NODISCARD ::tari::rpc::Signature* release_excess_sig(); - ::tari::rpc::Signature* mutable_excess_sig(); - void set_allocated_excess_sig(::tari::rpc::Signature* value); - void unsafe_arena_set_allocated_excess_sig(::tari::rpc::Signature* value); - ::tari::rpc::Signature* unsafe_arena_release_excess_sig(); + [[nodiscard]] ::tari::rpc::Signature* PROTOBUF_NULLABLE release_excess_sig(); + ::tari::rpc::Signature* PROTOBUF_NONNULL mutable_excess_sig(); + void set_allocated_excess_sig(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_excess_sig(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + ::tari::rpc::Signature* PROTOBUF_NULLABLE unsafe_arena_release_excess_sig(); private: const ::tari::rpc::Signature& _internal_excess_sig() const; - ::tari::rpc::Signature* _internal_mutable_excess_sig(); + ::tari::rpc::Signature* PROTOBUF_NONNULL _internal_mutable_excess_sig(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -7597,45 +9926,52 @@ class TransactionStateRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const TransactionStateRequest& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Signature* excess_sig_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::Signature* PROTOBUF_NULLABLE excess_sig_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull TransactionStateRequest_class_data_; // ------------------------------------------------------------------- class TipInfoResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.TipInfoResponse) */ { public: inline TipInfoResponse() : TipInfoResponse(nullptr) {} - ~TipInfoResponse() override; + ~TipInfoResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TipInfoResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TipInfoResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR TipInfoResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : TipInfoResponse(nullptr, ::std::move(from)) {} inline TipInfoResponse& operator=(const TipInfoResponse& from) { CopyFrom(from); return *this; } inline TipInfoResponse& operator=(TipInfoResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -7647,42 +9983,35 @@ class TipInfoResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const TipInfoResponse& default_instance() { - return *internal_default_instance(); - } - static inline const TipInfoResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_TipInfoResponse_default_instance_); } static constexpr int kIndexInFileMessages = 8; friend void swap(TipInfoResponse& a, TipInfoResponse& b) { a.Swap(&b); } - inline void Swap(TipInfoResponse* other) { + inline void Swap(TipInfoResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TipInfoResponse* other) { + void UnsafeArenaSwap(TipInfoResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -7690,7 +10019,7 @@ class TipInfoResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - TipInfoResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + TipInfoResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -7699,41 +10028,63 @@ class TipInfoResponse final : public ::google::protobuf::Message void MergeFrom(const TipInfoResponse& from) { TipInfoResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TipInfoResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TipInfoResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.TipInfoResponse"; } protected: - explicit TipInfoResponse(::google::protobuf::Arena* arena); - TipInfoResponse(::google::protobuf::Arena* arena, const TipInfoResponse& from); - TipInfoResponse(::google::protobuf::Arena* arena, TipInfoResponse&& from) noexcept + explicit TipInfoResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + TipInfoResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TipInfoResponse& from); + TipInfoResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, TipInfoResponse&& from) noexcept : TipInfoResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -7747,15 +10098,15 @@ class TipInfoResponse final : public ::google::protobuf::Message bool has_metadata() const; void clear_metadata() ; const ::tari::rpc::MetaData& metadata() const; - PROTOBUF_NODISCARD ::tari::rpc::MetaData* release_metadata(); - ::tari::rpc::MetaData* mutable_metadata(); - void set_allocated_metadata(::tari::rpc::MetaData* value); - void unsafe_arena_set_allocated_metadata(::tari::rpc::MetaData* value); - ::tari::rpc::MetaData* unsafe_arena_release_metadata(); + [[nodiscard]] ::tari::rpc::MetaData* PROTOBUF_NULLABLE release_metadata(); + ::tari::rpc::MetaData* PROTOBUF_NONNULL mutable_metadata(); + void set_allocated_metadata(::tari::rpc::MetaData* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_metadata(::tari::rpc::MetaData* PROTOBUF_NULLABLE value); + ::tari::rpc::MetaData* PROTOBUF_NULLABLE unsafe_arena_release_metadata(); private: const ::tari::rpc::MetaData& _internal_metadata() const; - ::tari::rpc::MetaData* _internal_mutable_metadata(); + ::tari::rpc::MetaData* PROTOBUF_NONNULL _internal_mutable_metadata(); public: // .tari.rpc.BaseNodeState base_node_state = 3; @@ -7792,10 +10143,11 @@ class TipInfoResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 4, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -7803,15 +10155,17 @@ class TipInfoResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const TipInfoResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::MetaData* metadata_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::MetaData* PROTOBUF_NULLABLE metadata_; int base_node_state_; bool initial_sync_achieved_; bool failed_checkpoints_; @@ -7820,31 +10174,36 @@ class TipInfoResponse final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull TipInfoResponse_class_data_; // ------------------------------------------------------------------- class SearchKernelsRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SearchKernelsRequest) */ { public: inline SearchKernelsRequest() : SearchKernelsRequest(nullptr) {} - ~SearchKernelsRequest() override; + ~SearchKernelsRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SearchKernelsRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SearchKernelsRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR SearchKernelsRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : SearchKernelsRequest(nullptr, ::std::move(from)) {} inline SearchKernelsRequest& operator=(const SearchKernelsRequest& from) { CopyFrom(from); return *this; } inline SearchKernelsRequest& operator=(SearchKernelsRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -7856,42 +10215,35 @@ class SearchKernelsRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const SearchKernelsRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SearchKernelsRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_SearchKernelsRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 33; + static constexpr int kIndexInFileMessages = 35; friend void swap(SearchKernelsRequest& a, SearchKernelsRequest& b) { a.Swap(&b); } - inline void Swap(SearchKernelsRequest* other) { + inline void Swap(SearchKernelsRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SearchKernelsRequest* other) { + void UnsafeArenaSwap(SearchKernelsRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -7899,7 +10251,7 @@ class SearchKernelsRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - SearchKernelsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + SearchKernelsRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -7908,41 +10260,63 @@ class SearchKernelsRequest final : public ::google::protobuf::Message void MergeFrom(const SearchKernelsRequest& from) { SearchKernelsRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SearchKernelsRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SearchKernelsRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.SearchKernelsRequest"; } protected: - explicit SearchKernelsRequest(::google::protobuf::Arena* arena); - SearchKernelsRequest(::google::protobuf::Arena* arena, const SearchKernelsRequest& from); - SearchKernelsRequest(::google::protobuf::Arena* arena, SearchKernelsRequest&& from) noexcept + explicit SearchKernelsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SearchKernelsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SearchKernelsRequest& from); + SearchKernelsRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SearchKernelsRequest&& from) noexcept : SearchKernelsRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -7956,24 +10330,25 @@ class SearchKernelsRequest final : public ::google::protobuf::Message public: void clear_signatures() ; - ::tari::rpc::Signature* mutable_signatures(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* mutable_signatures(); + ::tari::rpc::Signature* PROTOBUF_NONNULL mutable_signatures(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* PROTOBUF_NONNULL mutable_signatures(); private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>& _internal_signatures() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* _internal_mutable_signatures(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* PROTOBUF_NONNULL _internal_mutable_signatures(); public: const ::tari::rpc::Signature& signatures(int index) const; - ::tari::rpc::Signature* add_signatures(); + ::tari::rpc::Signature* PROTOBUF_NONNULL add_signatures(); 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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -7981,44 +10356,51 @@ class SearchKernelsRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SearchKernelsRequest& from_msg); ::google::protobuf::RepeatedPtrField< ::tari::rpc::Signature > signatures_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull SearchKernelsRequest_class_data_; // ------------------------------------------------------------------- -class NewBlockTemplateRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplateRequest) */ { +class ReadinessStatus final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ReadinessStatus) */ { public: - inline NewBlockTemplateRequest() : NewBlockTemplateRequest(nullptr) {} - ~NewBlockTemplateRequest() override; - template - explicit PROTOBUF_CONSTEXPR NewBlockTemplateRequest( - ::google::protobuf::internal::ConstantInitialized); + inline ReadinessStatus() : ReadinessStatus(nullptr) {} + ~ReadinessStatus() PROTOBUF_FINAL; - inline NewBlockTemplateRequest(const NewBlockTemplateRequest& from) : NewBlockTemplateRequest(nullptr, from) {} - inline NewBlockTemplateRequest(NewBlockTemplateRequest&& from) noexcept - : NewBlockTemplateRequest(nullptr, std::move(from)) {} - inline NewBlockTemplateRequest& operator=(const NewBlockTemplateRequest& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ReadinessStatus* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ReadinessStatus)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ReadinessStatus(::google::protobuf::internal::ConstantInitialized); + + inline ReadinessStatus(const ReadinessStatus& from) : ReadinessStatus(nullptr, from) {} + inline ReadinessStatus(ReadinessStatus&& from) noexcept + : ReadinessStatus(nullptr, ::std::move(from)) {} + inline ReadinessStatus& operator=(const ReadinessStatus& from) { CopyFrom(from); return *this; } - inline NewBlockTemplateRequest& operator=(NewBlockTemplateRequest&& from) noexcept { + inline ReadinessStatus& operator=(ReadinessStatus&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -8030,42 +10412,40 @@ class NewBlockTemplateRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const NewBlockTemplateRequest& default_instance() { - return *internal_default_instance(); + static const ReadinessStatus& default_instance() { + return *reinterpret_cast( + &_ReadinessStatus_default_instance_); } - 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); } - inline void Swap(NewBlockTemplateRequest* other) { + enum StatusCase { + kState = 1, + kMigration = 2, + STATUS_NOT_SET = 0, + }; + static constexpr int kIndexInFileMessages = 9; + friend void swap(ReadinessStatus& a, ReadinessStatus& b) { a.Swap(&b); } + inline void Swap(ReadinessStatus* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NewBlockTemplateRequest* other) { + void UnsafeArenaSwap(ReadinessStatus* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8073,7 +10453,270 @@ class NewBlockTemplateRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - NewBlockTemplateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + ReadinessStatus* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ReadinessStatus& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ReadinessStatus& from) { ReadinessStatus::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ReadinessStatus* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.ReadinessStatus"; } + + protected: + explicit ReadinessStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ReadinessStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ReadinessStatus& from); + ReadinessStatus( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ReadinessStatus&& from) noexcept + : ReadinessStatus(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + using State = ReadinessStatus_State; + static constexpr State NOT_READY = ReadinessStatus_State_NOT_READY; + static constexpr State STARTING_UP = ReadinessStatus_State_STARTING_UP; + static constexpr State DATABASE_INITIALIZING = ReadinessStatus_State_DATABASE_INITIALIZING; + static constexpr State RECOVERING_PREPARING = ReadinessStatus_State_RECOVERING_PREPARING; + static constexpr State RECOVERING_REBUILDING = ReadinessStatus_State_RECOVERING_REBUILDING; + static constexpr State RECOVERING_REBUILDING_DATABASE = ReadinessStatus_State_RECOVERING_REBUILDING_DATABASE; + static constexpr State BUILDING_CONTEXT_BLOCKCHAIN = ReadinessStatus_State_BUILDING_CONTEXT_BLOCKCHAIN; + static constexpr State BUILDING_CONTEXT_BOOTSTRAP = ReadinessStatus_State_BUILDING_CONTEXT_BOOTSTRAP; + static constexpr State READY = ReadinessStatus_State_READY; + static inline bool State_IsValid(int value) { + return ReadinessStatus_State_IsValid(value); + } + static constexpr State State_MIN = ReadinessStatus_State_State_MIN; + static constexpr State State_MAX = ReadinessStatus_State_State_MAX; + static constexpr int State_ARRAYSIZE = ReadinessStatus_State_State_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL State_descriptor() { + return ReadinessStatus_State_descriptor(); + } + template + static inline const ::std::string& State_Name(T value) { + return ReadinessStatus_State_Name(value); + } + static inline bool State_Parse( + ::absl::string_view name, State* PROTOBUF_NONNULL value) { + return ReadinessStatus_State_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kTimestampFieldNumber = 6, + kStateFieldNumber = 1, + kMigrationFieldNumber = 2, + }; + // uint64 timestamp = 6; + void clear_timestamp() ; + ::uint64_t timestamp() const; + void set_timestamp(::uint64_t value); + + private: + ::uint64_t _internal_timestamp() const; + void _internal_set_timestamp(::uint64_t value); + + public: + // .tari.rpc.ReadinessStatus.State state = 1; + bool has_state() const; + void clear_state() ; + ::tari::rpc::ReadinessStatus_State state() const; + void set_state(::tari::rpc::ReadinessStatus_State value); + + private: + ::tari::rpc::ReadinessStatus_State _internal_state() const; + void _internal_set_state(::tari::rpc::ReadinessStatus_State value); + + public: + // .tari.rpc.MigrationProgress migration = 2; + bool has_migration() const; + private: + bool _internal_has_migration() const; + + public: + void clear_migration() ; + const ::tari::rpc::MigrationProgress& migration() const; + [[nodiscard]] ::tari::rpc::MigrationProgress* PROTOBUF_NULLABLE release_migration(); + ::tari::rpc::MigrationProgress* PROTOBUF_NONNULL mutable_migration(); + void set_allocated_migration(::tari::rpc::MigrationProgress* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_migration(::tari::rpc::MigrationProgress* PROTOBUF_NULLABLE value); + ::tari::rpc::MigrationProgress* PROTOBUF_NULLABLE unsafe_arena_release_migration(); + + private: + const ::tari::rpc::MigrationProgress& _internal_migration() const; + ::tari::rpc::MigrationProgress* PROTOBUF_NONNULL _internal_mutable_migration(); + + public: + void clear_status(); + StatusCase status_case() const; + // @@protoc_insertion_point(class_scope:tari.rpc.ReadinessStatus) + private: + class _Internal; + void set_has_state(); + void set_has_migration(); + inline bool has_status() const; + inline void clear_has_status(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 3, + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ReadinessStatus& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::uint64_t timestamp_; + union StatusUnion { + constexpr StatusUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + int state_; + ::tari::rpc::MigrationProgress* PROTOBUF_NULLABLE migration_; + } status_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_base_5fnode_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull ReadinessStatus_class_data_; +// ------------------------------------------------------------------- + +class NewBlockTemplateRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplateRequest) */ { + public: + inline NewBlockTemplateRequest() : NewBlockTemplateRequest(nullptr) {} + ~NewBlockTemplateRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(NewBlockTemplateRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(NewBlockTemplateRequest)); + } +#endif + + 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; + } + inline NewBlockTemplateRequest& operator=(NewBlockTemplateRequest&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const NewBlockTemplateRequest& default_instance() { + return *reinterpret_cast( + &_NewBlockTemplateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 12; + friend void swap(NewBlockTemplateRequest& a, NewBlockTemplateRequest& b) { a.Swap(&b); } + inline void Swap(NewBlockTemplateRequest* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(NewBlockTemplateRequest* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + NewBlockTemplateRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -8082,41 +10725,63 @@ class NewBlockTemplateRequest final : public ::google::protobuf::Message void MergeFrom(const NewBlockTemplateRequest& from) { NewBlockTemplateRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NewBlockTemplateRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(NewBlockTemplateRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockTemplateRequest"; } protected: - explicit NewBlockTemplateRequest(::google::protobuf::Arena* arena); - NewBlockTemplateRequest(::google::protobuf::Arena* arena, const NewBlockTemplateRequest& from); - NewBlockTemplateRequest(::google::protobuf::Arena* arena, NewBlockTemplateRequest&& from) noexcept + explicit NewBlockTemplateRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + NewBlockTemplateRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NewBlockTemplateRequest& from); + NewBlockTemplateRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, NewBlockTemplateRequest&& from) noexcept : NewBlockTemplateRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -8128,15 +10793,15 @@ class NewBlockTemplateRequest final : public ::google::protobuf::Message bool has_algo() const; void clear_algo() ; const ::tari::rpc::PowAlgo& algo() const; - PROTOBUF_NODISCARD ::tari::rpc::PowAlgo* release_algo(); - ::tari::rpc::PowAlgo* mutable_algo(); - void set_allocated_algo(::tari::rpc::PowAlgo* value); - void unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* value); - ::tari::rpc::PowAlgo* unsafe_arena_release_algo(); + [[nodiscard]] ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE release_algo(); + ::tari::rpc::PowAlgo* PROTOBUF_NONNULL mutable_algo(); + void set_allocated_algo(::tari::rpc::PowAlgo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* PROTOBUF_NULLABLE value); + ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE unsafe_arena_release_algo(); private: const ::tari::rpc::PowAlgo& _internal_algo() const; - ::tari::rpc::PowAlgo* _internal_mutable_algo(); + ::tari::rpc::PowAlgo* PROTOBUF_NONNULL _internal_mutable_algo(); public: // uint64 max_weight = 2; @@ -8153,10 +10818,11 @@ class NewBlockTemplateRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -8164,46 +10830,53 @@ class NewBlockTemplateRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const NewBlockTemplateRequest& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::PowAlgo* algo_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE algo_; ::uint64_t max_weight_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull NewBlockTemplateRequest_class_data_; // ------------------------------------------------------------------- class MinerData final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.MinerData) */ { public: inline MinerData() : MinerData(nullptr) {} - ~MinerData() override; + ~MinerData() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MinerData* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MinerData)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR MinerData( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : MinerData(nullptr, ::std::move(from)) {} inline MinerData& operator=(const MinerData& from) { CopyFrom(from); return *this; } inline MinerData& operator=(MinerData&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -8215,42 +10888,35 @@ class MinerData final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const MinerData& default_instance() { - return *internal_default_instance(); - } - static inline const MinerData* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_MinerData_default_instance_); } - static constexpr int kIndexInFileMessages = 32; + static constexpr int kIndexInFileMessages = 34; friend void swap(MinerData& a, MinerData& b) { a.Swap(&b); } - inline void Swap(MinerData* other) { + inline void Swap(MinerData* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MinerData* other) { + void UnsafeArenaSwap(MinerData* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8258,7 +10924,7 @@ class MinerData final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - MinerData* New(::google::protobuf::Arena* arena = nullptr) const final { + MinerData* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -8267,41 +10933,63 @@ class MinerData final : public ::google::protobuf::Message void MergeFrom(const MinerData& from) { MinerData::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(MinerData* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(MinerData* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.MinerData"; } protected: - explicit MinerData(::google::protobuf::Arena* arena); - MinerData(::google::protobuf::Arena* arena, const MinerData& from); - MinerData(::google::protobuf::Arena* arena, MinerData&& from) noexcept + explicit MinerData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + MinerData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MinerData& from); + MinerData( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MinerData&& from) noexcept : MinerData(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -8315,15 +11003,15 @@ class MinerData final : public ::google::protobuf::Message bool has_algo() const; void clear_algo() ; const ::tari::rpc::PowAlgo& algo() const; - PROTOBUF_NODISCARD ::tari::rpc::PowAlgo* release_algo(); - ::tari::rpc::PowAlgo* mutable_algo(); - void set_allocated_algo(::tari::rpc::PowAlgo* value); - void unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* value); - ::tari::rpc::PowAlgo* unsafe_arena_release_algo(); + [[nodiscard]] ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE release_algo(); + ::tari::rpc::PowAlgo* PROTOBUF_NONNULL mutable_algo(); + void set_allocated_algo(::tari::rpc::PowAlgo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* PROTOBUF_NULLABLE value); + ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE unsafe_arena_release_algo(); private: const ::tari::rpc::PowAlgo& _internal_algo() const; - ::tari::rpc::PowAlgo* _internal_mutable_algo(); + ::tari::rpc::PowAlgo* PROTOBUF_NONNULL _internal_mutable_algo(); public: // uint64 target_difficulty = 2; @@ -8360,10 +11048,11 @@ class MinerData final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 4, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<3, 4, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -8371,15 +11060,17 @@ class MinerData final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const MinerData& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::PowAlgo* algo_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE algo_; ::uint64_t target_difficulty_; ::uint64_t reward_; ::uint64_t total_fees_; @@ -8388,31 +11079,36 @@ class MinerData final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull MinerData_class_data_; // ------------------------------------------------------------------- class GetNewBlockTemplateWithCoinbasesRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest) */ { public: inline GetNewBlockTemplateWithCoinbasesRequest() : GetNewBlockTemplateWithCoinbasesRequest(nullptr) {} - ~GetNewBlockTemplateWithCoinbasesRequest() override; + ~GetNewBlockTemplateWithCoinbasesRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetNewBlockTemplateWithCoinbasesRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetNewBlockTemplateWithCoinbasesRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetNewBlockTemplateWithCoinbasesRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetNewBlockTemplateWithCoinbasesRequest(nullptr, ::std::move(from)) {} inline GetNewBlockTemplateWithCoinbasesRequest& operator=(const GetNewBlockTemplateWithCoinbasesRequest& from) { CopyFrom(from); return *this; } inline GetNewBlockTemplateWithCoinbasesRequest& operator=(GetNewBlockTemplateWithCoinbasesRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -8424,42 +11120,35 @@ class GetNewBlockTemplateWithCoinbasesRequest final : public ::google::protobuf: ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetNewBlockTemplateWithCoinbasesRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetNewBlockTemplateWithCoinbasesRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetNewBlockTemplateWithCoinbasesRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 11; + static constexpr int kIndexInFileMessages = 13; friend void swap(GetNewBlockTemplateWithCoinbasesRequest& a, GetNewBlockTemplateWithCoinbasesRequest& b) { a.Swap(&b); } - inline void Swap(GetNewBlockTemplateWithCoinbasesRequest* other) { + inline void Swap(GetNewBlockTemplateWithCoinbasesRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetNewBlockTemplateWithCoinbasesRequest* other) { + void UnsafeArenaSwap(GetNewBlockTemplateWithCoinbasesRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8467,7 +11156,7 @@ class GetNewBlockTemplateWithCoinbasesRequest final : public ::google::protobuf: // implements Message ---------------------------------------------- - GetNewBlockTemplateWithCoinbasesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetNewBlockTemplateWithCoinbasesRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -8476,41 +11165,63 @@ class GetNewBlockTemplateWithCoinbasesRequest final : public ::google::protobuf: void MergeFrom(const GetNewBlockTemplateWithCoinbasesRequest& from) { GetNewBlockTemplateWithCoinbasesRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetNewBlockTemplateWithCoinbasesRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetNewBlockTemplateWithCoinbasesRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetNewBlockTemplateWithCoinbasesRequest"; } protected: - explicit GetNewBlockTemplateWithCoinbasesRequest(::google::protobuf::Arena* arena); - GetNewBlockTemplateWithCoinbasesRequest(::google::protobuf::Arena* arena, const GetNewBlockTemplateWithCoinbasesRequest& from); - GetNewBlockTemplateWithCoinbasesRequest(::google::protobuf::Arena* arena, GetNewBlockTemplateWithCoinbasesRequest&& from) noexcept + explicit GetNewBlockTemplateWithCoinbasesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetNewBlockTemplateWithCoinbasesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetNewBlockTemplateWithCoinbasesRequest& from); + GetNewBlockTemplateWithCoinbasesRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetNewBlockTemplateWithCoinbasesRequest&& from) noexcept : GetNewBlockTemplateWithCoinbasesRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -8526,29 +11237,29 @@ class GetNewBlockTemplateWithCoinbasesRequest final : public ::google::protobuf: public: void clear_coinbases() ; - ::tari::rpc::NewBlockCoinbase* mutable_coinbases(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* mutable_coinbases(); + ::tari::rpc::NewBlockCoinbase* PROTOBUF_NONNULL mutable_coinbases(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* PROTOBUF_NONNULL mutable_coinbases(); private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>& _internal_coinbases() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* _internal_mutable_coinbases(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* PROTOBUF_NONNULL _internal_mutable_coinbases(); public: const ::tari::rpc::NewBlockCoinbase& coinbases(int index) const; - ::tari::rpc::NewBlockCoinbase* add_coinbases(); + ::tari::rpc::NewBlockCoinbase* PROTOBUF_NONNULL add_coinbases(); const ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>& coinbases() const; // .tari.rpc.PowAlgo algo = 1; bool has_algo() const; void clear_algo() ; const ::tari::rpc::PowAlgo& algo() const; - PROTOBUF_NODISCARD ::tari::rpc::PowAlgo* release_algo(); - ::tari::rpc::PowAlgo* mutable_algo(); - void set_allocated_algo(::tari::rpc::PowAlgo* value); - void unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* value); - ::tari::rpc::PowAlgo* unsafe_arena_release_algo(); + [[nodiscard]] ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE release_algo(); + ::tari::rpc::PowAlgo* PROTOBUF_NONNULL mutable_algo(); + void set_allocated_algo(::tari::rpc::PowAlgo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* PROTOBUF_NULLABLE value); + ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE unsafe_arena_release_algo(); private: const ::tari::rpc::PowAlgo& _internal_algo() const; - ::tari::rpc::PowAlgo* _internal_mutable_algo(); + ::tari::rpc::PowAlgo* PROTOBUF_NONNULL _internal_mutable_algo(); public: // uint64 max_weight = 2; @@ -8565,10 +11276,11 @@ class GetNewBlockTemplateWithCoinbasesRequest final : public ::google::protobuf: private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 2, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -8576,47 +11288,54 @@ class GetNewBlockTemplateWithCoinbasesRequest final : public ::google::protobuf: 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetNewBlockTemplateWithCoinbasesRequest& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::tari::rpc::NewBlockCoinbase > coinbases_; - ::tari::rpc::PowAlgo* algo_; + ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE algo_; ::uint64_t max_weight_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetNewBlockTemplateWithCoinbasesRequest_class_data_; // ------------------------------------------------------------------- -class GetNetworkStateResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetNetworkStateResponse) */ { +class ValidatorNodeChangeAdd final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ValidatorNodeChangeAdd) */ { public: - inline GetNetworkStateResponse() : GetNetworkStateResponse(nullptr) {} - ~GetNetworkStateResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetNetworkStateResponse( - ::google::protobuf::internal::ConstantInitialized); + inline ValidatorNodeChangeAdd() : ValidatorNodeChangeAdd(nullptr) {} + ~ValidatorNodeChangeAdd() PROTOBUF_FINAL; - inline GetNetworkStateResponse(const GetNetworkStateResponse& from) : GetNetworkStateResponse(nullptr, from) {} - inline GetNetworkStateResponse(GetNetworkStateResponse&& from) noexcept - : GetNetworkStateResponse(nullptr, std::move(from)) {} - inline GetNetworkStateResponse& operator=(const GetNetworkStateResponse& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ValidatorNodeChangeAdd* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ValidatorNodeChangeAdd)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ValidatorNodeChangeAdd(::google::protobuf::internal::ConstantInitialized); + + inline ValidatorNodeChangeAdd(const ValidatorNodeChangeAdd& from) : ValidatorNodeChangeAdd(nullptr, from) {} + inline ValidatorNodeChangeAdd(ValidatorNodeChangeAdd&& from) noexcept + : ValidatorNodeChangeAdd(nullptr, ::std::move(from)) {} + inline ValidatorNodeChangeAdd& operator=(const ValidatorNodeChangeAdd& from) { CopyFrom(from); return *this; } - inline GetNetworkStateResponse& operator=(GetNetworkStateResponse&& from) noexcept { + inline ValidatorNodeChangeAdd& operator=(ValidatorNodeChangeAdd&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -8628,42 +11347,35 @@ class GetNetworkStateResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetNetworkStateResponse& default_instance() { - return *internal_default_instance(); + static const ValidatorNodeChangeAdd& default_instance() { + return *reinterpret_cast( + &_ValidatorNodeChangeAdd_default_instance_); } - static inline const GetNetworkStateResponse* internal_default_instance() { - return reinterpret_cast( - &_GetNetworkStateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 56; - friend void swap(GetNetworkStateResponse& a, GetNetworkStateResponse& b) { a.Swap(&b); } - inline void Swap(GetNetworkStateResponse* other) { + static constexpr int kIndexInFileMessages = 52; + friend void swap(ValidatorNodeChangeAdd& a, ValidatorNodeChangeAdd& b) { a.Swap(&b); } + inline void Swap(ValidatorNodeChangeAdd* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetNetworkStateResponse* other) { + void UnsafeArenaSwap(ValidatorNodeChangeAdd* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8671,7 +11383,244 @@ class GetNetworkStateResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetNetworkStateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + ValidatorNodeChangeAdd* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ValidatorNodeChangeAdd& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ValidatorNodeChangeAdd& from) { ValidatorNodeChangeAdd::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ValidatorNodeChangeAdd* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.ValidatorNodeChangeAdd"; } + + protected: + explicit ValidatorNodeChangeAdd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ValidatorNodeChangeAdd(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ValidatorNodeChangeAdd& from); + ValidatorNodeChangeAdd( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ValidatorNodeChangeAdd&& from) noexcept + : ValidatorNodeChangeAdd(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kShardKeyFieldNumber = 4, + kRegistrationFieldNumber = 2, + kActivationEpochFieldNumber = 1, + kMinimumValuePromiseFieldNumber = 3, + }; + // bytes shard_key = 4; + void clear_shard_key() ; + const ::std::string& shard_key() const; + template + void set_shard_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_shard_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_shard_key(); + void set_allocated_shard_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_shard_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_shard_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_shard_key(); + + public: + // .tari.rpc.ValidatorNodeRegistration registration = 2; + bool has_registration() const; + void clear_registration() ; + const ::tari::rpc::ValidatorNodeRegistration& registration() const; + [[nodiscard]] ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE release_registration(); + ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NONNULL mutable_registration(); + void set_allocated_registration(::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_registration(::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE value); + ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE unsafe_arena_release_registration(); + + private: + const ::tari::rpc::ValidatorNodeRegistration& _internal_registration() const; + ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NONNULL _internal_mutable_registration(); + + public: + // uint64 activation_epoch = 1; + void clear_activation_epoch() ; + ::uint64_t activation_epoch() const; + void set_activation_epoch(::uint64_t value); + + private: + ::uint64_t _internal_activation_epoch() const; + void _internal_set_activation_epoch(::uint64_t value); + + public: + // uint64 minimum_value_promise = 3; + void clear_minimum_value_promise() ; + ::uint64_t minimum_value_promise() const; + void set_minimum_value_promise(::uint64_t value); + + private: + ::uint64_t _internal_minimum_value_promise() const; + void _internal_set_minimum_value_promise(::uint64_t value); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.ValidatorNodeChangeAdd) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ValidatorNodeChangeAdd& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr shard_key_; + ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE registration_; + ::uint64_t activation_epoch_; + ::uint64_t minimum_value_promise_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_base_5fnode_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull ValidatorNodeChangeAdd_class_data_; +// ------------------------------------------------------------------- + +class GetNetworkStateResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetNetworkStateResponse) */ { + public: + inline GetNetworkStateResponse() : GetNetworkStateResponse(nullptr) {} + ~GetNetworkStateResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetNetworkStateResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetNetworkStateResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR GetNetworkStateResponse(::google::protobuf::internal::ConstantInitialized); + + inline GetNetworkStateResponse(const GetNetworkStateResponse& from) : GetNetworkStateResponse(nullptr, from) {} + inline GetNetworkStateResponse(GetNetworkStateResponse&& from) noexcept + : GetNetworkStateResponse(nullptr, ::std::move(from)) {} + inline GetNetworkStateResponse& operator=(const GetNetworkStateResponse& from) { + CopyFrom(from); + return *this; + } + inline GetNetworkStateResponse& operator=(GetNetworkStateResponse&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetNetworkStateResponse& default_instance() { + return *reinterpret_cast( + &_GetNetworkStateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 63; + friend void swap(GetNetworkStateResponse& a, GetNetworkStateResponse& b) { a.Swap(&b); } + inline void Swap(GetNetworkStateResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetNetworkStateResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetNetworkStateResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -8680,47 +11629,70 @@ class GetNetworkStateResponse final : public ::google::protobuf::Message void MergeFrom(const GetNetworkStateResponse& from) { GetNetworkStateResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetNetworkStateResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetNetworkStateResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetNetworkStateResponse"; } protected: - explicit GetNetworkStateResponse(::google::protobuf::Arena* arena); - GetNetworkStateResponse(::google::protobuf::Arena* arena, const GetNetworkStateResponse& from); - GetNetworkStateResponse(::google::protobuf::Arena* arena, GetNetworkStateResponse&& from) noexcept + explicit GetNetworkStateResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetNetworkStateResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetNetworkStateResponse& from); + GetNetworkStateResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetNetworkStateResponse&& from) noexcept : GetNetworkStateResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kLivenessResultsFieldNumber = 9, kMetadataFieldNumber = 1, + kReadinessStatusFieldNumber = 11, kBaseNodeStateFieldNumber = 3, kInitialSyncAchievedFieldNumber = 2, kFailedCheckpointsFieldNumber = 4, @@ -8737,29 +11709,44 @@ class GetNetworkStateResponse final : public ::google::protobuf::Message public: void clear_liveness_results() ; - ::tari::rpc::LivenessResult* mutable_liveness_results(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::LivenessResult>* mutable_liveness_results(); + ::tari::rpc::LivenessResult* PROTOBUF_NONNULL mutable_liveness_results(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::LivenessResult>* PROTOBUF_NONNULL mutable_liveness_results(); private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::LivenessResult>& _internal_liveness_results() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::LivenessResult>* _internal_mutable_liveness_results(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::LivenessResult>* PROTOBUF_NONNULL _internal_mutable_liveness_results(); public: const ::tari::rpc::LivenessResult& liveness_results(int index) const; - ::tari::rpc::LivenessResult* add_liveness_results(); + ::tari::rpc::LivenessResult* PROTOBUF_NONNULL add_liveness_results(); const ::google::protobuf::RepeatedPtrField<::tari::rpc::LivenessResult>& liveness_results() const; // .tari.rpc.MetaData metadata = 1; bool has_metadata() const; void clear_metadata() ; const ::tari::rpc::MetaData& metadata() const; - PROTOBUF_NODISCARD ::tari::rpc::MetaData* release_metadata(); - ::tari::rpc::MetaData* mutable_metadata(); - void set_allocated_metadata(::tari::rpc::MetaData* value); - void unsafe_arena_set_allocated_metadata(::tari::rpc::MetaData* value); - ::tari::rpc::MetaData* unsafe_arena_release_metadata(); + [[nodiscard]] ::tari::rpc::MetaData* PROTOBUF_NULLABLE release_metadata(); + ::tari::rpc::MetaData* PROTOBUF_NONNULL mutable_metadata(); + void set_allocated_metadata(::tari::rpc::MetaData* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_metadata(::tari::rpc::MetaData* PROTOBUF_NULLABLE value); + ::tari::rpc::MetaData* PROTOBUF_NULLABLE unsafe_arena_release_metadata(); private: const ::tari::rpc::MetaData& _internal_metadata() const; - ::tari::rpc::MetaData* _internal_mutable_metadata(); + ::tari::rpc::MetaData* PROTOBUF_NONNULL _internal_mutable_metadata(); + + public: + // .tari.rpc.ReadinessStatus readiness_status = 11; + bool has_readiness_status() const; + void clear_readiness_status() ; + const ::tari::rpc::ReadinessStatus& readiness_status() const; + [[nodiscard]] ::tari::rpc::ReadinessStatus* PROTOBUF_NULLABLE release_readiness_status(); + ::tari::rpc::ReadinessStatus* PROTOBUF_NONNULL mutable_readiness_status(); + void set_allocated_readiness_status(::tari::rpc::ReadinessStatus* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_readiness_status(::tari::rpc::ReadinessStatus* PROTOBUF_NULLABLE value); + ::tari::rpc::ReadinessStatus* PROTOBUF_NULLABLE unsafe_arena_release_readiness_status(); + + private: + const ::tari::rpc::ReadinessStatus& _internal_readiness_status() const; + ::tari::rpc::ReadinessStatus* PROTOBUF_NONNULL _internal_mutable_readiness_status(); public: // .tari.rpc.BaseNodeState base_node_state = 3; @@ -8846,10 +11833,11 @@ class GetNetworkStateResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 10, 2, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<4, 11, + 3, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -8857,16 +11845,19 @@ class GetNetworkStateResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetNetworkStateResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::tari::rpc::LivenessResult > liveness_results_; - ::tari::rpc::MetaData* metadata_; + ::tari::rpc::MetaData* PROTOBUF_NULLABLE metadata_; + ::tari::rpc::ReadinessStatus* PROTOBUF_NULLABLE readiness_status_; int base_node_state_; bool initial_sync_achieved_; bool failed_checkpoints_; @@ -8880,31 +11871,36 @@ class GetNetworkStateResponse final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetNetworkStateResponse_class_data_; // ------------------------------------------------------------------- class BlockHeaderResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockHeaderResponse) */ { public: inline BlockHeaderResponse() : BlockHeaderResponse(nullptr) {} - ~BlockHeaderResponse() override; + ~BlockHeaderResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BlockHeaderResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BlockHeaderResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR BlockHeaderResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : BlockHeaderResponse(nullptr, ::std::move(from)) {} inline BlockHeaderResponse& operator=(const BlockHeaderResponse& from) { CopyFrom(from); return *this; } inline BlockHeaderResponse& operator=(BlockHeaderResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -8916,42 +11912,35 @@ class BlockHeaderResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const BlockHeaderResponse& default_instance() { - return *internal_default_instance(); - } - static inline const BlockHeaderResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_BlockHeaderResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 23; + static constexpr int kIndexInFileMessages = 25; friend void swap(BlockHeaderResponse& a, BlockHeaderResponse& b) { a.Swap(&b); } - inline void Swap(BlockHeaderResponse* other) { + inline void Swap(BlockHeaderResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BlockHeaderResponse* other) { + void UnsafeArenaSwap(BlockHeaderResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8959,7 +11948,7 @@ class BlockHeaderResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - BlockHeaderResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + BlockHeaderResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -8968,41 +11957,63 @@ class BlockHeaderResponse final : public ::google::protobuf::Message void MergeFrom(const BlockHeaderResponse& from) { BlockHeaderResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockHeaderResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BlockHeaderResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.BlockHeaderResponse"; } protected: - explicit BlockHeaderResponse(::google::protobuf::Arena* arena); - BlockHeaderResponse(::google::protobuf::Arena* arena, const BlockHeaderResponse& from); - BlockHeaderResponse(::google::protobuf::Arena* arena, BlockHeaderResponse&& from) noexcept + explicit BlockHeaderResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BlockHeaderResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockHeaderResponse& from); + BlockHeaderResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BlockHeaderResponse&& from) noexcept : BlockHeaderResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -9017,15 +12028,15 @@ class BlockHeaderResponse final : public ::google::protobuf::Message bool has_header() const; void clear_header() ; const ::tari::rpc::BlockHeader& header() const; - PROTOBUF_NODISCARD ::tari::rpc::BlockHeader* release_header(); - ::tari::rpc::BlockHeader* mutable_header(); - void set_allocated_header(::tari::rpc::BlockHeader* value); - void unsafe_arena_set_allocated_header(::tari::rpc::BlockHeader* value); - ::tari::rpc::BlockHeader* unsafe_arena_release_header(); + [[nodiscard]] ::tari::rpc::BlockHeader* PROTOBUF_NULLABLE release_header(); + ::tari::rpc::BlockHeader* PROTOBUF_NONNULL mutable_header(); + void set_allocated_header(::tari::rpc::BlockHeader* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_header(::tari::rpc::BlockHeader* PROTOBUF_NULLABLE value); + ::tari::rpc::BlockHeader* PROTOBUF_NULLABLE unsafe_arena_release_header(); private: const ::tari::rpc::BlockHeader& _internal_header() const; - ::tari::rpc::BlockHeader* _internal_mutable_header(); + ::tari::rpc::BlockHeader* PROTOBUF_NONNULL _internal_mutable_header(); public: // uint64 confirmations = 2; @@ -9072,10 +12083,11 @@ class BlockHeaderResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<3, 5, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -9083,15 +12095,17 @@ class BlockHeaderResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BlockHeaderResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::BlockHeader* header_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::BlockHeader* PROTOBUF_NULLABLE header_; ::uint64_t confirmations_; ::uint64_t reward_; ::uint64_t difficulty_; @@ -9101,31 +12115,36 @@ class BlockHeaderResponse final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull BlockHeaderResponse_class_data_; // ------------------------------------------------------------------- -class GetTemplateRegistrationResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetTemplateRegistrationResponse) */ { +class ValidatorNodeChange final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ValidatorNodeChange) */ { public: - inline GetTemplateRegistrationResponse() : GetTemplateRegistrationResponse(nullptr) {} - ~GetTemplateRegistrationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetTemplateRegistrationResponse( - ::google::protobuf::internal::ConstantInitialized); + inline ValidatorNodeChange() : ValidatorNodeChange(nullptr) {} + ~ValidatorNodeChange() PROTOBUF_FINAL; - inline GetTemplateRegistrationResponse(const GetTemplateRegistrationResponse& from) : GetTemplateRegistrationResponse(nullptr, from) {} - inline GetTemplateRegistrationResponse(GetTemplateRegistrationResponse&& from) noexcept - : GetTemplateRegistrationResponse(nullptr, std::move(from)) {} - inline GetTemplateRegistrationResponse& operator=(const GetTemplateRegistrationResponse& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ValidatorNodeChange* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ValidatorNodeChange)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ValidatorNodeChange(::google::protobuf::internal::ConstantInitialized); + + inline ValidatorNodeChange(const ValidatorNodeChange& from) : ValidatorNodeChange(nullptr, from) {} + inline ValidatorNodeChange(ValidatorNodeChange&& from) noexcept + : ValidatorNodeChange(nullptr, ::std::move(from)) {} + inline ValidatorNodeChange& operator=(const ValidatorNodeChange& from) { CopyFrom(from); return *this; } - inline GetTemplateRegistrationResponse& operator=(GetTemplateRegistrationResponse&& from) noexcept { + inline ValidatorNodeChange& operator=(ValidatorNodeChange&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -9137,42 +12156,40 @@ class GetTemplateRegistrationResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetTemplateRegistrationResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetTemplateRegistrationResponse* internal_default_instance() { - return reinterpret_cast( - &_GetTemplateRegistrationResponse_default_instance_); + static const ValidatorNodeChange& default_instance() { + return *reinterpret_cast( + &_ValidatorNodeChange_default_instance_); } + enum ChangeCase { + kAdd = 1, + kRemove = 2, + CHANGE_NOT_SET = 0, + }; static constexpr int kIndexInFileMessages = 51; - friend void swap(GetTemplateRegistrationResponse& a, GetTemplateRegistrationResponse& b) { a.Swap(&b); } - inline void Swap(GetTemplateRegistrationResponse* other) { + friend void swap(ValidatorNodeChange& a, ValidatorNodeChange& b) { a.Swap(&b); } + inline void Swap(ValidatorNodeChange* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetTemplateRegistrationResponse* other) { + void UnsafeArenaSwap(ValidatorNodeChange* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9180,7 +12197,238 @@ class GetTemplateRegistrationResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetTemplateRegistrationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + ValidatorNodeChange* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ValidatorNodeChange& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ValidatorNodeChange& from) { ValidatorNodeChange::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ValidatorNodeChange* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.ValidatorNodeChange"; } + + protected: + explicit ValidatorNodeChange(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ValidatorNodeChange(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ValidatorNodeChange& from); + ValidatorNodeChange( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ValidatorNodeChange&& from) noexcept + : ValidatorNodeChange(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kAddFieldNumber = 1, + kRemoveFieldNumber = 2, + }; + // .tari.rpc.ValidatorNodeChangeAdd add = 1; + bool has_add() const; + private: + bool _internal_has_add() const; + + public: + void clear_add() ; + const ::tari::rpc::ValidatorNodeChangeAdd& add() const; + [[nodiscard]] ::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NULLABLE release_add(); + ::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NONNULL mutable_add(); + void set_allocated_add(::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_add(::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NULLABLE value); + ::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NULLABLE unsafe_arena_release_add(); + + private: + const ::tari::rpc::ValidatorNodeChangeAdd& _internal_add() const; + ::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NONNULL _internal_mutable_add(); + + public: + // .tari.rpc.ValidatorNodeChangeRemove remove = 2; + bool has_remove() const; + private: + bool _internal_has_remove() const; + + public: + void clear_remove() ; + const ::tari::rpc::ValidatorNodeChangeRemove& remove() const; + [[nodiscard]] ::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NULLABLE release_remove(); + ::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NONNULL mutable_remove(); + void set_allocated_remove(::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_remove(::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NULLABLE value); + ::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NULLABLE unsafe_arena_release_remove(); + + private: + const ::tari::rpc::ValidatorNodeChangeRemove& _internal_remove() const; + ::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NONNULL _internal_mutable_remove(); + + public: + void clear_change(); + ChangeCase change_case() const; + // @@protoc_insertion_point(class_scope:tari.rpc.ValidatorNodeChange) + private: + class _Internal; + void set_has_add(); + void set_has_remove(); + inline bool has_change() const; + inline void clear_has_change(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 2, + 2, 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ValidatorNodeChange& from_msg); + union ChangeUnion { + constexpr ChangeUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NULLABLE add_; + ::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NULLABLE remove_; + } change_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_base_5fnode_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull ValidatorNodeChange_class_data_; +// ------------------------------------------------------------------- + +class GetTemplateRegistrationResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetTemplateRegistrationResponse) */ { + public: + inline GetTemplateRegistrationResponse() : GetTemplateRegistrationResponse(nullptr) {} + ~GetTemplateRegistrationResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetTemplateRegistrationResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetTemplateRegistrationResponse)); + } +#endif + + 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; + } + inline GetTemplateRegistrationResponse& operator=(GetTemplateRegistrationResponse&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetTemplateRegistrationResponse& default_instance() { + return *reinterpret_cast( + &_GetTemplateRegistrationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 58; + friend void swap(GetTemplateRegistrationResponse& a, GetTemplateRegistrationResponse& b) { a.Swap(&b); } + inline void Swap(GetTemplateRegistrationResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetTemplateRegistrationResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetTemplateRegistrationResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -9189,41 +12437,63 @@ class GetTemplateRegistrationResponse final : public ::google::protobuf::Message void MergeFrom(const GetTemplateRegistrationResponse& from) { GetTemplateRegistrationResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetTemplateRegistrationResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetTemplateRegistrationResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetTemplateRegistrationResponse"; } protected: - explicit GetTemplateRegistrationResponse(::google::protobuf::Arena* arena); - GetTemplateRegistrationResponse(::google::protobuf::Arena* arena, const GetTemplateRegistrationResponse& from); - GetTemplateRegistrationResponse(::google::protobuf::Arena* arena, GetTemplateRegistrationResponse&& from) noexcept + explicit GetTemplateRegistrationResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetTemplateRegistrationResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTemplateRegistrationResponse& from); + GetTemplateRegistrationResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetTemplateRegistrationResponse&& from) noexcept : GetTemplateRegistrationResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -9233,43 +12503,43 @@ class GetTemplateRegistrationResponse final : public ::google::protobuf::Message }; // bytes utxo_hash = 1; void clear_utxo_hash() ; - const std::string& utxo_hash() const; - template + const ::std::string& utxo_hash() const; + template void set_utxo_hash(Arg_&& arg, Args_... args); - std::string* mutable_utxo_hash(); - PROTOBUF_NODISCARD std::string* release_utxo_hash(); - void set_allocated_utxo_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_utxo_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_utxo_hash(); + void set_allocated_utxo_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_utxo_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_utxo_hash( - const std::string& value); - std::string* _internal_mutable_utxo_hash(); + const ::std::string& _internal_utxo_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_utxo_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_utxo_hash(); public: // .tari.rpc.TemplateRegistration registration = 2; bool has_registration() const; void clear_registration() ; const ::tari::rpc::TemplateRegistration& registration() const; - PROTOBUF_NODISCARD ::tari::rpc::TemplateRegistration* release_registration(); - ::tari::rpc::TemplateRegistration* mutable_registration(); - void set_allocated_registration(::tari::rpc::TemplateRegistration* value); - void unsafe_arena_set_allocated_registration(::tari::rpc::TemplateRegistration* value); - ::tari::rpc::TemplateRegistration* unsafe_arena_release_registration(); + [[nodiscard]] ::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE release_registration(); + ::tari::rpc::TemplateRegistration* PROTOBUF_NONNULL mutable_registration(); + void set_allocated_registration(::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_registration(::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE value); + ::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE unsafe_arena_release_registration(); private: const ::tari::rpc::TemplateRegistration& _internal_registration() const; - ::tari::rpc::TemplateRegistration* _internal_mutable_registration(); + ::tari::rpc::TemplateRegistration* PROTOBUF_NONNULL _internal_mutable_registration(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -9277,46 +12547,53 @@ class GetTemplateRegistrationResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetTemplateRegistrationResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr utxo_hash_; - ::tari::rpc::TemplateRegistration* registration_; + ::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE registration_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetTemplateRegistrationResponse_class_data_; // ------------------------------------------------------------------- class GetPeersResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetPeersResponse) */ { public: inline GetPeersResponse() : GetPeersResponse(nullptr) {} - ~GetPeersResponse() override; + ~GetPeersResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetPeersResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetPeersResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetPeersResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -9328,42 +12605,35 @@ class GetPeersResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL 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( + return *reinterpret_cast( &_GetPeersResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 37; + static constexpr int kIndexInFileMessages = 39; friend void swap(GetPeersResponse& a, GetPeersResponse& b) { a.Swap(&b); } - inline void Swap(GetPeersResponse* other) { + inline void Swap(GetPeersResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetPeersResponse* other) { + void UnsafeArenaSwap(GetPeersResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9371,7 +12641,7 @@ class GetPeersResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetPeersResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetPeersResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -9380,41 +12650,63 @@ class GetPeersResponse final : public ::google::protobuf::Message void MergeFrom(const GetPeersResponse& from) { GetPeersResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetPeersResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetPeersResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); 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 + explicit GetPeersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetPeersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetPeersResponse& from); + GetPeersResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetPeersResponse&& from) noexcept : GetPeersResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -9425,25 +12717,26 @@ class GetPeersResponse final : public ::google::protobuf::Message 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(); + [[nodiscard]] ::tari::rpc::Peer* PROTOBUF_NULLABLE release_peer(); + ::tari::rpc::Peer* PROTOBUF_NONNULL mutable_peer(); + void set_allocated_peer(::tari::rpc::Peer* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_peer(::tari::rpc::Peer* PROTOBUF_NULLABLE value); + ::tari::rpc::Peer* PROTOBUF_NULLABLE unsafe_arena_release_peer(); private: const ::tari::rpc::Peer& _internal_peer() const; - ::tari::rpc::Peer* _internal_mutable_peer(); + ::tari::rpc::Peer* PROTOBUF_NONNULL _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> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -9451,45 +12744,52 @@ class GetPeersResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetPeersResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Peer* peer_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::Peer* PROTOBUF_NULLABLE peer_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetPeersResponse_class_data_; // ------------------------------------------------------------------- -class ListAssetRegistrationsResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ListAssetRegistrationsResponse) */ { +class GetValidatorNodeChangesResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.GetValidatorNodeChangesResponse) */ { public: - inline ListAssetRegistrationsResponse() : ListAssetRegistrationsResponse(nullptr) {} - ~ListAssetRegistrationsResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListAssetRegistrationsResponse( - ::google::protobuf::internal::ConstantInitialized); + inline GetValidatorNodeChangesResponse() : GetValidatorNodeChangesResponse(nullptr) {} + ~GetValidatorNodeChangesResponse() PROTOBUF_FINAL; - inline ListAssetRegistrationsResponse(const ListAssetRegistrationsResponse& from) : ListAssetRegistrationsResponse(nullptr, from) {} - inline ListAssetRegistrationsResponse(ListAssetRegistrationsResponse&& from) noexcept - : ListAssetRegistrationsResponse(nullptr, std::move(from)) {} - inline ListAssetRegistrationsResponse& operator=(const ListAssetRegistrationsResponse& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetValidatorNodeChangesResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetValidatorNodeChangesResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR GetValidatorNodeChangesResponse(::google::protobuf::internal::ConstantInitialized); + + inline GetValidatorNodeChangesResponse(const GetValidatorNodeChangesResponse& from) : GetValidatorNodeChangesResponse(nullptr, from) {} + inline GetValidatorNodeChangesResponse(GetValidatorNodeChangesResponse&& from) noexcept + : GetValidatorNodeChangesResponse(nullptr, ::std::move(from)) {} + inline GetValidatorNodeChangesResponse& operator=(const GetValidatorNodeChangesResponse& from) { CopyFrom(from); return *this; } - inline ListAssetRegistrationsResponse& operator=(ListAssetRegistrationsResponse&& from) noexcept { + inline GetValidatorNodeChangesResponse& operator=(GetValidatorNodeChangesResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -9501,42 +12801,35 @@ class ListAssetRegistrationsResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListAssetRegistrationsResponse& default_instance() { - return *internal_default_instance(); + static const GetValidatorNodeChangesResponse& default_instance() { + return *reinterpret_cast( + &_GetValidatorNodeChangesResponse_default_instance_); } - 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); } - inline void Swap(ListAssetRegistrationsResponse* other) { + static constexpr int kIndexInFileMessages = 54; + friend void swap(GetValidatorNodeChangesResponse& a, GetValidatorNodeChangesResponse& b) { a.Swap(&b); } + inline void Swap(GetValidatorNodeChangesResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListAssetRegistrationsResponse* other) { + void UnsafeArenaSwap(GetValidatorNodeChangesResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9544,7 +12837,204 @@ class ListAssetRegistrationsResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ListAssetRegistrationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetValidatorNodeChangesResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetValidatorNodeChangesResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GetValidatorNodeChangesResponse& from) { GetValidatorNodeChangesResponse::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetValidatorNodeChangesResponse* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.GetValidatorNodeChangesResponse"; } + + protected: + explicit GetValidatorNodeChangesResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetValidatorNodeChangesResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetValidatorNodeChangesResponse& from); + GetValidatorNodeChangesResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetValidatorNodeChangesResponse&& from) noexcept + : GetValidatorNodeChangesResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kChangesFieldNumber = 1, + }; + // repeated .tari.rpc.ValidatorNodeChange changes = 1; + int changes_size() const; + private: + int _internal_changes_size() const; + + public: + void clear_changes() ; + ::tari::rpc::ValidatorNodeChange* PROTOBUF_NONNULL mutable_changes(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorNodeChange>* PROTOBUF_NONNULL mutable_changes(); + + private: + const ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorNodeChange>& _internal_changes() const; + ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorNodeChange>* PROTOBUF_NONNULL _internal_mutable_changes(); + public: + const ::tari::rpc::ValidatorNodeChange& changes(int index) const; + ::tari::rpc::ValidatorNodeChange* PROTOBUF_NONNULL add_changes(); + const ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorNodeChange>& changes() const; + // @@protoc_insertion_point(class_scope:tari.rpc.GetValidatorNodeChangesResponse) + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetValidatorNodeChangesResponse& from_msg); + ::google::protobuf::RepeatedPtrField< ::tari::rpc::ValidatorNodeChange > changes_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_base_5fnode_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull GetValidatorNodeChangesResponse_class_data_; +// ------------------------------------------------------------------- + +class ListAssetRegistrationsResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ListAssetRegistrationsResponse) */ { + public: + inline ListAssetRegistrationsResponse() : ListAssetRegistrationsResponse(nullptr) {} + ~ListAssetRegistrationsResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ListAssetRegistrationsResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ListAssetRegistrationsResponse)); + } +#endif + + 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; + } + inline ListAssetRegistrationsResponse& operator=(ListAssetRegistrationsResponse&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListAssetRegistrationsResponse& default_instance() { + return *reinterpret_cast( + &_ListAssetRegistrationsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(ListAssetRegistrationsResponse& a, ListAssetRegistrationsResponse& b) { a.Swap(&b); } + inline void Swap(ListAssetRegistrationsResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListAssetRegistrationsResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListAssetRegistrationsResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -9553,41 +13043,63 @@ class ListAssetRegistrationsResponse final : public ::google::protobuf::Message void MergeFrom(const ListAssetRegistrationsResponse& from) { ListAssetRegistrationsResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ListAssetRegistrationsResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ListAssetRegistrationsResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.ListAssetRegistrationsResponse"; } protected: - explicit ListAssetRegistrationsResponse(::google::protobuf::Arena* arena); - ListAssetRegistrationsResponse(::google::protobuf::Arena* arena, const ListAssetRegistrationsResponse& from); - ListAssetRegistrationsResponse(::google::protobuf::Arena* arena, ListAssetRegistrationsResponse&& from) noexcept + explicit ListAssetRegistrationsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ListAssetRegistrationsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ListAssetRegistrationsResponse& from); + ListAssetRegistrationsResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ListAssetRegistrationsResponse&& from) noexcept : ListAssetRegistrationsResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -9602,97 +13114,92 @@ class ListAssetRegistrationsResponse final : public ::google::protobuf::Message }; // bytes asset_public_key = 1; void clear_asset_public_key() ; - const std::string& asset_public_key() const; - template + const ::std::string& asset_public_key() const; + template void set_asset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_asset_public_key(); - PROTOBUF_NODISCARD std::string* release_asset_public_key(); - void set_allocated_asset_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_asset_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_asset_public_key(); + void set_allocated_asset_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_asset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_asset_public_key( - const std::string& value); - std::string* _internal_mutable_asset_public_key(); + const ::std::string& _internal_asset_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_asset_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_asset_public_key(); public: // bytes unique_id = 2; void clear_unique_id() ; - const std::string& unique_id() const; - template + const ::std::string& unique_id() const; + template void set_unique_id(Arg_&& arg, Args_... args); - std::string* mutable_unique_id(); - PROTOBUF_NODISCARD std::string* release_unique_id(); - void set_allocated_unique_id(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_unique_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_unique_id(); + void set_allocated_unique_id(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_unique_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_unique_id( - const std::string& value); - std::string* _internal_mutable_unique_id(); + const ::std::string& _internal_unique_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_unique_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_unique_id(); public: // bytes owner_commitment = 3; void clear_owner_commitment() ; - const std::string& owner_commitment() const; - template + const ::std::string& owner_commitment() const; + template void set_owner_commitment(Arg_&& arg, Args_... args); - std::string* mutable_owner_commitment(); - PROTOBUF_NODISCARD std::string* release_owner_commitment(); - void set_allocated_owner_commitment(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_owner_commitment(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_owner_commitment(); + void set_allocated_owner_commitment(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_owner_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_owner_commitment( - const std::string& value); - std::string* _internal_mutable_owner_commitment(); + const ::std::string& _internal_owner_commitment() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_owner_commitment(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_owner_commitment(); public: // bytes mined_in_block = 5; void clear_mined_in_block() ; - const std::string& mined_in_block() const; - template + const ::std::string& mined_in_block() const; + template void set_mined_in_block(Arg_&& arg, Args_... args); - std::string* mutable_mined_in_block(); - PROTOBUF_NODISCARD std::string* release_mined_in_block(); - void set_allocated_mined_in_block(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_mined_in_block(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_mined_in_block(); + void set_allocated_mined_in_block(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_mined_in_block() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mined_in_block( - const std::string& value); - std::string* _internal_mutable_mined_in_block(); + const ::std::string& _internal_mined_in_block() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_mined_in_block(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_mined_in_block(); public: // bytes script = 7; void clear_script() ; - const std::string& script() const; - template + const ::std::string& script() const; + template void set_script(Arg_&& arg, Args_... args); - std::string* mutable_script(); - PROTOBUF_NODISCARD std::string* release_script(); - void set_allocated_script(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_script(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_script(); + void set_allocated_script(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_script() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script( - const std::string& value); - std::string* _internal_mutable_script(); + const ::std::string& _internal_script() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_script(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_script(); public: // .tari.rpc.OutputFeatures features = 6; bool has_features() const; void clear_features() ; const ::tari::rpc::OutputFeatures& features() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputFeatures* release_features(); - ::tari::rpc::OutputFeatures* mutable_features(); - void set_allocated_features(::tari::rpc::OutputFeatures* value); - void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value); - ::tari::rpc::OutputFeatures* unsafe_arena_release_features(); + [[nodiscard]] ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE release_features(); + ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL mutable_features(); + void set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value); + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE unsafe_arena_release_features(); private: const ::tari::rpc::OutputFeatures& _internal_features() const; - ::tari::rpc::OutputFeatures* _internal_mutable_features(); + ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL _internal_mutable_features(); public: // uint64 mined_height = 4; @@ -9709,10 +13216,11 @@ class ListAssetRegistrationsResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<3, 7, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -9720,51 +13228,58 @@ class ListAssetRegistrationsResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ListAssetRegistrationsResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr asset_public_key_; ::google::protobuf::internal::ArenaStringPtr unique_id_; ::google::protobuf::internal::ArenaStringPtr owner_commitment_; ::google::protobuf::internal::ArenaStringPtr mined_in_block_; ::google::protobuf::internal::ArenaStringPtr script_; - ::tari::rpc::OutputFeatures* features_; + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE features_; ::uint64_t mined_height_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ListAssetRegistrationsResponse_class_data_; // ------------------------------------------------------------------- class GetTokensResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetTokensResponse) */ { public: inline GetTokensResponse() : GetTokensResponse(nullptr) {} - ~GetTokensResponse() override; + ~GetTokensResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetTokensResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetTokensResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetTokensResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetTokensResponse(nullptr, ::std::move(from)) {} inline GetTokensResponse& operator=(const GetTokensResponse& from) { CopyFrom(from); return *this; } inline GetTokensResponse& operator=(GetTokensResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -9776,42 +13291,35 @@ class GetTokensResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetTokensResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetTokensResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetTokensResponse_default_instance_); } static constexpr int kIndexInFileMessages = 5; friend void swap(GetTokensResponse& a, GetTokensResponse& b) { a.Swap(&b); } - inline void Swap(GetTokensResponse* other) { + inline void Swap(GetTokensResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetTokensResponse* other) { + void UnsafeArenaSwap(GetTokensResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9819,7 +13327,7 @@ class GetTokensResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetTokensResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetTokensResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -9828,41 +13336,63 @@ class GetTokensResponse final : public ::google::protobuf::Message void MergeFrom(const GetTokensResponse& from) { GetTokensResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetTokensResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetTokensResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetTokensResponse"; } protected: - explicit GetTokensResponse(::google::protobuf::Arena* arena); - GetTokensResponse(::google::protobuf::Arena* arena, const GetTokensResponse& from); - GetTokensResponse(::google::protobuf::Arena* arena, GetTokensResponse&& from) noexcept + explicit GetTokensResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetTokensResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTokensResponse& from); + GetTokensResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetTokensResponse&& from) noexcept : GetTokensResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -9877,97 +13407,92 @@ class GetTokensResponse final : public ::google::protobuf::Message }; // bytes unique_id = 1; void clear_unique_id() ; - const std::string& unique_id() const; - template + const ::std::string& unique_id() const; + template void set_unique_id(Arg_&& arg, Args_... args); - std::string* mutable_unique_id(); - PROTOBUF_NODISCARD std::string* release_unique_id(); - void set_allocated_unique_id(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_unique_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_unique_id(); + void set_allocated_unique_id(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_unique_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_unique_id( - const std::string& value); - std::string* _internal_mutable_unique_id(); + const ::std::string& _internal_unique_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_unique_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_unique_id(); public: // bytes asset_public_key = 2; void clear_asset_public_key() ; - const std::string& asset_public_key() const; - template + const ::std::string& asset_public_key() const; + template void set_asset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_asset_public_key(); - PROTOBUF_NODISCARD std::string* release_asset_public_key(); - void set_allocated_asset_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_asset_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_asset_public_key(); + void set_allocated_asset_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_asset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_asset_public_key( - const std::string& value); - std::string* _internal_mutable_asset_public_key(); + const ::std::string& _internal_asset_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_asset_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_asset_public_key(); public: // bytes owner_commitment = 3; void clear_owner_commitment() ; - const std::string& owner_commitment() const; - template + const ::std::string& owner_commitment() const; + template void set_owner_commitment(Arg_&& arg, Args_... args); - std::string* mutable_owner_commitment(); - PROTOBUF_NODISCARD std::string* release_owner_commitment(); - void set_allocated_owner_commitment(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_owner_commitment(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_owner_commitment(); + void set_allocated_owner_commitment(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_owner_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_owner_commitment( - const std::string& value); - std::string* _internal_mutable_owner_commitment(); + const ::std::string& _internal_owner_commitment() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_owner_commitment(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_owner_commitment(); public: // bytes mined_in_block = 4; void clear_mined_in_block() ; - const std::string& mined_in_block() const; - template + const ::std::string& mined_in_block() const; + template void set_mined_in_block(Arg_&& arg, Args_... args); - std::string* mutable_mined_in_block(); - PROTOBUF_NODISCARD std::string* release_mined_in_block(); - void set_allocated_mined_in_block(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_mined_in_block(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_mined_in_block(); + void set_allocated_mined_in_block(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_mined_in_block() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mined_in_block( - const std::string& value); - std::string* _internal_mutable_mined_in_block(); + const ::std::string& _internal_mined_in_block() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_mined_in_block(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_mined_in_block(); public: // bytes script = 7; void clear_script() ; - const std::string& script() const; - template + const ::std::string& script() const; + template void set_script(Arg_&& arg, Args_... args); - std::string* mutable_script(); - PROTOBUF_NODISCARD std::string* release_script(); - void set_allocated_script(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_script(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_script(); + void set_allocated_script(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_script() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script( - const std::string& value); - std::string* _internal_mutable_script(); + const ::std::string& _internal_script() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_script(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_script(); public: // .tari.rpc.OutputFeatures features = 6; bool has_features() const; void clear_features() ; const ::tari::rpc::OutputFeatures& features() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputFeatures* release_features(); - ::tari::rpc::OutputFeatures* mutable_features(); - void set_allocated_features(::tari::rpc::OutputFeatures* value); - void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value); - ::tari::rpc::OutputFeatures* unsafe_arena_release_features(); + [[nodiscard]] ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE release_features(); + ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL mutable_features(); + void set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value); + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE unsafe_arena_release_features(); private: const ::tari::rpc::OutputFeatures& _internal_features() const; - ::tari::rpc::OutputFeatures* _internal_mutable_features(); + ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL _internal_mutable_features(); public: // uint64 mined_height = 5; @@ -9984,10 +13509,11 @@ class GetTokensResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<3, 7, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -9995,51 +13521,58 @@ class GetTokensResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetTokensResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr unique_id_; ::google::protobuf::internal::ArenaStringPtr asset_public_key_; ::google::protobuf::internal::ArenaStringPtr owner_commitment_; ::google::protobuf::internal::ArenaStringPtr mined_in_block_; ::google::protobuf::internal::ArenaStringPtr script_; - ::tari::rpc::OutputFeatures* features_; + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE features_; ::uint64_t mined_height_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetTokensResponse_class_data_; // ------------------------------------------------------------------- class GetAssetMetadataResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetAssetMetadataResponse) */ { public: inline GetAssetMetadataResponse() : GetAssetMetadataResponse(nullptr) {} - ~GetAssetMetadataResponse() override; + ~GetAssetMetadataResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetAssetMetadataResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetAssetMetadataResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetAssetMetadataResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetAssetMetadataResponse(nullptr, ::std::move(from)) {} inline GetAssetMetadataResponse& operator=(const GetAssetMetadataResponse& from) { CopyFrom(from); return *this; } inline GetAssetMetadataResponse& operator=(GetAssetMetadataResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -10051,42 +13584,35 @@ class GetAssetMetadataResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetAssetMetadataResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetAssetMetadataResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetAssetMetadataResponse_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(GetAssetMetadataResponse& a, GetAssetMetadataResponse& b) { a.Swap(&b); } - inline void Swap(GetAssetMetadataResponse* other) { + inline void Swap(GetAssetMetadataResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetAssetMetadataResponse* other) { + void UnsafeArenaSwap(GetAssetMetadataResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -10094,7 +13620,7 @@ class GetAssetMetadataResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetAssetMetadataResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetAssetMetadataResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -10103,41 +13629,63 @@ class GetAssetMetadataResponse final : public ::google::protobuf::Message void MergeFrom(const GetAssetMetadataResponse& from) { GetAssetMetadataResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetAssetMetadataResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetAssetMetadataResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetAssetMetadataResponse"; } protected: - explicit GetAssetMetadataResponse(::google::protobuf::Arena* arena); - GetAssetMetadataResponse(::google::protobuf::Arena* arena, const GetAssetMetadataResponse& from); - GetAssetMetadataResponse(::google::protobuf::Arena* arena, GetAssetMetadataResponse&& from) noexcept + explicit GetAssetMetadataResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetAssetMetadataResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetAssetMetadataResponse& from); + GetAssetMetadataResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetAssetMetadataResponse&& from) noexcept : GetAssetMetadataResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -10152,97 +13700,92 @@ class GetAssetMetadataResponse final : public ::google::protobuf::Message }; // string name = 2; void clear_name() ; - const std::string& name() const; - template + const ::std::string& name() const; + template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name(); + void set_allocated_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + const ::std::string& _internal_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_name(); public: // string description = 3; void clear_description() ; - const std::string& description() const; - template + const ::std::string& description() const; + template void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_description(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_description(); + void set_allocated_description(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); + const ::std::string& _internal_description() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_description(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_description(); public: // string image = 4; void clear_image() ; - const std::string& image() const; - template + const ::std::string& image() const; + template void set_image(Arg_&& arg, Args_... args); - std::string* mutable_image(); - PROTOBUF_NODISCARD std::string* release_image(); - void set_allocated_image(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_image(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_image(); + void set_allocated_image(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_image() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_image( - const std::string& value); - std::string* _internal_mutable_image(); + const ::std::string& _internal_image() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_image(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_image(); public: // bytes owner_commitment = 5; void clear_owner_commitment() ; - const std::string& owner_commitment() const; - template + const ::std::string& owner_commitment() const; + template void set_owner_commitment(Arg_&& arg, Args_... args); - std::string* mutable_owner_commitment(); - PROTOBUF_NODISCARD std::string* release_owner_commitment(); - void set_allocated_owner_commitment(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_owner_commitment(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_owner_commitment(); + void set_allocated_owner_commitment(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_owner_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_owner_commitment( - const std::string& value); - std::string* _internal_mutable_owner_commitment(); + const ::std::string& _internal_owner_commitment() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_owner_commitment(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_owner_commitment(); public: // bytes mined_in_block = 8; void clear_mined_in_block() ; - const std::string& mined_in_block() const; - template + const ::std::string& mined_in_block() const; + template void set_mined_in_block(Arg_&& arg, Args_... args); - std::string* mutable_mined_in_block(); - PROTOBUF_NODISCARD std::string* release_mined_in_block(); - void set_allocated_mined_in_block(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_mined_in_block(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_mined_in_block(); + void set_allocated_mined_in_block(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_mined_in_block() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mined_in_block( - const std::string& value); - std::string* _internal_mutable_mined_in_block(); + const ::std::string& _internal_mined_in_block() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_mined_in_block(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_mined_in_block(); public: // .tari.rpc.OutputFeatures features = 6; bool has_features() const; void clear_features() ; const ::tari::rpc::OutputFeatures& features() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputFeatures* release_features(); - ::tari::rpc::OutputFeatures* mutable_features(); - void set_allocated_features(::tari::rpc::OutputFeatures* value); - void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value); - ::tari::rpc::OutputFeatures* unsafe_arena_release_features(); + [[nodiscard]] ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE release_features(); + ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL mutable_features(); + void set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value); + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE unsafe_arena_release_features(); private: const ::tari::rpc::OutputFeatures& _internal_features() const; - ::tari::rpc::OutputFeatures* _internal_mutable_features(); + ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL _internal_mutable_features(); public: // uint64 mined_height = 7; @@ -10259,10 +13802,11 @@ class GetAssetMetadataResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 1, - 62, 2> + static const ::google::protobuf::internal::TcParseTable<3, 7, + 1, 62, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -10270,51 +13814,58 @@ class GetAssetMetadataResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetAssetMetadataResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_; ::google::protobuf::internal::ArenaStringPtr description_; ::google::protobuf::internal::ArenaStringPtr image_; ::google::protobuf::internal::ArenaStringPtr owner_commitment_; ::google::protobuf::internal::ArenaStringPtr mined_in_block_; - ::tari::rpc::OutputFeatures* features_; + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE features_; ::uint64_t mined_height_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetAssetMetadataResponse_class_data_; // ------------------------------------------------------------------- class GetSideChainUtxosResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetSideChainUtxosResponse) */ { public: inline GetSideChainUtxosResponse() : GetSideChainUtxosResponse(nullptr) {} - ~GetSideChainUtxosResponse() override; + ~GetSideChainUtxosResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetSideChainUtxosResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetSideChainUtxosResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetSideChainUtxosResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetSideChainUtxosResponse(nullptr, ::std::move(from)) {} inline GetSideChainUtxosResponse& operator=(const GetSideChainUtxosResponse& from) { CopyFrom(from); return *this; } inline GetSideChainUtxosResponse& operator=(GetSideChainUtxosResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -10326,42 +13877,35 @@ class GetSideChainUtxosResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetSideChainUtxosResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetSideChainUtxosResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetSideChainUtxosResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 54; + static constexpr int kIndexInFileMessages = 61; friend void swap(GetSideChainUtxosResponse& a, GetSideChainUtxosResponse& b) { a.Swap(&b); } - inline void Swap(GetSideChainUtxosResponse* other) { + inline void Swap(GetSideChainUtxosResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetSideChainUtxosResponse* other) { + void UnsafeArenaSwap(GetSideChainUtxosResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -10369,7 +13913,7 @@ class GetSideChainUtxosResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetSideChainUtxosResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetSideChainUtxosResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -10378,41 +13922,63 @@ class GetSideChainUtxosResponse final : public ::google::protobuf::Message void MergeFrom(const GetSideChainUtxosResponse& from) { GetSideChainUtxosResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetSideChainUtxosResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetSideChainUtxosResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetSideChainUtxosResponse"; } protected: - explicit GetSideChainUtxosResponse(::google::protobuf::Arena* arena); - GetSideChainUtxosResponse(::google::protobuf::Arena* arena, const GetSideChainUtxosResponse& from); - GetSideChainUtxosResponse(::google::protobuf::Arena* arena, GetSideChainUtxosResponse&& from) noexcept + explicit GetSideChainUtxosResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetSideChainUtxosResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetSideChainUtxosResponse& from); + GetSideChainUtxosResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetSideChainUtxosResponse&& from) noexcept : GetSideChainUtxosResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -10427,39 +13993,40 @@ class GetSideChainUtxosResponse final : public ::google::protobuf::Message public: void clear_outputs() ; - ::tari::rpc::TransactionOutput* mutable_outputs(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* mutable_outputs(); + ::tari::rpc::TransactionOutput* PROTOBUF_NONNULL mutable_outputs(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* PROTOBUF_NONNULL mutable_outputs(); private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& _internal_outputs() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* _internal_mutable_outputs(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* PROTOBUF_NONNULL _internal_mutable_outputs(); public: const ::tari::rpc::TransactionOutput& outputs(int index) const; - ::tari::rpc::TransactionOutput* add_outputs(); + ::tari::rpc::TransactionOutput* PROTOBUF_NONNULL add_outputs(); const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& outputs() const; // .tari.rpc.BlockInfo block_info = 1; bool has_block_info() const; void clear_block_info() ; const ::tari::rpc::BlockInfo& block_info() const; - PROTOBUF_NODISCARD ::tari::rpc::BlockInfo* release_block_info(); - ::tari::rpc::BlockInfo* mutable_block_info(); - void set_allocated_block_info(::tari::rpc::BlockInfo* value); - void unsafe_arena_set_allocated_block_info(::tari::rpc::BlockInfo* value); - ::tari::rpc::BlockInfo* unsafe_arena_release_block_info(); + [[nodiscard]] ::tari::rpc::BlockInfo* PROTOBUF_NULLABLE release_block_info(); + ::tari::rpc::BlockInfo* PROTOBUF_NONNULL mutable_block_info(); + void set_allocated_block_info(::tari::rpc::BlockInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_block_info(::tari::rpc::BlockInfo* PROTOBUF_NULLABLE value); + ::tari::rpc::BlockInfo* PROTOBUF_NULLABLE unsafe_arena_release_block_info(); private: const ::tari::rpc::BlockInfo& _internal_block_info() const; - ::tari::rpc::BlockInfo* _internal_mutable_block_info(); + ::tari::rpc::BlockInfo* PROTOBUF_NONNULL _internal_mutable_block_info(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -10467,46 +14034,53 @@ class GetSideChainUtxosResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetSideChainUtxosResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionOutput > outputs_; - ::tari::rpc::BlockInfo* block_info_; + ::tari::rpc::BlockInfo* PROTOBUF_NULLABLE block_info_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetSideChainUtxosResponse_class_data_; // ------------------------------------------------------------------- class FetchMatchingUtxosResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.FetchMatchingUtxosResponse) */ { public: inline FetchMatchingUtxosResponse() : FetchMatchingUtxosResponse(nullptr) {} - ~FetchMatchingUtxosResponse() override; + ~FetchMatchingUtxosResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(FetchMatchingUtxosResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(FetchMatchingUtxosResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR FetchMatchingUtxosResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : FetchMatchingUtxosResponse(nullptr, ::std::move(from)) {} inline FetchMatchingUtxosResponse& operator=(const FetchMatchingUtxosResponse& from) { CopyFrom(from); return *this; } inline FetchMatchingUtxosResponse& operator=(FetchMatchingUtxosResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -10518,42 +14092,35 @@ class FetchMatchingUtxosResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const FetchMatchingUtxosResponse& default_instance() { - return *internal_default_instance(); - } - static inline const FetchMatchingUtxosResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_FetchMatchingUtxosResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 36; + static constexpr int kIndexInFileMessages = 38; friend void swap(FetchMatchingUtxosResponse& a, FetchMatchingUtxosResponse& b) { a.Swap(&b); } - inline void Swap(FetchMatchingUtxosResponse* other) { + inline void Swap(FetchMatchingUtxosResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FetchMatchingUtxosResponse* other) { + void UnsafeArenaSwap(FetchMatchingUtxosResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -10561,7 +14128,7 @@ class FetchMatchingUtxosResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - FetchMatchingUtxosResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + FetchMatchingUtxosResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -10570,41 +14137,63 @@ class FetchMatchingUtxosResponse final : public ::google::protobuf::Message void MergeFrom(const FetchMatchingUtxosResponse& from) { FetchMatchingUtxosResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(FetchMatchingUtxosResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(FetchMatchingUtxosResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.FetchMatchingUtxosResponse"; } protected: - explicit FetchMatchingUtxosResponse(::google::protobuf::Arena* arena); - FetchMatchingUtxosResponse(::google::protobuf::Arena* arena, const FetchMatchingUtxosResponse& from); - FetchMatchingUtxosResponse(::google::protobuf::Arena* arena, FetchMatchingUtxosResponse&& from) noexcept + explicit FetchMatchingUtxosResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + FetchMatchingUtxosResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FetchMatchingUtxosResponse& from); + FetchMatchingUtxosResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, FetchMatchingUtxosResponse&& from) noexcept : FetchMatchingUtxosResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -10615,25 +14204,26 @@ class FetchMatchingUtxosResponse final : public ::google::protobuf::Message bool has_output() const; void clear_output() ; const ::tari::rpc::TransactionOutput& output() const; - PROTOBUF_NODISCARD ::tari::rpc::TransactionOutput* release_output(); - ::tari::rpc::TransactionOutput* mutable_output(); - void set_allocated_output(::tari::rpc::TransactionOutput* value); - void unsafe_arena_set_allocated_output(::tari::rpc::TransactionOutput* value); - ::tari::rpc::TransactionOutput* unsafe_arena_release_output(); + [[nodiscard]] ::tari::rpc::TransactionOutput* PROTOBUF_NULLABLE release_output(); + ::tari::rpc::TransactionOutput* PROTOBUF_NONNULL mutable_output(); + void set_allocated_output(::tari::rpc::TransactionOutput* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_output(::tari::rpc::TransactionOutput* PROTOBUF_NULLABLE value); + ::tari::rpc::TransactionOutput* PROTOBUF_NULLABLE unsafe_arena_release_output(); private: const ::tari::rpc::TransactionOutput& _internal_output() const; - ::tari::rpc::TransactionOutput* _internal_mutable_output(); + ::tari::rpc::TransactionOutput* PROTOBUF_NONNULL _internal_mutable_output(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -10641,45 +14231,52 @@ class FetchMatchingUtxosResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const FetchMatchingUtxosResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::TransactionOutput* output_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::TransactionOutput* PROTOBUF_NULLABLE output_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull FetchMatchingUtxosResponse_class_data_; // ------------------------------------------------------------------- class SubmitTransactionRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SubmitTransactionRequest) */ { public: inline SubmitTransactionRequest() : SubmitTransactionRequest(nullptr) {} - ~SubmitTransactionRequest() override; + ~SubmitTransactionRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubmitTransactionRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubmitTransactionRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR SubmitTransactionRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : SubmitTransactionRequest(nullptr, ::std::move(from)) {} inline SubmitTransactionRequest& operator=(const SubmitTransactionRequest& from) { CopyFrom(from); return *this; } inline SubmitTransactionRequest& operator=(SubmitTransactionRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -10691,42 +14288,35 @@ class SubmitTransactionRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const SubmitTransactionRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubmitTransactionRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_SubmitTransactionRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 39; + static constexpr int kIndexInFileMessages = 41; friend void swap(SubmitTransactionRequest& a, SubmitTransactionRequest& b) { a.Swap(&b); } - inline void Swap(SubmitTransactionRequest* other) { + inline void Swap(SubmitTransactionRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubmitTransactionRequest* other) { + void UnsafeArenaSwap(SubmitTransactionRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -10734,7 +14324,7 @@ class SubmitTransactionRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - SubmitTransactionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + SubmitTransactionRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -10743,41 +14333,63 @@ class SubmitTransactionRequest final : public ::google::protobuf::Message void MergeFrom(const SubmitTransactionRequest& from) { SubmitTransactionRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SubmitTransactionRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SubmitTransactionRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.SubmitTransactionRequest"; } protected: - explicit SubmitTransactionRequest(::google::protobuf::Arena* arena); - SubmitTransactionRequest(::google::protobuf::Arena* arena, const SubmitTransactionRequest& from); - SubmitTransactionRequest(::google::protobuf::Arena* arena, SubmitTransactionRequest&& from) noexcept + explicit SubmitTransactionRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SubmitTransactionRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SubmitTransactionRequest& from); + SubmitTransactionRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SubmitTransactionRequest&& from) noexcept : SubmitTransactionRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -10788,25 +14400,26 @@ class SubmitTransactionRequest final : public ::google::protobuf::Message bool has_transaction() const; void clear_transaction() ; const ::tari::rpc::Transaction& transaction() const; - PROTOBUF_NODISCARD ::tari::rpc::Transaction* release_transaction(); - ::tari::rpc::Transaction* mutable_transaction(); - void set_allocated_transaction(::tari::rpc::Transaction* value); - void unsafe_arena_set_allocated_transaction(::tari::rpc::Transaction* value); - ::tari::rpc::Transaction* unsafe_arena_release_transaction(); + [[nodiscard]] ::tari::rpc::Transaction* PROTOBUF_NULLABLE release_transaction(); + ::tari::rpc::Transaction* PROTOBUF_NONNULL mutable_transaction(); + void set_allocated_transaction(::tari::rpc::Transaction* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_transaction(::tari::rpc::Transaction* PROTOBUF_NULLABLE value); + ::tari::rpc::Transaction* PROTOBUF_NULLABLE unsafe_arena_release_transaction(); private: const ::tari::rpc::Transaction& _internal_transaction() const; - ::tari::rpc::Transaction* _internal_mutable_transaction(); + ::tari::rpc::Transaction* PROTOBUF_NONNULL _internal_mutable_transaction(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -10814,45 +14427,52 @@ class SubmitTransactionRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SubmitTransactionRequest& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Transaction* transaction_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::Transaction* PROTOBUF_NULLABLE transaction_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull SubmitTransactionRequest_class_data_; // ------------------------------------------------------------------- class NewBlockTemplateResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplateResponse) */ { public: inline NewBlockTemplateResponse() : NewBlockTemplateResponse(nullptr) {} - ~NewBlockTemplateResponse() override; + ~NewBlockTemplateResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(NewBlockTemplateResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(NewBlockTemplateResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR NewBlockTemplateResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : NewBlockTemplateResponse(nullptr, ::std::move(from)) {} inline NewBlockTemplateResponse& operator=(const NewBlockTemplateResponse& from) { CopyFrom(from); return *this; } inline NewBlockTemplateResponse& operator=(NewBlockTemplateResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -10864,42 +14484,35 @@ class NewBlockTemplateResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const NewBlockTemplateResponse& default_instance() { - return *internal_default_instance(); - } - static inline const NewBlockTemplateResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_NewBlockTemplateResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 9; + static constexpr int kIndexInFileMessages = 11; friend void swap(NewBlockTemplateResponse& a, NewBlockTemplateResponse& b) { a.Swap(&b); } - inline void Swap(NewBlockTemplateResponse* other) { + inline void Swap(NewBlockTemplateResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NewBlockTemplateResponse* other) { + void UnsafeArenaSwap(NewBlockTemplateResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -10907,7 +14520,7 @@ class NewBlockTemplateResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - NewBlockTemplateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + NewBlockTemplateResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -10916,41 +14529,63 @@ class NewBlockTemplateResponse final : public ::google::protobuf::Message void MergeFrom(const NewBlockTemplateResponse& from) { NewBlockTemplateResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NewBlockTemplateResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(NewBlockTemplateResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockTemplateResponse"; } protected: - explicit NewBlockTemplateResponse(::google::protobuf::Arena* arena); - NewBlockTemplateResponse(::google::protobuf::Arena* arena, const NewBlockTemplateResponse& from); - NewBlockTemplateResponse(::google::protobuf::Arena* arena, NewBlockTemplateResponse&& from) noexcept + explicit NewBlockTemplateResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + NewBlockTemplateResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NewBlockTemplateResponse& from); + NewBlockTemplateResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, NewBlockTemplateResponse&& from) noexcept : NewBlockTemplateResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -10963,30 +14598,30 @@ class NewBlockTemplateResponse final : public ::google::protobuf::Message bool has_new_block_template() const; void clear_new_block_template() ; const ::tari::rpc::NewBlockTemplate& new_block_template() const; - PROTOBUF_NODISCARD ::tari::rpc::NewBlockTemplate* release_new_block_template(); - ::tari::rpc::NewBlockTemplate* mutable_new_block_template(); - void set_allocated_new_block_template(::tari::rpc::NewBlockTemplate* value); - void unsafe_arena_set_allocated_new_block_template(::tari::rpc::NewBlockTemplate* value); - ::tari::rpc::NewBlockTemplate* unsafe_arena_release_new_block_template(); + [[nodiscard]] ::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE release_new_block_template(); + ::tari::rpc::NewBlockTemplate* PROTOBUF_NONNULL mutable_new_block_template(); + void set_allocated_new_block_template(::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_new_block_template(::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE value); + ::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE unsafe_arena_release_new_block_template(); private: const ::tari::rpc::NewBlockTemplate& _internal_new_block_template() const; - ::tari::rpc::NewBlockTemplate* _internal_mutable_new_block_template(); + ::tari::rpc::NewBlockTemplate* PROTOBUF_NONNULL _internal_mutable_new_block_template(); public: // .tari.rpc.MinerData miner_data = 4; bool has_miner_data() const; void clear_miner_data() ; const ::tari::rpc::MinerData& miner_data() const; - PROTOBUF_NODISCARD ::tari::rpc::MinerData* release_miner_data(); - ::tari::rpc::MinerData* mutable_miner_data(); - void set_allocated_miner_data(::tari::rpc::MinerData* value); - void unsafe_arena_set_allocated_miner_data(::tari::rpc::MinerData* value); - ::tari::rpc::MinerData* unsafe_arena_release_miner_data(); + [[nodiscard]] ::tari::rpc::MinerData* PROTOBUF_NULLABLE release_miner_data(); + ::tari::rpc::MinerData* PROTOBUF_NONNULL mutable_miner_data(); + void set_allocated_miner_data(::tari::rpc::MinerData* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_miner_data(::tari::rpc::MinerData* PROTOBUF_NULLABLE value); + ::tari::rpc::MinerData* PROTOBUF_NULLABLE unsafe_arena_release_miner_data(); private: const ::tari::rpc::MinerData& _internal_miner_data() const; - ::tari::rpc::MinerData* _internal_mutable_miner_data(); + ::tari::rpc::MinerData* PROTOBUF_NONNULL _internal_mutable_miner_data(); public: // bool initial_sync_achieved = 3; @@ -11003,10 +14638,11 @@ class NewBlockTemplateResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 2, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -11014,47 +14650,54 @@ class NewBlockTemplateResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const NewBlockTemplateResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::NewBlockTemplate* new_block_template_; - ::tari::rpc::MinerData* miner_data_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE new_block_template_; + ::tari::rpc::MinerData* PROTOBUF_NULLABLE miner_data_; bool initial_sync_achieved_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull NewBlockTemplateResponse_class_data_; // ------------------------------------------------------------------- class GetNewBlockWithCoinbasesRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockWithCoinbasesRequest) */ { public: inline GetNewBlockWithCoinbasesRequest() : GetNewBlockWithCoinbasesRequest(nullptr) {} - ~GetNewBlockWithCoinbasesRequest() override; + ~GetNewBlockWithCoinbasesRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetNewBlockWithCoinbasesRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetNewBlockWithCoinbasesRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetNewBlockWithCoinbasesRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetNewBlockWithCoinbasesRequest(nullptr, ::std::move(from)) {} inline GetNewBlockWithCoinbasesRequest& operator=(const GetNewBlockWithCoinbasesRequest& from) { CopyFrom(from); return *this; } inline GetNewBlockWithCoinbasesRequest& operator=(GetNewBlockWithCoinbasesRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -11066,42 +14709,35 @@ class GetNewBlockWithCoinbasesRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetNewBlockWithCoinbasesRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetNewBlockWithCoinbasesRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetNewBlockWithCoinbasesRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 12; + static constexpr int kIndexInFileMessages = 14; friend void swap(GetNewBlockWithCoinbasesRequest& a, GetNewBlockWithCoinbasesRequest& b) { a.Swap(&b); } - inline void Swap(GetNewBlockWithCoinbasesRequest* other) { + inline void Swap(GetNewBlockWithCoinbasesRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetNewBlockWithCoinbasesRequest* other) { + void UnsafeArenaSwap(GetNewBlockWithCoinbasesRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -11109,7 +14745,7 @@ class GetNewBlockWithCoinbasesRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetNewBlockWithCoinbasesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetNewBlockWithCoinbasesRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -11118,41 +14754,63 @@ class GetNewBlockWithCoinbasesRequest final : public ::google::protobuf::Message void MergeFrom(const GetNewBlockWithCoinbasesRequest& from) { GetNewBlockWithCoinbasesRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetNewBlockWithCoinbasesRequest* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetNewBlockWithCoinbasesRequest* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetNewBlockWithCoinbasesRequest"; } protected: - explicit GetNewBlockWithCoinbasesRequest(::google::protobuf::Arena* arena); - GetNewBlockWithCoinbasesRequest(::google::protobuf::Arena* arena, const GetNewBlockWithCoinbasesRequest& from); - GetNewBlockWithCoinbasesRequest(::google::protobuf::Arena* arena, GetNewBlockWithCoinbasesRequest&& from) noexcept + explicit GetNewBlockWithCoinbasesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetNewBlockWithCoinbasesRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetNewBlockWithCoinbasesRequest& from); + GetNewBlockWithCoinbasesRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetNewBlockWithCoinbasesRequest&& from) noexcept : GetNewBlockWithCoinbasesRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -11167,39 +14825,40 @@ class GetNewBlockWithCoinbasesRequest final : public ::google::protobuf::Message public: void clear_coinbases() ; - ::tari::rpc::NewBlockCoinbase* mutable_coinbases(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* mutable_coinbases(); + ::tari::rpc::NewBlockCoinbase* PROTOBUF_NONNULL mutable_coinbases(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* PROTOBUF_NONNULL mutable_coinbases(); private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>& _internal_coinbases() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* _internal_mutable_coinbases(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* PROTOBUF_NONNULL _internal_mutable_coinbases(); public: const ::tari::rpc::NewBlockCoinbase& coinbases(int index) const; - ::tari::rpc::NewBlockCoinbase* add_coinbases(); + ::tari::rpc::NewBlockCoinbase* PROTOBUF_NONNULL add_coinbases(); const ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>& coinbases() const; // .tari.rpc.NewBlockTemplate new_template = 1; bool has_new_template() const; void clear_new_template() ; const ::tari::rpc::NewBlockTemplate& new_template() const; - PROTOBUF_NODISCARD ::tari::rpc::NewBlockTemplate* release_new_template(); - ::tari::rpc::NewBlockTemplate* mutable_new_template(); - void set_allocated_new_template(::tari::rpc::NewBlockTemplate* value); - void unsafe_arena_set_allocated_new_template(::tari::rpc::NewBlockTemplate* value); - ::tari::rpc::NewBlockTemplate* unsafe_arena_release_new_template(); + [[nodiscard]] ::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE release_new_template(); + ::tari::rpc::NewBlockTemplate* PROTOBUF_NONNULL mutable_new_template(); + void set_allocated_new_template(::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_new_template(::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE value); + ::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE unsafe_arena_release_new_template(); private: const ::tari::rpc::NewBlockTemplate& _internal_new_template() const; - ::tari::rpc::NewBlockTemplate* _internal_mutable_new_template(); + ::tari::rpc::NewBlockTemplate* PROTOBUF_NONNULL _internal_mutable_new_template(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -11207,46 +14866,53 @@ class GetNewBlockWithCoinbasesRequest final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetNewBlockWithCoinbasesRequest& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::tari::rpc::NewBlockCoinbase > coinbases_; - ::tari::rpc::NewBlockTemplate* new_template_; + ::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE new_template_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetNewBlockWithCoinbasesRequest_class_data_; // ------------------------------------------------------------------- class GetNewBlockResult final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockResult) */ { public: inline GetNewBlockResult() : GetNewBlockResult(nullptr) {} - ~GetNewBlockResult() override; + ~GetNewBlockResult() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetNewBlockResult* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetNewBlockResult)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetNewBlockResult( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetNewBlockResult(nullptr, ::std::move(from)) {} inline GetNewBlockResult& operator=(const GetNewBlockResult& from) { CopyFrom(from); return *this; } inline GetNewBlockResult& operator=(GetNewBlockResult&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -11258,42 +14924,35 @@ class GetNewBlockResult final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetNewBlockResult& default_instance() { - return *internal_default_instance(); - } - static inline const GetNewBlockResult* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetNewBlockResult_default_instance_); } - static constexpr int kIndexInFileMessages = 30; + static constexpr int kIndexInFileMessages = 32; friend void swap(GetNewBlockResult& a, GetNewBlockResult& b) { a.Swap(&b); } - inline void Swap(GetNewBlockResult* other) { + inline void Swap(GetNewBlockResult* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetNewBlockResult* other) { + void UnsafeArenaSwap(GetNewBlockResult* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -11301,7 +14960,7 @@ class GetNewBlockResult final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetNewBlockResult* New(::google::protobuf::Arena* arena = nullptr) const final { + GetNewBlockResult* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -11310,41 +14969,63 @@ class GetNewBlockResult final : public ::google::protobuf::Message void MergeFrom(const GetNewBlockResult& from) { GetNewBlockResult::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetNewBlockResult* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetNewBlockResult* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetNewBlockResult"; } protected: - explicit GetNewBlockResult(::google::protobuf::Arena* arena); - GetNewBlockResult(::google::protobuf::Arena* arena, const GetNewBlockResult& from); - GetNewBlockResult(::google::protobuf::Arena* arena, GetNewBlockResult&& from) noexcept + explicit GetNewBlockResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetNewBlockResult(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetNewBlockResult& from); + GetNewBlockResult( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetNewBlockResult&& from) noexcept : GetNewBlockResult(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -11358,106 +15039,103 @@ class GetNewBlockResult final : public ::google::protobuf::Message }; // bytes block_hash = 1; void clear_block_hash() ; - const std::string& block_hash() const; - template + const ::std::string& block_hash() const; + template void set_block_hash(Arg_&& arg, Args_... args); - std::string* mutable_block_hash(); - PROTOBUF_NODISCARD std::string* release_block_hash(); - void set_allocated_block_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_block_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_block_hash(); + void set_allocated_block_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_block_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_block_hash( - const std::string& value); - std::string* _internal_mutable_block_hash(); + const ::std::string& _internal_block_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_block_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_block_hash(); public: // bytes merge_mining_hash = 3; void clear_merge_mining_hash() ; - const std::string& merge_mining_hash() const; - template + const ::std::string& merge_mining_hash() const; + template void set_merge_mining_hash(Arg_&& arg, Args_... args); - std::string* mutable_merge_mining_hash(); - PROTOBUF_NODISCARD std::string* release_merge_mining_hash(); - void set_allocated_merge_mining_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_merge_mining_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_merge_mining_hash(); + void set_allocated_merge_mining_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_merge_mining_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_merge_mining_hash( - const std::string& value); - std::string* _internal_mutable_merge_mining_hash(); + const ::std::string& _internal_merge_mining_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_merge_mining_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_merge_mining_hash(); public: // bytes tari_unique_id = 4; void clear_tari_unique_id() ; - const std::string& tari_unique_id() const; - template + const ::std::string& tari_unique_id() const; + template void set_tari_unique_id(Arg_&& arg, Args_... args); - std::string* mutable_tari_unique_id(); - PROTOBUF_NODISCARD std::string* release_tari_unique_id(); - void set_allocated_tari_unique_id(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_tari_unique_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_tari_unique_id(); + void set_allocated_tari_unique_id(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_tari_unique_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tari_unique_id( - const std::string& value); - std::string* _internal_mutable_tari_unique_id(); + const ::std::string& _internal_tari_unique_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_tari_unique_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_tari_unique_id(); public: // bytes vm_key = 6; void clear_vm_key() ; - const std::string& vm_key() const; - template + const ::std::string& vm_key() const; + template void set_vm_key(Arg_&& arg, Args_... args); - std::string* mutable_vm_key(); - PROTOBUF_NODISCARD std::string* release_vm_key(); - void set_allocated_vm_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_vm_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_vm_key(); + void set_allocated_vm_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_vm_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_vm_key( - const std::string& value); - std::string* _internal_mutable_vm_key(); + const ::std::string& _internal_vm_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_vm_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_vm_key(); public: // .tari.rpc.Block block = 2; bool has_block() const; void clear_block() ; const ::tari::rpc::Block& block() const; - PROTOBUF_NODISCARD ::tari::rpc::Block* release_block(); - ::tari::rpc::Block* mutable_block(); - void set_allocated_block(::tari::rpc::Block* value); - void unsafe_arena_set_allocated_block(::tari::rpc::Block* value); - ::tari::rpc::Block* unsafe_arena_release_block(); + [[nodiscard]] ::tari::rpc::Block* PROTOBUF_NULLABLE release_block(); + ::tari::rpc::Block* PROTOBUF_NONNULL mutable_block(); + void set_allocated_block(::tari::rpc::Block* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_block(::tari::rpc::Block* PROTOBUF_NULLABLE value); + ::tari::rpc::Block* PROTOBUF_NULLABLE unsafe_arena_release_block(); private: const ::tari::rpc::Block& _internal_block() const; - ::tari::rpc::Block* _internal_mutable_block(); + ::tari::rpc::Block* PROTOBUF_NONNULL _internal_mutable_block(); public: // .tari.rpc.MinerData miner_data = 5; bool has_miner_data() const; void clear_miner_data() ; const ::tari::rpc::MinerData& miner_data() const; - PROTOBUF_NODISCARD ::tari::rpc::MinerData* release_miner_data(); - ::tari::rpc::MinerData* mutable_miner_data(); - void set_allocated_miner_data(::tari::rpc::MinerData* value); - void unsafe_arena_set_allocated_miner_data(::tari::rpc::MinerData* value); - ::tari::rpc::MinerData* unsafe_arena_release_miner_data(); + [[nodiscard]] ::tari::rpc::MinerData* PROTOBUF_NULLABLE release_miner_data(); + ::tari::rpc::MinerData* PROTOBUF_NONNULL mutable_miner_data(); + void set_allocated_miner_data(::tari::rpc::MinerData* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_miner_data(::tari::rpc::MinerData* PROTOBUF_NULLABLE value); + ::tari::rpc::MinerData* PROTOBUF_NULLABLE unsafe_arena_release_miner_data(); private: const ::tari::rpc::MinerData& _internal_miner_data() const; - ::tari::rpc::MinerData* _internal_mutable_miner_data(); + ::tari::rpc::MinerData* PROTOBUF_NONNULL _internal_mutable_miner_data(); public: // @@protoc_insertion_point(class_scope:tari.rpc.GetNewBlockResult) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 2, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<3, 6, + 2, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -11465,50 +15143,57 @@ class GetNewBlockResult final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetNewBlockResult& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr block_hash_; ::google::protobuf::internal::ArenaStringPtr merge_mining_hash_; ::google::protobuf::internal::ArenaStringPtr tari_unique_id_; ::google::protobuf::internal::ArenaStringPtr vm_key_; - ::tari::rpc::Block* block_; - ::tari::rpc::MinerData* miner_data_; + ::tari::rpc::Block* PROTOBUF_NULLABLE block_; + ::tari::rpc::MinerData* PROTOBUF_NULLABLE miner_data_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetNewBlockResult_class_data_; // ------------------------------------------------------------------- class GetMempoolTransactionsResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetMempoolTransactionsResponse) */ { public: inline GetMempoolTransactionsResponse() : GetMempoolTransactionsResponse(nullptr) {} - ~GetMempoolTransactionsResponse() override; + ~GetMempoolTransactionsResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetMempoolTransactionsResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetMempoolTransactionsResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetMempoolTransactionsResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetMempoolTransactionsResponse(nullptr, ::std::move(from)) {} inline GetMempoolTransactionsResponse& operator=(const GetMempoolTransactionsResponse& from) { CopyFrom(from); return *this; } inline GetMempoolTransactionsResponse& operator=(GetMempoolTransactionsResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -11520,42 +15205,35 @@ class GetMempoolTransactionsResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetMempoolTransactionsResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetMempoolTransactionsResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetMempoolTransactionsResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 42; + static constexpr int kIndexInFileMessages = 44; friend void swap(GetMempoolTransactionsResponse& a, GetMempoolTransactionsResponse& b) { a.Swap(&b); } - inline void Swap(GetMempoolTransactionsResponse* other) { + inline void Swap(GetMempoolTransactionsResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetMempoolTransactionsResponse* other) { + void UnsafeArenaSwap(GetMempoolTransactionsResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -11563,7 +15241,7 @@ class GetMempoolTransactionsResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetMempoolTransactionsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetMempoolTransactionsResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -11572,41 +15250,63 @@ class GetMempoolTransactionsResponse final : public ::google::protobuf::Message void MergeFrom(const GetMempoolTransactionsResponse& from) { GetMempoolTransactionsResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetMempoolTransactionsResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetMempoolTransactionsResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetMempoolTransactionsResponse"; } protected: - explicit GetMempoolTransactionsResponse(::google::protobuf::Arena* arena); - GetMempoolTransactionsResponse(::google::protobuf::Arena* arena, const GetMempoolTransactionsResponse& from); - GetMempoolTransactionsResponse(::google::protobuf::Arena* arena, GetMempoolTransactionsResponse&& from) noexcept + explicit GetMempoolTransactionsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetMempoolTransactionsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetMempoolTransactionsResponse& from); + GetMempoolTransactionsResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetMempoolTransactionsResponse&& from) noexcept : GetMempoolTransactionsResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -11617,25 +15317,26 @@ class GetMempoolTransactionsResponse final : public ::google::protobuf::Message bool has_transaction() const; void clear_transaction() ; const ::tari::rpc::Transaction& transaction() const; - PROTOBUF_NODISCARD ::tari::rpc::Transaction* release_transaction(); - ::tari::rpc::Transaction* mutable_transaction(); - void set_allocated_transaction(::tari::rpc::Transaction* value); - void unsafe_arena_set_allocated_transaction(::tari::rpc::Transaction* value); - ::tari::rpc::Transaction* unsafe_arena_release_transaction(); + [[nodiscard]] ::tari::rpc::Transaction* PROTOBUF_NULLABLE release_transaction(); + ::tari::rpc::Transaction* PROTOBUF_NONNULL mutable_transaction(); + void set_allocated_transaction(::tari::rpc::Transaction* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_transaction(::tari::rpc::Transaction* PROTOBUF_NULLABLE value); + ::tari::rpc::Transaction* PROTOBUF_NULLABLE unsafe_arena_release_transaction(); private: const ::tari::rpc::Transaction& _internal_transaction() const; - ::tari::rpc::Transaction* _internal_mutable_transaction(); + ::tari::rpc::Transaction* PROTOBUF_NONNULL _internal_mutable_transaction(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -11643,45 +15344,52 @@ class GetMempoolTransactionsResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetMempoolTransactionsResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Transaction* transaction_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::Transaction* PROTOBUF_NULLABLE transaction_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetMempoolTransactionsResponse_class_data_; // ------------------------------------------------------------------- class GetBlocksResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetBlocksResponse) */ { public: inline GetBlocksResponse() : GetBlocksResponse(nullptr) {} - ~GetBlocksResponse() override; + ~GetBlocksResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetBlocksResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetBlocksResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetBlocksResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetBlocksResponse(nullptr, ::std::move(from)) {} inline GetBlocksResponse& operator=(const GetBlocksResponse& from) { CopyFrom(from); return *this; } inline GetBlocksResponse& operator=(GetBlocksResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -11693,42 +15401,35 @@ class GetBlocksResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetBlocksResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetBlocksResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetBlocksResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 26; + static constexpr int kIndexInFileMessages = 28; friend void swap(GetBlocksResponse& a, GetBlocksResponse& b) { a.Swap(&b); } - inline void Swap(GetBlocksResponse* other) { + inline void Swap(GetBlocksResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetBlocksResponse* other) { + void UnsafeArenaSwap(GetBlocksResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -11736,7 +15437,7 @@ class GetBlocksResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetBlocksResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetBlocksResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -11745,41 +15446,63 @@ class GetBlocksResponse final : public ::google::protobuf::Message void MergeFrom(const GetBlocksResponse& from) { GetBlocksResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetBlocksResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetBlocksResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetBlocksResponse"; } protected: - explicit GetBlocksResponse(::google::protobuf::Arena* arena); - GetBlocksResponse(::google::protobuf::Arena* arena, const GetBlocksResponse& from); - GetBlocksResponse(::google::protobuf::Arena* arena, GetBlocksResponse&& from) noexcept + explicit GetBlocksResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetBlocksResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetBlocksResponse& from); + GetBlocksResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetBlocksResponse&& from) noexcept : GetBlocksResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -11793,24 +15516,25 @@ class GetBlocksResponse final : public ::google::protobuf::Message public: void clear_blocks() ; - ::tari::rpc::HistoricalBlock* mutable_blocks(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* mutable_blocks(); + ::tari::rpc::HistoricalBlock* PROTOBUF_NONNULL mutable_blocks(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* PROTOBUF_NONNULL mutable_blocks(); private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>& _internal_blocks() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* _internal_mutable_blocks(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* PROTOBUF_NONNULL _internal_mutable_blocks(); public: const ::tari::rpc::HistoricalBlock& blocks(int index) const; - ::tari::rpc::HistoricalBlock* add_blocks(); + ::tari::rpc::HistoricalBlock* PROTOBUF_NONNULL add_blocks(); 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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -11818,20 +15542,24 @@ class GetBlocksResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetBlocksResponse& from_msg); ::google::protobuf::RepeatedPtrField< ::tari::rpc::HistoricalBlock > blocks_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_base_5fnode_2eproto; }; +extern const ::google::protobuf::internal::ClassDataFull GetBlocksResponse_class_data_; + // =================================================================== @@ -11850,51 +15578,66 @@ class GetBlocksResponse final : public ::google::protobuf::Message // bytes asset_public_key = 1; inline void GetAssetMetadataRequest::clear_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.asset_public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetAssetMetadataRequest::asset_public_key() const +inline const ::std::string& GetAssetMetadataRequest::asset_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataRequest.asset_public_key) return _internal_asset_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataRequest::set_asset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetAssetMetadataRequest::set_asset_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.asset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataRequest.asset_public_key) } -inline std::string* GetAssetMetadataRequest::mutable_asset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_asset_public_key(); +inline ::std::string* PROTOBUF_NONNULL GetAssetMetadataRequest::mutable_asset_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_asset_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataRequest.asset_public_key) return _s; } -inline const std::string& GetAssetMetadataRequest::_internal_asset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetAssetMetadataRequest::_internal_asset_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.asset_public_key_.Get(); } -inline void GetAssetMetadataRequest::_internal_set_asset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataRequest::_internal_set_asset_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.asset_public_key_.Set(value, GetArena()); } -inline std::string* GetAssetMetadataRequest::_internal_mutable_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetAssetMetadataRequest::_internal_mutable_asset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.asset_public_key_.Mutable( GetArena()); } -inline std::string* GetAssetMetadataRequest::release_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetAssetMetadataRequest::release_asset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataRequest.asset_public_key) - return _impl_.asset_public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.asset_public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.asset_public_key_.Set("", GetArena()); + } + return released; } -inline void GetAssetMetadataRequest::set_allocated_asset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataRequest::set_allocated_asset_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.asset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.asset_public_key_.IsDefault()) { - _impl_.asset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.asset_public_key_.IsDefault()) { + _impl_.asset_public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataRequest.asset_public_key) } @@ -11904,212 +15647,272 @@ inline void GetAssetMetadataRequest::set_allocated_asset_public_key(std::string* // string name = 2; inline void GetAssetMetadataResponse::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetAssetMetadataResponse::name() const +inline const ::std::string& GetAssetMetadataResponse::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.name) return _internal_name(); } template -inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.name) } -inline std::string* GetAssetMetadataResponse::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); +inline ::std::string* PROTOBUF_NONNULL GetAssetMetadataResponse::mutable_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.name) return _s; } -inline const std::string& GetAssetMetadataResponse::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetAssetMetadataResponse::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } -inline void GetAssetMetadataResponse::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataResponse::_internal_set_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(value, GetArena()); } -inline std::string* GetAssetMetadataResponse::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetAssetMetadataResponse::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.name_.Mutable( GetArena()); } -inline std::string* GetAssetMetadataResponse::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetAssetMetadataResponse::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataResponse.name) - return _impl_.name_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); + } + return released; } -inline void GetAssetMetadataResponse::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataResponse::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataResponse.name) } // string description = 3; inline void GetAssetMetadataResponse::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& GetAssetMetadataResponse::description() const +inline const ::std::string& GetAssetMetadataResponse::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.description) return _internal_description(); } template -inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_description(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.description) } -inline std::string* GetAssetMetadataResponse::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_description(); +inline ::std::string* PROTOBUF_NONNULL GetAssetMetadataResponse::mutable_description() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.description) return _s; } -inline const std::string& GetAssetMetadataResponse::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetAssetMetadataResponse::_internal_description() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.description_.Get(); } -inline void GetAssetMetadataResponse::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataResponse::_internal_set_description(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.description_.Set(value, GetArena()); } -inline std::string* GetAssetMetadataResponse::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetAssetMetadataResponse::_internal_mutable_description() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.description_.Mutable( GetArena()); } -inline std::string* GetAssetMetadataResponse::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetAssetMetadataResponse::release_description() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataResponse.description) - return _impl_.description_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.description_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.description_.Set("", GetArena()); + } + return released; } -inline void GetAssetMetadataResponse::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataResponse::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { + _impl_.description_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataResponse.description) } // string image = 4; inline void GetAssetMetadataResponse::clear_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.image_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& GetAssetMetadataResponse::image() const +inline const ::std::string& GetAssetMetadataResponse::image() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.image) return _internal_image(); } template -inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_image(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_image(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.image_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.image) } -inline std::string* GetAssetMetadataResponse::mutable_image() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_image(); +inline ::std::string* PROTOBUF_NONNULL GetAssetMetadataResponse::mutable_image() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_image(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.image) return _s; } -inline const std::string& GetAssetMetadataResponse::_internal_image() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetAssetMetadataResponse::_internal_image() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.image_.Get(); } -inline void GetAssetMetadataResponse::_internal_set_image(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataResponse::_internal_set_image(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.image_.Set(value, GetArena()); } -inline std::string* GetAssetMetadataResponse::_internal_mutable_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetAssetMetadataResponse::_internal_mutable_image() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.image_.Mutable( GetArena()); } -inline std::string* GetAssetMetadataResponse::release_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetAssetMetadataResponse::release_image() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataResponse.image) - return _impl_.image_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.image_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.image_.Set("", GetArena()); + } + return released; } -inline void GetAssetMetadataResponse::set_allocated_image(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataResponse::set_allocated_image(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.image_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.image_.IsDefault()) { - _impl_.image_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.image_.IsDefault()) { + _impl_.image_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataResponse.image) } // bytes owner_commitment = 5; inline void GetAssetMetadataResponse::clear_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.owner_commitment_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& GetAssetMetadataResponse::owner_commitment() const +inline const ::std::string& GetAssetMetadataResponse::owner_commitment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.owner_commitment) return _internal_owner_commitment(); } template -inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_owner_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_owner_commitment(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.owner_commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.owner_commitment) } -inline std::string* GetAssetMetadataResponse::mutable_owner_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_owner_commitment(); +inline ::std::string* PROTOBUF_NONNULL GetAssetMetadataResponse::mutable_owner_commitment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_owner_commitment(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.owner_commitment) return _s; } -inline const std::string& GetAssetMetadataResponse::_internal_owner_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetAssetMetadataResponse::_internal_owner_commitment() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.owner_commitment_.Get(); } -inline void GetAssetMetadataResponse::_internal_set_owner_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataResponse::_internal_set_owner_commitment(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.owner_commitment_.Set(value, GetArena()); } -inline std::string* GetAssetMetadataResponse::_internal_mutable_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetAssetMetadataResponse::_internal_mutable_owner_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.owner_commitment_.Mutable( GetArena()); } -inline std::string* GetAssetMetadataResponse::release_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetAssetMetadataResponse::release_owner_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataResponse.owner_commitment) - return _impl_.owner_commitment_.Release(); + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.owner_commitment_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.owner_commitment_.Set("", GetArena()); + } + return released; } -inline void GetAssetMetadataResponse::set_allocated_owner_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataResponse::set_allocated_owner_commitment(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } _impl_.owner_commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.owner_commitment_.IsDefault()) { - _impl_.owner_commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.owner_commitment_.IsDefault()) { + _impl_.owner_commitment_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataResponse.owner_commitment) } // .tari.rpc.OutputFeatures features = 6; inline bool GetAssetMetadataResponse::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); return value; } inline const ::tari::rpc::OutputFeatures& GetAssetMetadataResponse::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::OutputFeatures* p = _impl_.features_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputFeatures_default_instance_); } @@ -12117,76 +15920,78 @@ inline const ::tari::rpc::OutputFeatures& GetAssetMetadataResponse::features() c // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.features) return _internal_features(); } -inline void GetAssetMetadataResponse::unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataResponse::unsafe_arena_set_allocated_features( + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000020u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetAssetMetadataResponse.features) } -inline ::tari::rpc::OutputFeatures* GetAssetMetadataResponse::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE GetAssetMetadataResponse::release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; ::tari::rpc::OutputFeatures* released = _impl_.features_; _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::OutputFeatures* GetAssetMetadataResponse::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE GetAssetMetadataResponse::unsafe_arena_release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataResponse.features) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; ::tari::rpc::OutputFeatures* temp = _impl_.features_; _impl_.features_ = nullptr; return temp; } -inline ::tari::rpc::OutputFeatures* GetAssetMetadataResponse::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL GetAssetMetadataResponse::_internal_mutable_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ == nullptr) { 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; +inline ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL GetAssetMetadataResponse::mutable_features() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000020u; ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.features) return _msg; } -inline void GetAssetMetadataResponse::set_allocated_features(::tari::rpc::OutputFeatures* value) { +inline void GetAssetMetadataResponse::set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000020u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; } _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); @@ -12195,8 +16000,9 @@ inline void GetAssetMetadataResponse::set_allocated_features(::tari::rpc::Output // uint64 mined_height = 7; inline void GetAssetMetadataResponse::clear_mined_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mined_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000040u; } inline ::uint64_t GetAssetMetadataResponse::mined_height() const { // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.mined_height) @@ -12204,64 +16010,80 @@ inline ::uint64_t GetAssetMetadataResponse::mined_height() const { } inline void GetAssetMetadataResponse::set_mined_height(::uint64_t value) { _internal_set_mined_height(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.mined_height) } inline ::uint64_t GetAssetMetadataResponse::_internal_mined_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.mined_height_; } inline void GetAssetMetadataResponse::_internal_set_mined_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mined_height_ = value; } // bytes mined_in_block = 8; inline void GetAssetMetadataResponse::clear_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mined_in_block_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000010u; } -inline const std::string& GetAssetMetadataResponse::mined_in_block() const +inline const ::std::string& GetAssetMetadataResponse::mined_in_block() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.mined_in_block) return _internal_mined_in_block(); } template -inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_mined_in_block(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_mined_in_block(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.mined_in_block_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.mined_in_block) } -inline std::string* GetAssetMetadataResponse::mutable_mined_in_block() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_mined_in_block(); +inline ::std::string* PROTOBUF_NONNULL GetAssetMetadataResponse::mutable_mined_in_block() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_mined_in_block(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.mined_in_block) return _s; } -inline const std::string& GetAssetMetadataResponse::_internal_mined_in_block() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetAssetMetadataResponse::_internal_mined_in_block() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.mined_in_block_.Get(); } -inline void GetAssetMetadataResponse::_internal_set_mined_in_block(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataResponse::_internal_set_mined_in_block(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.mined_in_block_.Set(value, GetArena()); } -inline std::string* GetAssetMetadataResponse::_internal_mutable_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetAssetMetadataResponse::_internal_mutable_mined_in_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; return _impl_.mined_in_block_.Mutable( GetArena()); } -inline std::string* GetAssetMetadataResponse::release_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetAssetMetadataResponse::release_mined_in_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataResponse.mined_in_block) - return _impl_.mined_in_block_.Release(); + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000010u; + auto* released = _impl_.mined_in_block_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.mined_in_block_.Set("", GetArena()); + } + return released; } -inline void GetAssetMetadataResponse::set_allocated_mined_in_block(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetAssetMetadataResponse::set_allocated_mined_in_block(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000010u; + } else { + _impl_._has_bits_[0] &= ~0x00000010u; + } _impl_.mined_in_block_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mined_in_block_.IsDefault()) { - _impl_.mined_in_block_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mined_in_block_.IsDefault()) { + _impl_.mined_in_block_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataResponse.mined_in_block) } @@ -12271,8 +16093,9 @@ inline void GetAssetMetadataResponse::set_allocated_mined_in_block(std::string* // uint64 offset = 2; inline void ListAssetRegistrationsRequest::clear_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.offset_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t ListAssetRegistrationsRequest::offset() const { // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsRequest.offset) @@ -12280,21 +16103,23 @@ inline ::uint64_t ListAssetRegistrationsRequest::offset() const { } inline void ListAssetRegistrationsRequest::set_offset(::uint64_t value) { _internal_set_offset(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsRequest.offset) } inline ::uint64_t ListAssetRegistrationsRequest::_internal_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.offset_; } inline void ListAssetRegistrationsRequest::_internal_set_offset(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.offset_ = value; } // uint64 count = 3; inline void ListAssetRegistrationsRequest::clear_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.count_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t ListAssetRegistrationsRequest::count() const { // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsRequest.count) @@ -12302,14 +16127,15 @@ inline ::uint64_t ListAssetRegistrationsRequest::count() const { } inline void ListAssetRegistrationsRequest::set_count(::uint64_t value) { _internal_set_count(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsRequest.count) } inline ::uint64_t ListAssetRegistrationsRequest::_internal_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.count_; } inline void ListAssetRegistrationsRequest::_internal_set_count(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.count_ = value; } @@ -12319,158 +16145,204 @@ inline void ListAssetRegistrationsRequest::_internal_set_count(::uint64_t value) // bytes asset_public_key = 1; inline void ListAssetRegistrationsResponse::clear_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.asset_public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& ListAssetRegistrationsResponse::asset_public_key() const +inline const ::std::string& ListAssetRegistrationsResponse::asset_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.asset_public_key) return _internal_asset_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_asset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_asset_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.asset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.asset_public_key) } -inline std::string* ListAssetRegistrationsResponse::mutable_asset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_asset_public_key(); +inline ::std::string* PROTOBUF_NONNULL ListAssetRegistrationsResponse::mutable_asset_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_asset_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.asset_public_key) return _s; } -inline const std::string& ListAssetRegistrationsResponse::_internal_asset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& ListAssetRegistrationsResponse::_internal_asset_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.asset_public_key_.Get(); } -inline void ListAssetRegistrationsResponse::_internal_set_asset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ListAssetRegistrationsResponse::_internal_set_asset_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.asset_public_key_.Set(value, GetArena()); } -inline std::string* ListAssetRegistrationsResponse::_internal_mutable_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL ListAssetRegistrationsResponse::_internal_mutable_asset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.asset_public_key_.Mutable( GetArena()); } -inline std::string* ListAssetRegistrationsResponse::release_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE ListAssetRegistrationsResponse::release_asset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ListAssetRegistrationsResponse.asset_public_key) - return _impl_.asset_public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.asset_public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.asset_public_key_.Set("", GetArena()); + } + return released; } -inline void ListAssetRegistrationsResponse::set_allocated_asset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ListAssetRegistrationsResponse::set_allocated_asset_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.asset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.asset_public_key_.IsDefault()) { - _impl_.asset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.asset_public_key_.IsDefault()) { + _impl_.asset_public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.ListAssetRegistrationsResponse.asset_public_key) } // bytes unique_id = 2; inline void ListAssetRegistrationsResponse::clear_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.unique_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& ListAssetRegistrationsResponse::unique_id() const +inline const ::std::string& ListAssetRegistrationsResponse::unique_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.unique_id) return _internal_unique_id(); } template -inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_unique_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_unique_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.unique_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.unique_id) } -inline std::string* ListAssetRegistrationsResponse::mutable_unique_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_unique_id(); +inline ::std::string* PROTOBUF_NONNULL ListAssetRegistrationsResponse::mutable_unique_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_unique_id(); // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.unique_id) return _s; } -inline const std::string& ListAssetRegistrationsResponse::_internal_unique_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& ListAssetRegistrationsResponse::_internal_unique_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.unique_id_.Get(); } -inline void ListAssetRegistrationsResponse::_internal_set_unique_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ListAssetRegistrationsResponse::_internal_set_unique_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.unique_id_.Set(value, GetArena()); } -inline std::string* ListAssetRegistrationsResponse::_internal_mutable_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL ListAssetRegistrationsResponse::_internal_mutable_unique_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.unique_id_.Mutable( GetArena()); } -inline std::string* ListAssetRegistrationsResponse::release_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE ListAssetRegistrationsResponse::release_unique_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ListAssetRegistrationsResponse.unique_id) - return _impl_.unique_id_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.unique_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.unique_id_.Set("", GetArena()); + } + return released; } -inline void ListAssetRegistrationsResponse::set_allocated_unique_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ListAssetRegistrationsResponse::set_allocated_unique_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.unique_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.unique_id_.IsDefault()) { - _impl_.unique_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.unique_id_.IsDefault()) { + _impl_.unique_id_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.ListAssetRegistrationsResponse.unique_id) } // bytes owner_commitment = 3; inline void ListAssetRegistrationsResponse::clear_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.owner_commitment_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& ListAssetRegistrationsResponse::owner_commitment() const +inline const ::std::string& ListAssetRegistrationsResponse::owner_commitment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.owner_commitment) return _internal_owner_commitment(); } template -inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_owner_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_owner_commitment(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.owner_commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.owner_commitment) } -inline std::string* ListAssetRegistrationsResponse::mutable_owner_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_owner_commitment(); +inline ::std::string* PROTOBUF_NONNULL ListAssetRegistrationsResponse::mutable_owner_commitment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_owner_commitment(); // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.owner_commitment) return _s; } -inline const std::string& ListAssetRegistrationsResponse::_internal_owner_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& ListAssetRegistrationsResponse::_internal_owner_commitment() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.owner_commitment_.Get(); } -inline void ListAssetRegistrationsResponse::_internal_set_owner_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ListAssetRegistrationsResponse::_internal_set_owner_commitment(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.owner_commitment_.Set(value, GetArena()); } -inline std::string* ListAssetRegistrationsResponse::_internal_mutable_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL ListAssetRegistrationsResponse::_internal_mutable_owner_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.owner_commitment_.Mutable( GetArena()); } -inline std::string* ListAssetRegistrationsResponse::release_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE ListAssetRegistrationsResponse::release_owner_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ListAssetRegistrationsResponse.owner_commitment) - return _impl_.owner_commitment_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.owner_commitment_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.owner_commitment_.Set("", GetArena()); + } + return released; } -inline void ListAssetRegistrationsResponse::set_allocated_owner_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ListAssetRegistrationsResponse::set_allocated_owner_commitment(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.owner_commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.owner_commitment_.IsDefault()) { - _impl_.owner_commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.owner_commitment_.IsDefault()) { + _impl_.owner_commitment_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.ListAssetRegistrationsResponse.owner_commitment) } // uint64 mined_height = 4; inline void ListAssetRegistrationsResponse::clear_mined_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mined_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000040u; } inline ::uint64_t ListAssetRegistrationsResponse::mined_height() const { // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.mined_height) @@ -12478,75 +16350,91 @@ inline ::uint64_t ListAssetRegistrationsResponse::mined_height() const { } inline void ListAssetRegistrationsResponse::set_mined_height(::uint64_t value) { _internal_set_mined_height(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.mined_height) } inline ::uint64_t ListAssetRegistrationsResponse::_internal_mined_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.mined_height_; } inline void ListAssetRegistrationsResponse::_internal_set_mined_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mined_height_ = value; } // bytes mined_in_block = 5; inline void ListAssetRegistrationsResponse::clear_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mined_in_block_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& ListAssetRegistrationsResponse::mined_in_block() const +inline const ::std::string& ListAssetRegistrationsResponse::mined_in_block() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.mined_in_block) return _internal_mined_in_block(); } template -inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_mined_in_block(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_mined_in_block(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.mined_in_block_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.mined_in_block) } -inline std::string* ListAssetRegistrationsResponse::mutable_mined_in_block() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_mined_in_block(); +inline ::std::string* PROTOBUF_NONNULL ListAssetRegistrationsResponse::mutable_mined_in_block() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_mined_in_block(); // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.mined_in_block) return _s; } -inline const std::string& ListAssetRegistrationsResponse::_internal_mined_in_block() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& ListAssetRegistrationsResponse::_internal_mined_in_block() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.mined_in_block_.Get(); } -inline void ListAssetRegistrationsResponse::_internal_set_mined_in_block(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ListAssetRegistrationsResponse::_internal_set_mined_in_block(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.mined_in_block_.Set(value, GetArena()); } -inline std::string* ListAssetRegistrationsResponse::_internal_mutable_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL ListAssetRegistrationsResponse::_internal_mutable_mined_in_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.mined_in_block_.Mutable( GetArena()); } -inline std::string* ListAssetRegistrationsResponse::release_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE ListAssetRegistrationsResponse::release_mined_in_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ListAssetRegistrationsResponse.mined_in_block) - return _impl_.mined_in_block_.Release(); + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.mined_in_block_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.mined_in_block_.Set("", GetArena()); + } + return released; } -inline void ListAssetRegistrationsResponse::set_allocated_mined_in_block(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ListAssetRegistrationsResponse::set_allocated_mined_in_block(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } _impl_.mined_in_block_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mined_in_block_.IsDefault()) { - _impl_.mined_in_block_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mined_in_block_.IsDefault()) { + _impl_.mined_in_block_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.ListAssetRegistrationsResponse.mined_in_block) } // .tari.rpc.OutputFeatures features = 6; inline bool ListAssetRegistrationsResponse::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); return value; } inline const ::tari::rpc::OutputFeatures& ListAssetRegistrationsResponse::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::OutputFeatures* p = _impl_.features_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputFeatures_default_instance_); } @@ -12554,76 +16442,78 @@ inline const ::tari::rpc::OutputFeatures& ListAssetRegistrationsResponse::featur // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.features) return _internal_features(); } -inline void ListAssetRegistrationsResponse::unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ListAssetRegistrationsResponse::unsafe_arena_set_allocated_features( + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000020u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ListAssetRegistrationsResponse.features) } -inline ::tari::rpc::OutputFeatures* ListAssetRegistrationsResponse::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE ListAssetRegistrationsResponse::release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; ::tari::rpc::OutputFeatures* released = _impl_.features_; _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::OutputFeatures* ListAssetRegistrationsResponse::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE ListAssetRegistrationsResponse::unsafe_arena_release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ListAssetRegistrationsResponse.features) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; ::tari::rpc::OutputFeatures* temp = _impl_.features_; _impl_.features_ = nullptr; return temp; } -inline ::tari::rpc::OutputFeatures* ListAssetRegistrationsResponse::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL ListAssetRegistrationsResponse::_internal_mutable_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ == nullptr) { 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; +inline ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL ListAssetRegistrationsResponse::mutable_features() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000020u; ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.features) return _msg; } -inline void ListAssetRegistrationsResponse::set_allocated_features(::tari::rpc::OutputFeatures* value) { +inline void ListAssetRegistrationsResponse::set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000020u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; } _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); @@ -12632,51 +16522,66 @@ inline void ListAssetRegistrationsResponse::set_allocated_features(::tari::rpc:: // bytes script = 7; inline void ListAssetRegistrationsResponse::clear_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.script_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000010u; } -inline const std::string& ListAssetRegistrationsResponse::script() const +inline const ::std::string& ListAssetRegistrationsResponse::script() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.script) return _internal_script(); } template -inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_script(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_script(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.script) } -inline std::string* ListAssetRegistrationsResponse::mutable_script() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script(); +inline ::std::string* PROTOBUF_NONNULL ListAssetRegistrationsResponse::mutable_script() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_script(); // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.script) return _s; } -inline const std::string& ListAssetRegistrationsResponse::_internal_script() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& ListAssetRegistrationsResponse::_internal_script() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.script_.Get(); } -inline void ListAssetRegistrationsResponse::_internal_set_script(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ListAssetRegistrationsResponse::_internal_set_script(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.script_.Set(value, GetArena()); } -inline std::string* ListAssetRegistrationsResponse::_internal_mutable_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL ListAssetRegistrationsResponse::_internal_mutable_script() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; return _impl_.script_.Mutable( GetArena()); } -inline std::string* ListAssetRegistrationsResponse::release_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE ListAssetRegistrationsResponse::release_script() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ListAssetRegistrationsResponse.script) - return _impl_.script_.Release(); + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000010u; + auto* released = _impl_.script_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.script_.Set("", GetArena()); + } + return released; } -inline void ListAssetRegistrationsResponse::set_allocated_script(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ListAssetRegistrationsResponse::set_allocated_script(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000010u; + } else { + _impl_._has_bits_[0] &= ~0x00000010u; + } _impl_.script_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_.IsDefault()) { - _impl_.script_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.script_.IsDefault()) { + _impl_.script_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.ListAssetRegistrationsResponse.script) } @@ -12686,51 +16591,66 @@ inline void ListAssetRegistrationsResponse::set_allocated_script(std::string* va // bytes asset_public_key = 1; inline void GetTokensRequest::clear_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.asset_public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetTokensRequest::asset_public_key() const +inline const ::std::string& GetTokensRequest::asset_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetTokensRequest.asset_public_key) return _internal_asset_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void GetTokensRequest::set_asset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetTokensRequest::set_asset_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.asset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensRequest.asset_public_key) } -inline std::string* GetTokensRequest::mutable_asset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_asset_public_key(); +inline ::std::string* PROTOBUF_NONNULL GetTokensRequest::mutable_asset_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_asset_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensRequest.asset_public_key) return _s; } -inline const std::string& GetTokensRequest::_internal_asset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetTokensRequest::_internal_asset_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.asset_public_key_.Get(); } -inline void GetTokensRequest::_internal_set_asset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensRequest::_internal_set_asset_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.asset_public_key_.Set(value, GetArena()); } -inline std::string* GetTokensRequest::_internal_mutable_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetTokensRequest::_internal_mutable_asset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.asset_public_key_.Mutable( GetArena()); } -inline std::string* GetTokensRequest::release_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetTokensRequest::release_asset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetTokensRequest.asset_public_key) - return _impl_.asset_public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.asset_public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.asset_public_key_.Set("", GetArena()); + } + return released; } -inline void GetTokensRequest::set_allocated_asset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensRequest::set_allocated_asset_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.asset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.asset_public_key_.IsDefault()) { - _impl_.asset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.asset_public_key_.IsDefault()) { + _impl_.asset_public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensRequest.asset_public_key) } @@ -12742,97 +16662,59 @@ inline int GetTokensRequest::unique_ids_size() const { return _internal_unique_ids_size(); } inline void GetTokensRequest::clear_unique_ids() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.unique_ids_.Clear(); } -inline std::string* GetTokensRequest::add_unique_ids() +inline ::std::string* PROTOBUF_NONNULL GetTokensRequest::add_unique_ids() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_unique_ids()->Add(); + ::google::protobuf::internal::TSanWrite(&_impl_); + ::std::string* _s = _internal_mutable_unique_ids()->Add(); // @@protoc_insertion_point(field_add_mutable:tari.rpc.GetTokensRequest.unique_ids) return _s; } -inline const std::string& GetTokensRequest::unique_ids(int index) const +inline const ::std::string& GetTokensRequest::unique_ids(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetTokensRequest.unique_ids) return _internal_unique_ids().Get(index); } -inline std::string* GetTokensRequest::mutable_unique_ids(int index) +inline ::std::string* PROTOBUF_NONNULL GetTokensRequest::mutable_unique_ids(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensRequest.unique_ids) return _internal_mutable_unique_ids()->Mutable(index); } -inline void GetTokensRequest::set_unique_ids(int index, const std::string& value) { - _internal_mutable_unique_ids()->Mutable(index)->assign(value); +template +inline void GetTokensRequest::set_unique_ids(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString(*_internal_mutable_unique_ids()->Mutable(index), ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensRequest.unique_ids) } -inline void GetTokensRequest::set_unique_ids(int index, std::string&& value) { - _internal_mutable_unique_ids()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::set_unique_ids(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_unique_ids()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::set_unique_ids(int index, const void* value, - std::size_t size) { - _internal_mutable_unique_ids()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@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()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::add_unique_ids(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_unique_ids()->Add()->assign(value); +template +inline void GetTokensRequest::add_unique_ids(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_unique_ids(), + ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); // @@protoc_insertion_point(field_add:tari.rpc.GetTokensRequest.unique_ids) } -inline void GetTokensRequest::add_unique_ids(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_unique_ids()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::add_unique_ids(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_unique_ids()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::add_unique_ids(const void* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_unique_ids()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.GetTokensRequest.unique_ids) -} -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()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.GetTokensRequest.unique_ids) -} -inline const ::google::protobuf::RepeatedPtrField& -GetTokensRequest::unique_ids() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::RepeatedPtrField<::std::string>& GetTokensRequest::unique_ids() + const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:tari.rpc.GetTokensRequest.unique_ids) return _internal_unique_ids(); } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL GetTokensRequest::mutable_unique_ids() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.GetTokensRequest.unique_ids) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_unique_ids(); } -inline const ::google::protobuf::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField<::std::string>& GetTokensRequest::_internal_unique_ids() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.unique_ids_; } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL GetTokensRequest::_internal_mutable_unique_ids() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.unique_ids_; } @@ -12842,208 +16724,269 @@ GetTokensRequest::_internal_mutable_unique_ids() { // bytes unique_id = 1; inline void GetTokensResponse::clear_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.unique_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetTokensResponse::unique_id() const +inline const ::std::string& GetTokensResponse::unique_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.unique_id) return _internal_unique_id(); } template -inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_unique_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_unique_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.unique_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.unique_id) } -inline std::string* GetTokensResponse::mutable_unique_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_unique_id(); +inline ::std::string* PROTOBUF_NONNULL GetTokensResponse::mutable_unique_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_unique_id(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.unique_id) return _s; } -inline const std::string& GetTokensResponse::_internal_unique_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetTokensResponse::_internal_unique_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.unique_id_.Get(); } -inline void GetTokensResponse::_internal_set_unique_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensResponse::_internal_set_unique_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.unique_id_.Set(value, GetArena()); } -inline std::string* GetTokensResponse::_internal_mutable_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetTokensResponse::_internal_mutable_unique_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.unique_id_.Mutable( GetArena()); } -inline std::string* GetTokensResponse::release_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetTokensResponse::release_unique_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetTokensResponse.unique_id) - return _impl_.unique_id_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.unique_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.unique_id_.Set("", GetArena()); + } + return released; } -inline void GetTokensResponse::set_allocated_unique_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensResponse::set_allocated_unique_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.unique_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.unique_id_.IsDefault()) { - _impl_.unique_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.unique_id_.IsDefault()) { + _impl_.unique_id_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensResponse.unique_id) } // bytes asset_public_key = 2; inline void GetTokensResponse::clear_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.asset_public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& GetTokensResponse::asset_public_key() const +inline const ::std::string& GetTokensResponse::asset_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.asset_public_key) return _internal_asset_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_asset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_asset_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.asset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.asset_public_key) } -inline std::string* GetTokensResponse::mutable_asset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_asset_public_key(); +inline ::std::string* PROTOBUF_NONNULL GetTokensResponse::mutable_asset_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_asset_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.asset_public_key) return _s; } -inline const std::string& GetTokensResponse::_internal_asset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetTokensResponse::_internal_asset_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.asset_public_key_.Get(); } -inline void GetTokensResponse::_internal_set_asset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensResponse::_internal_set_asset_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.asset_public_key_.Set(value, GetArena()); } -inline std::string* GetTokensResponse::_internal_mutable_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetTokensResponse::_internal_mutable_asset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.asset_public_key_.Mutable( GetArena()); } -inline std::string* GetTokensResponse::release_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetTokensResponse::release_asset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetTokensResponse.asset_public_key) - return _impl_.asset_public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.asset_public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.asset_public_key_.Set("", GetArena()); + } + return released; } -inline void GetTokensResponse::set_allocated_asset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensResponse::set_allocated_asset_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.asset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.asset_public_key_.IsDefault()) { - _impl_.asset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.asset_public_key_.IsDefault()) { + _impl_.asset_public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensResponse.asset_public_key) } // bytes owner_commitment = 3; inline void GetTokensResponse::clear_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.owner_commitment_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& GetTokensResponse::owner_commitment() const +inline const ::std::string& GetTokensResponse::owner_commitment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.owner_commitment) return _internal_owner_commitment(); } template -inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_owner_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_owner_commitment(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.owner_commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.owner_commitment) } -inline std::string* GetTokensResponse::mutable_owner_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_owner_commitment(); +inline ::std::string* PROTOBUF_NONNULL GetTokensResponse::mutable_owner_commitment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_owner_commitment(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.owner_commitment) return _s; } -inline const std::string& GetTokensResponse::_internal_owner_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetTokensResponse::_internal_owner_commitment() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.owner_commitment_.Get(); } -inline void GetTokensResponse::_internal_set_owner_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensResponse::_internal_set_owner_commitment(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.owner_commitment_.Set(value, GetArena()); } -inline std::string* GetTokensResponse::_internal_mutable_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetTokensResponse::_internal_mutable_owner_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.owner_commitment_.Mutable( GetArena()); } -inline std::string* GetTokensResponse::release_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetTokensResponse::release_owner_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetTokensResponse.owner_commitment) - return _impl_.owner_commitment_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.owner_commitment_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.owner_commitment_.Set("", GetArena()); + } + return released; } -inline void GetTokensResponse::set_allocated_owner_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensResponse::set_allocated_owner_commitment(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.owner_commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.owner_commitment_.IsDefault()) { - _impl_.owner_commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.owner_commitment_.IsDefault()) { + _impl_.owner_commitment_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensResponse.owner_commitment) } // bytes mined_in_block = 4; inline void GetTokensResponse::clear_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mined_in_block_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& GetTokensResponse::mined_in_block() const +inline const ::std::string& GetTokensResponse::mined_in_block() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.mined_in_block) return _internal_mined_in_block(); } template -inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_mined_in_block(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_mined_in_block(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.mined_in_block_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.mined_in_block) } -inline std::string* GetTokensResponse::mutable_mined_in_block() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_mined_in_block(); +inline ::std::string* PROTOBUF_NONNULL GetTokensResponse::mutable_mined_in_block() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_mined_in_block(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.mined_in_block) return _s; } -inline const std::string& GetTokensResponse::_internal_mined_in_block() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetTokensResponse::_internal_mined_in_block() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.mined_in_block_.Get(); } -inline void GetTokensResponse::_internal_set_mined_in_block(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensResponse::_internal_set_mined_in_block(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.mined_in_block_.Set(value, GetArena()); } -inline std::string* GetTokensResponse::_internal_mutable_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetTokensResponse::_internal_mutable_mined_in_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.mined_in_block_.Mutable( GetArena()); } -inline std::string* GetTokensResponse::release_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetTokensResponse::release_mined_in_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetTokensResponse.mined_in_block) - return _impl_.mined_in_block_.Release(); + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.mined_in_block_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.mined_in_block_.Set("", GetArena()); + } + return released; } -inline void GetTokensResponse::set_allocated_mined_in_block(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensResponse::set_allocated_mined_in_block(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } _impl_.mined_in_block_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mined_in_block_.IsDefault()) { - _impl_.mined_in_block_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mined_in_block_.IsDefault()) { + _impl_.mined_in_block_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensResponse.mined_in_block) } // uint64 mined_height = 5; inline void GetTokensResponse::clear_mined_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mined_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000040u; } inline ::uint64_t GetTokensResponse::mined_height() const { // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.mined_height) @@ -13051,25 +16994,26 @@ inline ::uint64_t GetTokensResponse::mined_height() const { } inline void GetTokensResponse::set_mined_height(::uint64_t value) { _internal_set_mined_height(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.mined_height) } inline ::uint64_t GetTokensResponse::_internal_mined_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.mined_height_; } inline void GetTokensResponse::_internal_set_mined_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mined_height_ = value; } // .tari.rpc.OutputFeatures features = 6; inline bool GetTokensResponse::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); return value; } inline const ::tari::rpc::OutputFeatures& GetTokensResponse::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::OutputFeatures* p = _impl_.features_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputFeatures_default_instance_); } @@ -13077,76 +17021,78 @@ inline const ::tari::rpc::OutputFeatures& GetTokensResponse::features() const AB // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.features) return _internal_features(); } -inline void GetTokensResponse::unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensResponse::unsafe_arena_set_allocated_features( + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000020u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetTokensResponse.features) } -inline ::tari::rpc::OutputFeatures* GetTokensResponse::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE GetTokensResponse::release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; ::tari::rpc::OutputFeatures* released = _impl_.features_; _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::OutputFeatures* GetTokensResponse::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE GetTokensResponse::unsafe_arena_release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetTokensResponse.features) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; ::tari::rpc::OutputFeatures* temp = _impl_.features_; _impl_.features_ = nullptr; return temp; } -inline ::tari::rpc::OutputFeatures* GetTokensResponse::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL GetTokensResponse::_internal_mutable_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ == nullptr) { 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; +inline ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL GetTokensResponse::mutable_features() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000020u; ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.features) return _msg; } -inline void GetTokensResponse::set_allocated_features(::tari::rpc::OutputFeatures* value) { +inline void GetTokensResponse::set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000020u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000020u; } _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); @@ -13155,51 +17101,66 @@ inline void GetTokensResponse::set_allocated_features(::tari::rpc::OutputFeature // bytes script = 7; inline void GetTokensResponse::clear_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.script_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000010u; } -inline const std::string& GetTokensResponse::script() const +inline const ::std::string& GetTokensResponse::script() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.script) return _internal_script(); } template -inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_script(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_script(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.script) } -inline std::string* GetTokensResponse::mutable_script() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script(); +inline ::std::string* PROTOBUF_NONNULL GetTokensResponse::mutable_script() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_script(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.script) return _s; } -inline const std::string& GetTokensResponse::_internal_script() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetTokensResponse::_internal_script() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.script_.Get(); } -inline void GetTokensResponse::_internal_set_script(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensResponse::_internal_set_script(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.script_.Set(value, GetArena()); } -inline std::string* GetTokensResponse::_internal_mutable_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetTokensResponse::_internal_mutable_script() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; return _impl_.script_.Mutable( GetArena()); } -inline std::string* GetTokensResponse::release_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetTokensResponse::release_script() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetTokensResponse.script) - return _impl_.script_.Release(); + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000010u; + auto* released = _impl_.script_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.script_.Set("", GetArena()); + } + return released; } -inline void GetTokensResponse::set_allocated_script(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTokensResponse::set_allocated_script(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000010u; + } else { + _impl_._has_bits_[0] &= ~0x00000010u; + } _impl_.script_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_.IsDefault()) { - _impl_.script_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.script_.IsDefault()) { + _impl_.script_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensResponse.script) } @@ -13209,51 +17170,66 @@ inline void GetTokensResponse::set_allocated_script(std::string* value) { // bytes block_hash = 1; inline void SubmitBlockResponse::clear_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& SubmitBlockResponse::block_hash() const +inline const ::std::string& SubmitBlockResponse::block_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.SubmitBlockResponse.block_hash) return _internal_block_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void SubmitBlockResponse::set_block_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void SubmitBlockResponse::set_block_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.block_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.SubmitBlockResponse.block_hash) } -inline std::string* SubmitBlockResponse::mutable_block_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_block_hash(); +inline ::std::string* PROTOBUF_NONNULL SubmitBlockResponse::mutable_block_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_block_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.SubmitBlockResponse.block_hash) return _s; } -inline const std::string& SubmitBlockResponse::_internal_block_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& SubmitBlockResponse::_internal_block_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.block_hash_.Get(); } -inline void SubmitBlockResponse::_internal_set_block_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SubmitBlockResponse::_internal_set_block_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.block_hash_.Set(value, GetArena()); } -inline std::string* SubmitBlockResponse::_internal_mutable_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL SubmitBlockResponse::_internal_mutable_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.block_hash_.Mutable( GetArena()); } -inline std::string* SubmitBlockResponse::release_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE SubmitBlockResponse::release_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.SubmitBlockResponse.block_hash) - return _impl_.block_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.block_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.block_hash_.Set("", GetArena()); + } + return released; } -inline void SubmitBlockResponse::set_allocated_block_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SubmitBlockResponse::set_allocated_block_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.block_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.block_hash_.IsDefault()) { - _impl_.block_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.block_hash_.IsDefault()) { + _impl_.block_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.SubmitBlockResponse.block_hash) } @@ -13263,101 +17239,131 @@ inline void SubmitBlockResponse::set_allocated_block_hash(std::string* value) { // bytes header_blob = 1; inline void BlockBlobRequest::clear_header_blob() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.header_blob_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& BlockBlobRequest::header_blob() const +inline const ::std::string& BlockBlobRequest::header_blob() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockBlobRequest.header_blob) return _internal_header_blob(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockBlobRequest::set_header_blob(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockBlobRequest::set_header_blob(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.header_blob_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockBlobRequest.header_blob) } -inline std::string* BlockBlobRequest::mutable_header_blob() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_header_blob(); +inline ::std::string* PROTOBUF_NONNULL BlockBlobRequest::mutable_header_blob() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_header_blob(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockBlobRequest.header_blob) return _s; } -inline const std::string& BlockBlobRequest::_internal_header_blob() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockBlobRequest::_internal_header_blob() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.header_blob_.Get(); } -inline void BlockBlobRequest::_internal_set_header_blob(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockBlobRequest::_internal_set_header_blob(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.header_blob_.Set(value, GetArena()); } -inline std::string* BlockBlobRequest::_internal_mutable_header_blob() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockBlobRequest::_internal_mutable_header_blob() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.header_blob_.Mutable( GetArena()); } -inline std::string* BlockBlobRequest::release_header_blob() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockBlobRequest::release_header_blob() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockBlobRequest.header_blob) - return _impl_.header_blob_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.header_blob_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.header_blob_.Set("", GetArena()); + } + return released; } -inline void BlockBlobRequest::set_allocated_header_blob(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockBlobRequest::set_allocated_header_blob(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.header_blob_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.header_blob_.IsDefault()) { - _impl_.header_blob_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.header_blob_.IsDefault()) { + _impl_.header_blob_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockBlobRequest.header_blob) } // bytes body_blob = 2; inline void BlockBlobRequest::clear_body_blob() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.body_blob_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& BlockBlobRequest::body_blob() const +inline const ::std::string& BlockBlobRequest::body_blob() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockBlobRequest.body_blob) return _internal_body_blob(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockBlobRequest::set_body_blob(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockBlobRequest::set_body_blob(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.body_blob_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockBlobRequest.body_blob) } -inline std::string* BlockBlobRequest::mutable_body_blob() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_body_blob(); +inline ::std::string* PROTOBUF_NONNULL BlockBlobRequest::mutable_body_blob() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_body_blob(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockBlobRequest.body_blob) return _s; } -inline const std::string& BlockBlobRequest::_internal_body_blob() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockBlobRequest::_internal_body_blob() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.body_blob_.Get(); } -inline void BlockBlobRequest::_internal_set_body_blob(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockBlobRequest::_internal_set_body_blob(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.body_blob_.Set(value, GetArena()); } -inline std::string* BlockBlobRequest::_internal_mutable_body_blob() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockBlobRequest::_internal_mutable_body_blob() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.body_blob_.Mutable( GetArena()); } -inline std::string* BlockBlobRequest::release_body_blob() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockBlobRequest::release_body_blob() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockBlobRequest.body_blob) - return _impl_.body_blob_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.body_blob_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.body_blob_.Set("", GetArena()); + } + return released; } -inline void BlockBlobRequest::set_allocated_body_blob(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockBlobRequest::set_allocated_body_blob(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.body_blob_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.body_blob_.IsDefault()) { - _impl_.body_blob_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.body_blob_.IsDefault()) { + _impl_.body_blob_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockBlobRequest.body_blob) } @@ -13372,12 +17378,12 @@ inline bool TipInfoResponse::has_metadata() const { return value; } inline void TipInfoResponse::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::tari::rpc::MetaData& TipInfoResponse::_internal_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::MetaData* p = _impl_.metadata_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_MetaData_default_instance_); } @@ -13385,8 +17391,9 @@ inline const ::tari::rpc::MetaData& TipInfoResponse::metadata() const ABSL_ATTRI // @@protoc_insertion_point(field_get:tari.rpc.TipInfoResponse.metadata) return _internal_metadata(); } -inline void TipInfoResponse::unsafe_arena_set_allocated_metadata(::tari::rpc::MetaData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TipInfoResponse::unsafe_arena_set_allocated_metadata( + ::tari::rpc::MetaData* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); } @@ -13398,27 +17405,27 @@ inline void TipInfoResponse::unsafe_arena_set_allocated_metadata(::tari::rpc::Me } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TipInfoResponse.metadata) } -inline ::tari::rpc::MetaData* TipInfoResponse::release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::MetaData* PROTOBUF_NULLABLE TipInfoResponse::release_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::MetaData* released = _impl_.metadata_; _impl_.metadata_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::MetaData* TipInfoResponse::unsafe_arena_release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::MetaData* PROTOBUF_NULLABLE TipInfoResponse::unsafe_arena_release_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TipInfoResponse.metadata) _impl_._has_bits_[0] &= ~0x00000001u; @@ -13426,29 +17433,30 @@ inline ::tari::rpc::MetaData* TipInfoResponse::unsafe_arena_release_metadata() { _impl_.metadata_ = nullptr; return temp; } -inline ::tari::rpc::MetaData* TipInfoResponse::_internal_mutable_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::MetaData* PROTOBUF_NONNULL TipInfoResponse::_internal_mutable_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_ == nullptr) { 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 { +inline ::tari::rpc::MetaData* PROTOBUF_NONNULL 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; } -inline void TipInfoResponse::set_allocated_metadata(::tari::rpc::MetaData* value) { +inline void TipInfoResponse::set_allocated_metadata(::tari::rpc::MetaData* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.metadata_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -13463,8 +17471,9 @@ inline void TipInfoResponse::set_allocated_metadata(::tari::rpc::MetaData* value // bool initial_sync_achieved = 2; inline void TipInfoResponse::clear_initial_sync_achieved() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.initial_sync_achieved_ = false; + _impl_._has_bits_[0] &= ~0x00000004u; } inline bool TipInfoResponse::initial_sync_achieved() const { // @@protoc_insertion_point(field_get:tari.rpc.TipInfoResponse.initial_sync_achieved) @@ -13472,21 +17481,23 @@ inline bool TipInfoResponse::initial_sync_achieved() const { } inline void TipInfoResponse::set_initial_sync_achieved(bool value) { _internal_set_initial_sync_achieved(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.TipInfoResponse.initial_sync_achieved) } inline bool TipInfoResponse::_internal_initial_sync_achieved() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.initial_sync_achieved_; } inline void TipInfoResponse::_internal_set_initial_sync_achieved(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.initial_sync_achieved_ = value; } // .tari.rpc.BaseNodeState base_node_state = 3; inline void TipInfoResponse::clear_base_node_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.base_node_state_ = 0; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::tari::rpc::BaseNodeState TipInfoResponse::base_node_state() const { // @@protoc_insertion_point(field_get:tari.rpc.TipInfoResponse.base_node_state) @@ -13494,21 +17505,23 @@ inline ::tari::rpc::BaseNodeState TipInfoResponse::base_node_state() const { } inline void TipInfoResponse::set_base_node_state(::tari::rpc::BaseNodeState value) { _internal_set_base_node_state(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.TipInfoResponse.base_node_state) } inline ::tari::rpc::BaseNodeState TipInfoResponse::_internal_base_node_state() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::tari::rpc::BaseNodeState>(_impl_.base_node_state_); } inline void TipInfoResponse::_internal_set_base_node_state(::tari::rpc::BaseNodeState value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.base_node_state_ = value; } // bool failed_checkpoints = 4; inline void TipInfoResponse::clear_failed_checkpoints() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.failed_checkpoints_ = false; + _impl_._has_bits_[0] &= ~0x00000008u; } inline bool TipInfoResponse::failed_checkpoints() const { // @@protoc_insertion_point(field_get:tari.rpc.TipInfoResponse.failed_checkpoints) @@ -13516,19 +17529,295 @@ inline bool TipInfoResponse::failed_checkpoints() const { } inline void TipInfoResponse::set_failed_checkpoints(bool value) { _internal_set_failed_checkpoints(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.TipInfoResponse.failed_checkpoints) } inline bool TipInfoResponse::_internal_failed_checkpoints() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.failed_checkpoints_; } inline void TipInfoResponse::_internal_set_failed_checkpoints(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.failed_checkpoints_ = value; } // ------------------------------------------------------------------- +// ReadinessStatus + +// .tari.rpc.ReadinessStatus.State state = 1; +inline bool ReadinessStatus::has_state() const { + return status_case() == kState; +} +inline void ReadinessStatus::set_has_state() { + _impl_._oneof_case_[0] = kState; +} +inline void ReadinessStatus::clear_state() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (status_case() == kState) { + _impl_.status_.state_ = 0; + clear_has_status(); + } +} +inline ::tari::rpc::ReadinessStatus_State ReadinessStatus::state() const { + // @@protoc_insertion_point(field_get:tari.rpc.ReadinessStatus.state) + return _internal_state(); +} +inline void ReadinessStatus::set_state(::tari::rpc::ReadinessStatus_State value) { + if (status_case() != kState) { + clear_status(); + set_has_state(); + } + _impl_.status_.state_ = value; + // @@protoc_insertion_point(field_set:tari.rpc.ReadinessStatus.state) +} +inline ::tari::rpc::ReadinessStatus_State ReadinessStatus::_internal_state() const { + if (status_case() == kState) { + return static_cast<::tari::rpc::ReadinessStatus_State>(_impl_.status_.state_); + } + return static_cast<::tari::rpc::ReadinessStatus_State>(0); +} + +// .tari.rpc.MigrationProgress migration = 2; +inline bool ReadinessStatus::has_migration() const { + return status_case() == kMigration; +} +inline bool ReadinessStatus::_internal_has_migration() const { + return status_case() == kMigration; +} +inline void ReadinessStatus::set_has_migration() { + _impl_._oneof_case_[0] = kMigration; +} +inline void ReadinessStatus::clear_migration() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (status_case() == kMigration) { + if (GetArena() == nullptr) { + delete _impl_.status_.migration_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.status_.migration_); + } + clear_has_status(); + } +} +inline ::tari::rpc::MigrationProgress* PROTOBUF_NULLABLE ReadinessStatus::release_migration() { + // @@protoc_insertion_point(field_release:tari.rpc.ReadinessStatus.migration) + if (status_case() == kMigration) { + clear_has_status(); + auto* temp = _impl_.status_.migration_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.status_.migration_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::tari::rpc::MigrationProgress& ReadinessStatus::_internal_migration() const { + return status_case() == kMigration ? *_impl_.status_.migration_ : reinterpret_cast<::tari::rpc::MigrationProgress&>(::tari::rpc::_MigrationProgress_default_instance_); +} +inline const ::tari::rpc::MigrationProgress& ReadinessStatus::migration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ReadinessStatus.migration) + return _internal_migration(); +} +inline ::tari::rpc::MigrationProgress* PROTOBUF_NULLABLE ReadinessStatus::unsafe_arena_release_migration() { + // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.ReadinessStatus.migration) + if (status_case() == kMigration) { + clear_has_status(); + auto* temp = _impl_.status_.migration_; + _impl_.status_.migration_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ReadinessStatus::unsafe_arena_set_allocated_migration( + ::tari::rpc::MigrationProgress* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_status(); + if (value) { + set_has_migration(); + _impl_.status_.migration_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ReadinessStatus.migration) +} +inline ::tari::rpc::MigrationProgress* PROTOBUF_NONNULL ReadinessStatus::_internal_mutable_migration() { + if (status_case() != kMigration) { + clear_status(); + set_has_migration(); + _impl_.status_.migration_ = + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::MigrationProgress>(GetArena()); + } + return _impl_.status_.migration_; +} +inline ::tari::rpc::MigrationProgress* PROTOBUF_NONNULL ReadinessStatus::mutable_migration() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::tari::rpc::MigrationProgress* _msg = _internal_mutable_migration(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ReadinessStatus.migration) + return _msg; +} + +// uint64 timestamp = 6; +inline void ReadinessStatus::clear_timestamp() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.timestamp_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline ::uint64_t ReadinessStatus::timestamp() const { + // @@protoc_insertion_point(field_get:tari.rpc.ReadinessStatus.timestamp) + return _internal_timestamp(); +} +inline void ReadinessStatus::set_timestamp(::uint64_t value) { + _internal_set_timestamp(value); + _impl_._has_bits_[0] |= 0x00000001u; + // @@protoc_insertion_point(field_set:tari.rpc.ReadinessStatus.timestamp) +} +inline ::uint64_t ReadinessStatus::_internal_timestamp() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.timestamp_; +} +inline void ReadinessStatus::_internal_set_timestamp(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.timestamp_ = value; +} + +inline bool ReadinessStatus::has_status() const { + return status_case() != STATUS_NOT_SET; +} +inline void ReadinessStatus::clear_has_status() { + _impl_._oneof_case_[0] = STATUS_NOT_SET; +} +inline ReadinessStatus::StatusCase ReadinessStatus::status_case() const { + return ReadinessStatus::StatusCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// MigrationProgress + +// uint64 current_block = 1; +inline void MigrationProgress::clear_current_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.current_block_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline ::uint64_t MigrationProgress::current_block() const { + // @@protoc_insertion_point(field_get:tari.rpc.MigrationProgress.current_block) + return _internal_current_block(); +} +inline void MigrationProgress::set_current_block(::uint64_t value) { + _internal_set_current_block(value); + _impl_._has_bits_[0] |= 0x00000001u; + // @@protoc_insertion_point(field_set:tari.rpc.MigrationProgress.current_block) +} +inline ::uint64_t MigrationProgress::_internal_current_block() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.current_block_; +} +inline void MigrationProgress::_internal_set_current_block(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.current_block_ = value; +} + +// uint64 total_blocks = 2; +inline void MigrationProgress::clear_total_blocks() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.total_blocks_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline ::uint64_t MigrationProgress::total_blocks() const { + // @@protoc_insertion_point(field_get:tari.rpc.MigrationProgress.total_blocks) + return _internal_total_blocks(); +} +inline void MigrationProgress::set_total_blocks(::uint64_t value) { + _internal_set_total_blocks(value); + _impl_._has_bits_[0] |= 0x00000002u; + // @@protoc_insertion_point(field_set:tari.rpc.MigrationProgress.total_blocks) +} +inline ::uint64_t MigrationProgress::_internal_total_blocks() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.total_blocks_; +} +inline void MigrationProgress::_internal_set_total_blocks(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.total_blocks_ = value; +} + +// double progress_percentage = 3; +inline void MigrationProgress::clear_progress_percentage() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.progress_percentage_ = 0; + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline double MigrationProgress::progress_percentage() const { + // @@protoc_insertion_point(field_get:tari.rpc.MigrationProgress.progress_percentage) + return _internal_progress_percentage(); +} +inline void MigrationProgress::set_progress_percentage(double value) { + _internal_set_progress_percentage(value); + _impl_._has_bits_[0] |= 0x00000004u; + // @@protoc_insertion_point(field_set:tari.rpc.MigrationProgress.progress_percentage) +} +inline double MigrationProgress::_internal_progress_percentage() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.progress_percentage_; +} +inline void MigrationProgress::_internal_set_progress_percentage(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.progress_percentage_ = value; +} + +// uint64 current_db_version = 4; +inline void MigrationProgress::clear_current_db_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.current_db_version_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000008u; +} +inline ::uint64_t MigrationProgress::current_db_version() const { + // @@protoc_insertion_point(field_get:tari.rpc.MigrationProgress.current_db_version) + return _internal_current_db_version(); +} +inline void MigrationProgress::set_current_db_version(::uint64_t value) { + _internal_set_current_db_version(value); + _impl_._has_bits_[0] |= 0x00000008u; + // @@protoc_insertion_point(field_set:tari.rpc.MigrationProgress.current_db_version) +} +inline ::uint64_t MigrationProgress::_internal_current_db_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.current_db_version_; +} +inline void MigrationProgress::_internal_set_current_db_version(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.current_db_version_ = value; +} + +// uint64 target_db_version = 5; +inline void MigrationProgress::clear_target_db_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.target_db_version_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000010u; +} +inline ::uint64_t MigrationProgress::target_db_version() const { + // @@protoc_insertion_point(field_get:tari.rpc.MigrationProgress.target_db_version) + return _internal_target_db_version(); +} +inline void MigrationProgress::set_target_db_version(::uint64_t value) { + _internal_set_target_db_version(value); + _impl_._has_bits_[0] |= 0x00000010u; + // @@protoc_insertion_point(field_set:tari.rpc.MigrationProgress.target_db_version) +} +inline ::uint64_t MigrationProgress::_internal_target_db_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.target_db_version_; +} +inline void MigrationProgress::_internal_set_target_db_version(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.target_db_version_ = value; +} + +// ------------------------------------------------------------------- + // NewBlockTemplateResponse // .tari.rpc.NewBlockTemplate new_block_template = 1; @@ -13538,7 +17827,7 @@ inline bool NewBlockTemplateResponse::has_new_block_template() const { return value; } inline const ::tari::rpc::NewBlockTemplate& NewBlockTemplateResponse::_internal_new_block_template() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::NewBlockTemplate* p = _impl_.new_block_template_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_NewBlockTemplate_default_instance_); } @@ -13546,8 +17835,9 @@ inline const ::tari::rpc::NewBlockTemplate& NewBlockTemplateResponse::new_block_ // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplateResponse.new_block_template) return _internal_new_block_template(); } -inline void NewBlockTemplateResponse::unsafe_arena_set_allocated_new_block_template(::tari::rpc::NewBlockTemplate* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockTemplateResponse::unsafe_arena_set_allocated_new_block_template( + ::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.new_block_template_); } @@ -13559,27 +17849,27 @@ inline void NewBlockTemplateResponse::unsafe_arena_set_allocated_new_block_templ } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.NewBlockTemplateResponse.new_block_template) } -inline ::tari::rpc::NewBlockTemplate* NewBlockTemplateResponse::release_new_block_template() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE NewBlockTemplateResponse::release_new_block_template() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::NewBlockTemplate* released = _impl_.new_block_template_; _impl_.new_block_template_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::NewBlockTemplate* NewBlockTemplateResponse::unsafe_arena_release_new_block_template() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE NewBlockTemplateResponse::unsafe_arena_release_new_block_template() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NewBlockTemplateResponse.new_block_template) _impl_._has_bits_[0] &= ~0x00000001u; @@ -13587,29 +17877,30 @@ inline ::tari::rpc::NewBlockTemplate* NewBlockTemplateResponse::unsafe_arena_rel _impl_.new_block_template_ = nullptr; return temp; } -inline ::tari::rpc::NewBlockTemplate* NewBlockTemplateResponse::_internal_mutable_new_block_template() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::NewBlockTemplate* PROTOBUF_NONNULL NewBlockTemplateResponse::_internal_mutable_new_block_template() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.new_block_template_ == nullptr) { 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 { +inline ::tari::rpc::NewBlockTemplate* PROTOBUF_NONNULL 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; } -inline void NewBlockTemplateResponse::set_allocated_new_block_template(::tari::rpc::NewBlockTemplate* value) { +inline void NewBlockTemplateResponse::set_allocated_new_block_template(::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.new_block_template_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -13624,8 +17915,9 @@ inline void NewBlockTemplateResponse::set_allocated_new_block_template(::tari::r // bool initial_sync_achieved = 3; inline void NewBlockTemplateResponse::clear_initial_sync_achieved() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.initial_sync_achieved_ = false; + _impl_._has_bits_[0] &= ~0x00000004u; } inline bool NewBlockTemplateResponse::initial_sync_achieved() const { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplateResponse.initial_sync_achieved) @@ -13633,14 +17925,15 @@ inline bool NewBlockTemplateResponse::initial_sync_achieved() const { } inline void NewBlockTemplateResponse::set_initial_sync_achieved(bool value) { _internal_set_initial_sync_achieved(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.NewBlockTemplateResponse.initial_sync_achieved) } inline bool NewBlockTemplateResponse::_internal_initial_sync_achieved() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.initial_sync_achieved_; } inline void NewBlockTemplateResponse::_internal_set_initial_sync_achieved(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.initial_sync_achieved_ = value; } @@ -13651,12 +17944,12 @@ inline bool NewBlockTemplateResponse::has_miner_data() const { return value; } inline void NewBlockTemplateResponse::clear_miner_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.miner_data_ != nullptr) _impl_.miner_data_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::tari::rpc::MinerData& NewBlockTemplateResponse::_internal_miner_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::MinerData* p = _impl_.miner_data_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_MinerData_default_instance_); } @@ -13664,8 +17957,9 @@ inline const ::tari::rpc::MinerData& NewBlockTemplateResponse::miner_data() cons // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplateResponse.miner_data) return _internal_miner_data(); } -inline void NewBlockTemplateResponse::unsafe_arena_set_allocated_miner_data(::tari::rpc::MinerData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockTemplateResponse::unsafe_arena_set_allocated_miner_data( + ::tari::rpc::MinerData* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.miner_data_); } @@ -13677,27 +17971,27 @@ inline void NewBlockTemplateResponse::unsafe_arena_set_allocated_miner_data(::ta } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.NewBlockTemplateResponse.miner_data) } -inline ::tari::rpc::MinerData* NewBlockTemplateResponse::release_miner_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::MinerData* PROTOBUF_NULLABLE NewBlockTemplateResponse::release_miner_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000002u; ::tari::rpc::MinerData* released = _impl_.miner_data_; _impl_.miner_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::MinerData* NewBlockTemplateResponse::unsafe_arena_release_miner_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::MinerData* PROTOBUF_NULLABLE NewBlockTemplateResponse::unsafe_arena_release_miner_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NewBlockTemplateResponse.miner_data) _impl_._has_bits_[0] &= ~0x00000002u; @@ -13705,29 +17999,30 @@ inline ::tari::rpc::MinerData* NewBlockTemplateResponse::unsafe_arena_release_mi _impl_.miner_data_ = nullptr; return temp; } -inline ::tari::rpc::MinerData* NewBlockTemplateResponse::_internal_mutable_miner_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::MinerData* PROTOBUF_NONNULL NewBlockTemplateResponse::_internal_mutable_miner_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.miner_data_ == nullptr) { 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 { +inline ::tari::rpc::MinerData* PROTOBUF_NONNULL 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; } -inline void NewBlockTemplateResponse::set_allocated_miner_data(::tari::rpc::MinerData* value) { +inline void NewBlockTemplateResponse::set_allocated_miner_data(::tari::rpc::MinerData* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.miner_data_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.miner_data_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -13751,7 +18046,7 @@ inline bool NewBlockTemplateRequest::has_algo() const { return value; } inline const ::tari::rpc::PowAlgo& NewBlockTemplateRequest::_internal_algo() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::PowAlgo* p = _impl_.algo_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_PowAlgo_default_instance_); } @@ -13759,8 +18054,9 @@ inline const ::tari::rpc::PowAlgo& NewBlockTemplateRequest::algo() const ABSL_AT // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplateRequest.algo) return _internal_algo(); } -inline void NewBlockTemplateRequest::unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockTemplateRequest::unsafe_arena_set_allocated_algo( + ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.algo_); } @@ -13772,27 +18068,27 @@ inline void NewBlockTemplateRequest::unsafe_arena_set_allocated_algo(::tari::rpc } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.NewBlockTemplateRequest.algo) } -inline ::tari::rpc::PowAlgo* NewBlockTemplateRequest::release_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE NewBlockTemplateRequest::release_algo() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::PowAlgo* released = _impl_.algo_; _impl_.algo_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::PowAlgo* NewBlockTemplateRequest::unsafe_arena_release_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE NewBlockTemplateRequest::unsafe_arena_release_algo() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NewBlockTemplateRequest.algo) _impl_._has_bits_[0] &= ~0x00000001u; @@ -13800,29 +18096,30 @@ inline ::tari::rpc::PowAlgo* NewBlockTemplateRequest::unsafe_arena_release_algo( _impl_.algo_ = nullptr; return temp; } -inline ::tari::rpc::PowAlgo* NewBlockTemplateRequest::_internal_mutable_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::PowAlgo* PROTOBUF_NONNULL NewBlockTemplateRequest::_internal_mutable_algo() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.algo_ == nullptr) { 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 { +inline ::tari::rpc::PowAlgo* PROTOBUF_NONNULL 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; } -inline void NewBlockTemplateRequest::set_allocated_algo(::tari::rpc::PowAlgo* value) { +inline void NewBlockTemplateRequest::set_allocated_algo(::tari::rpc::PowAlgo* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.algo_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -13837,8 +18134,9 @@ inline void NewBlockTemplateRequest::set_allocated_algo(::tari::rpc::PowAlgo* va // uint64 max_weight = 2; inline void NewBlockTemplateRequest::clear_max_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_weight_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t NewBlockTemplateRequest::max_weight() const { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplateRequest.max_weight) @@ -13846,14 +18144,15 @@ inline ::uint64_t NewBlockTemplateRequest::max_weight() const { } inline void NewBlockTemplateRequest::set_max_weight(::uint64_t value) { _internal_set_max_weight(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.NewBlockTemplateRequest.max_weight) } inline ::uint64_t NewBlockTemplateRequest::_internal_max_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.max_weight_; } inline void NewBlockTemplateRequest::_internal_set_max_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_weight_ = value; } @@ -13868,7 +18167,7 @@ inline bool GetNewBlockTemplateWithCoinbasesRequest::has_algo() const { return value; } inline const ::tari::rpc::PowAlgo& GetNewBlockTemplateWithCoinbasesRequest::_internal_algo() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::PowAlgo* p = _impl_.algo_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_PowAlgo_default_instance_); } @@ -13876,8 +18175,9 @@ inline const ::tari::rpc::PowAlgo& GetNewBlockTemplateWithCoinbasesRequest::algo // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest.algo) return _internal_algo(); } -inline void GetNewBlockTemplateWithCoinbasesRequest::unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockTemplateWithCoinbasesRequest::unsafe_arena_set_allocated_algo( + ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.algo_); } @@ -13889,27 +18189,27 @@ inline void GetNewBlockTemplateWithCoinbasesRequest::unsafe_arena_set_allocated_ } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest.algo) } -inline ::tari::rpc::PowAlgo* GetNewBlockTemplateWithCoinbasesRequest::release_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE GetNewBlockTemplateWithCoinbasesRequest::release_algo() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::PowAlgo* released = _impl_.algo_; _impl_.algo_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::PowAlgo* GetNewBlockTemplateWithCoinbasesRequest::unsafe_arena_release_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE GetNewBlockTemplateWithCoinbasesRequest::unsafe_arena_release_algo() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest.algo) _impl_._has_bits_[0] &= ~0x00000001u; @@ -13917,29 +18217,30 @@ inline ::tari::rpc::PowAlgo* GetNewBlockTemplateWithCoinbasesRequest::unsafe_are _impl_.algo_ = nullptr; return temp; } -inline ::tari::rpc::PowAlgo* GetNewBlockTemplateWithCoinbasesRequest::_internal_mutable_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::PowAlgo* PROTOBUF_NONNULL GetNewBlockTemplateWithCoinbasesRequest::_internal_mutable_algo() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.algo_ == nullptr) { 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 { +inline ::tari::rpc::PowAlgo* PROTOBUF_NONNULL 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; } -inline void GetNewBlockTemplateWithCoinbasesRequest::set_allocated_algo(::tari::rpc::PowAlgo* value) { +inline void GetNewBlockTemplateWithCoinbasesRequest::set_allocated_algo(::tari::rpc::PowAlgo* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.algo_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -13954,8 +18255,9 @@ inline void GetNewBlockTemplateWithCoinbasesRequest::set_allocated_algo(::tari:: // uint64 max_weight = 2; inline void GetNewBlockTemplateWithCoinbasesRequest::clear_max_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_weight_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t GetNewBlockTemplateWithCoinbasesRequest::max_weight() const { // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest.max_weight) @@ -13963,14 +18265,15 @@ inline ::uint64_t GetNewBlockTemplateWithCoinbasesRequest::max_weight() const { } inline void GetNewBlockTemplateWithCoinbasesRequest::set_max_weight(::uint64_t value) { _internal_set_max_weight(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest.max_weight) } inline ::uint64_t GetNewBlockTemplateWithCoinbasesRequest::_internal_max_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.max_weight_; } inline void GetNewBlockTemplateWithCoinbasesRequest::_internal_set_max_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_weight_ = value; } @@ -13982,18 +18285,18 @@ inline int GetNewBlockTemplateWithCoinbasesRequest::coinbases_size() const { return _internal_coinbases_size(); } inline void GetNewBlockTemplateWithCoinbasesRequest::clear_coinbases() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.coinbases_.Clear(); } -inline ::tari::rpc::NewBlockCoinbase* GetNewBlockTemplateWithCoinbasesRequest::mutable_coinbases(int index) +inline ::tari::rpc::NewBlockCoinbase* PROTOBUF_NONNULL GetNewBlockTemplateWithCoinbasesRequest::mutable_coinbases(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest.coinbases) return _internal_mutable_coinbases()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* GetNewBlockTemplateWithCoinbasesRequest::mutable_coinbases() +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* PROTOBUF_NONNULL GetNewBlockTemplateWithCoinbasesRequest::mutable_coinbases() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest.coinbases) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_coinbases(); } inline const ::tari::rpc::NewBlockCoinbase& GetNewBlockTemplateWithCoinbasesRequest::coinbases(int index) const @@ -14001,8 +18304,9 @@ inline const ::tari::rpc::NewBlockCoinbase& GetNewBlockTemplateWithCoinbasesRequ // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest.coinbases) return _internal_coinbases().Get(index); } -inline ::tari::rpc::NewBlockCoinbase* GetNewBlockTemplateWithCoinbasesRequest::add_coinbases() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::NewBlockCoinbase* PROTOBUF_NONNULL GetNewBlockTemplateWithCoinbasesRequest::add_coinbases() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); ::tari::rpc::NewBlockCoinbase* _add = _internal_mutable_coinbases()->Add(); // @@protoc_insertion_point(field_add:tari.rpc.GetNewBlockTemplateWithCoinbasesRequest.coinbases) return _add; @@ -14014,12 +18318,12 @@ inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase> } inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>& GetNewBlockTemplateWithCoinbasesRequest::_internal_coinbases() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.coinbases_; } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* PROTOBUF_NONNULL GetNewBlockTemplateWithCoinbasesRequest::_internal_mutable_coinbases() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.coinbases_; } @@ -14034,7 +18338,7 @@ inline bool GetNewBlockWithCoinbasesRequest::has_new_template() const { return value; } inline const ::tari::rpc::NewBlockTemplate& GetNewBlockWithCoinbasesRequest::_internal_new_template() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::NewBlockTemplate* p = _impl_.new_template_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_NewBlockTemplate_default_instance_); } @@ -14042,8 +18346,9 @@ inline const ::tari::rpc::NewBlockTemplate& GetNewBlockWithCoinbasesRequest::new // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockWithCoinbasesRequest.new_template) return _internal_new_template(); } -inline void GetNewBlockWithCoinbasesRequest::unsafe_arena_set_allocated_new_template(::tari::rpc::NewBlockTemplate* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockWithCoinbasesRequest::unsafe_arena_set_allocated_new_template( + ::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.new_template_); } @@ -14055,27 +18360,27 @@ inline void GetNewBlockWithCoinbasesRequest::unsafe_arena_set_allocated_new_temp } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetNewBlockWithCoinbasesRequest.new_template) } -inline ::tari::rpc::NewBlockTemplate* GetNewBlockWithCoinbasesRequest::release_new_template() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE GetNewBlockWithCoinbasesRequest::release_new_template() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::NewBlockTemplate* released = _impl_.new_template_; _impl_.new_template_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::NewBlockTemplate* GetNewBlockWithCoinbasesRequest::unsafe_arena_release_new_template() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE GetNewBlockWithCoinbasesRequest::unsafe_arena_release_new_template() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockWithCoinbasesRequest.new_template) _impl_._has_bits_[0] &= ~0x00000001u; @@ -14083,29 +18388,30 @@ inline ::tari::rpc::NewBlockTemplate* GetNewBlockWithCoinbasesRequest::unsafe_ar _impl_.new_template_ = nullptr; return temp; } -inline ::tari::rpc::NewBlockTemplate* GetNewBlockWithCoinbasesRequest::_internal_mutable_new_template() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::NewBlockTemplate* PROTOBUF_NONNULL GetNewBlockWithCoinbasesRequest::_internal_mutable_new_template() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.new_template_ == nullptr) { 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 { +inline ::tari::rpc::NewBlockTemplate* PROTOBUF_NONNULL 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; } -inline void GetNewBlockWithCoinbasesRequest::set_allocated_new_template(::tari::rpc::NewBlockTemplate* value) { +inline void GetNewBlockWithCoinbasesRequest::set_allocated_new_template(::tari::rpc::NewBlockTemplate* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.new_template_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -14126,18 +18432,18 @@ inline int GetNewBlockWithCoinbasesRequest::coinbases_size() const { return _internal_coinbases_size(); } inline void GetNewBlockWithCoinbasesRequest::clear_coinbases() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.coinbases_.Clear(); } -inline ::tari::rpc::NewBlockCoinbase* GetNewBlockWithCoinbasesRequest::mutable_coinbases(int index) +inline ::tari::rpc::NewBlockCoinbase* PROTOBUF_NONNULL GetNewBlockWithCoinbasesRequest::mutable_coinbases(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockWithCoinbasesRequest.coinbases) return _internal_mutable_coinbases()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* GetNewBlockWithCoinbasesRequest::mutable_coinbases() +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* PROTOBUF_NONNULL GetNewBlockWithCoinbasesRequest::mutable_coinbases() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.GetNewBlockWithCoinbasesRequest.coinbases) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_coinbases(); } inline const ::tari::rpc::NewBlockCoinbase& GetNewBlockWithCoinbasesRequest::coinbases(int index) const @@ -14145,8 +18451,9 @@ inline const ::tari::rpc::NewBlockCoinbase& GetNewBlockWithCoinbasesRequest::coi // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockWithCoinbasesRequest.coinbases) return _internal_coinbases().Get(index); } -inline ::tari::rpc::NewBlockCoinbase* GetNewBlockWithCoinbasesRequest::add_coinbases() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::NewBlockCoinbase* PROTOBUF_NONNULL GetNewBlockWithCoinbasesRequest::add_coinbases() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); ::tari::rpc::NewBlockCoinbase* _add = _internal_mutable_coinbases()->Add(); // @@protoc_insertion_point(field_add:tari.rpc.GetNewBlockWithCoinbasesRequest.coinbases) return _add; @@ -14158,12 +18465,12 @@ inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase> } inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>& GetNewBlockWithCoinbasesRequest::_internal_coinbases() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.coinbases_; } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::NewBlockCoinbase>* PROTOBUF_NONNULL GetNewBlockWithCoinbasesRequest::_internal_mutable_coinbases() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.coinbases_; } @@ -14173,58 +18480,74 @@ GetNewBlockWithCoinbasesRequest::_internal_mutable_coinbases() { // string address = 1; inline void NewBlockCoinbase::clear_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.address_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& NewBlockCoinbase::address() const +inline const ::std::string& NewBlockCoinbase::address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockCoinbase.address) return _internal_address(); } template -inline PROTOBUF_ALWAYS_INLINE void NewBlockCoinbase::set_address(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void NewBlockCoinbase::set_address(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.address_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NewBlockCoinbase.address) } -inline std::string* NewBlockCoinbase::mutable_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_address(); +inline ::std::string* PROTOBUF_NONNULL NewBlockCoinbase::mutable_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_address(); // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockCoinbase.address) return _s; } -inline const std::string& NewBlockCoinbase::_internal_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& NewBlockCoinbase::_internal_address() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.address_.Get(); } -inline void NewBlockCoinbase::_internal_set_address(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockCoinbase::_internal_set_address(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.address_.Set(value, GetArena()); } -inline std::string* NewBlockCoinbase::_internal_mutable_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL NewBlockCoinbase::_internal_mutable_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.address_.Mutable( GetArena()); } -inline std::string* NewBlockCoinbase::release_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE NewBlockCoinbase::release_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NewBlockCoinbase.address) - return _impl_.address_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.address_.Set("", GetArena()); + } + return released; } -inline void NewBlockCoinbase::set_allocated_address(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockCoinbase::set_allocated_address(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.address_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.address_.IsDefault()) { - _impl_.address_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.address_.IsDefault()) { + _impl_.address_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockCoinbase.address) } // uint64 value = 2; inline void NewBlockCoinbase::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t NewBlockCoinbase::value() const { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockCoinbase.value) @@ -14232,21 +18555,23 @@ inline ::uint64_t NewBlockCoinbase::value() const { } inline void NewBlockCoinbase::set_value(::uint64_t value) { _internal_set_value(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.NewBlockCoinbase.value) } inline ::uint64_t NewBlockCoinbase::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.value_; } inline void NewBlockCoinbase::_internal_set_value(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_ = value; } // bool stealth_payment = 3; inline void NewBlockCoinbase::clear_stealth_payment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.stealth_payment_ = false; + _impl_._has_bits_[0] &= ~0x00000008u; } inline bool NewBlockCoinbase::stealth_payment() const { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockCoinbase.stealth_payment) @@ -14254,21 +18579,23 @@ inline bool NewBlockCoinbase::stealth_payment() const { } inline void NewBlockCoinbase::set_stealth_payment(bool value) { _internal_set_stealth_payment(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.NewBlockCoinbase.stealth_payment) } inline bool NewBlockCoinbase::_internal_stealth_payment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.stealth_payment_; } inline void NewBlockCoinbase::_internal_set_stealth_payment(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.stealth_payment_ = value; } // bool revealed_value_proof = 4; inline void NewBlockCoinbase::clear_revealed_value_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.revealed_value_proof_ = false; + _impl_._has_bits_[0] &= ~0x00000010u; } inline bool NewBlockCoinbase::revealed_value_proof() const { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockCoinbase.revealed_value_proof) @@ -14276,64 +18603,80 @@ inline bool NewBlockCoinbase::revealed_value_proof() const { } inline void NewBlockCoinbase::set_revealed_value_proof(bool value) { _internal_set_revealed_value_proof(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:tari.rpc.NewBlockCoinbase.revealed_value_proof) } inline bool NewBlockCoinbase::_internal_revealed_value_proof() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.revealed_value_proof_; } inline void NewBlockCoinbase::_internal_set_revealed_value_proof(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.revealed_value_proof_ = value; } // bytes coinbase_extra = 5; inline void NewBlockCoinbase::clear_coinbase_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.coinbase_extra_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& NewBlockCoinbase::coinbase_extra() const +inline const ::std::string& NewBlockCoinbase::coinbase_extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockCoinbase.coinbase_extra) return _internal_coinbase_extra(); } template -inline PROTOBUF_ALWAYS_INLINE void NewBlockCoinbase::set_coinbase_extra(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void NewBlockCoinbase::set_coinbase_extra(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.coinbase_extra_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NewBlockCoinbase.coinbase_extra) } -inline std::string* NewBlockCoinbase::mutable_coinbase_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_coinbase_extra(); +inline ::std::string* PROTOBUF_NONNULL NewBlockCoinbase::mutable_coinbase_extra() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_coinbase_extra(); // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockCoinbase.coinbase_extra) return _s; } -inline const std::string& NewBlockCoinbase::_internal_coinbase_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& NewBlockCoinbase::_internal_coinbase_extra() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.coinbase_extra_.Get(); } -inline void NewBlockCoinbase::_internal_set_coinbase_extra(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockCoinbase::_internal_set_coinbase_extra(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.coinbase_extra_.Set(value, GetArena()); } -inline std::string* NewBlockCoinbase::_internal_mutable_coinbase_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL NewBlockCoinbase::_internal_mutable_coinbase_extra() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.coinbase_extra_.Mutable( GetArena()); } -inline std::string* NewBlockCoinbase::release_coinbase_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE NewBlockCoinbase::release_coinbase_extra() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NewBlockCoinbase.coinbase_extra) - return _impl_.coinbase_extra_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.coinbase_extra_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.coinbase_extra_.Set("", GetArena()); + } + return released; } -inline void NewBlockCoinbase::set_allocated_coinbase_extra(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockCoinbase::set_allocated_coinbase_extra(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.coinbase_extra_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.coinbase_extra_.IsDefault()) { - _impl_.coinbase_extra_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.coinbase_extra_.IsDefault()) { + _impl_.coinbase_extra_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockCoinbase.coinbase_extra) } @@ -14343,8 +18686,9 @@ inline void NewBlockCoinbase::set_allocated_coinbase_extra(std::string* value) { // uint64 difficulty = 1; inline void NetworkDifficultyResponse::clear_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.difficulty_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t NetworkDifficultyResponse::difficulty() const { // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.difficulty) @@ -14352,21 +18696,23 @@ inline ::uint64_t NetworkDifficultyResponse::difficulty() const { } inline void NetworkDifficultyResponse::set_difficulty(::uint64_t value) { _internal_set_difficulty(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.difficulty) } inline ::uint64_t NetworkDifficultyResponse::_internal_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.difficulty_; } inline void NetworkDifficultyResponse::_internal_set_difficulty(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.difficulty_ = value; } // uint64 estimated_hash_rate = 2; inline void NetworkDifficultyResponse::clear_estimated_hash_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.estimated_hash_rate_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t NetworkDifficultyResponse::estimated_hash_rate() const { // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.estimated_hash_rate) @@ -14374,21 +18720,23 @@ inline ::uint64_t NetworkDifficultyResponse::estimated_hash_rate() const { } inline void NetworkDifficultyResponse::set_estimated_hash_rate(::uint64_t value) { _internal_set_estimated_hash_rate(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.estimated_hash_rate) } inline ::uint64_t NetworkDifficultyResponse::_internal_estimated_hash_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.estimated_hash_rate_; } inline void NetworkDifficultyResponse::_internal_set_estimated_hash_rate(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.estimated_hash_rate_ = value; } // uint64 height = 3; inline void NetworkDifficultyResponse::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t NetworkDifficultyResponse::height() const { // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.height) @@ -14396,21 +18744,23 @@ inline ::uint64_t NetworkDifficultyResponse::height() const { } inline void NetworkDifficultyResponse::set_height(::uint64_t value) { _internal_set_height(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.height) } inline ::uint64_t NetworkDifficultyResponse::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.height_; } inline void NetworkDifficultyResponse::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = value; } // uint64 timestamp = 4; inline void NetworkDifficultyResponse::clear_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.timestamp_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000008u; } inline ::uint64_t NetworkDifficultyResponse::timestamp() const { // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.timestamp) @@ -14418,21 +18768,23 @@ inline ::uint64_t NetworkDifficultyResponse::timestamp() const { } inline void NetworkDifficultyResponse::set_timestamp(::uint64_t value) { _internal_set_timestamp(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.timestamp) } inline ::uint64_t NetworkDifficultyResponse::_internal_timestamp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.timestamp_; } inline void NetworkDifficultyResponse::_internal_set_timestamp(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.timestamp_ = value; } // uint64 pow_algo = 5; inline void NetworkDifficultyResponse::clear_pow_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pow_algo_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000010u; } inline ::uint64_t NetworkDifficultyResponse::pow_algo() const { // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.pow_algo) @@ -14440,21 +18792,23 @@ inline ::uint64_t NetworkDifficultyResponse::pow_algo() const { } inline void NetworkDifficultyResponse::set_pow_algo(::uint64_t value) { _internal_set_pow_algo(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.pow_algo) } inline ::uint64_t NetworkDifficultyResponse::_internal_pow_algo() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pow_algo_; } inline void NetworkDifficultyResponse::_internal_set_pow_algo(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pow_algo_ = value; } // uint64 sha3x_estimated_hash_rate = 6; inline void NetworkDifficultyResponse::clear_sha3x_estimated_hash_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sha3x_estimated_hash_rate_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000020u; } inline ::uint64_t NetworkDifficultyResponse::sha3x_estimated_hash_rate() const { // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.sha3x_estimated_hash_rate) @@ -14462,21 +18816,23 @@ inline ::uint64_t NetworkDifficultyResponse::sha3x_estimated_hash_rate() const { } inline void NetworkDifficultyResponse::set_sha3x_estimated_hash_rate(::uint64_t value) { _internal_set_sha3x_estimated_hash_rate(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.sha3x_estimated_hash_rate) } inline ::uint64_t NetworkDifficultyResponse::_internal_sha3x_estimated_hash_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.sha3x_estimated_hash_rate_; } inline void NetworkDifficultyResponse::_internal_set_sha3x_estimated_hash_rate(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sha3x_estimated_hash_rate_ = value; } // uint64 monero_randomx_estimated_hash_rate = 7; inline void NetworkDifficultyResponse::clear_monero_randomx_estimated_hash_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.monero_randomx_estimated_hash_rate_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000040u; } inline ::uint64_t NetworkDifficultyResponse::monero_randomx_estimated_hash_rate() const { // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.monero_randomx_estimated_hash_rate) @@ -14484,21 +18840,23 @@ inline ::uint64_t NetworkDifficultyResponse::monero_randomx_estimated_hash_rate( } inline void NetworkDifficultyResponse::set_monero_randomx_estimated_hash_rate(::uint64_t value) { _internal_set_monero_randomx_estimated_hash_rate(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.monero_randomx_estimated_hash_rate) } inline ::uint64_t NetworkDifficultyResponse::_internal_monero_randomx_estimated_hash_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.monero_randomx_estimated_hash_rate_; } inline void NetworkDifficultyResponse::_internal_set_monero_randomx_estimated_hash_rate(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.monero_randomx_estimated_hash_rate_ = value; } // uint64 tari_randomx_estimated_hash_rate = 10; inline void NetworkDifficultyResponse::clear_tari_randomx_estimated_hash_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tari_randomx_estimated_hash_rate_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000100u; } inline ::uint64_t NetworkDifficultyResponse::tari_randomx_estimated_hash_rate() const { // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.tari_randomx_estimated_hash_rate) @@ -14506,21 +18864,23 @@ inline ::uint64_t NetworkDifficultyResponse::tari_randomx_estimated_hash_rate() } inline void NetworkDifficultyResponse::set_tari_randomx_estimated_hash_rate(::uint64_t value) { _internal_set_tari_randomx_estimated_hash_rate(value); + _impl_._has_bits_[0] |= 0x00000100u; // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.tari_randomx_estimated_hash_rate) } inline ::uint64_t NetworkDifficultyResponse::_internal_tari_randomx_estimated_hash_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.tari_randomx_estimated_hash_rate_; } inline void NetworkDifficultyResponse::_internal_set_tari_randomx_estimated_hash_rate(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tari_randomx_estimated_hash_rate_ = value; } // uint64 num_coinbases = 8; inline void NetworkDifficultyResponse::clear_num_coinbases() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_coinbases_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000080u; } inline ::uint64_t NetworkDifficultyResponse::num_coinbases() const { // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.num_coinbases) @@ -14528,14 +18888,15 @@ inline ::uint64_t NetworkDifficultyResponse::num_coinbases() const { } inline void NetworkDifficultyResponse::set_num_coinbases(::uint64_t value) { _internal_set_num_coinbases(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.num_coinbases) } inline ::uint64_t NetworkDifficultyResponse::_internal_num_coinbases() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.num_coinbases_; } inline void NetworkDifficultyResponse::_internal_set_num_coinbases(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_coinbases_ = value; } @@ -14547,97 +18908,59 @@ inline int NetworkDifficultyResponse::coinbase_extras_size() const { return _internal_coinbase_extras_size(); } inline void NetworkDifficultyResponse::clear_coinbase_extras() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.coinbase_extras_.Clear(); } -inline std::string* NetworkDifficultyResponse::add_coinbase_extras() +inline ::std::string* PROTOBUF_NONNULL NetworkDifficultyResponse::add_coinbase_extras() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_coinbase_extras()->Add(); + ::google::protobuf::internal::TSanWrite(&_impl_); + ::std::string* _s = _internal_mutable_coinbase_extras()->Add(); // @@protoc_insertion_point(field_add_mutable:tari.rpc.NetworkDifficultyResponse.coinbase_extras) return _s; } -inline const std::string& NetworkDifficultyResponse::coinbase_extras(int index) const +inline const ::std::string& NetworkDifficultyResponse::coinbase_extras(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.coinbase_extras) return _internal_coinbase_extras().Get(index); } -inline std::string* NetworkDifficultyResponse::mutable_coinbase_extras(int index) +inline ::std::string* PROTOBUF_NONNULL NetworkDifficultyResponse::mutable_coinbase_extras(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.NetworkDifficultyResponse.coinbase_extras) return _internal_mutable_coinbase_extras()->Mutable(index); } -inline void NetworkDifficultyResponse::set_coinbase_extras(int index, const std::string& value) { - _internal_mutable_coinbase_extras()->Mutable(index)->assign(value); +template +inline void NetworkDifficultyResponse::set_coinbase_extras(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString(*_internal_mutable_coinbase_extras()->Mutable(index), ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.coinbase_extras) } -inline void NetworkDifficultyResponse::set_coinbase_extras(int index, std::string&& value) { - _internal_mutable_coinbase_extras()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.coinbase_extras) -} -inline void NetworkDifficultyResponse::set_coinbase_extras(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_coinbase_extras()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.NetworkDifficultyResponse.coinbase_extras) -} -inline void NetworkDifficultyResponse::set_coinbase_extras(int index, const void* value, - std::size_t size) { - _internal_mutable_coinbase_extras()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tari.rpc.NetworkDifficultyResponse.coinbase_extras) -} -inline void NetworkDifficultyResponse::set_coinbase_extras(int index, absl::string_view value) { - _internal_mutable_coinbase_extras()->Mutable(index)->assign( - value.data(), value.size()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.NetworkDifficultyResponse.coinbase_extras) -} -inline void NetworkDifficultyResponse::add_coinbase_extras(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_coinbase_extras()->Add()->assign(value); +template +inline void NetworkDifficultyResponse::add_coinbase_extras(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_coinbase_extras(), + ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); // @@protoc_insertion_point(field_add:tari.rpc.NetworkDifficultyResponse.coinbase_extras) } -inline void NetworkDifficultyResponse::add_coinbase_extras(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_coinbase_extras()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.NetworkDifficultyResponse.coinbase_extras) -} -inline void NetworkDifficultyResponse::add_coinbase_extras(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_coinbase_extras()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.NetworkDifficultyResponse.coinbase_extras) -} -inline void NetworkDifficultyResponse::add_coinbase_extras(const void* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_coinbase_extras()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.NetworkDifficultyResponse.coinbase_extras) -} -inline void NetworkDifficultyResponse::add_coinbase_extras(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_coinbase_extras()->Add()->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.NetworkDifficultyResponse.coinbase_extras) -} -inline const ::google::protobuf::RepeatedPtrField& -NetworkDifficultyResponse::coinbase_extras() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::RepeatedPtrField<::std::string>& NetworkDifficultyResponse::coinbase_extras() + const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:tari.rpc.NetworkDifficultyResponse.coinbase_extras) return _internal_coinbase_extras(); } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL NetworkDifficultyResponse::mutable_coinbase_extras() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.NetworkDifficultyResponse.coinbase_extras) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_coinbase_extras(); } -inline const ::google::protobuf::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField<::std::string>& NetworkDifficultyResponse::_internal_coinbase_extras() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.coinbase_extras_; } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL NetworkDifficultyResponse::_internal_mutable_coinbase_extras() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.coinbase_extras_; } @@ -14647,8 +18970,9 @@ NetworkDifficultyResponse::_internal_mutable_coinbase_extras() { // uint64 circulating_supply = 1; inline void ValueAtHeightResponse::clear_circulating_supply() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.circulating_supply_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t ValueAtHeightResponse::circulating_supply() const { // @@protoc_insertion_point(field_get:tari.rpc.ValueAtHeightResponse.circulating_supply) @@ -14656,43 +18980,23 @@ inline ::uint64_t ValueAtHeightResponse::circulating_supply() const { } inline void ValueAtHeightResponse::set_circulating_supply(::uint64_t value) { _internal_set_circulating_supply(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.ValueAtHeightResponse.circulating_supply) } inline ::uint64_t ValueAtHeightResponse::_internal_circulating_supply() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.circulating_supply_; } inline void ValueAtHeightResponse::_internal_set_circulating_supply(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.circulating_supply_ = value; } -// uint64 spendable_supply = 2; -inline void ValueAtHeightResponse::clear_spendable_supply() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.spendable_supply_ = ::uint64_t{0u}; -} -inline ::uint64_t ValueAtHeightResponse::spendable_supply() const { - // @@protoc_insertion_point(field_get:tari.rpc.ValueAtHeightResponse.spendable_supply) - return _internal_spendable_supply(); -} -inline void ValueAtHeightResponse::set_spendable_supply(::uint64_t value) { - _internal_set_spendable_supply(value); - // @@protoc_insertion_point(field_set:tari.rpc.ValueAtHeightResponse.spendable_supply) -} -inline ::uint64_t ValueAtHeightResponse::_internal_spendable_supply() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.spendable_supply_; -} -inline void ValueAtHeightResponse::_internal_set_spendable_supply(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.spendable_supply_ = value; -} - // uint64 height = 3; inline void ValueAtHeightResponse::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t ValueAtHeightResponse::height() const { // @@protoc_insertion_point(field_get:tari.rpc.ValueAtHeightResponse.height) @@ -14700,25 +19004,171 @@ inline ::uint64_t ValueAtHeightResponse::height() const { } inline void ValueAtHeightResponse::set_height(::uint64_t value) { _internal_set_height(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.ValueAtHeightResponse.height) } inline ::uint64_t ValueAtHeightResponse::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.height_; } inline void ValueAtHeightResponse::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = value; } +// uint64 mined_rewards = 4; +inline void ValueAtHeightResponse::clear_mined_rewards() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mined_rewards_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline ::uint64_t ValueAtHeightResponse::mined_rewards() const { + // @@protoc_insertion_point(field_get:tari.rpc.ValueAtHeightResponse.mined_rewards) + return _internal_mined_rewards(); +} +inline void ValueAtHeightResponse::set_mined_rewards(::uint64_t value) { + _internal_set_mined_rewards(value); + _impl_._has_bits_[0] |= 0x00000004u; + // @@protoc_insertion_point(field_set:tari.rpc.ValueAtHeightResponse.mined_rewards) +} +inline ::uint64_t ValueAtHeightResponse::_internal_mined_rewards() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.mined_rewards_; +} +inline void ValueAtHeightResponse::_internal_set_mined_rewards(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mined_rewards_ = value; +} + +// uint64 spendable_rewards = 5; +inline void ValueAtHeightResponse::clear_spendable_rewards() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.spendable_rewards_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000008u; +} +inline ::uint64_t ValueAtHeightResponse::spendable_rewards() const { + // @@protoc_insertion_point(field_get:tari.rpc.ValueAtHeightResponse.spendable_rewards) + return _internal_spendable_rewards(); +} +inline void ValueAtHeightResponse::set_spendable_rewards(::uint64_t value) { + _internal_set_spendable_rewards(value); + _impl_._has_bits_[0] |= 0x00000008u; + // @@protoc_insertion_point(field_set:tari.rpc.ValueAtHeightResponse.spendable_rewards) +} +inline ::uint64_t ValueAtHeightResponse::_internal_spendable_rewards() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.spendable_rewards_; +} +inline void ValueAtHeightResponse::_internal_set_spendable_rewards(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.spendable_rewards_ = value; +} + +// uint64 spendable_pre_mine = 6; +inline void ValueAtHeightResponse::clear_spendable_pre_mine() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.spendable_pre_mine_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000010u; +} +inline ::uint64_t ValueAtHeightResponse::spendable_pre_mine() const { + // @@protoc_insertion_point(field_get:tari.rpc.ValueAtHeightResponse.spendable_pre_mine) + return _internal_spendable_pre_mine(); +} +inline void ValueAtHeightResponse::set_spendable_pre_mine(::uint64_t value) { + _internal_set_spendable_pre_mine(value); + _impl_._has_bits_[0] |= 0x00000010u; + // @@protoc_insertion_point(field_set:tari.rpc.ValueAtHeightResponse.spendable_pre_mine) +} +inline ::uint64_t ValueAtHeightResponse::_internal_spendable_pre_mine() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.spendable_pre_mine_; +} +inline void ValueAtHeightResponse::_internal_set_spendable_pre_mine(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.spendable_pre_mine_ = value; +} + +// uint64 total_spendable = 7; +inline void ValueAtHeightResponse::clear_total_spendable() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.total_spendable_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000020u; +} +inline ::uint64_t ValueAtHeightResponse::total_spendable() const { + // @@protoc_insertion_point(field_get:tari.rpc.ValueAtHeightResponse.total_spendable) + return _internal_total_spendable(); +} +inline void ValueAtHeightResponse::set_total_spendable(::uint64_t value) { + _internal_set_total_spendable(value); + _impl_._has_bits_[0] |= 0x00000020u; + // @@protoc_insertion_point(field_set:tari.rpc.ValueAtHeightResponse.total_spendable) +} +inline ::uint64_t ValueAtHeightResponse::_internal_total_spendable() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.total_spendable_; +} +inline void ValueAtHeightResponse::_internal_set_total_spendable(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.total_spendable_ = value; +} + +// uint64 total_pre_mine = 8; +inline void ValueAtHeightResponse::clear_total_pre_mine() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.total_pre_mine_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000040u; +} +inline ::uint64_t ValueAtHeightResponse::total_pre_mine() const { + // @@protoc_insertion_point(field_get:tari.rpc.ValueAtHeightResponse.total_pre_mine) + return _internal_total_pre_mine(); +} +inline void ValueAtHeightResponse::set_total_pre_mine(::uint64_t value) { + _internal_set_total_pre_mine(value); + _impl_._has_bits_[0] |= 0x00000040u; + // @@protoc_insertion_point(field_set:tari.rpc.ValueAtHeightResponse.total_pre_mine) +} +inline ::uint64_t ValueAtHeightResponse::_internal_total_pre_mine() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.total_pre_mine_; +} +inline void ValueAtHeightResponse::_internal_set_total_pre_mine(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.total_pre_mine_ = value; +} + +// uint64 time_locked_pre_mine = 9; +inline void ValueAtHeightResponse::clear_time_locked_pre_mine() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.time_locked_pre_mine_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000080u; +} +inline ::uint64_t ValueAtHeightResponse::time_locked_pre_mine() const { + // @@protoc_insertion_point(field_get:tari.rpc.ValueAtHeightResponse.time_locked_pre_mine) + return _internal_time_locked_pre_mine(); +} +inline void ValueAtHeightResponse::set_time_locked_pre_mine(::uint64_t value) { + _internal_set_time_locked_pre_mine(value); + _impl_._has_bits_[0] |= 0x00000080u; + // @@protoc_insertion_point(field_set:tari.rpc.ValueAtHeightResponse.time_locked_pre_mine) +} +inline ::uint64_t ValueAtHeightResponse::_internal_time_locked_pre_mine() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.time_locked_pre_mine_; +} +inline void ValueAtHeightResponse::_internal_set_time_locked_pre_mine(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.time_locked_pre_mine_ = value; +} + // ------------------------------------------------------------------- // IntegerValue // uint64 value = 1; inline void IntegerValue::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t IntegerValue::value() const { // @@protoc_insertion_point(field_get:tari.rpc.IntegerValue.value) @@ -14726,69 +19176,109 @@ inline ::uint64_t IntegerValue::value() const { } inline void IntegerValue::set_value(::uint64_t value) { _internal_set_value(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.IntegerValue.value) } inline ::uint64_t IntegerValue::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.value_; } inline void IntegerValue::_internal_set_value(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_ = value; } // ------------------------------------------------------------------- -// StringValue +// BaseNodeGetVersionResponse -// string value = 1; -inline void StringValue::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.ClearToEmpty(); +// string version = 1; +inline void BaseNodeGetVersionResponse::clear_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& StringValue::value() const +inline const ::std::string& BaseNodeGetVersionResponse::version() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.StringValue.value) - return _internal_value(); + // @@protoc_insertion_point(field_get:tari.rpc.BaseNodeGetVersionResponse.version) + return _internal_version(); } 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) +PROTOBUF_ALWAYS_INLINE void BaseNodeGetVersionResponse::set_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.version_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.BaseNodeGetVersionResponse.version) } -inline std::string* StringValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_value(); - // @@protoc_insertion_point(field_mutable:tari.rpc.StringValue.value) +inline ::std::string* PROTOBUF_NONNULL BaseNodeGetVersionResponse::mutable_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_version(); + // @@protoc_insertion_point(field_mutable:tari.rpc.BaseNodeGetVersionResponse.version) return _s; } -inline const std::string& StringValue::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_.Get(); +inline const ::std::string& BaseNodeGetVersionResponse::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.version_.Get(); } -inline void StringValue::_internal_set_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.Set(value, GetArena()); +inline void BaseNodeGetVersionResponse::_internal_set_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.version_.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* PROTOBUF_NONNULL BaseNodeGetVersionResponse::_internal_mutable_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.version_.Mutable( GetArena()); } -inline std::string* StringValue::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.StringValue.value) - return _impl_.value_.Release(); +inline ::std::string* PROTOBUF_NULLABLE BaseNodeGetVersionResponse::release_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.BaseNodeGetVersionResponse.version) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.version_.Set("", GetArena()); + } + return released; } -inline void StringValue::set_allocated_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.StringValue.value) +inline void BaseNodeGetVersionResponse::set_allocated_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.version_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.version_.IsDefault()) { + _impl_.version_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.BaseNodeGetVersionResponse.version) +} + +// uint32 network = 2; +inline void BaseNodeGetVersionResponse::clear_network() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.network_ = 0u; + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline ::uint32_t BaseNodeGetVersionResponse::network() const { + // @@protoc_insertion_point(field_get:tari.rpc.BaseNodeGetVersionResponse.network) + return _internal_network(); +} +inline void BaseNodeGetVersionResponse::set_network(::uint32_t value) { + _internal_set_network(value); + _impl_._has_bits_[0] |= 0x00000002u; + // @@protoc_insertion_point(field_set:tari.rpc.BaseNodeGetVersionResponse.network) +} +inline ::uint32_t BaseNodeGetVersionResponse::_internal_network() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.network_; +} +inline void BaseNodeGetVersionResponse::_internal_set_network(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.network_ = value; } // ------------------------------------------------------------------- @@ -14797,8 +19287,9 @@ inline void StringValue::set_allocated_value(std::string* value) { // uint64 from_tip = 1; inline void BlockGroupRequest::clear_from_tip() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.from_tip_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t BlockGroupRequest::from_tip() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockGroupRequest.from_tip) @@ -14806,21 +19297,23 @@ inline ::uint64_t BlockGroupRequest::from_tip() const { } inline void BlockGroupRequest::set_from_tip(::uint64_t value) { _internal_set_from_tip(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.BlockGroupRequest.from_tip) } inline ::uint64_t BlockGroupRequest::_internal_from_tip() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.from_tip_; } inline void BlockGroupRequest::_internal_set_from_tip(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.from_tip_ = value; } // uint64 start_height = 2; inline void BlockGroupRequest::clear_start_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.start_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t BlockGroupRequest::start_height() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockGroupRequest.start_height) @@ -14828,21 +19321,23 @@ inline ::uint64_t BlockGroupRequest::start_height() const { } inline void BlockGroupRequest::set_start_height(::uint64_t value) { _internal_set_start_height(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.BlockGroupRequest.start_height) } inline ::uint64_t BlockGroupRequest::_internal_start_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.start_height_; } inline void BlockGroupRequest::_internal_set_start_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.start_height_ = value; } // uint64 end_height = 3; inline void BlockGroupRequest::clear_end_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.end_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t BlockGroupRequest::end_height() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockGroupRequest.end_height) @@ -14850,21 +19345,23 @@ inline ::uint64_t BlockGroupRequest::end_height() const { } inline void BlockGroupRequest::set_end_height(::uint64_t value) { _internal_set_end_height(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.BlockGroupRequest.end_height) } inline ::uint64_t BlockGroupRequest::_internal_end_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.end_height_; } inline void BlockGroupRequest::_internal_set_end_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.end_height_ = value; } // .tari.rpc.CalcType calc_type = 4; inline void BlockGroupRequest::clear_calc_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.calc_type_ = 0; + _impl_._has_bits_[0] &= ~0x00000008u; } inline ::tari::rpc::CalcType BlockGroupRequest::calc_type() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockGroupRequest.calc_type) @@ -14872,14 +19369,15 @@ inline ::tari::rpc::CalcType BlockGroupRequest::calc_type() const { } inline void BlockGroupRequest::set_calc_type(::tari::rpc::CalcType value) { _internal_set_calc_type(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.BlockGroupRequest.calc_type) } inline ::tari::rpc::CalcType BlockGroupRequest::_internal_calc_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::tari::rpc::CalcType>(_impl_.calc_type_); } inline void BlockGroupRequest::_internal_set_calc_type(::tari::rpc::CalcType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.calc_type_ = value; } @@ -14895,7 +19393,7 @@ inline int BlockGroupResponse::value_size() const { return _internal_value_size(); } inline void BlockGroupResponse::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_.Clear(); } inline double BlockGroupResponse::value(int index) const { @@ -14907,7 +19405,7 @@ inline void BlockGroupResponse::set_value(int index, double value) { // @@protoc_insertion_point(field_set:tari.rpc.BlockGroupResponse.value) } inline void BlockGroupResponse::add_value(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_value()->Add(value); // @@protoc_insertion_point(field_add:tari.rpc.BlockGroupResponse.value) } @@ -14916,26 +19414,28 @@ inline const ::google::protobuf::RepeatedField& BlockGroupResponse::valu // @@protoc_insertion_point(field_list:tari.rpc.BlockGroupResponse.value) return _internal_value(); } -inline ::google::protobuf::RepeatedField* BlockGroupResponse::mutable_value() +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL BlockGroupResponse::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.BlockGroupResponse.value) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_value(); } inline const ::google::protobuf::RepeatedField& BlockGroupResponse::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.value_; } -inline ::google::protobuf::RepeatedField* BlockGroupResponse::_internal_mutable_value() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +BlockGroupResponse::_internal_mutable_value() { + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.value_; } // .tari.rpc.CalcType calc_type = 2; inline void BlockGroupResponse::clear_calc_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.calc_type_ = 0; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::tari::rpc::CalcType BlockGroupResponse::calc_type() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockGroupResponse.calc_type) @@ -14943,14 +19443,15 @@ inline ::tari::rpc::CalcType BlockGroupResponse::calc_type() const { } inline void BlockGroupResponse::set_calc_type(::tari::rpc::CalcType value) { _internal_set_calc_type(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.BlockGroupResponse.calc_type) } inline ::tari::rpc::CalcType BlockGroupResponse::_internal_calc_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::tari::rpc::CalcType>(_impl_.calc_type_); } inline void BlockGroupResponse::_internal_set_calc_type(::tari::rpc::CalcType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.calc_type_ = value; } @@ -14960,8 +19461,9 @@ inline void BlockGroupResponse::_internal_set_calc_type(::tari::rpc::CalcType va // uint64 from_tip = 1; inline void HeightRequest::clear_from_tip() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.from_tip_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t HeightRequest::from_tip() const { // @@protoc_insertion_point(field_get:tari.rpc.HeightRequest.from_tip) @@ -14969,21 +19471,23 @@ inline ::uint64_t HeightRequest::from_tip() const { } inline void HeightRequest::set_from_tip(::uint64_t value) { _internal_set_from_tip(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.HeightRequest.from_tip) } inline ::uint64_t HeightRequest::_internal_from_tip() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.from_tip_; } inline void HeightRequest::_internal_set_from_tip(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.from_tip_ = value; } // uint64 start_height = 2; inline void HeightRequest::clear_start_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.start_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t HeightRequest::start_height() const { // @@protoc_insertion_point(field_get:tari.rpc.HeightRequest.start_height) @@ -14991,21 +19495,23 @@ inline ::uint64_t HeightRequest::start_height() const { } inline void HeightRequest::set_start_height(::uint64_t value) { _internal_set_start_height(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.HeightRequest.start_height) } inline ::uint64_t HeightRequest::_internal_start_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.start_height_; } inline void HeightRequest::_internal_set_start_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.start_height_ = value; } // uint64 end_height = 3; inline void HeightRequest::clear_end_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.end_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t HeightRequest::end_height() const { // @@protoc_insertion_point(field_get:tari.rpc.HeightRequest.end_height) @@ -15013,14 +19519,15 @@ inline ::uint64_t HeightRequest::end_height() const { } inline void HeightRequest::set_end_height(::uint64_t value) { _internal_set_end_height(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.HeightRequest.end_height) } inline ::uint64_t HeightRequest::_internal_end_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.end_height_; } inline void HeightRequest::_internal_set_end_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.end_height_ = value; } @@ -15030,8 +19537,9 @@ inline void HeightRequest::_internal_set_end_height(::uint64_t value) { // uint64 max = 1; inline void BlockTimingResponse::clear_max() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t BlockTimingResponse::max() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockTimingResponse.max) @@ -15039,21 +19547,23 @@ inline ::uint64_t BlockTimingResponse::max() const { } inline void BlockTimingResponse::set_max(::uint64_t value) { _internal_set_max(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.BlockTimingResponse.max) } inline ::uint64_t BlockTimingResponse::_internal_max() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.max_; } inline void BlockTimingResponse::_internal_set_max(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_ = value; } // uint64 min = 2; inline void BlockTimingResponse::clear_min() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t BlockTimingResponse::min() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockTimingResponse.min) @@ -15061,21 +19571,23 @@ inline ::uint64_t BlockTimingResponse::min() const { } inline void BlockTimingResponse::set_min(::uint64_t value) { _internal_set_min(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.BlockTimingResponse.min) } inline ::uint64_t BlockTimingResponse::_internal_min() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.min_; } inline void BlockTimingResponse::_internal_set_min(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_ = value; } // double avg = 3; inline void BlockTimingResponse::clear_avg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.avg_ = 0; + _impl_._has_bits_[0] &= ~0x00000004u; } inline double BlockTimingResponse::avg() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockTimingResponse.avg) @@ -15083,14 +19595,15 @@ inline double BlockTimingResponse::avg() const { } inline void BlockTimingResponse::set_avg(double value) { _internal_set_avg(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.BlockTimingResponse.avg) } inline double BlockTimingResponse::_internal_avg() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.avg_; } inline void BlockTimingResponse::_internal_set_avg(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.avg_ = value; } @@ -15100,51 +19613,66 @@ inline void BlockTimingResponse::_internal_set_avg(double value) { // bytes hash = 1; inline void GetHeaderByHashRequest::clear_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetHeaderByHashRequest::hash() const +inline const ::std::string& GetHeaderByHashRequest::hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetHeaderByHashRequest.hash) return _internal_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void GetHeaderByHashRequest::set_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetHeaderByHashRequest::set_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetHeaderByHashRequest.hash) } -inline std::string* GetHeaderByHashRequest::mutable_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_hash(); +inline ::std::string* PROTOBUF_NONNULL GetHeaderByHashRequest::mutable_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetHeaderByHashRequest.hash) return _s; } -inline const std::string& GetHeaderByHashRequest::_internal_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetHeaderByHashRequest::_internal_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.hash_.Get(); } -inline void GetHeaderByHashRequest::_internal_set_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetHeaderByHashRequest::_internal_set_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.hash_.Set(value, GetArena()); } -inline std::string* GetHeaderByHashRequest::_internal_mutable_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetHeaderByHashRequest::_internal_mutable_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.hash_.Mutable( GetArena()); } -inline std::string* GetHeaderByHashRequest::release_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetHeaderByHashRequest::release_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetHeaderByHashRequest.hash) - return _impl_.hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.hash_.Set("", GetArena()); + } + return released; } -inline void GetHeaderByHashRequest::set_allocated_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetHeaderByHashRequest::set_allocated_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.hash_.IsDefault()) { - _impl_.hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.hash_.IsDefault()) { + _impl_.hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetHeaderByHashRequest.hash) } @@ -15159,7 +19687,7 @@ inline bool BlockHeaderResponse::has_header() const { return value; } inline const ::tari::rpc::BlockHeader& BlockHeaderResponse::_internal_header() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::BlockHeader* p = _impl_.header_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_BlockHeader_default_instance_); } @@ -15167,8 +19695,9 @@ inline const ::tari::rpc::BlockHeader& BlockHeaderResponse::header() const ABSL_ // @@protoc_insertion_point(field_get:tari.rpc.BlockHeaderResponse.header) return _internal_header(); } -inline void BlockHeaderResponse::unsafe_arena_set_allocated_header(::tari::rpc::BlockHeader* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeaderResponse::unsafe_arena_set_allocated_header( + ::tari::rpc::BlockHeader* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); } @@ -15180,27 +19709,27 @@ inline void BlockHeaderResponse::unsafe_arena_set_allocated_header(::tari::rpc:: } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.BlockHeaderResponse.header) } -inline ::tari::rpc::BlockHeader* BlockHeaderResponse::release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::BlockHeader* PROTOBUF_NULLABLE BlockHeaderResponse::release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::BlockHeader* released = _impl_.header_; _impl_.header_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::BlockHeader* BlockHeaderResponse::unsafe_arena_release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::BlockHeader* PROTOBUF_NULLABLE BlockHeaderResponse::unsafe_arena_release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockHeaderResponse.header) _impl_._has_bits_[0] &= ~0x00000001u; @@ -15208,29 +19737,30 @@ inline ::tari::rpc::BlockHeader* BlockHeaderResponse::unsafe_arena_release_heade _impl_.header_ = nullptr; return temp; } -inline ::tari::rpc::BlockHeader* BlockHeaderResponse::_internal_mutable_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::BlockHeader* PROTOBUF_NONNULL BlockHeaderResponse::_internal_mutable_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.header_ == nullptr) { 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 { +inline ::tari::rpc::BlockHeader* PROTOBUF_NONNULL 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; } -inline void BlockHeaderResponse::set_allocated_header(::tari::rpc::BlockHeader* value) { +inline void BlockHeaderResponse::set_allocated_header(::tari::rpc::BlockHeader* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -15245,8 +19775,9 @@ inline void BlockHeaderResponse::set_allocated_header(::tari::rpc::BlockHeader* // uint64 confirmations = 2; inline void BlockHeaderResponse::clear_confirmations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.confirmations_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t BlockHeaderResponse::confirmations() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeaderResponse.confirmations) @@ -15254,21 +19785,23 @@ inline ::uint64_t BlockHeaderResponse::confirmations() const { } inline void BlockHeaderResponse::set_confirmations(::uint64_t value) { _internal_set_confirmations(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.BlockHeaderResponse.confirmations) } inline ::uint64_t BlockHeaderResponse::_internal_confirmations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.confirmations_; } inline void BlockHeaderResponse::_internal_set_confirmations(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.confirmations_ = value; } // uint64 reward = 3; inline void BlockHeaderResponse::clear_reward() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reward_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t BlockHeaderResponse::reward() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeaderResponse.reward) @@ -15276,21 +19809,23 @@ inline ::uint64_t BlockHeaderResponse::reward() const { } inline void BlockHeaderResponse::set_reward(::uint64_t value) { _internal_set_reward(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.BlockHeaderResponse.reward) } inline ::uint64_t BlockHeaderResponse::_internal_reward() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.reward_; } inline void BlockHeaderResponse::_internal_set_reward(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reward_ = value; } // uint64 difficulty = 4; inline void BlockHeaderResponse::clear_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.difficulty_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000008u; } inline ::uint64_t BlockHeaderResponse::difficulty() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeaderResponse.difficulty) @@ -15298,21 +19833,23 @@ inline ::uint64_t BlockHeaderResponse::difficulty() const { } inline void BlockHeaderResponse::set_difficulty(::uint64_t value) { _internal_set_difficulty(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.BlockHeaderResponse.difficulty) } inline ::uint64_t BlockHeaderResponse::_internal_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.difficulty_; } inline void BlockHeaderResponse::_internal_set_difficulty(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.difficulty_ = value; } // uint32 num_transactions = 5; inline void BlockHeaderResponse::clear_num_transactions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_transactions_ = 0u; + _impl_._has_bits_[0] &= ~0x00000010u; } inline ::uint32_t BlockHeaderResponse::num_transactions() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeaderResponse.num_transactions) @@ -15320,14 +19857,15 @@ inline ::uint32_t BlockHeaderResponse::num_transactions() const { } inline void BlockHeaderResponse::set_num_transactions(::uint32_t value) { _internal_set_num_transactions(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:tari.rpc.BlockHeaderResponse.num_transactions) } inline ::uint32_t BlockHeaderResponse::_internal_num_transactions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.num_transactions_; } inline void BlockHeaderResponse::_internal_set_num_transactions(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_transactions_ = value; } @@ -15337,8 +19875,9 @@ inline void BlockHeaderResponse::_internal_set_num_transactions(::uint32_t value // uint64 from_height = 1; inline void ListHeadersRequest::clear_from_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.from_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t ListHeadersRequest::from_height() const { // @@protoc_insertion_point(field_get:tari.rpc.ListHeadersRequest.from_height) @@ -15346,21 +19885,23 @@ inline ::uint64_t ListHeadersRequest::from_height() const { } inline void ListHeadersRequest::set_from_height(::uint64_t value) { _internal_set_from_height(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.ListHeadersRequest.from_height) } inline ::uint64_t ListHeadersRequest::_internal_from_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.from_height_; } inline void ListHeadersRequest::_internal_set_from_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.from_height_ = value; } // uint64 num_headers = 2; inline void ListHeadersRequest::clear_num_headers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_headers_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t ListHeadersRequest::num_headers() const { // @@protoc_insertion_point(field_get:tari.rpc.ListHeadersRequest.num_headers) @@ -15368,21 +19909,23 @@ inline ::uint64_t ListHeadersRequest::num_headers() const { } inline void ListHeadersRequest::set_num_headers(::uint64_t value) { _internal_set_num_headers(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.ListHeadersRequest.num_headers) } inline ::uint64_t ListHeadersRequest::_internal_num_headers() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.num_headers_; } inline void ListHeadersRequest::_internal_set_num_headers(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_headers_ = value; } // .tari.rpc.Sorting sorting = 3; inline void ListHeadersRequest::clear_sorting() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sorting_ = 0; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::tari::rpc::Sorting ListHeadersRequest::sorting() const { // @@protoc_insertion_point(field_get:tari.rpc.ListHeadersRequest.sorting) @@ -15390,14 +19933,15 @@ inline ::tari::rpc::Sorting ListHeadersRequest::sorting() const { } inline void ListHeadersRequest::set_sorting(::tari::rpc::Sorting value) { _internal_set_sorting(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.ListHeadersRequest.sorting) } inline ::tari::rpc::Sorting ListHeadersRequest::_internal_sorting() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::tari::rpc::Sorting>(_impl_.sorting_); } inline void ListHeadersRequest::_internal_set_sorting(::tari::rpc::Sorting value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sorting_ = value; } @@ -15413,7 +19957,7 @@ inline int GetBlocksRequest::heights_size() const { return _internal_heights_size(); } inline void GetBlocksRequest::clear_heights() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.heights_.Clear(); } inline ::uint64_t GetBlocksRequest::heights(int index) const { @@ -15425,7 +19969,7 @@ inline void GetBlocksRequest::set_heights(int index, ::uint64_t value) { // @@protoc_insertion_point(field_set:tari.rpc.GetBlocksRequest.heights) } inline void GetBlocksRequest::add_heights(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_heights()->Add(value); // @@protoc_insertion_point(field_add:tari.rpc.GetBlocksRequest.heights) } @@ -15434,19 +19978,20 @@ inline const ::google::protobuf::RepeatedField<::uint64_t>& GetBlocksRequest::he // @@protoc_insertion_point(field_list:tari.rpc.GetBlocksRequest.heights) return _internal_heights(); } -inline ::google::protobuf::RepeatedField<::uint64_t>* GetBlocksRequest::mutable_heights() +inline ::google::protobuf::RepeatedField<::uint64_t>* PROTOBUF_NONNULL GetBlocksRequest::mutable_heights() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.GetBlocksRequest.heights) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_heights(); } inline const ::google::protobuf::RepeatedField<::uint64_t>& GetBlocksRequest::_internal_heights() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.heights_; } -inline ::google::protobuf::RepeatedField<::uint64_t>* GetBlocksRequest::_internal_mutable_heights() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline ::google::protobuf::RepeatedField<::uint64_t>* PROTOBUF_NONNULL +GetBlocksRequest::_internal_mutable_heights() { + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.heights_; } @@ -15461,15 +20006,15 @@ inline int GetBlocksResponse::_internal_blocks_size() const { inline int GetBlocksResponse::blocks_size() const { return _internal_blocks_size(); } -inline ::tari::rpc::HistoricalBlock* GetBlocksResponse::mutable_blocks(int index) +inline ::tari::rpc::HistoricalBlock* PROTOBUF_NONNULL GetBlocksResponse::mutable_blocks(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.GetBlocksResponse.blocks) return _internal_mutable_blocks()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* GetBlocksResponse::mutable_blocks() +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* PROTOBUF_NONNULL GetBlocksResponse::mutable_blocks() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.GetBlocksResponse.blocks) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_blocks(); } inline const ::tari::rpc::HistoricalBlock& GetBlocksResponse::blocks(int index) const @@ -15477,8 +20022,9 @@ inline const ::tari::rpc::HistoricalBlock& GetBlocksResponse::blocks(int index) // @@protoc_insertion_point(field_get:tari.rpc.GetBlocksResponse.blocks) return _internal_blocks().Get(index); } -inline ::tari::rpc::HistoricalBlock* GetBlocksResponse::add_blocks() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::HistoricalBlock* PROTOBUF_NONNULL GetBlocksResponse::add_blocks() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); ::tari::rpc::HistoricalBlock* _add = _internal_mutable_blocks()->Add(); // @@protoc_insertion_point(field_add:tari.rpc.GetBlocksResponse.blocks) return _add; @@ -15490,12 +20036,12 @@ inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>& } inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>& GetBlocksResponse::_internal_blocks() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.blocks_; } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* PROTOBUF_NONNULL GetBlocksResponse::_internal_mutable_blocks() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.blocks_; } @@ -15505,8 +20051,9 @@ GetBlocksResponse::_internal_mutable_blocks() { // uint64 best_block_height = 1; inline void MetaData::clear_best_block_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.best_block_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t MetaData::best_block_height() const { // @@protoc_insertion_point(field_get:tari.rpc.MetaData.best_block_height) @@ -15514,121 +20061,153 @@ inline ::uint64_t MetaData::best_block_height() const { } inline void MetaData::set_best_block_height(::uint64_t value) { _internal_set_best_block_height(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.MetaData.best_block_height) } inline ::uint64_t MetaData::_internal_best_block_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.best_block_height_; } inline void MetaData::_internal_set_best_block_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.best_block_height_ = value; } // bytes best_block_hash = 2; inline void MetaData::clear_best_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.best_block_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& MetaData::best_block_hash() const +inline const ::std::string& MetaData::best_block_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.MetaData.best_block_hash) return _internal_best_block_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void MetaData::set_best_block_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void MetaData::set_best_block_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.best_block_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.MetaData.best_block_hash) } -inline std::string* MetaData::mutable_best_block_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_best_block_hash(); +inline ::std::string* PROTOBUF_NONNULL MetaData::mutable_best_block_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_best_block_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.MetaData.best_block_hash) return _s; } -inline const std::string& MetaData::_internal_best_block_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& MetaData::_internal_best_block_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.best_block_hash_.Get(); } -inline void MetaData::_internal_set_best_block_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MetaData::_internal_set_best_block_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.best_block_hash_.Set(value, GetArena()); } -inline std::string* MetaData::_internal_mutable_best_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL MetaData::_internal_mutable_best_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.best_block_hash_.Mutable( GetArena()); } -inline std::string* MetaData::release_best_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE MetaData::release_best_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.MetaData.best_block_hash) - return _impl_.best_block_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.best_block_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.best_block_hash_.Set("", GetArena()); + } + return released; } -inline void MetaData::set_allocated_best_block_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MetaData::set_allocated_best_block_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.best_block_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.best_block_hash_.IsDefault()) { - _impl_.best_block_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.best_block_hash_.IsDefault()) { + _impl_.best_block_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.MetaData.best_block_hash) } // bytes accumulated_difficulty = 5; inline void MetaData::clear_accumulated_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.accumulated_difficulty_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& MetaData::accumulated_difficulty() const +inline const ::std::string& MetaData::accumulated_difficulty() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.MetaData.accumulated_difficulty) return _internal_accumulated_difficulty(); } template -inline PROTOBUF_ALWAYS_INLINE void MetaData::set_accumulated_difficulty(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void MetaData::set_accumulated_difficulty(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.accumulated_difficulty_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.MetaData.accumulated_difficulty) } -inline std::string* MetaData::mutable_accumulated_difficulty() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_accumulated_difficulty(); +inline ::std::string* PROTOBUF_NONNULL MetaData::mutable_accumulated_difficulty() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_accumulated_difficulty(); // @@protoc_insertion_point(field_mutable:tari.rpc.MetaData.accumulated_difficulty) return _s; } -inline const std::string& MetaData::_internal_accumulated_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& MetaData::_internal_accumulated_difficulty() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.accumulated_difficulty_.Get(); } -inline void MetaData::_internal_set_accumulated_difficulty(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MetaData::_internal_set_accumulated_difficulty(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.accumulated_difficulty_.Set(value, GetArena()); } -inline std::string* MetaData::_internal_mutable_accumulated_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL MetaData::_internal_mutable_accumulated_difficulty() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.accumulated_difficulty_.Mutable( GetArena()); } -inline std::string* MetaData::release_accumulated_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE MetaData::release_accumulated_difficulty() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.MetaData.accumulated_difficulty) - return _impl_.accumulated_difficulty_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.accumulated_difficulty_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.accumulated_difficulty_.Set("", GetArena()); + } + return released; } -inline void MetaData::set_allocated_accumulated_difficulty(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MetaData::set_allocated_accumulated_difficulty(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.accumulated_difficulty_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.accumulated_difficulty_.IsDefault()) { - _impl_.accumulated_difficulty_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.accumulated_difficulty_.IsDefault()) { + _impl_.accumulated_difficulty_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.MetaData.accumulated_difficulty) } // uint64 pruned_height = 6; inline void MetaData::clear_pruned_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pruned_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000008u; } inline ::uint64_t MetaData::pruned_height() const { // @@protoc_insertion_point(field_get:tari.rpc.MetaData.pruned_height) @@ -15636,21 +20215,23 @@ inline ::uint64_t MetaData::pruned_height() const { } inline void MetaData::set_pruned_height(::uint64_t value) { _internal_set_pruned_height(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.MetaData.pruned_height) } inline ::uint64_t MetaData::_internal_pruned_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pruned_height_; } inline void MetaData::_internal_set_pruned_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pruned_height_ = value; } // uint64 timestamp = 7; inline void MetaData::clear_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.timestamp_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000010u; } inline ::uint64_t MetaData::timestamp() const { // @@protoc_insertion_point(field_get:tari.rpc.MetaData.timestamp) @@ -15658,14 +20239,15 @@ inline ::uint64_t MetaData::timestamp() const { } inline void MetaData::set_timestamp(::uint64_t value) { _internal_set_timestamp(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:tari.rpc.MetaData.timestamp) } inline ::uint64_t MetaData::_internal_timestamp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.timestamp_; } inline void MetaData::_internal_set_timestamp(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.timestamp_ = value; } @@ -15675,8 +20257,9 @@ inline void MetaData::_internal_set_timestamp(::uint64_t value) { // uint64 tip_height = 1; inline void SyncInfoResponse::clear_tip_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tip_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t SyncInfoResponse::tip_height() const { // @@protoc_insertion_point(field_get:tari.rpc.SyncInfoResponse.tip_height) @@ -15684,21 +20267,23 @@ inline ::uint64_t SyncInfoResponse::tip_height() const { } inline void SyncInfoResponse::set_tip_height(::uint64_t value) { _internal_set_tip_height(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.SyncInfoResponse.tip_height) } inline ::uint64_t SyncInfoResponse::_internal_tip_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.tip_height_; } inline void SyncInfoResponse::_internal_set_tip_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tip_height_ = value; } // uint64 local_height = 2; inline void SyncInfoResponse::clear_local_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.local_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t SyncInfoResponse::local_height() const { // @@protoc_insertion_point(field_get:tari.rpc.SyncInfoResponse.local_height) @@ -15706,14 +20291,15 @@ inline ::uint64_t SyncInfoResponse::local_height() const { } inline void SyncInfoResponse::set_local_height(::uint64_t value) { _internal_set_local_height(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.SyncInfoResponse.local_height) } inline ::uint64_t SyncInfoResponse::_internal_local_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.local_height_; } inline void SyncInfoResponse::_internal_set_local_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.local_height_ = value; } @@ -15725,97 +20311,59 @@ inline int SyncInfoResponse::peer_node_id_size() const { return _internal_peer_node_id_size(); } inline void SyncInfoResponse::clear_peer_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.peer_node_id_.Clear(); } -inline std::string* SyncInfoResponse::add_peer_node_id() +inline ::std::string* PROTOBUF_NONNULL SyncInfoResponse::add_peer_node_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_peer_node_id()->Add(); + ::google::protobuf::internal::TSanWrite(&_impl_); + ::std::string* _s = _internal_mutable_peer_node_id()->Add(); // @@protoc_insertion_point(field_add_mutable:tari.rpc.SyncInfoResponse.peer_node_id) return _s; } -inline const std::string& SyncInfoResponse::peer_node_id(int index) const +inline const ::std::string& SyncInfoResponse::peer_node_id(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.SyncInfoResponse.peer_node_id) return _internal_peer_node_id().Get(index); } -inline std::string* SyncInfoResponse::mutable_peer_node_id(int index) +inline ::std::string* PROTOBUF_NONNULL SyncInfoResponse::mutable_peer_node_id(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.SyncInfoResponse.peer_node_id) return _internal_mutable_peer_node_id()->Mutable(index); } -inline void SyncInfoResponse::set_peer_node_id(int index, const std::string& value) { - _internal_mutable_peer_node_id()->Mutable(index)->assign(value); +template +inline void SyncInfoResponse::set_peer_node_id(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString(*_internal_mutable_peer_node_id()->Mutable(index), ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); // @@protoc_insertion_point(field_set:tari.rpc.SyncInfoResponse.peer_node_id) } -inline void SyncInfoResponse::set_peer_node_id(int index, std::string&& value) { - _internal_mutable_peer_node_id()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::set_peer_node_id(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_peer_node_id()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::set_peer_node_id(int index, const void* value, - std::size_t size) { - _internal_mutable_peer_node_id()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@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()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::add_peer_node_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_peer_node_id()->Add()->assign(value); +template +inline void SyncInfoResponse::add_peer_node_id(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_peer_node_id(), + ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); // @@protoc_insertion_point(field_add:tari.rpc.SyncInfoResponse.peer_node_id) } -inline void SyncInfoResponse::add_peer_node_id(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_peer_node_id()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::add_peer_node_id(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_peer_node_id()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::add_peer_node_id(const void* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_peer_node_id()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.SyncInfoResponse.peer_node_id) -} -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()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline const ::google::protobuf::RepeatedPtrField& -SyncInfoResponse::peer_node_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::RepeatedPtrField<::std::string>& SyncInfoResponse::peer_node_id() + const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:tari.rpc.SyncInfoResponse.peer_node_id) return _internal_peer_node_id(); } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL SyncInfoResponse::mutable_peer_node_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.SyncInfoResponse.peer_node_id) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_peer_node_id(); } -inline const ::google::protobuf::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField<::std::string>& SyncInfoResponse::_internal_peer_node_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.peer_node_id_; } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL SyncInfoResponse::_internal_mutable_peer_node_id() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.peer_node_id_; } @@ -15825,8 +20373,9 @@ SyncInfoResponse::_internal_mutable_peer_node_id() { // uint64 tip_height = 1; inline void SyncProgressResponse::clear_tip_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tip_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t SyncProgressResponse::tip_height() const { // @@protoc_insertion_point(field_get:tari.rpc.SyncProgressResponse.tip_height) @@ -15834,21 +20383,23 @@ inline ::uint64_t SyncProgressResponse::tip_height() const { } inline void SyncProgressResponse::set_tip_height(::uint64_t value) { _internal_set_tip_height(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.SyncProgressResponse.tip_height) } inline ::uint64_t SyncProgressResponse::_internal_tip_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.tip_height_; } inline void SyncProgressResponse::_internal_set_tip_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tip_height_ = value; } // uint64 local_height = 2; inline void SyncProgressResponse::clear_local_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.local_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t SyncProgressResponse::local_height() const { // @@protoc_insertion_point(field_get:tari.rpc.SyncProgressResponse.local_height) @@ -15856,21 +20407,23 @@ inline ::uint64_t SyncProgressResponse::local_height() const { } inline void SyncProgressResponse::set_local_height(::uint64_t value) { _internal_set_local_height(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.SyncProgressResponse.local_height) } inline ::uint64_t SyncProgressResponse::_internal_local_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.local_height_; } inline void SyncProgressResponse::_internal_set_local_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.local_height_ = value; } // .tari.rpc.SyncState state = 3; inline void SyncProgressResponse::clear_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.state_ = 0; + _impl_._has_bits_[0] &= ~0x00000010u; } inline ::tari::rpc::SyncState SyncProgressResponse::state() const { // @@protoc_insertion_point(field_get:tari.rpc.SyncProgressResponse.state) @@ -15878,71 +20431,88 @@ inline ::tari::rpc::SyncState SyncProgressResponse::state() const { } inline void SyncProgressResponse::set_state(::tari::rpc::SyncState value) { _internal_set_state(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:tari.rpc.SyncProgressResponse.state) } inline ::tari::rpc::SyncState SyncProgressResponse::_internal_state() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::tari::rpc::SyncState>(_impl_.state_); } inline void SyncProgressResponse::_internal_set_state(::tari::rpc::SyncState value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.state_ = value; } // string short_desc = 4; inline void SyncProgressResponse::clear_short_desc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.short_desc_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& SyncProgressResponse::short_desc() const +inline const ::std::string& SyncProgressResponse::short_desc() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.SyncProgressResponse.short_desc) return _internal_short_desc(); } template -inline PROTOBUF_ALWAYS_INLINE void SyncProgressResponse::set_short_desc(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void SyncProgressResponse::set_short_desc(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.short_desc_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.SyncProgressResponse.short_desc) } -inline std::string* SyncProgressResponse::mutable_short_desc() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_short_desc(); +inline ::std::string* PROTOBUF_NONNULL SyncProgressResponse::mutable_short_desc() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_short_desc(); // @@protoc_insertion_point(field_mutable:tari.rpc.SyncProgressResponse.short_desc) return _s; } -inline const std::string& SyncProgressResponse::_internal_short_desc() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& SyncProgressResponse::_internal_short_desc() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.short_desc_.Get(); } -inline void SyncProgressResponse::_internal_set_short_desc(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SyncProgressResponse::_internal_set_short_desc(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.short_desc_.Set(value, GetArena()); } -inline std::string* SyncProgressResponse::_internal_mutable_short_desc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL SyncProgressResponse::_internal_mutable_short_desc() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.short_desc_.Mutable( GetArena()); } -inline std::string* SyncProgressResponse::release_short_desc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE SyncProgressResponse::release_short_desc() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.SyncProgressResponse.short_desc) - return _impl_.short_desc_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.short_desc_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.short_desc_.Set("", GetArena()); + } + return released; } -inline void SyncProgressResponse::set_allocated_short_desc(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SyncProgressResponse::set_allocated_short_desc(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.short_desc_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.short_desc_.IsDefault()) { - _impl_.short_desc_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.short_desc_.IsDefault()) { + _impl_.short_desc_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.SyncProgressResponse.short_desc) } // uint64 initial_connected_peers = 5; inline void SyncProgressResponse::clear_initial_connected_peers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.initial_connected_peers_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000008u; } inline ::uint64_t SyncProgressResponse::initial_connected_peers() const { // @@protoc_insertion_point(field_get:tari.rpc.SyncProgressResponse.initial_connected_peers) @@ -15950,14 +20520,15 @@ inline ::uint64_t SyncProgressResponse::initial_connected_peers() const { } inline void SyncProgressResponse::set_initial_connected_peers(::uint64_t value) { _internal_set_initial_connected_peers(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.SyncProgressResponse.initial_connected_peers) } inline ::uint64_t SyncProgressResponse::_internal_initial_connected_peers() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.initial_connected_peers_; } inline void SyncProgressResponse::_internal_set_initial_connected_peers(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.initial_connected_peers_ = value; } @@ -15967,62 +20538,77 @@ inline void SyncProgressResponse::_internal_set_initial_connected_peers(::uint64 // bytes block_hash = 1; inline void GetNewBlockResult::clear_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetNewBlockResult::block_hash() const +inline const ::std::string& GetNewBlockResult::block_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockResult.block_hash) return _internal_block_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_block_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_block_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.block_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockResult.block_hash) } -inline std::string* GetNewBlockResult::mutable_block_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_block_hash(); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockResult::mutable_block_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_block_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockResult.block_hash) return _s; } -inline const std::string& GetNewBlockResult::_internal_block_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetNewBlockResult::_internal_block_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.block_hash_.Get(); } -inline void GetNewBlockResult::_internal_set_block_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockResult::_internal_set_block_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.block_hash_.Set(value, GetArena()); } -inline std::string* GetNewBlockResult::_internal_mutable_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockResult::_internal_mutable_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.block_hash_.Mutable( GetArena()); } -inline std::string* GetNewBlockResult::release_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetNewBlockResult::release_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockResult.block_hash) - return _impl_.block_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.block_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.block_hash_.Set("", GetArena()); + } + return released; } -inline void GetNewBlockResult::set_allocated_block_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockResult::set_allocated_block_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.block_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.block_hash_.IsDefault()) { - _impl_.block_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.block_hash_.IsDefault()) { + _impl_.block_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockResult.block_hash) } // .tari.rpc.Block block = 2; inline bool GetNewBlockResult::has_block() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; PROTOBUF_ASSUME(!value || _impl_.block_ != nullptr); return value; } inline const ::tari::rpc::Block& GetNewBlockResult::_internal_block() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Block* p = _impl_.block_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Block_default_instance_); } @@ -16030,76 +20616,78 @@ inline const ::tari::rpc::Block& GetNewBlockResult::block() const ABSL_ATTRIBUTE // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockResult.block) return _internal_block(); } -inline void GetNewBlockResult::unsafe_arena_set_allocated_block(::tari::rpc::Block* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockResult::unsafe_arena_set_allocated_block( + ::tari::rpc::Block* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.block_); } _impl_.block_ = reinterpret_cast<::tari::rpc::Block*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000010u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000010u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetNewBlockResult.block) } -inline ::tari::rpc::Block* GetNewBlockResult::release_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Block* PROTOBUF_NULLABLE GetNewBlockResult::release_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000010u; ::tari::rpc::Block* released = _impl_.block_; _impl_.block_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Block* GetNewBlockResult::unsafe_arena_release_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Block* PROTOBUF_NULLABLE GetNewBlockResult::unsafe_arena_release_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockResult.block) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000010u; ::tari::rpc::Block* temp = _impl_.block_; _impl_.block_ = nullptr; return temp; } -inline ::tari::rpc::Block* GetNewBlockResult::_internal_mutable_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Block* PROTOBUF_NONNULL GetNewBlockResult::_internal_mutable_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.block_ == nullptr) { 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; +inline ::tari::rpc::Block* PROTOBUF_NONNULL GetNewBlockResult::mutable_block() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000010u; ::tari::rpc::Block* _msg = _internal_mutable_block(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockResult.block) return _msg; } -inline void GetNewBlockResult::set_allocated_block(::tari::rpc::Block* value) { +inline void GetNewBlockResult::set_allocated_block(::tari::rpc::Block* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.block_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000010u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000010u; } _impl_.block_ = reinterpret_cast<::tari::rpc::Block*>(value); @@ -16108,117 +20696,147 @@ inline void GetNewBlockResult::set_allocated_block(::tari::rpc::Block* value) { // bytes merge_mining_hash = 3; inline void GetNewBlockResult::clear_merge_mining_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.merge_mining_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& GetNewBlockResult::merge_mining_hash() const +inline const ::std::string& GetNewBlockResult::merge_mining_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockResult.merge_mining_hash) return _internal_merge_mining_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_merge_mining_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_merge_mining_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.merge_mining_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockResult.merge_mining_hash) } -inline std::string* GetNewBlockResult::mutable_merge_mining_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_merge_mining_hash(); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockResult::mutable_merge_mining_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_merge_mining_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockResult.merge_mining_hash) return _s; } -inline const std::string& GetNewBlockResult::_internal_merge_mining_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetNewBlockResult::_internal_merge_mining_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.merge_mining_hash_.Get(); } -inline void GetNewBlockResult::_internal_set_merge_mining_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockResult::_internal_set_merge_mining_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.merge_mining_hash_.Set(value, GetArena()); } -inline std::string* GetNewBlockResult::_internal_mutable_merge_mining_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockResult::_internal_mutable_merge_mining_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.merge_mining_hash_.Mutable( GetArena()); } -inline std::string* GetNewBlockResult::release_merge_mining_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetNewBlockResult::release_merge_mining_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockResult.merge_mining_hash) - return _impl_.merge_mining_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.merge_mining_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.merge_mining_hash_.Set("", GetArena()); + } + return released; } -inline void GetNewBlockResult::set_allocated_merge_mining_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockResult::set_allocated_merge_mining_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.merge_mining_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.merge_mining_hash_.IsDefault()) { - _impl_.merge_mining_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.merge_mining_hash_.IsDefault()) { + _impl_.merge_mining_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockResult.merge_mining_hash) } // bytes tari_unique_id = 4; inline void GetNewBlockResult::clear_tari_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tari_unique_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& GetNewBlockResult::tari_unique_id() const +inline const ::std::string& GetNewBlockResult::tari_unique_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockResult.tari_unique_id) return _internal_tari_unique_id(); } template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_tari_unique_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_tari_unique_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.tari_unique_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockResult.tari_unique_id) } -inline std::string* GetNewBlockResult::mutable_tari_unique_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_tari_unique_id(); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockResult::mutable_tari_unique_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_tari_unique_id(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockResult.tari_unique_id) return _s; } -inline const std::string& GetNewBlockResult::_internal_tari_unique_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetNewBlockResult::_internal_tari_unique_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.tari_unique_id_.Get(); } -inline void GetNewBlockResult::_internal_set_tari_unique_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockResult::_internal_set_tari_unique_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.tari_unique_id_.Set(value, GetArena()); } -inline std::string* GetNewBlockResult::_internal_mutable_tari_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockResult::_internal_mutable_tari_unique_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.tari_unique_id_.Mutable( GetArena()); } -inline std::string* GetNewBlockResult::release_tari_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetNewBlockResult::release_tari_unique_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockResult.tari_unique_id) - return _impl_.tari_unique_id_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.tari_unique_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.tari_unique_id_.Set("", GetArena()); + } + return released; } -inline void GetNewBlockResult::set_allocated_tari_unique_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockResult::set_allocated_tari_unique_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.tari_unique_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tari_unique_id_.IsDefault()) { - _impl_.tari_unique_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.tari_unique_id_.IsDefault()) { + _impl_.tari_unique_id_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockResult.tari_unique_id) } // .tari.rpc.MinerData miner_data = 5; inline bool GetNewBlockResult::has_miner_data() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; PROTOBUF_ASSUME(!value || _impl_.miner_data_ != nullptr); return value; } inline void GetNewBlockResult::clear_miner_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.miner_data_ != nullptr) _impl_.miner_data_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000020u; } inline const ::tari::rpc::MinerData& GetNewBlockResult::_internal_miner_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::MinerData* p = _impl_.miner_data_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_MinerData_default_instance_); } @@ -16226,76 +20844,78 @@ inline const ::tari::rpc::MinerData& GetNewBlockResult::miner_data() const ABSL_ // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockResult.miner_data) return _internal_miner_data(); } -inline void GetNewBlockResult::unsafe_arena_set_allocated_miner_data(::tari::rpc::MinerData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockResult::unsafe_arena_set_allocated_miner_data( + ::tari::rpc::MinerData* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.miner_data_); } _impl_.miner_data_ = reinterpret_cast<::tari::rpc::MinerData*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + _impl_._has_bits_[0] |= 0x00000020u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000020u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetNewBlockResult.miner_data) } -inline ::tari::rpc::MinerData* GetNewBlockResult::release_miner_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::MinerData* PROTOBUF_NULLABLE GetNewBlockResult::release_miner_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000020u; ::tari::rpc::MinerData* released = _impl_.miner_data_; _impl_.miner_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::MinerData* GetNewBlockResult::unsafe_arena_release_miner_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::MinerData* PROTOBUF_NULLABLE GetNewBlockResult::unsafe_arena_release_miner_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockResult.miner_data) - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000020u; ::tari::rpc::MinerData* temp = _impl_.miner_data_; _impl_.miner_data_ = nullptr; return temp; } -inline ::tari::rpc::MinerData* GetNewBlockResult::_internal_mutable_miner_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::MinerData* PROTOBUF_NONNULL GetNewBlockResult::_internal_mutable_miner_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.miner_data_ == nullptr) { 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; +inline ::tari::rpc::MinerData* PROTOBUF_NONNULL GetNewBlockResult::mutable_miner_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000020u; ::tari::rpc::MinerData* _msg = _internal_mutable_miner_data(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockResult.miner_data) return _msg; } -inline void GetNewBlockResult::set_allocated_miner_data(::tari::rpc::MinerData* value) { +inline void GetNewBlockResult::set_allocated_miner_data(::tari::rpc::MinerData* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.miner_data_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.miner_data_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + _impl_._has_bits_[0] |= 0x00000020u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000020u; } _impl_.miner_data_ = reinterpret_cast<::tari::rpc::MinerData*>(value); @@ -16304,51 +20924,66 @@ inline void GetNewBlockResult::set_allocated_miner_data(::tari::rpc::MinerData* // bytes vm_key = 6; inline void GetNewBlockResult::clear_vm_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.vm_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& GetNewBlockResult::vm_key() const +inline const ::std::string& GetNewBlockResult::vm_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockResult.vm_key) return _internal_vm_key(); } template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_vm_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_vm_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.vm_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockResult.vm_key) } -inline std::string* GetNewBlockResult::mutable_vm_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_vm_key(); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockResult::mutable_vm_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_vm_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockResult.vm_key) return _s; } -inline const std::string& GetNewBlockResult::_internal_vm_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetNewBlockResult::_internal_vm_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.vm_key_.Get(); } -inline void GetNewBlockResult::_internal_set_vm_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockResult::_internal_set_vm_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.vm_key_.Set(value, GetArena()); } -inline std::string* GetNewBlockResult::_internal_mutable_vm_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockResult::_internal_mutable_vm_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.vm_key_.Mutable( GetArena()); } -inline std::string* GetNewBlockResult::release_vm_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetNewBlockResult::release_vm_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockResult.vm_key) - return _impl_.vm_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.vm_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.vm_key_.Set("", GetArena()); + } + return released; } -inline void GetNewBlockResult::set_allocated_vm_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockResult::set_allocated_vm_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } _impl_.vm_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.vm_key_.IsDefault()) { - _impl_.vm_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.vm_key_.IsDefault()) { + _impl_.vm_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockResult.vm_key) } @@ -16358,301 +20993,391 @@ inline void GetNewBlockResult::set_allocated_vm_key(std::string* value) { // bytes block_hash = 1; inline void GetNewBlockBlobResult::clear_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetNewBlockBlobResult::block_hash() const +inline const ::std::string& GetNewBlockBlobResult::block_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.block_hash) return _internal_block_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_block_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_block_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.block_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.block_hash) } -inline std::string* GetNewBlockBlobResult::mutable_block_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_block_hash(); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockBlobResult::mutable_block_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_block_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.block_hash) return _s; } -inline const std::string& GetNewBlockBlobResult::_internal_block_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetNewBlockBlobResult::_internal_block_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.block_hash_.Get(); } -inline void GetNewBlockBlobResult::_internal_set_block_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockBlobResult::_internal_set_block_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.block_hash_.Set(value, GetArena()); } -inline std::string* GetNewBlockBlobResult::_internal_mutable_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockBlobResult::_internal_mutable_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.block_hash_.Mutable( GetArena()); } -inline std::string* GetNewBlockBlobResult::release_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetNewBlockBlobResult::release_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.block_hash) - return _impl_.block_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.block_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.block_hash_.Set("", GetArena()); + } + return released; } -inline void GetNewBlockBlobResult::set_allocated_block_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockBlobResult::set_allocated_block_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.block_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.block_hash_.IsDefault()) { - _impl_.block_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.block_hash_.IsDefault()) { + _impl_.block_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.block_hash) } // bytes header = 2; inline void GetNewBlockBlobResult::clear_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.header_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& GetNewBlockBlobResult::header() const +inline const ::std::string& GetNewBlockBlobResult::header() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.header) return _internal_header(); } template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_header(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_header(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.header_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.header) } -inline std::string* GetNewBlockBlobResult::mutable_header() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_header(); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockBlobResult::mutable_header() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_header(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.header) return _s; } -inline const std::string& GetNewBlockBlobResult::_internal_header() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetNewBlockBlobResult::_internal_header() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.header_.Get(); } -inline void GetNewBlockBlobResult::_internal_set_header(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockBlobResult::_internal_set_header(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.header_.Set(value, GetArena()); } -inline std::string* GetNewBlockBlobResult::_internal_mutable_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockBlobResult::_internal_mutable_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.header_.Mutable( GetArena()); } -inline std::string* GetNewBlockBlobResult::release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetNewBlockBlobResult::release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.header) - return _impl_.header_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.header_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.header_.Set("", GetArena()); + } + return released; } -inline void GetNewBlockBlobResult::set_allocated_header(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockBlobResult::set_allocated_header(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.header_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.header_.IsDefault()) { - _impl_.header_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.header_.IsDefault()) { + _impl_.header_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.header) } // bytes block_body = 3; inline void GetNewBlockBlobResult::clear_block_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_body_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& GetNewBlockBlobResult::block_body() const +inline const ::std::string& GetNewBlockBlobResult::block_body() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.block_body) return _internal_block_body(); } template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_block_body(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_block_body(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.block_body_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.block_body) } -inline std::string* GetNewBlockBlobResult::mutable_block_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_block_body(); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockBlobResult::mutable_block_body() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_block_body(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.block_body) return _s; } -inline const std::string& GetNewBlockBlobResult::_internal_block_body() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetNewBlockBlobResult::_internal_block_body() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.block_body_.Get(); } -inline void GetNewBlockBlobResult::_internal_set_block_body(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockBlobResult::_internal_set_block_body(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.block_body_.Set(value, GetArena()); } -inline std::string* GetNewBlockBlobResult::_internal_mutable_block_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockBlobResult::_internal_mutable_block_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.block_body_.Mutable( GetArena()); } -inline std::string* GetNewBlockBlobResult::release_block_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetNewBlockBlobResult::release_block_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.block_body) - return _impl_.block_body_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.block_body_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.block_body_.Set("", GetArena()); + } + return released; } -inline void GetNewBlockBlobResult::set_allocated_block_body(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockBlobResult::set_allocated_block_body(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.block_body_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.block_body_.IsDefault()) { - _impl_.block_body_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.block_body_.IsDefault()) { + _impl_.block_body_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.block_body) } // bytes merge_mining_hash = 4; inline void GetNewBlockBlobResult::clear_merge_mining_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.merge_mining_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& GetNewBlockBlobResult::merge_mining_hash() const +inline const ::std::string& GetNewBlockBlobResult::merge_mining_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.merge_mining_hash) return _internal_merge_mining_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_merge_mining_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_merge_mining_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.merge_mining_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.merge_mining_hash) } -inline std::string* GetNewBlockBlobResult::mutable_merge_mining_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_merge_mining_hash(); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockBlobResult::mutable_merge_mining_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_merge_mining_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.merge_mining_hash) return _s; } -inline const std::string& GetNewBlockBlobResult::_internal_merge_mining_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetNewBlockBlobResult::_internal_merge_mining_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.merge_mining_hash_.Get(); } -inline void GetNewBlockBlobResult::_internal_set_merge_mining_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockBlobResult::_internal_set_merge_mining_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.merge_mining_hash_.Set(value, GetArena()); } -inline std::string* GetNewBlockBlobResult::_internal_mutable_merge_mining_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockBlobResult::_internal_mutable_merge_mining_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.merge_mining_hash_.Mutable( GetArena()); } -inline std::string* GetNewBlockBlobResult::release_merge_mining_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetNewBlockBlobResult::release_merge_mining_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.merge_mining_hash) - return _impl_.merge_mining_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.merge_mining_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.merge_mining_hash_.Set("", GetArena()); + } + return released; } -inline void GetNewBlockBlobResult::set_allocated_merge_mining_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockBlobResult::set_allocated_merge_mining_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } _impl_.merge_mining_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.merge_mining_hash_.IsDefault()) { - _impl_.merge_mining_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.merge_mining_hash_.IsDefault()) { + _impl_.merge_mining_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.merge_mining_hash) } // bytes utxo_mr = 5; inline void GetNewBlockBlobResult::clear_utxo_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.utxo_mr_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000010u; } -inline const std::string& GetNewBlockBlobResult::utxo_mr() const +inline const ::std::string& GetNewBlockBlobResult::utxo_mr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.utxo_mr) return _internal_utxo_mr(); } template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_utxo_mr(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_utxo_mr(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.utxo_mr_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.utxo_mr) } -inline std::string* GetNewBlockBlobResult::mutable_utxo_mr() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_utxo_mr(); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockBlobResult::mutable_utxo_mr() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_utxo_mr(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.utxo_mr) return _s; } -inline const std::string& GetNewBlockBlobResult::_internal_utxo_mr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetNewBlockBlobResult::_internal_utxo_mr() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.utxo_mr_.Get(); } -inline void GetNewBlockBlobResult::_internal_set_utxo_mr(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockBlobResult::_internal_set_utxo_mr(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.utxo_mr_.Set(value, GetArena()); } -inline std::string* GetNewBlockBlobResult::_internal_mutable_utxo_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockBlobResult::_internal_mutable_utxo_mr() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; return _impl_.utxo_mr_.Mutable( GetArena()); } -inline std::string* GetNewBlockBlobResult::release_utxo_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetNewBlockBlobResult::release_utxo_mr() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.utxo_mr) - return _impl_.utxo_mr_.Release(); + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000010u; + auto* released = _impl_.utxo_mr_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.utxo_mr_.Set("", GetArena()); + } + return released; } -inline void GetNewBlockBlobResult::set_allocated_utxo_mr(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockBlobResult::set_allocated_utxo_mr(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000010u; + } else { + _impl_._has_bits_[0] &= ~0x00000010u; + } _impl_.utxo_mr_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.utxo_mr_.IsDefault()) { - _impl_.utxo_mr_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.utxo_mr_.IsDefault()) { + _impl_.utxo_mr_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.utxo_mr) } // bytes tari_unique_id = 6; inline void GetNewBlockBlobResult::clear_tari_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tari_unique_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000020u; } -inline const std::string& GetNewBlockBlobResult::tari_unique_id() const +inline const ::std::string& GetNewBlockBlobResult::tari_unique_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.tari_unique_id) return _internal_tari_unique_id(); } template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_tari_unique_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_tari_unique_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; _impl_.tari_unique_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.tari_unique_id) } -inline std::string* GetNewBlockBlobResult::mutable_tari_unique_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_tari_unique_id(); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockBlobResult::mutable_tari_unique_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_tari_unique_id(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.tari_unique_id) return _s; } -inline const std::string& GetNewBlockBlobResult::_internal_tari_unique_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetNewBlockBlobResult::_internal_tari_unique_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.tari_unique_id_.Get(); } -inline void GetNewBlockBlobResult::_internal_set_tari_unique_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockBlobResult::_internal_set_tari_unique_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; _impl_.tari_unique_id_.Set(value, GetArena()); } -inline std::string* GetNewBlockBlobResult::_internal_mutable_tari_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetNewBlockBlobResult::_internal_mutable_tari_unique_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; return _impl_.tari_unique_id_.Mutable( GetArena()); } -inline std::string* GetNewBlockBlobResult::release_tari_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetNewBlockBlobResult::release_tari_unique_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.tari_unique_id) - return _impl_.tari_unique_id_.Release(); + if ((_impl_._has_bits_[0] & 0x00000020u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000020u; + auto* released = _impl_.tari_unique_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.tari_unique_id_.Set("", GetArena()); + } + return released; } -inline void GetNewBlockBlobResult::set_allocated_tari_unique_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNewBlockBlobResult::set_allocated_tari_unique_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000020u; + } else { + _impl_._has_bits_[0] &= ~0x00000020u; + } _impl_.tari_unique_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tari_unique_id_.IsDefault()) { - _impl_.tari_unique_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.tari_unique_id_.IsDefault()) { + _impl_.tari_unique_id_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.tari_unique_id) } @@ -16667,7 +21392,7 @@ inline bool MinerData::has_algo() const { return value; } inline const ::tari::rpc::PowAlgo& MinerData::_internal_algo() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::PowAlgo* p = _impl_.algo_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_PowAlgo_default_instance_); } @@ -16675,8 +21400,9 @@ inline const ::tari::rpc::PowAlgo& MinerData::algo() const ABSL_ATTRIBUTE_LIFETI // @@protoc_insertion_point(field_get:tari.rpc.MinerData.algo) return _internal_algo(); } -inline void MinerData::unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void MinerData::unsafe_arena_set_allocated_algo( + ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.algo_); } @@ -16688,27 +21414,27 @@ inline void MinerData::unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* val } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.MinerData.algo) } -inline ::tari::rpc::PowAlgo* MinerData::release_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE MinerData::release_algo() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::PowAlgo* released = _impl_.algo_; _impl_.algo_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::PowAlgo* MinerData::unsafe_arena_release_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::PowAlgo* PROTOBUF_NULLABLE MinerData::unsafe_arena_release_algo() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.MinerData.algo) _impl_._has_bits_[0] &= ~0x00000001u; @@ -16716,29 +21442,30 @@ inline ::tari::rpc::PowAlgo* MinerData::unsafe_arena_release_algo() { _impl_.algo_ = nullptr; return temp; } -inline ::tari::rpc::PowAlgo* MinerData::_internal_mutable_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::PowAlgo* PROTOBUF_NONNULL MinerData::_internal_mutable_algo() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.algo_ == nullptr) { 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 { +inline ::tari::rpc::PowAlgo* PROTOBUF_NONNULL 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; } -inline void MinerData::set_allocated_algo(::tari::rpc::PowAlgo* value) { +inline void MinerData::set_allocated_algo(::tari::rpc::PowAlgo* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.algo_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -16753,8 +21480,9 @@ inline void MinerData::set_allocated_algo(::tari::rpc::PowAlgo* value) { // uint64 target_difficulty = 2; inline void MinerData::clear_target_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.target_difficulty_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t MinerData::target_difficulty() const { // @@protoc_insertion_point(field_get:tari.rpc.MinerData.target_difficulty) @@ -16762,21 +21490,23 @@ inline ::uint64_t MinerData::target_difficulty() const { } inline void MinerData::set_target_difficulty(::uint64_t value) { _internal_set_target_difficulty(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.MinerData.target_difficulty) } inline ::uint64_t MinerData::_internal_target_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.target_difficulty_; } inline void MinerData::_internal_set_target_difficulty(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.target_difficulty_ = value; } // uint64 reward = 3; inline void MinerData::clear_reward() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reward_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t MinerData::reward() const { // @@protoc_insertion_point(field_get:tari.rpc.MinerData.reward) @@ -16784,21 +21514,23 @@ inline ::uint64_t MinerData::reward() const { } inline void MinerData::set_reward(::uint64_t value) { _internal_set_reward(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.MinerData.reward) } inline ::uint64_t MinerData::_internal_reward() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.reward_; } inline void MinerData::_internal_set_reward(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reward_ = value; } // uint64 total_fees = 5; inline void MinerData::clear_total_fees() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.total_fees_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000008u; } inline ::uint64_t MinerData::total_fees() const { // @@protoc_insertion_point(field_get:tari.rpc.MinerData.total_fees) @@ -16806,14 +21538,15 @@ inline ::uint64_t MinerData::total_fees() const { } inline void MinerData::set_total_fees(::uint64_t value) { _internal_set_total_fees(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.MinerData.total_fees) } inline ::uint64_t MinerData::_internal_total_fees() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.total_fees_; } inline void MinerData::_internal_set_total_fees(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.total_fees_ = value; } @@ -16828,15 +21561,15 @@ inline int SearchKernelsRequest::_internal_signatures_size() const { inline int SearchKernelsRequest::signatures_size() const { return _internal_signatures_size(); } -inline ::tari::rpc::Signature* SearchKernelsRequest::mutable_signatures(int index) +inline ::tari::rpc::Signature* PROTOBUF_NONNULL SearchKernelsRequest::mutable_signatures(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.SearchKernelsRequest.signatures) return _internal_mutable_signatures()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* SearchKernelsRequest::mutable_signatures() +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* PROTOBUF_NONNULL SearchKernelsRequest::mutable_signatures() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.SearchKernelsRequest.signatures) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_signatures(); } inline const ::tari::rpc::Signature& SearchKernelsRequest::signatures(int index) const @@ -16844,8 +21577,9 @@ inline const ::tari::rpc::Signature& SearchKernelsRequest::signatures(int index) // @@protoc_insertion_point(field_get:tari.rpc.SearchKernelsRequest.signatures) return _internal_signatures().Get(index); } -inline ::tari::rpc::Signature* SearchKernelsRequest::add_signatures() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Signature* PROTOBUF_NONNULL SearchKernelsRequest::add_signatures() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); ::tari::rpc::Signature* _add = _internal_mutable_signatures()->Add(); // @@protoc_insertion_point(field_add:tari.rpc.SearchKernelsRequest.signatures) return _add; @@ -16857,12 +21591,12 @@ inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>& Searc } inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>& SearchKernelsRequest::_internal_signatures() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.signatures_; } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* PROTOBUF_NONNULL SearchKernelsRequest::_internal_mutable_signatures() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.signatures_; } @@ -16878,97 +21612,59 @@ inline int SearchUtxosRequest::commitments_size() const { return _internal_commitments_size(); } inline void SearchUtxosRequest::clear_commitments() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.commitments_.Clear(); } -inline std::string* SearchUtxosRequest::add_commitments() +inline ::std::string* PROTOBUF_NONNULL SearchUtxosRequest::add_commitments() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_commitments()->Add(); + ::google::protobuf::internal::TSanWrite(&_impl_); + ::std::string* _s = _internal_mutable_commitments()->Add(); // @@protoc_insertion_point(field_add_mutable:tari.rpc.SearchUtxosRequest.commitments) return _s; } -inline const std::string& SearchUtxosRequest::commitments(int index) const +inline const ::std::string& SearchUtxosRequest::commitments(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.SearchUtxosRequest.commitments) return _internal_commitments().Get(index); } -inline std::string* SearchUtxosRequest::mutable_commitments(int index) +inline ::std::string* PROTOBUF_NONNULL SearchUtxosRequest::mutable_commitments(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.SearchUtxosRequest.commitments) return _internal_mutable_commitments()->Mutable(index); } -inline void SearchUtxosRequest::set_commitments(int index, const std::string& value) { - _internal_mutable_commitments()->Mutable(index)->assign(value); +template +inline void SearchUtxosRequest::set_commitments(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString(*_internal_mutable_commitments()->Mutable(index), ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); // @@protoc_insertion_point(field_set:tari.rpc.SearchUtxosRequest.commitments) } -inline void SearchUtxosRequest::set_commitments(int index, std::string&& value) { - _internal_mutable_commitments()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::set_commitments(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_commitments()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::set_commitments(int index, const void* value, - std::size_t size) { - _internal_mutable_commitments()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@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()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::add_commitments(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_commitments()->Add()->assign(value); +template +inline void SearchUtxosRequest::add_commitments(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_commitments(), + ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); // @@protoc_insertion_point(field_add:tari.rpc.SearchUtxosRequest.commitments) } -inline void SearchUtxosRequest::add_commitments(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_commitments()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::add_commitments(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_commitments()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::add_commitments(const void* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_commitments()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.SearchUtxosRequest.commitments) -} -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()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.SearchUtxosRequest.commitments) -} -inline const ::google::protobuf::RepeatedPtrField& -SearchUtxosRequest::commitments() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::RepeatedPtrField<::std::string>& SearchUtxosRequest::commitments() + const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:tari.rpc.SearchUtxosRequest.commitments) return _internal_commitments(); } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL SearchUtxosRequest::mutable_commitments() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.SearchUtxosRequest.commitments) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_commitments(); } -inline const ::google::protobuf::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField<::std::string>& SearchUtxosRequest::_internal_commitments() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.commitments_; } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL SearchUtxosRequest::_internal_mutable_commitments() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.commitments_; } @@ -16984,97 +21680,59 @@ inline int FetchMatchingUtxosRequest::hashes_size() const { return _internal_hashes_size(); } inline void FetchMatchingUtxosRequest::clear_hashes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.hashes_.Clear(); } -inline std::string* FetchMatchingUtxosRequest::add_hashes() +inline ::std::string* PROTOBUF_NONNULL FetchMatchingUtxosRequest::add_hashes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_hashes()->Add(); + ::google::protobuf::internal::TSanWrite(&_impl_); + ::std::string* _s = _internal_mutable_hashes()->Add(); // @@protoc_insertion_point(field_add_mutable:tari.rpc.FetchMatchingUtxosRequest.hashes) return _s; } -inline const std::string& FetchMatchingUtxosRequest::hashes(int index) const +inline const ::std::string& FetchMatchingUtxosRequest::hashes(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.FetchMatchingUtxosRequest.hashes) return _internal_hashes().Get(index); } -inline std::string* FetchMatchingUtxosRequest::mutable_hashes(int index) +inline ::std::string* PROTOBUF_NONNULL FetchMatchingUtxosRequest::mutable_hashes(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.FetchMatchingUtxosRequest.hashes) return _internal_mutable_hashes()->Mutable(index); } -inline void FetchMatchingUtxosRequest::set_hashes(int index, const std::string& value) { - _internal_mutable_hashes()->Mutable(index)->assign(value); +template +inline void FetchMatchingUtxosRequest::set_hashes(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString(*_internal_mutable_hashes()->Mutable(index), ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); // @@protoc_insertion_point(field_set:tari.rpc.FetchMatchingUtxosRequest.hashes) } -inline void FetchMatchingUtxosRequest::set_hashes(int index, std::string&& value) { - _internal_mutable_hashes()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::set_hashes(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_hashes()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::set_hashes(int index, const void* value, - std::size_t size) { - _internal_mutable_hashes()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@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()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::add_hashes(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_hashes()->Add()->assign(value); +template +inline void FetchMatchingUtxosRequest::add_hashes(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_hashes(), + ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); // @@protoc_insertion_point(field_add:tari.rpc.FetchMatchingUtxosRequest.hashes) } -inline void FetchMatchingUtxosRequest::add_hashes(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_hashes()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::add_hashes(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_hashes()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::add_hashes(const void* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_hashes()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -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()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline const ::google::protobuf::RepeatedPtrField& -FetchMatchingUtxosRequest::hashes() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::RepeatedPtrField<::std::string>& FetchMatchingUtxosRequest::hashes() + const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:tari.rpc.FetchMatchingUtxosRequest.hashes) return _internal_hashes(); } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL FetchMatchingUtxosRequest::mutable_hashes() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.FetchMatchingUtxosRequest.hashes) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_hashes(); } -inline const ::google::protobuf::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField<::std::string>& FetchMatchingUtxosRequest::_internal_hashes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.hashes_; } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL FetchMatchingUtxosRequest::_internal_mutable_hashes() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.hashes_; } @@ -17089,7 +21747,7 @@ inline bool FetchMatchingUtxosResponse::has_output() const { return value; } inline const ::tari::rpc::TransactionOutput& FetchMatchingUtxosResponse::_internal_output() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::TransactionOutput* p = _impl_.output_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_TransactionOutput_default_instance_); } @@ -17097,8 +21755,9 @@ inline const ::tari::rpc::TransactionOutput& FetchMatchingUtxosResponse::output( // @@protoc_insertion_point(field_get:tari.rpc.FetchMatchingUtxosResponse.output) return _internal_output(); } -inline void FetchMatchingUtxosResponse::unsafe_arena_set_allocated_output(::tari::rpc::TransactionOutput* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void FetchMatchingUtxosResponse::unsafe_arena_set_allocated_output( + ::tari::rpc::TransactionOutput* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.output_); } @@ -17110,27 +21769,27 @@ inline void FetchMatchingUtxosResponse::unsafe_arena_set_allocated_output(::tari } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.FetchMatchingUtxosResponse.output) } -inline ::tari::rpc::TransactionOutput* FetchMatchingUtxosResponse::release_output() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TransactionOutput* PROTOBUF_NULLABLE FetchMatchingUtxosResponse::release_output() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::TransactionOutput* released = _impl_.output_; _impl_.output_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::TransactionOutput* FetchMatchingUtxosResponse::unsafe_arena_release_output() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TransactionOutput* PROTOBUF_NULLABLE FetchMatchingUtxosResponse::unsafe_arena_release_output() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.FetchMatchingUtxosResponse.output) _impl_._has_bits_[0] &= ~0x00000001u; @@ -17138,29 +21797,30 @@ inline ::tari::rpc::TransactionOutput* FetchMatchingUtxosResponse::unsafe_arena_ _impl_.output_ = nullptr; return temp; } -inline ::tari::rpc::TransactionOutput* FetchMatchingUtxosResponse::_internal_mutable_output() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TransactionOutput* PROTOBUF_NONNULL FetchMatchingUtxosResponse::_internal_mutable_output() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.output_ == nullptr) { 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 { +inline ::tari::rpc::TransactionOutput* PROTOBUF_NONNULL 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; } -inline void FetchMatchingUtxosResponse::set_allocated_output(::tari::rpc::TransactionOutput* value) { +inline void FetchMatchingUtxosResponse::set_allocated_output(::tari::rpc::TransactionOutput* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.output_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -17184,7 +21844,7 @@ inline bool GetPeersResponse::has_peer() const { return value; } inline const ::tari::rpc::Peer& GetPeersResponse::_internal_peer() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Peer* p = _impl_.peer_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Peer_default_instance_); } @@ -17192,8 +21852,9 @@ inline const ::tari::rpc::Peer& GetPeersResponse::peer() const ABSL_ATTRIBUTE_LI // @@protoc_insertion_point(field_get:tari.rpc.GetPeersResponse.peer) return _internal_peer(); } -inline void GetPeersResponse::unsafe_arena_set_allocated_peer(::tari::rpc::Peer* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetPeersResponse::unsafe_arena_set_allocated_peer( + ::tari::rpc::Peer* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.peer_); } @@ -17205,27 +21866,27 @@ inline void GetPeersResponse::unsafe_arena_set_allocated_peer(::tari::rpc::Peer* } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetPeersResponse.peer) } -inline ::tari::rpc::Peer* GetPeersResponse::release_peer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Peer* PROTOBUF_NULLABLE GetPeersResponse::release_peer() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::Peer* released = _impl_.peer_; _impl_.peer_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Peer* GetPeersResponse::unsafe_arena_release_peer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Peer* PROTOBUF_NULLABLE GetPeersResponse::unsafe_arena_release_peer() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetPeersResponse.peer) _impl_._has_bits_[0] &= ~0x00000001u; @@ -17233,29 +21894,30 @@ inline ::tari::rpc::Peer* GetPeersResponse::unsafe_arena_release_peer() { _impl_.peer_ = nullptr; return temp; } -inline ::tari::rpc::Peer* GetPeersResponse::_internal_mutable_peer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Peer* PROTOBUF_NONNULL GetPeersResponse::_internal_mutable_peer() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.peer_ == nullptr) { 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 { +inline ::tari::rpc::Peer* PROTOBUF_NONNULL 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; } -inline void GetPeersResponse::set_allocated_peer(::tari::rpc::Peer* value) { +inline void GetPeersResponse::set_allocated_peer(::tari::rpc::Peer* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.peer_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -17283,7 +21945,7 @@ inline bool SubmitTransactionRequest::has_transaction() const { return value; } inline const ::tari::rpc::Transaction& SubmitTransactionRequest::_internal_transaction() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Transaction* p = _impl_.transaction_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Transaction_default_instance_); } @@ -17291,8 +21953,9 @@ inline const ::tari::rpc::Transaction& SubmitTransactionRequest::transaction() c // @@protoc_insertion_point(field_get:tari.rpc.SubmitTransactionRequest.transaction) return _internal_transaction(); } -inline void SubmitTransactionRequest::unsafe_arena_set_allocated_transaction(::tari::rpc::Transaction* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SubmitTransactionRequest::unsafe_arena_set_allocated_transaction( + ::tari::rpc::Transaction* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.transaction_); } @@ -17304,27 +21967,27 @@ inline void SubmitTransactionRequest::unsafe_arena_set_allocated_transaction(::t } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SubmitTransactionRequest.transaction) } -inline ::tari::rpc::Transaction* SubmitTransactionRequest::release_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Transaction* PROTOBUF_NULLABLE SubmitTransactionRequest::release_transaction() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::Transaction* released = _impl_.transaction_; _impl_.transaction_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Transaction* SubmitTransactionRequest::unsafe_arena_release_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Transaction* PROTOBUF_NULLABLE SubmitTransactionRequest::unsafe_arena_release_transaction() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.SubmitTransactionRequest.transaction) _impl_._has_bits_[0] &= ~0x00000001u; @@ -17332,29 +21995,30 @@ inline ::tari::rpc::Transaction* SubmitTransactionRequest::unsafe_arena_release_ _impl_.transaction_ = nullptr; return temp; } -inline ::tari::rpc::Transaction* SubmitTransactionRequest::_internal_mutable_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Transaction* PROTOBUF_NONNULL SubmitTransactionRequest::_internal_mutable_transaction() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.transaction_ == nullptr) { 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 { +inline ::tari::rpc::Transaction* PROTOBUF_NONNULL 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; } -inline void SubmitTransactionRequest::set_allocated_transaction(::tari::rpc::Transaction* value) { +inline void SubmitTransactionRequest::set_allocated_transaction(::tari::rpc::Transaction* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.transaction_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -17373,8 +22037,9 @@ inline void SubmitTransactionRequest::set_allocated_transaction(::tari::rpc::Tra // .tari.rpc.SubmitTransactionResult result = 1; inline void SubmitTransactionResponse::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_ = 0; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::tari::rpc::SubmitTransactionResult SubmitTransactionResponse::result() const { // @@protoc_insertion_point(field_get:tari.rpc.SubmitTransactionResponse.result) @@ -17382,14 +22047,15 @@ inline ::tari::rpc::SubmitTransactionResult SubmitTransactionResponse::result() } inline void SubmitTransactionResponse::set_result(::tari::rpc::SubmitTransactionResult value) { _internal_set_result(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.SubmitTransactionResponse.result) } inline ::tari::rpc::SubmitTransactionResult SubmitTransactionResponse::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::tari::rpc::SubmitTransactionResult>(_impl_.result_); } inline void SubmitTransactionResponse::_internal_set_result(::tari::rpc::SubmitTransactionResult value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_ = value; } @@ -17408,7 +22074,7 @@ inline bool GetMempoolTransactionsResponse::has_transaction() const { return value; } inline const ::tari::rpc::Transaction& GetMempoolTransactionsResponse::_internal_transaction() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Transaction* p = _impl_.transaction_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Transaction_default_instance_); } @@ -17416,8 +22082,9 @@ inline const ::tari::rpc::Transaction& GetMempoolTransactionsResponse::transacti // @@protoc_insertion_point(field_get:tari.rpc.GetMempoolTransactionsResponse.transaction) return _internal_transaction(); } -inline void GetMempoolTransactionsResponse::unsafe_arena_set_allocated_transaction(::tari::rpc::Transaction* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetMempoolTransactionsResponse::unsafe_arena_set_allocated_transaction( + ::tari::rpc::Transaction* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.transaction_); } @@ -17429,27 +22096,27 @@ inline void GetMempoolTransactionsResponse::unsafe_arena_set_allocated_transacti } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetMempoolTransactionsResponse.transaction) } -inline ::tari::rpc::Transaction* GetMempoolTransactionsResponse::release_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Transaction* PROTOBUF_NULLABLE GetMempoolTransactionsResponse::release_transaction() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::Transaction* released = _impl_.transaction_; _impl_.transaction_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Transaction* GetMempoolTransactionsResponse::unsafe_arena_release_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Transaction* PROTOBUF_NULLABLE GetMempoolTransactionsResponse::unsafe_arena_release_transaction() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetMempoolTransactionsResponse.transaction) _impl_._has_bits_[0] &= ~0x00000001u; @@ -17457,29 +22124,30 @@ inline ::tari::rpc::Transaction* GetMempoolTransactionsResponse::unsafe_arena_re _impl_.transaction_ = nullptr; return temp; } -inline ::tari::rpc::Transaction* GetMempoolTransactionsResponse::_internal_mutable_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Transaction* PROTOBUF_NONNULL GetMempoolTransactionsResponse::_internal_mutable_transaction() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.transaction_ == nullptr) { 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 { +inline ::tari::rpc::Transaction* PROTOBUF_NONNULL 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; } -inline void GetMempoolTransactionsResponse::set_allocated_transaction(::tari::rpc::Transaction* value) { +inline void GetMempoolTransactionsResponse::set_allocated_transaction(::tari::rpc::Transaction* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.transaction_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -17503,7 +22171,7 @@ inline bool TransactionStateRequest::has_excess_sig() const { return value; } inline const ::tari::rpc::Signature& TransactionStateRequest::_internal_excess_sig() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Signature* p = _impl_.excess_sig_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); } @@ -17511,8 +22179,9 @@ inline const ::tari::rpc::Signature& TransactionStateRequest::excess_sig() const // @@protoc_insertion_point(field_get:tari.rpc.TransactionStateRequest.excess_sig) return _internal_excess_sig(); } -inline void TransactionStateRequest::unsafe_arena_set_allocated_excess_sig(::tari::rpc::Signature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionStateRequest::unsafe_arena_set_allocated_excess_sig( + ::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.excess_sig_); } @@ -17524,27 +22193,27 @@ inline void TransactionStateRequest::unsafe_arena_set_allocated_excess_sig(::tar } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionStateRequest.excess_sig) } -inline ::tari::rpc::Signature* TransactionStateRequest::release_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE TransactionStateRequest::release_excess_sig() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::Signature* released = _impl_.excess_sig_; _impl_.excess_sig_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Signature* TransactionStateRequest::unsafe_arena_release_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE TransactionStateRequest::unsafe_arena_release_excess_sig() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionStateRequest.excess_sig) _impl_._has_bits_[0] &= ~0x00000001u; @@ -17552,29 +22221,30 @@ inline ::tari::rpc::Signature* TransactionStateRequest::unsafe_arena_release_exc _impl_.excess_sig_ = nullptr; return temp; } -inline ::tari::rpc::Signature* TransactionStateRequest::_internal_mutable_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Signature* PROTOBUF_NONNULL TransactionStateRequest::_internal_mutable_excess_sig() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.excess_sig_ == nullptr) { 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 { +inline ::tari::rpc::Signature* PROTOBUF_NONNULL 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; } -inline void TransactionStateRequest::set_allocated_excess_sig(::tari::rpc::Signature* value) { +inline void TransactionStateRequest::set_allocated_excess_sig(::tari::rpc::Signature* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.excess_sig_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -17593,8 +22263,9 @@ inline void TransactionStateRequest::set_allocated_excess_sig(::tari::rpc::Signa // .tari.rpc.TransactionLocation result = 1; inline void TransactionStateResponse::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_ = 0; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::tari::rpc::TransactionLocation TransactionStateResponse::result() const { // @@protoc_insertion_point(field_get:tari.rpc.TransactionStateResponse.result) @@ -17602,14 +22273,15 @@ inline ::tari::rpc::TransactionLocation TransactionStateResponse::result() const } inline void TransactionStateResponse::set_result(::tari::rpc::TransactionLocation value) { _internal_set_result(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.TransactionStateResponse.result) } inline ::tari::rpc::TransactionLocation TransactionStateResponse::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::tari::rpc::TransactionLocation>(_impl_.result_); } inline void TransactionStateResponse::_internal_set_result(::tari::rpc::TransactionLocation value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_ = value; } @@ -17619,8 +22291,9 @@ inline void TransactionStateResponse::_internal_set_result(::tari::rpc::Transact // uint64 unconfirmed_txs = 2; inline void MempoolStatsResponse::clear_unconfirmed_txs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.unconfirmed_txs_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t MempoolStatsResponse::unconfirmed_txs() const { // @@protoc_insertion_point(field_get:tari.rpc.MempoolStatsResponse.unconfirmed_txs) @@ -17628,21 +22301,23 @@ inline ::uint64_t MempoolStatsResponse::unconfirmed_txs() const { } inline void MempoolStatsResponse::set_unconfirmed_txs(::uint64_t value) { _internal_set_unconfirmed_txs(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.MempoolStatsResponse.unconfirmed_txs) } inline ::uint64_t MempoolStatsResponse::_internal_unconfirmed_txs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.unconfirmed_txs_; } inline void MempoolStatsResponse::_internal_set_unconfirmed_txs(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.unconfirmed_txs_ = value; } // uint64 reorg_txs = 3; inline void MempoolStatsResponse::clear_reorg_txs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reorg_txs_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t MempoolStatsResponse::reorg_txs() const { // @@protoc_insertion_point(field_get:tari.rpc.MempoolStatsResponse.reorg_txs) @@ -17650,21 +22325,23 @@ inline ::uint64_t MempoolStatsResponse::reorg_txs() const { } inline void MempoolStatsResponse::set_reorg_txs(::uint64_t value) { _internal_set_reorg_txs(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.MempoolStatsResponse.reorg_txs) } inline ::uint64_t MempoolStatsResponse::_internal_reorg_txs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.reorg_txs_; } inline void MempoolStatsResponse::_internal_set_reorg_txs(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reorg_txs_ = value; } // uint64 unconfirmed_weight = 4; inline void MempoolStatsResponse::clear_unconfirmed_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.unconfirmed_weight_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t MempoolStatsResponse::unconfirmed_weight() const { // @@protoc_insertion_point(field_get:tari.rpc.MempoolStatsResponse.unconfirmed_weight) @@ -17672,14 +22349,15 @@ inline ::uint64_t MempoolStatsResponse::unconfirmed_weight() const { } inline void MempoolStatsResponse::set_unconfirmed_weight(::uint64_t value) { _internal_set_unconfirmed_weight(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.MempoolStatsResponse.unconfirmed_weight) } inline ::uint64_t MempoolStatsResponse::_internal_unconfirmed_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.unconfirmed_weight_; } inline void MempoolStatsResponse::_internal_set_unconfirmed_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.unconfirmed_weight_ = value; } @@ -17689,8 +22367,9 @@ inline void MempoolStatsResponse::_internal_set_unconfirmed_weight(::uint64_t va // uint64 height = 1; inline void GetActiveValidatorNodesRequest::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t GetActiveValidatorNodesRequest::height() const { // @@protoc_insertion_point(field_get:tari.rpc.GetActiveValidatorNodesRequest.height) @@ -17698,194 +22377,973 @@ inline ::uint64_t GetActiveValidatorNodesRequest::height() const { } inline void GetActiveValidatorNodesRequest::set_height(::uint64_t value) { _internal_set_height(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.GetActiveValidatorNodesRequest.height) } inline ::uint64_t GetActiveValidatorNodesRequest::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.height_; } inline void GetActiveValidatorNodesRequest::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = value; } +// bytes sidechain_id = 2; +inline void GetActiveValidatorNodesRequest::clear_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sidechain_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& GetActiveValidatorNodesRequest::sidechain_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.GetActiveValidatorNodesRequest.sidechain_id) + return _internal_sidechain_id(); +} +template +PROTOBUF_ALWAYS_INLINE void GetActiveValidatorNodesRequest::set_sidechain_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.sidechain_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.GetActiveValidatorNodesRequest.sidechain_id) +} +inline ::std::string* PROTOBUF_NONNULL GetActiveValidatorNodesRequest::mutable_sidechain_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_sidechain_id(); + // @@protoc_insertion_point(field_mutable:tari.rpc.GetActiveValidatorNodesRequest.sidechain_id) + return _s; +} +inline const ::std::string& GetActiveValidatorNodesRequest::_internal_sidechain_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sidechain_id_.Get(); +} +inline void GetActiveValidatorNodesRequest::_internal_set_sidechain_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.sidechain_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GetActiveValidatorNodesRequest::_internal_mutable_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.sidechain_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GetActiveValidatorNodesRequest::release_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.GetActiveValidatorNodesRequest.sidechain_id) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.sidechain_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.sidechain_id_.Set("", GetArena()); + } + return released; +} +inline void GetActiveValidatorNodesRequest::set_allocated_sidechain_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.sidechain_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.sidechain_id_.IsDefault()) { + _impl_.sidechain_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetActiveValidatorNodesRequest.sidechain_id) +} + // ------------------------------------------------------------------- // GetActiveValidatorNodesResponse // bytes shard_key = 1; inline void GetActiveValidatorNodesResponse::clear_shard_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.shard_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetActiveValidatorNodesResponse::shard_key() const +inline const ::std::string& GetActiveValidatorNodesResponse::shard_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetActiveValidatorNodesResponse.shard_key) return _internal_shard_key(); } template -inline PROTOBUF_ALWAYS_INLINE void GetActiveValidatorNodesResponse::set_shard_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetActiveValidatorNodesResponse::set_shard_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.shard_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetActiveValidatorNodesResponse.shard_key) } -inline std::string* GetActiveValidatorNodesResponse::mutable_shard_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_shard_key(); +inline ::std::string* PROTOBUF_NONNULL GetActiveValidatorNodesResponse::mutable_shard_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_shard_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetActiveValidatorNodesResponse.shard_key) return _s; } -inline const std::string& GetActiveValidatorNodesResponse::_internal_shard_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetActiveValidatorNodesResponse::_internal_shard_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.shard_key_.Get(); } -inline void GetActiveValidatorNodesResponse::_internal_set_shard_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetActiveValidatorNodesResponse::_internal_set_shard_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.shard_key_.Set(value, GetArena()); } -inline std::string* GetActiveValidatorNodesResponse::_internal_mutable_shard_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetActiveValidatorNodesResponse::_internal_mutable_shard_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.shard_key_.Mutable( GetArena()); } -inline std::string* GetActiveValidatorNodesResponse::release_shard_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetActiveValidatorNodesResponse::release_shard_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetActiveValidatorNodesResponse.shard_key) - return _impl_.shard_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.shard_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.shard_key_.Set("", GetArena()); + } + return released; } -inline void GetActiveValidatorNodesResponse::set_allocated_shard_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetActiveValidatorNodesResponse::set_allocated_shard_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.shard_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.shard_key_.IsDefault()) { - _impl_.shard_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.shard_key_.IsDefault()) { + _impl_.shard_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetActiveValidatorNodesResponse.shard_key) } // bytes public_key = 2; inline void GetActiveValidatorNodesResponse::clear_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& GetActiveValidatorNodesResponse::public_key() const +inline const ::std::string& GetActiveValidatorNodesResponse::public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetActiveValidatorNodesResponse.public_key) return _internal_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void GetActiveValidatorNodesResponse::set_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetActiveValidatorNodesResponse::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetActiveValidatorNodesResponse.public_key) } -inline std::string* GetActiveValidatorNodesResponse::mutable_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_key(); +inline ::std::string* PROTOBUF_NONNULL GetActiveValidatorNodesResponse::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetActiveValidatorNodesResponse.public_key) return _s; } -inline const std::string& GetActiveValidatorNodesResponse::_internal_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetActiveValidatorNodesResponse::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.public_key_.Get(); } -inline void GetActiveValidatorNodesResponse::_internal_set_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetActiveValidatorNodesResponse::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.public_key_.Set(value, GetArena()); } -inline std::string* GetActiveValidatorNodesResponse::_internal_mutable_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetActiveValidatorNodesResponse::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.public_key_.Mutable( GetArena()); } -inline std::string* GetActiveValidatorNodesResponse::release_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetActiveValidatorNodesResponse::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetActiveValidatorNodesResponse.public_key) - return _impl_.public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; } -inline void GetActiveValidatorNodesResponse::set_allocated_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetActiveValidatorNodesResponse::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetActiveValidatorNodesResponse.public_key) } +// bytes sidechain_id = 3; +inline void GetActiveValidatorNodesResponse::clear_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sidechain_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline const ::std::string& GetActiveValidatorNodesResponse::sidechain_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.GetActiveValidatorNodesResponse.sidechain_id) + return _internal_sidechain_id(); +} +template +PROTOBUF_ALWAYS_INLINE void GetActiveValidatorNodesResponse::set_sidechain_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.sidechain_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.GetActiveValidatorNodesResponse.sidechain_id) +} +inline ::std::string* PROTOBUF_NONNULL GetActiveValidatorNodesResponse::mutable_sidechain_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_sidechain_id(); + // @@protoc_insertion_point(field_mutable:tari.rpc.GetActiveValidatorNodesResponse.sidechain_id) + return _s; +} +inline const ::std::string& GetActiveValidatorNodesResponse::_internal_sidechain_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sidechain_id_.Get(); +} +inline void GetActiveValidatorNodesResponse::_internal_set_sidechain_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.sidechain_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GetActiveValidatorNodesResponse::_internal_mutable_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + return _impl_.sidechain_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GetActiveValidatorNodesResponse::release_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.GetActiveValidatorNodesResponse.sidechain_id) + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.sidechain_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.sidechain_id_.Set("", GetArena()); + } + return released; +} +inline void GetActiveValidatorNodesResponse::set_allocated_sidechain_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + _impl_.sidechain_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.sidechain_id_.IsDefault()) { + _impl_.sidechain_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetActiveValidatorNodesResponse.sidechain_id) +} + +// ------------------------------------------------------------------- + +// GetValidatorNodeChangesRequest + +// uint64 epoch = 1; +inline void GetValidatorNodeChangesRequest::clear_epoch() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.epoch_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline ::uint64_t GetValidatorNodeChangesRequest::epoch() const { + // @@protoc_insertion_point(field_get:tari.rpc.GetValidatorNodeChangesRequest.epoch) + return _internal_epoch(); +} +inline void GetValidatorNodeChangesRequest::set_epoch(::uint64_t value) { + _internal_set_epoch(value); + _impl_._has_bits_[0] |= 0x00000002u; + // @@protoc_insertion_point(field_set:tari.rpc.GetValidatorNodeChangesRequest.epoch) +} +inline ::uint64_t GetValidatorNodeChangesRequest::_internal_epoch() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.epoch_; +} +inline void GetValidatorNodeChangesRequest::_internal_set_epoch(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.epoch_ = value; +} + +// bytes sidechain_id = 2; +inline void GetValidatorNodeChangesRequest::clear_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sidechain_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& GetValidatorNodeChangesRequest::sidechain_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.GetValidatorNodeChangesRequest.sidechain_id) + return _internal_sidechain_id(); +} +template +PROTOBUF_ALWAYS_INLINE void GetValidatorNodeChangesRequest::set_sidechain_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.sidechain_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.GetValidatorNodeChangesRequest.sidechain_id) +} +inline ::std::string* PROTOBUF_NONNULL GetValidatorNodeChangesRequest::mutable_sidechain_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_sidechain_id(); + // @@protoc_insertion_point(field_mutable:tari.rpc.GetValidatorNodeChangesRequest.sidechain_id) + return _s; +} +inline const ::std::string& GetValidatorNodeChangesRequest::_internal_sidechain_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sidechain_id_.Get(); +} +inline void GetValidatorNodeChangesRequest::_internal_set_sidechain_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.sidechain_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GetValidatorNodeChangesRequest::_internal_mutable_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.sidechain_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GetValidatorNodeChangesRequest::release_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.GetValidatorNodeChangesRequest.sidechain_id) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.sidechain_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.sidechain_id_.Set("", GetArena()); + } + return released; +} +inline void GetValidatorNodeChangesRequest::set_allocated_sidechain_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.sidechain_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.sidechain_id_.IsDefault()) { + _impl_.sidechain_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetValidatorNodeChangesRequest.sidechain_id) +} + +// ------------------------------------------------------------------- + +// ValidatorNodeChange + +// .tari.rpc.ValidatorNodeChangeAdd add = 1; +inline bool ValidatorNodeChange::has_add() const { + return change_case() == kAdd; +} +inline bool ValidatorNodeChange::_internal_has_add() const { + return change_case() == kAdd; +} +inline void ValidatorNodeChange::set_has_add() { + _impl_._oneof_case_[0] = kAdd; +} +inline void ValidatorNodeChange::clear_add() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (change_case() == kAdd) { + if (GetArena() == nullptr) { + delete _impl_.change_.add_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.change_.add_); + } + clear_has_change(); + } +} +inline ::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NULLABLE ValidatorNodeChange::release_add() { + // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeChange.add) + if (change_case() == kAdd) { + clear_has_change(); + auto* temp = _impl_.change_.add_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.change_.add_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::tari::rpc::ValidatorNodeChangeAdd& ValidatorNodeChange::_internal_add() const { + return change_case() == kAdd ? *_impl_.change_.add_ : reinterpret_cast<::tari::rpc::ValidatorNodeChangeAdd&>(::tari::rpc::_ValidatorNodeChangeAdd_default_instance_); +} +inline const ::tari::rpc::ValidatorNodeChangeAdd& ValidatorNodeChange::add() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeChange.add) + return _internal_add(); +} +inline ::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NULLABLE ValidatorNodeChange::unsafe_arena_release_add() { + // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.ValidatorNodeChange.add) + if (change_case() == kAdd) { + clear_has_change(); + auto* temp = _impl_.change_.add_; + _impl_.change_.add_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ValidatorNodeChange::unsafe_arena_set_allocated_add( + ::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_change(); + if (value) { + set_has_add(); + _impl_.change_.add_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ValidatorNodeChange.add) +} +inline ::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NONNULL ValidatorNodeChange::_internal_mutable_add() { + if (change_case() != kAdd) { + clear_change(); + set_has_add(); + _impl_.change_.add_ = + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ValidatorNodeChangeAdd>(GetArena()); + } + return _impl_.change_.add_; +} +inline ::tari::rpc::ValidatorNodeChangeAdd* PROTOBUF_NONNULL ValidatorNodeChange::mutable_add() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::tari::rpc::ValidatorNodeChangeAdd* _msg = _internal_mutable_add(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeChange.add) + return _msg; +} + +// .tari.rpc.ValidatorNodeChangeRemove remove = 2; +inline bool ValidatorNodeChange::has_remove() const { + return change_case() == kRemove; +} +inline bool ValidatorNodeChange::_internal_has_remove() const { + return change_case() == kRemove; +} +inline void ValidatorNodeChange::set_has_remove() { + _impl_._oneof_case_[0] = kRemove; +} +inline void ValidatorNodeChange::clear_remove() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (change_case() == kRemove) { + if (GetArena() == nullptr) { + delete _impl_.change_.remove_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.change_.remove_); + } + clear_has_change(); + } +} +inline ::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NULLABLE ValidatorNodeChange::release_remove() { + // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeChange.remove) + if (change_case() == kRemove) { + clear_has_change(); + auto* temp = _impl_.change_.remove_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.change_.remove_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::tari::rpc::ValidatorNodeChangeRemove& ValidatorNodeChange::_internal_remove() const { + return change_case() == kRemove ? *_impl_.change_.remove_ : reinterpret_cast<::tari::rpc::ValidatorNodeChangeRemove&>(::tari::rpc::_ValidatorNodeChangeRemove_default_instance_); +} +inline const ::tari::rpc::ValidatorNodeChangeRemove& ValidatorNodeChange::remove() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeChange.remove) + return _internal_remove(); +} +inline ::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NULLABLE ValidatorNodeChange::unsafe_arena_release_remove() { + // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.ValidatorNodeChange.remove) + if (change_case() == kRemove) { + clear_has_change(); + auto* temp = _impl_.change_.remove_; + _impl_.change_.remove_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ValidatorNodeChange::unsafe_arena_set_allocated_remove( + ::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_change(); + if (value) { + set_has_remove(); + _impl_.change_.remove_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ValidatorNodeChange.remove) +} +inline ::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NONNULL ValidatorNodeChange::_internal_mutable_remove() { + if (change_case() != kRemove) { + clear_change(); + set_has_remove(); + _impl_.change_.remove_ = + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ValidatorNodeChangeRemove>(GetArena()); + } + return _impl_.change_.remove_; +} +inline ::tari::rpc::ValidatorNodeChangeRemove* PROTOBUF_NONNULL ValidatorNodeChange::mutable_remove() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::tari::rpc::ValidatorNodeChangeRemove* _msg = _internal_mutable_remove(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeChange.remove) + return _msg; +} + +inline bool ValidatorNodeChange::has_change() const { + return change_case() != CHANGE_NOT_SET; +} +inline void ValidatorNodeChange::clear_has_change() { + _impl_._oneof_case_[0] = CHANGE_NOT_SET; +} +inline ValidatorNodeChange::ChangeCase ValidatorNodeChange::change_case() const { + return ValidatorNodeChange::ChangeCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ValidatorNodeChangeAdd + +// uint64 activation_epoch = 1; +inline void ValidatorNodeChangeAdd::clear_activation_epoch() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.activation_epoch_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline ::uint64_t ValidatorNodeChangeAdd::activation_epoch() const { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeChangeAdd.activation_epoch) + return _internal_activation_epoch(); +} +inline void ValidatorNodeChangeAdd::set_activation_epoch(::uint64_t value) { + _internal_set_activation_epoch(value); + _impl_._has_bits_[0] |= 0x00000004u; + // @@protoc_insertion_point(field_set:tari.rpc.ValidatorNodeChangeAdd.activation_epoch) +} +inline ::uint64_t ValidatorNodeChangeAdd::_internal_activation_epoch() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.activation_epoch_; +} +inline void ValidatorNodeChangeAdd::_internal_set_activation_epoch(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.activation_epoch_ = value; +} + +// .tari.rpc.ValidatorNodeRegistration registration = 2; +inline bool ValidatorNodeChangeAdd::has_registration() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.registration_ != nullptr); + return value; +} +inline const ::tari::rpc::ValidatorNodeRegistration& ValidatorNodeChangeAdd::_internal_registration() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::tari::rpc::ValidatorNodeRegistration* p = _impl_.registration_; + return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ValidatorNodeRegistration_default_instance_); +} +inline const ::tari::rpc::ValidatorNodeRegistration& ValidatorNodeChangeAdd::registration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeChangeAdd.registration) + return _internal_registration(); +} +inline void ValidatorNodeChangeAdd::unsafe_arena_set_allocated_registration( + ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.registration_); + } + _impl_.registration_ = reinterpret_cast<::tari::rpc::ValidatorNodeRegistration*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ValidatorNodeChangeAdd.registration) +} +inline ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE ValidatorNodeChangeAdd::release_registration() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::tari::rpc::ValidatorNodeRegistration* released = _impl_.registration_; + _impl_.registration_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE ValidatorNodeChangeAdd::unsafe_arena_release_registration() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeChangeAdd.registration) + + _impl_._has_bits_[0] &= ~0x00000002u; + ::tari::rpc::ValidatorNodeRegistration* temp = _impl_.registration_; + _impl_.registration_ = nullptr; + return temp; +} +inline ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NONNULL ValidatorNodeChangeAdd::_internal_mutable_registration() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.registration_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ValidatorNodeRegistration>(GetArena()); + _impl_.registration_ = reinterpret_cast<::tari::rpc::ValidatorNodeRegistration*>(p); + } + return _impl_.registration_; +} +inline ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NONNULL ValidatorNodeChangeAdd::mutable_registration() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; + ::tari::rpc::ValidatorNodeRegistration* _msg = _internal_mutable_registration(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeChangeAdd.registration) + return _msg; +} +inline void ValidatorNodeChangeAdd::set_allocated_registration(::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.registration_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + + _impl_.registration_ = reinterpret_cast<::tari::rpc::ValidatorNodeRegistration*>(value); + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeChangeAdd.registration) +} + +// uint64 minimum_value_promise = 3; +inline void ValidatorNodeChangeAdd::clear_minimum_value_promise() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.minimum_value_promise_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000008u; +} +inline ::uint64_t ValidatorNodeChangeAdd::minimum_value_promise() const { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeChangeAdd.minimum_value_promise) + return _internal_minimum_value_promise(); +} +inline void ValidatorNodeChangeAdd::set_minimum_value_promise(::uint64_t value) { + _internal_set_minimum_value_promise(value); + _impl_._has_bits_[0] |= 0x00000008u; + // @@protoc_insertion_point(field_set:tari.rpc.ValidatorNodeChangeAdd.minimum_value_promise) +} +inline ::uint64_t ValidatorNodeChangeAdd::_internal_minimum_value_promise() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.minimum_value_promise_; +} +inline void ValidatorNodeChangeAdd::_internal_set_minimum_value_promise(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.minimum_value_promise_ = value; +} + +// bytes shard_key = 4; +inline void ValidatorNodeChangeAdd::clear_shard_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.shard_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& ValidatorNodeChangeAdd::shard_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeChangeAdd.shard_key) + return _internal_shard_key(); +} +template +PROTOBUF_ALWAYS_INLINE void ValidatorNodeChangeAdd::set_shard_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.shard_key_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.ValidatorNodeChangeAdd.shard_key) +} +inline ::std::string* PROTOBUF_NONNULL ValidatorNodeChangeAdd::mutable_shard_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_shard_key(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeChangeAdd.shard_key) + return _s; +} +inline const ::std::string& ValidatorNodeChangeAdd::_internal_shard_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.shard_key_.Get(); +} +inline void ValidatorNodeChangeAdd::_internal_set_shard_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.shard_key_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL ValidatorNodeChangeAdd::_internal_mutable_shard_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.shard_key_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE ValidatorNodeChangeAdd::release_shard_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeChangeAdd.shard_key) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.shard_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.shard_key_.Set("", GetArena()); + } + return released; +} +inline void ValidatorNodeChangeAdd::set_allocated_shard_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.shard_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.shard_key_.IsDefault()) { + _impl_.shard_key_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeChangeAdd.shard_key) +} + +// ------------------------------------------------------------------- + +// ValidatorNodeChangeRemove + +// bytes public_key = 1; +inline void ValidatorNodeChangeRemove::clear_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& ValidatorNodeChangeRemove::public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeChangeRemove.public_key) + return _internal_public_key(); +} +template +PROTOBUF_ALWAYS_INLINE void ValidatorNodeChangeRemove::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.ValidatorNodeChangeRemove.public_key) +} +inline ::std::string* PROTOBUF_NONNULL ValidatorNodeChangeRemove::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_key(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeChangeRemove.public_key) + return _s; +} +inline const ::std::string& ValidatorNodeChangeRemove::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_key_.Get(); +} +inline void ValidatorNodeChangeRemove::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.public_key_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL ValidatorNodeChangeRemove::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.public_key_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE ValidatorNodeChangeRemove::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeChangeRemove.public_key) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; +} +inline void ValidatorNodeChangeRemove::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeChangeRemove.public_key) +} + +// ------------------------------------------------------------------- + +// GetValidatorNodeChangesResponse + +// repeated .tari.rpc.ValidatorNodeChange changes = 1; +inline int GetValidatorNodeChangesResponse::_internal_changes_size() const { + return _internal_changes().size(); +} +inline int GetValidatorNodeChangesResponse::changes_size() const { + return _internal_changes_size(); +} +inline void GetValidatorNodeChangesResponse::clear_changes() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.changes_.Clear(); +} +inline ::tari::rpc::ValidatorNodeChange* PROTOBUF_NONNULL GetValidatorNodeChangesResponse::mutable_changes(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:tari.rpc.GetValidatorNodeChangesResponse.changes) + return _internal_mutable_changes()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorNodeChange>* PROTOBUF_NONNULL GetValidatorNodeChangesResponse::mutable_changes() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:tari.rpc.GetValidatorNodeChangesResponse.changes) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_changes(); +} +inline const ::tari::rpc::ValidatorNodeChange& GetValidatorNodeChangesResponse::changes(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.GetValidatorNodeChangesResponse.changes) + return _internal_changes().Get(index); +} +inline ::tari::rpc::ValidatorNodeChange* PROTOBUF_NONNULL GetValidatorNodeChangesResponse::add_changes() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::tari::rpc::ValidatorNodeChange* _add = _internal_mutable_changes()->Add(); + // @@protoc_insertion_point(field_add:tari.rpc.GetValidatorNodeChangesResponse.changes) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorNodeChange>& GetValidatorNodeChangesResponse::changes() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:tari.rpc.GetValidatorNodeChangesResponse.changes) + return _internal_changes(); +} +inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorNodeChange>& +GetValidatorNodeChangesResponse::_internal_changes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.changes_; +} +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorNodeChange>* PROTOBUF_NONNULL +GetValidatorNodeChangesResponse::_internal_mutable_changes() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.changes_; +} + // ------------------------------------------------------------------- // GetShardKeyRequest -// uint64 height = 1; -inline void GetShardKeyRequest::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = ::uint64_t{0u}; +// uint64 epoch = 1; +inline void GetShardKeyRequest::clear_epoch() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.epoch_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } -inline ::uint64_t GetShardKeyRequest::height() const { - // @@protoc_insertion_point(field_get:tari.rpc.GetShardKeyRequest.height) - return _internal_height(); +inline ::uint64_t GetShardKeyRequest::epoch() const { + // @@protoc_insertion_point(field_get:tari.rpc.GetShardKeyRequest.epoch) + return _internal_epoch(); } -inline void GetShardKeyRequest::set_height(::uint64_t value) { - _internal_set_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.GetShardKeyRequest.height) +inline void GetShardKeyRequest::set_epoch(::uint64_t value) { + _internal_set_epoch(value); + _impl_._has_bits_[0] |= 0x00000002u; + // @@protoc_insertion_point(field_set:tari.rpc.GetShardKeyRequest.epoch) } -inline ::uint64_t GetShardKeyRequest::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_; +inline ::uint64_t GetShardKeyRequest::_internal_epoch() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.epoch_; } -inline void GetShardKeyRequest::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = value; +inline void GetShardKeyRequest::_internal_set_epoch(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.epoch_ = value; } // bytes public_key = 2; inline void GetShardKeyRequest::clear_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetShardKeyRequest::public_key() const +inline const ::std::string& GetShardKeyRequest::public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetShardKeyRequest.public_key) return _internal_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void GetShardKeyRequest::set_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetShardKeyRequest::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetShardKeyRequest.public_key) } -inline std::string* GetShardKeyRequest::mutable_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_key(); +inline ::std::string* PROTOBUF_NONNULL GetShardKeyRequest::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetShardKeyRequest.public_key) return _s; } -inline const std::string& GetShardKeyRequest::_internal_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetShardKeyRequest::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.public_key_.Get(); } -inline void GetShardKeyRequest::_internal_set_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetShardKeyRequest::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.public_key_.Set(value, GetArena()); } -inline std::string* GetShardKeyRequest::_internal_mutable_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetShardKeyRequest::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.public_key_.Mutable( GetArena()); } -inline std::string* GetShardKeyRequest::release_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetShardKeyRequest::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetShardKeyRequest.public_key) - return _impl_.public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; } -inline void GetShardKeyRequest::set_allocated_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetShardKeyRequest::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetShardKeyRequest.public_key) } @@ -17895,134 +23353,143 @@ inline void GetShardKeyRequest::set_allocated_public_key(std::string* value) { // bytes shard_key = 1; inline void GetShardKeyResponse::clear_shard_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.shard_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetShardKeyResponse::shard_key() const +inline const ::std::string& GetShardKeyResponse::shard_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetShardKeyResponse.shard_key) return _internal_shard_key(); } template -inline PROTOBUF_ALWAYS_INLINE void GetShardKeyResponse::set_shard_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetShardKeyResponse::set_shard_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.shard_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetShardKeyResponse.shard_key) } -inline std::string* GetShardKeyResponse::mutable_shard_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_shard_key(); +inline ::std::string* PROTOBUF_NONNULL GetShardKeyResponse::mutable_shard_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_shard_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetShardKeyResponse.shard_key) return _s; } -inline const std::string& GetShardKeyResponse::_internal_shard_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetShardKeyResponse::_internal_shard_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.shard_key_.Get(); } -inline void GetShardKeyResponse::_internal_set_shard_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetShardKeyResponse::_internal_set_shard_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.shard_key_.Set(value, GetArena()); } -inline std::string* GetShardKeyResponse::_internal_mutable_shard_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetShardKeyResponse::_internal_mutable_shard_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.shard_key_.Mutable( GetArena()); } -inline std::string* GetShardKeyResponse::release_shard_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetShardKeyResponse::release_shard_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetShardKeyResponse.shard_key) - return _impl_.shard_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.shard_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.shard_key_.Set("", GetArena()); + } + return released; } -inline void GetShardKeyResponse::set_allocated_shard_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetShardKeyResponse::set_allocated_shard_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.shard_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.shard_key_.IsDefault()) { - _impl_.shard_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.shard_key_.IsDefault()) { + _impl_.shard_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetShardKeyResponse.shard_key) } -// bool found = 2; -inline void GetShardKeyResponse::clear_found() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.found_ = false; -} -inline bool GetShardKeyResponse::found() const { - // @@protoc_insertion_point(field_get:tari.rpc.GetShardKeyResponse.found) - return _internal_found(); -} -inline void GetShardKeyResponse::set_found(bool value) { - _internal_set_found(value); - // @@protoc_insertion_point(field_set:tari.rpc.GetShardKeyResponse.found) -} -inline bool GetShardKeyResponse::_internal_found() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.found_; -} -inline void GetShardKeyResponse::_internal_set_found(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.found_ = value; -} - // ------------------------------------------------------------------- // GetTemplateRegistrationsRequest // bytes start_hash = 1; inline void GetTemplateRegistrationsRequest::clear_start_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.start_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetTemplateRegistrationsRequest::start_hash() const +inline const ::std::string& GetTemplateRegistrationsRequest::start_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetTemplateRegistrationsRequest.start_hash) return _internal_start_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void GetTemplateRegistrationsRequest::set_start_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetTemplateRegistrationsRequest::set_start_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.start_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTemplateRegistrationsRequest.start_hash) } -inline std::string* GetTemplateRegistrationsRequest::mutable_start_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_start_hash(); +inline ::std::string* PROTOBUF_NONNULL GetTemplateRegistrationsRequest::mutable_start_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_start_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetTemplateRegistrationsRequest.start_hash) return _s; } -inline const std::string& GetTemplateRegistrationsRequest::_internal_start_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetTemplateRegistrationsRequest::_internal_start_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.start_hash_.Get(); } -inline void GetTemplateRegistrationsRequest::_internal_set_start_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTemplateRegistrationsRequest::_internal_set_start_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.start_hash_.Set(value, GetArena()); } -inline std::string* GetTemplateRegistrationsRequest::_internal_mutable_start_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetTemplateRegistrationsRequest::_internal_mutable_start_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.start_hash_.Mutable( GetArena()); } -inline std::string* GetTemplateRegistrationsRequest::release_start_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetTemplateRegistrationsRequest::release_start_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetTemplateRegistrationsRequest.start_hash) - return _impl_.start_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.start_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.start_hash_.Set("", GetArena()); + } + return released; } -inline void GetTemplateRegistrationsRequest::set_allocated_start_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTemplateRegistrationsRequest::set_allocated_start_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.start_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.start_hash_.IsDefault()) { - _impl_.start_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.start_hash_.IsDefault()) { + _impl_.start_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTemplateRegistrationsRequest.start_hash) } // uint64 count = 2; inline void GetTemplateRegistrationsRequest::clear_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.count_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t GetTemplateRegistrationsRequest::count() const { // @@protoc_insertion_point(field_get:tari.rpc.GetTemplateRegistrationsRequest.count) @@ -18030,14 +23497,15 @@ inline ::uint64_t GetTemplateRegistrationsRequest::count() const { } inline void GetTemplateRegistrationsRequest::set_count(::uint64_t value) { _internal_set_count(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.GetTemplateRegistrationsRequest.count) } inline ::uint64_t GetTemplateRegistrationsRequest::_internal_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.count_; } inline void GetTemplateRegistrationsRequest::_internal_set_count(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.count_ = value; } @@ -18047,62 +23515,77 @@ inline void GetTemplateRegistrationsRequest::_internal_set_count(::uint64_t valu // bytes utxo_hash = 1; inline void GetTemplateRegistrationResponse::clear_utxo_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.utxo_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetTemplateRegistrationResponse::utxo_hash() const +inline const ::std::string& GetTemplateRegistrationResponse::utxo_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetTemplateRegistrationResponse.utxo_hash) return _internal_utxo_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void GetTemplateRegistrationResponse::set_utxo_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetTemplateRegistrationResponse::set_utxo_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.utxo_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetTemplateRegistrationResponse.utxo_hash) } -inline std::string* GetTemplateRegistrationResponse::mutable_utxo_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_utxo_hash(); +inline ::std::string* PROTOBUF_NONNULL GetTemplateRegistrationResponse::mutable_utxo_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_utxo_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetTemplateRegistrationResponse.utxo_hash) return _s; } -inline const std::string& GetTemplateRegistrationResponse::_internal_utxo_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetTemplateRegistrationResponse::_internal_utxo_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.utxo_hash_.Get(); } -inline void GetTemplateRegistrationResponse::_internal_set_utxo_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTemplateRegistrationResponse::_internal_set_utxo_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.utxo_hash_.Set(value, GetArena()); } -inline std::string* GetTemplateRegistrationResponse::_internal_mutable_utxo_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetTemplateRegistrationResponse::_internal_mutable_utxo_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.utxo_hash_.Mutable( GetArena()); } -inline std::string* GetTemplateRegistrationResponse::release_utxo_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetTemplateRegistrationResponse::release_utxo_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetTemplateRegistrationResponse.utxo_hash) - return _impl_.utxo_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.utxo_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.utxo_hash_.Set("", GetArena()); + } + return released; } -inline void GetTemplateRegistrationResponse::set_allocated_utxo_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTemplateRegistrationResponse::set_allocated_utxo_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.utxo_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.utxo_hash_.IsDefault()) { - _impl_.utxo_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.utxo_hash_.IsDefault()) { + _impl_.utxo_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTemplateRegistrationResponse.utxo_hash) } // .tari.rpc.TemplateRegistration registration = 2; inline bool GetTemplateRegistrationResponse::has_registration() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; PROTOBUF_ASSUME(!value || _impl_.registration_ != nullptr); return value; } inline const ::tari::rpc::TemplateRegistration& GetTemplateRegistrationResponse::_internal_registration() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::TemplateRegistration* p = _impl_.registration_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_TemplateRegistration_default_instance_); } @@ -18110,76 +23593,78 @@ inline const ::tari::rpc::TemplateRegistration& GetTemplateRegistrationResponse: // @@protoc_insertion_point(field_get:tari.rpc.GetTemplateRegistrationResponse.registration) return _internal_registration(); } -inline void GetTemplateRegistrationResponse::unsafe_arena_set_allocated_registration(::tari::rpc::TemplateRegistration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetTemplateRegistrationResponse::unsafe_arena_set_allocated_registration( + ::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.registration_); } _impl_.registration_ = reinterpret_cast<::tari::rpc::TemplateRegistration*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetTemplateRegistrationResponse.registration) } -inline ::tari::rpc::TemplateRegistration* GetTemplateRegistrationResponse::release_registration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE GetTemplateRegistrationResponse::release_registration() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000002u; ::tari::rpc::TemplateRegistration* released = _impl_.registration_; _impl_.registration_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::TemplateRegistration* GetTemplateRegistrationResponse::unsafe_arena_release_registration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE GetTemplateRegistrationResponse::unsafe_arena_release_registration() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetTemplateRegistrationResponse.registration) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000002u; ::tari::rpc::TemplateRegistration* temp = _impl_.registration_; _impl_.registration_ = nullptr; return temp; } -inline ::tari::rpc::TemplateRegistration* GetTemplateRegistrationResponse::_internal_mutable_registration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TemplateRegistration* PROTOBUF_NONNULL GetTemplateRegistrationResponse::_internal_mutable_registration() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.registration_ == nullptr) { 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; +inline ::tari::rpc::TemplateRegistration* PROTOBUF_NONNULL GetTemplateRegistrationResponse::mutable_registration() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::tari::rpc::TemplateRegistration* _msg = _internal_mutable_registration(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetTemplateRegistrationResponse.registration) return _msg; } -inline void GetTemplateRegistrationResponse::set_allocated_registration(::tari::rpc::TemplateRegistration* value) { +inline void GetTemplateRegistrationResponse::set_allocated_registration(::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.registration_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.registration_ = reinterpret_cast<::tari::rpc::TemplateRegistration*>(value); @@ -18192,8 +23677,9 @@ inline void GetTemplateRegistrationResponse::set_allocated_registration(::tari:: // uint64 height = 1; inline void BlockInfo::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t BlockInfo::height() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockInfo.height) @@ -18201,114 +23687,145 @@ inline ::uint64_t BlockInfo::height() const { } inline void BlockInfo::set_height(::uint64_t value) { _internal_set_height(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.BlockInfo.height) } inline ::uint64_t BlockInfo::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.height_; } inline void BlockInfo::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = value; } // bytes hash = 2; inline void BlockInfo::clear_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& BlockInfo::hash() const +inline const ::std::string& BlockInfo::hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockInfo.hash) return _internal_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockInfo::set_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockInfo::set_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockInfo.hash) } -inline std::string* BlockInfo::mutable_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_hash(); +inline ::std::string* PROTOBUF_NONNULL BlockInfo::mutable_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockInfo.hash) return _s; } -inline const std::string& BlockInfo::_internal_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockInfo::_internal_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.hash_.Get(); } -inline void BlockInfo::_internal_set_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockInfo::_internal_set_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.hash_.Set(value, GetArena()); } -inline std::string* BlockInfo::_internal_mutable_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockInfo::_internal_mutable_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.hash_.Mutable( GetArena()); } -inline std::string* BlockInfo::release_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockInfo::release_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockInfo.hash) - return _impl_.hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.hash_.Set("", GetArena()); + } + return released; } -inline void BlockInfo::set_allocated_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockInfo::set_allocated_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.hash_.IsDefault()) { - _impl_.hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.hash_.IsDefault()) { + _impl_.hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockInfo.hash) } // bytes next_block_hash = 3; inline void BlockInfo::clear_next_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.next_block_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& BlockInfo::next_block_hash() const +inline const ::std::string& BlockInfo::next_block_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockInfo.next_block_hash) return _internal_next_block_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockInfo::set_next_block_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockInfo::set_next_block_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.next_block_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockInfo.next_block_hash) } -inline std::string* BlockInfo::mutable_next_block_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_next_block_hash(); +inline ::std::string* PROTOBUF_NONNULL BlockInfo::mutable_next_block_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_next_block_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockInfo.next_block_hash) return _s; } -inline const std::string& BlockInfo::_internal_next_block_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockInfo::_internal_next_block_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.next_block_hash_.Get(); } -inline void BlockInfo::_internal_set_next_block_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockInfo::_internal_set_next_block_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.next_block_hash_.Set(value, GetArena()); } -inline std::string* BlockInfo::_internal_mutable_next_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockInfo::_internal_mutable_next_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.next_block_hash_.Mutable( GetArena()); } -inline std::string* BlockInfo::release_next_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockInfo::release_next_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockInfo.next_block_hash) - return _impl_.next_block_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.next_block_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.next_block_hash_.Set("", GetArena()); + } + return released; } -inline void BlockInfo::set_allocated_next_block_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockInfo::set_allocated_next_block_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.next_block_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.next_block_hash_.IsDefault()) { - _impl_.next_block_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.next_block_hash_.IsDefault()) { + _impl_.next_block_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockInfo.next_block_hash) } @@ -18318,58 +23835,74 @@ inline void BlockInfo::set_allocated_next_block_hash(std::string* value) { // bytes start_hash = 1; inline void GetSideChainUtxosRequest::clear_start_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.start_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetSideChainUtxosRequest::start_hash() const +inline const ::std::string& GetSideChainUtxosRequest::start_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetSideChainUtxosRequest.start_hash) return _internal_start_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void GetSideChainUtxosRequest::set_start_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetSideChainUtxosRequest::set_start_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.start_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetSideChainUtxosRequest.start_hash) } -inline std::string* GetSideChainUtxosRequest::mutable_start_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_start_hash(); +inline ::std::string* PROTOBUF_NONNULL GetSideChainUtxosRequest::mutable_start_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_start_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetSideChainUtxosRequest.start_hash) return _s; } -inline const std::string& GetSideChainUtxosRequest::_internal_start_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetSideChainUtxosRequest::_internal_start_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.start_hash_.Get(); } -inline void GetSideChainUtxosRequest::_internal_set_start_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetSideChainUtxosRequest::_internal_set_start_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.start_hash_.Set(value, GetArena()); } -inline std::string* GetSideChainUtxosRequest::_internal_mutable_start_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetSideChainUtxosRequest::_internal_mutable_start_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.start_hash_.Mutable( GetArena()); } -inline std::string* GetSideChainUtxosRequest::release_start_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetSideChainUtxosRequest::release_start_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetSideChainUtxosRequest.start_hash) - return _impl_.start_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.start_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.start_hash_.Set("", GetArena()); + } + return released; } -inline void GetSideChainUtxosRequest::set_allocated_start_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetSideChainUtxosRequest::set_allocated_start_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.start_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.start_hash_.IsDefault()) { - _impl_.start_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.start_hash_.IsDefault()) { + _impl_.start_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetSideChainUtxosRequest.start_hash) } // uint64 count = 2; inline void GetSideChainUtxosRequest::clear_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.count_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t GetSideChainUtxosRequest::count() const { // @@protoc_insertion_point(field_get:tari.rpc.GetSideChainUtxosRequest.count) @@ -18377,14 +23910,15 @@ inline ::uint64_t GetSideChainUtxosRequest::count() const { } inline void GetSideChainUtxosRequest::set_count(::uint64_t value) { _internal_set_count(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.GetSideChainUtxosRequest.count) } inline ::uint64_t GetSideChainUtxosRequest::_internal_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.count_; } inline void GetSideChainUtxosRequest::_internal_set_count(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.count_ = value; } @@ -18399,12 +23933,12 @@ inline bool GetSideChainUtxosResponse::has_block_info() const { return value; } inline void GetSideChainUtxosResponse::clear_block_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.block_info_ != nullptr) _impl_.block_info_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::tari::rpc::BlockInfo& GetSideChainUtxosResponse::_internal_block_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::BlockInfo* p = _impl_.block_info_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_BlockInfo_default_instance_); } @@ -18412,8 +23946,9 @@ inline const ::tari::rpc::BlockInfo& GetSideChainUtxosResponse::block_info() con // @@protoc_insertion_point(field_get:tari.rpc.GetSideChainUtxosResponse.block_info) return _internal_block_info(); } -inline void GetSideChainUtxosResponse::unsafe_arena_set_allocated_block_info(::tari::rpc::BlockInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetSideChainUtxosResponse::unsafe_arena_set_allocated_block_info( + ::tari::rpc::BlockInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.block_info_); } @@ -18425,27 +23960,27 @@ inline void GetSideChainUtxosResponse::unsafe_arena_set_allocated_block_info(::t } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetSideChainUtxosResponse.block_info) } -inline ::tari::rpc::BlockInfo* GetSideChainUtxosResponse::release_block_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::BlockInfo* PROTOBUF_NULLABLE GetSideChainUtxosResponse::release_block_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::BlockInfo* released = _impl_.block_info_; _impl_.block_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::BlockInfo* GetSideChainUtxosResponse::unsafe_arena_release_block_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::BlockInfo* PROTOBUF_NULLABLE GetSideChainUtxosResponse::unsafe_arena_release_block_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetSideChainUtxosResponse.block_info) _impl_._has_bits_[0] &= ~0x00000001u; @@ -18453,29 +23988,30 @@ inline ::tari::rpc::BlockInfo* GetSideChainUtxosResponse::unsafe_arena_release_b _impl_.block_info_ = nullptr; return temp; } -inline ::tari::rpc::BlockInfo* GetSideChainUtxosResponse::_internal_mutable_block_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::BlockInfo* PROTOBUF_NONNULL GetSideChainUtxosResponse::_internal_mutable_block_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.block_info_ == nullptr) { 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 { +inline ::tari::rpc::BlockInfo* PROTOBUF_NONNULL 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; } -inline void GetSideChainUtxosResponse::set_allocated_block_info(::tari::rpc::BlockInfo* value) { +inline void GetSideChainUtxosResponse::set_allocated_block_info(::tari::rpc::BlockInfo* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.block_info_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.block_info_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -18495,15 +24031,15 @@ inline int GetSideChainUtxosResponse::_internal_outputs_size() const { inline int GetSideChainUtxosResponse::outputs_size() const { return _internal_outputs_size(); } -inline ::tari::rpc::TransactionOutput* GetSideChainUtxosResponse::mutable_outputs(int index) +inline ::tari::rpc::TransactionOutput* PROTOBUF_NONNULL GetSideChainUtxosResponse::mutable_outputs(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.GetSideChainUtxosResponse.outputs) return _internal_mutable_outputs()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* GetSideChainUtxosResponse::mutable_outputs() +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* PROTOBUF_NONNULL GetSideChainUtxosResponse::mutable_outputs() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.GetSideChainUtxosResponse.outputs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_outputs(); } inline const ::tari::rpc::TransactionOutput& GetSideChainUtxosResponse::outputs(int index) const @@ -18511,8 +24047,9 @@ inline const ::tari::rpc::TransactionOutput& GetSideChainUtxosResponse::outputs( // @@protoc_insertion_point(field_get:tari.rpc.GetSideChainUtxosResponse.outputs) return _internal_outputs().Get(index); } -inline ::tari::rpc::TransactionOutput* GetSideChainUtxosResponse::add_outputs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TransactionOutput* PROTOBUF_NONNULL GetSideChainUtxosResponse::add_outputs() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); ::tari::rpc::TransactionOutput* _add = _internal_mutable_outputs()->Add(); // @@protoc_insertion_point(field_add:tari.rpc.GetSideChainUtxosResponse.outputs) return _add; @@ -18524,12 +24061,12 @@ inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput } inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& GetSideChainUtxosResponse::_internal_outputs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.outputs_; } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* PROTOBUF_NONNULL GetSideChainUtxosResponse::_internal_mutable_outputs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.outputs_; } @@ -18548,12 +24085,12 @@ inline bool GetNetworkStateResponse::has_metadata() const { return value; } inline void GetNetworkStateResponse::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::tari::rpc::MetaData& GetNetworkStateResponse::_internal_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::MetaData* p = _impl_.metadata_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_MetaData_default_instance_); } @@ -18561,8 +24098,9 @@ inline const ::tari::rpc::MetaData& GetNetworkStateResponse::metadata() const AB // @@protoc_insertion_point(field_get:tari.rpc.GetNetworkStateResponse.metadata) return _internal_metadata(); } -inline void GetNetworkStateResponse::unsafe_arena_set_allocated_metadata(::tari::rpc::MetaData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetNetworkStateResponse::unsafe_arena_set_allocated_metadata( + ::tari::rpc::MetaData* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); } @@ -18574,27 +24112,27 @@ inline void GetNetworkStateResponse::unsafe_arena_set_allocated_metadata(::tari: } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetNetworkStateResponse.metadata) } -inline ::tari::rpc::MetaData* GetNetworkStateResponse::release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::MetaData* PROTOBUF_NULLABLE GetNetworkStateResponse::release_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::MetaData* released = _impl_.metadata_; _impl_.metadata_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::MetaData* GetNetworkStateResponse::unsafe_arena_release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::MetaData* PROTOBUF_NULLABLE GetNetworkStateResponse::unsafe_arena_release_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetNetworkStateResponse.metadata) _impl_._has_bits_[0] &= ~0x00000001u; @@ -18602,29 +24140,30 @@ inline ::tari::rpc::MetaData* GetNetworkStateResponse::unsafe_arena_release_meta _impl_.metadata_ = nullptr; return temp; } -inline ::tari::rpc::MetaData* GetNetworkStateResponse::_internal_mutable_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::MetaData* PROTOBUF_NONNULL GetNetworkStateResponse::_internal_mutable_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_ == nullptr) { 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* GetNetworkStateResponse::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::tari::rpc::MetaData* PROTOBUF_NONNULL GetNetworkStateResponse::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.GetNetworkStateResponse.metadata) return _msg; } -inline void GetNetworkStateResponse::set_allocated_metadata(::tari::rpc::MetaData* value) { +inline void GetNetworkStateResponse::set_allocated_metadata(::tari::rpc::MetaData* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.metadata_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -18639,8 +24178,9 @@ inline void GetNetworkStateResponse::set_allocated_metadata(::tari::rpc::MetaDat // bool initial_sync_achieved = 2; inline void GetNetworkStateResponse::clear_initial_sync_achieved() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.initial_sync_achieved_ = false; + _impl_._has_bits_[0] &= ~0x00000008u; } inline bool GetNetworkStateResponse::initial_sync_achieved() const { // @@protoc_insertion_point(field_get:tari.rpc.GetNetworkStateResponse.initial_sync_achieved) @@ -18648,21 +24188,23 @@ inline bool GetNetworkStateResponse::initial_sync_achieved() const { } inline void GetNetworkStateResponse::set_initial_sync_achieved(bool value) { _internal_set_initial_sync_achieved(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.GetNetworkStateResponse.initial_sync_achieved) } inline bool GetNetworkStateResponse::_internal_initial_sync_achieved() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.initial_sync_achieved_; } inline void GetNetworkStateResponse::_internal_set_initial_sync_achieved(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.initial_sync_achieved_ = value; } // .tari.rpc.BaseNodeState base_node_state = 3; inline void GetNetworkStateResponse::clear_base_node_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.base_node_state_ = 0; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::tari::rpc::BaseNodeState GetNetworkStateResponse::base_node_state() const { // @@protoc_insertion_point(field_get:tari.rpc.GetNetworkStateResponse.base_node_state) @@ -18670,21 +24212,23 @@ inline ::tari::rpc::BaseNodeState GetNetworkStateResponse::base_node_state() con } inline void GetNetworkStateResponse::set_base_node_state(::tari::rpc::BaseNodeState value) { _internal_set_base_node_state(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.GetNetworkStateResponse.base_node_state) } inline ::tari::rpc::BaseNodeState GetNetworkStateResponse::_internal_base_node_state() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::tari::rpc::BaseNodeState>(_impl_.base_node_state_); } inline void GetNetworkStateResponse::_internal_set_base_node_state(::tari::rpc::BaseNodeState value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.base_node_state_ = value; } // bool failed_checkpoints = 4; inline void GetNetworkStateResponse::clear_failed_checkpoints() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.failed_checkpoints_ = false; + _impl_._has_bits_[0] &= ~0x00000010u; } inline bool GetNetworkStateResponse::failed_checkpoints() const { // @@protoc_insertion_point(field_get:tari.rpc.GetNetworkStateResponse.failed_checkpoints) @@ -18692,21 +24236,23 @@ inline bool GetNetworkStateResponse::failed_checkpoints() const { } inline void GetNetworkStateResponse::set_failed_checkpoints(bool value) { _internal_set_failed_checkpoints(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:tari.rpc.GetNetworkStateResponse.failed_checkpoints) } inline bool GetNetworkStateResponse::_internal_failed_checkpoints() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.failed_checkpoints_; } inline void GetNetworkStateResponse::_internal_set_failed_checkpoints(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.failed_checkpoints_ = value; } // uint64 reward = 5; inline void GetNetworkStateResponse::clear_reward() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reward_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000020u; } inline ::uint64_t GetNetworkStateResponse::reward() const { // @@protoc_insertion_point(field_get:tari.rpc.GetNetworkStateResponse.reward) @@ -18714,21 +24260,23 @@ inline ::uint64_t GetNetworkStateResponse::reward() const { } inline void GetNetworkStateResponse::set_reward(::uint64_t value) { _internal_set_reward(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:tari.rpc.GetNetworkStateResponse.reward) } inline ::uint64_t GetNetworkStateResponse::_internal_reward() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.reward_; } inline void GetNetworkStateResponse::_internal_set_reward(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reward_ = value; } // uint64 sha3x_estimated_hash_rate = 6; inline void GetNetworkStateResponse::clear_sha3x_estimated_hash_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sha3x_estimated_hash_rate_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000040u; } inline ::uint64_t GetNetworkStateResponse::sha3x_estimated_hash_rate() const { // @@protoc_insertion_point(field_get:tari.rpc.GetNetworkStateResponse.sha3x_estimated_hash_rate) @@ -18736,21 +24284,23 @@ inline ::uint64_t GetNetworkStateResponse::sha3x_estimated_hash_rate() const { } inline void GetNetworkStateResponse::set_sha3x_estimated_hash_rate(::uint64_t value) { _internal_set_sha3x_estimated_hash_rate(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:tari.rpc.GetNetworkStateResponse.sha3x_estimated_hash_rate) } inline ::uint64_t GetNetworkStateResponse::_internal_sha3x_estimated_hash_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.sha3x_estimated_hash_rate_; } inline void GetNetworkStateResponse::_internal_set_sha3x_estimated_hash_rate(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sha3x_estimated_hash_rate_ = value; } // uint64 monero_randomx_estimated_hash_rate = 7; inline void GetNetworkStateResponse::clear_monero_randomx_estimated_hash_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.monero_randomx_estimated_hash_rate_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000080u; } inline ::uint64_t GetNetworkStateResponse::monero_randomx_estimated_hash_rate() const { // @@protoc_insertion_point(field_get:tari.rpc.GetNetworkStateResponse.monero_randomx_estimated_hash_rate) @@ -18758,21 +24308,23 @@ inline ::uint64_t GetNetworkStateResponse::monero_randomx_estimated_hash_rate() } inline void GetNetworkStateResponse::set_monero_randomx_estimated_hash_rate(::uint64_t value) { _internal_set_monero_randomx_estimated_hash_rate(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:tari.rpc.GetNetworkStateResponse.monero_randomx_estimated_hash_rate) } inline ::uint64_t GetNetworkStateResponse::_internal_monero_randomx_estimated_hash_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.monero_randomx_estimated_hash_rate_; } inline void GetNetworkStateResponse::_internal_set_monero_randomx_estimated_hash_rate(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.monero_randomx_estimated_hash_rate_ = value; } // uint64 tari_randomx_estimated_hash_rate = 10; inline void GetNetworkStateResponse::clear_tari_randomx_estimated_hash_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tari_randomx_estimated_hash_rate_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000200u; } inline ::uint64_t GetNetworkStateResponse::tari_randomx_estimated_hash_rate() const { // @@protoc_insertion_point(field_get:tari.rpc.GetNetworkStateResponse.tari_randomx_estimated_hash_rate) @@ -18780,21 +24332,23 @@ inline ::uint64_t GetNetworkStateResponse::tari_randomx_estimated_hash_rate() co } inline void GetNetworkStateResponse::set_tari_randomx_estimated_hash_rate(::uint64_t value) { _internal_set_tari_randomx_estimated_hash_rate(value); + _impl_._has_bits_[0] |= 0x00000200u; // @@protoc_insertion_point(field_set:tari.rpc.GetNetworkStateResponse.tari_randomx_estimated_hash_rate) } inline ::uint64_t GetNetworkStateResponse::_internal_tari_randomx_estimated_hash_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.tari_randomx_estimated_hash_rate_; } inline void GetNetworkStateResponse::_internal_set_tari_randomx_estimated_hash_rate(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tari_randomx_estimated_hash_rate_ = value; } // uint64 num_connections = 8; inline void GetNetworkStateResponse::clear_num_connections() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_connections_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000100u; } inline ::uint64_t GetNetworkStateResponse::num_connections() const { // @@protoc_insertion_point(field_get:tari.rpc.GetNetworkStateResponse.num_connections) @@ -18802,14 +24356,15 @@ inline ::uint64_t GetNetworkStateResponse::num_connections() const { } inline void GetNetworkStateResponse::set_num_connections(::uint64_t value) { _internal_set_num_connections(value); + _impl_._has_bits_[0] |= 0x00000100u; // @@protoc_insertion_point(field_set:tari.rpc.GetNetworkStateResponse.num_connections) } inline ::uint64_t GetNetworkStateResponse::_internal_num_connections() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.num_connections_; } inline void GetNetworkStateResponse::_internal_set_num_connections(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_connections_ = value; } @@ -18821,18 +24376,18 @@ inline int GetNetworkStateResponse::liveness_results_size() const { return _internal_liveness_results_size(); } inline void GetNetworkStateResponse::clear_liveness_results() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.liveness_results_.Clear(); } -inline ::tari::rpc::LivenessResult* GetNetworkStateResponse::mutable_liveness_results(int index) +inline ::tari::rpc::LivenessResult* PROTOBUF_NONNULL GetNetworkStateResponse::mutable_liveness_results(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.GetNetworkStateResponse.liveness_results) return _internal_mutable_liveness_results()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::LivenessResult>* GetNetworkStateResponse::mutable_liveness_results() +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::LivenessResult>* PROTOBUF_NONNULL GetNetworkStateResponse::mutable_liveness_results() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.GetNetworkStateResponse.liveness_results) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_liveness_results(); } inline const ::tari::rpc::LivenessResult& GetNetworkStateResponse::liveness_results(int index) const @@ -18840,8 +24395,9 @@ inline const ::tari::rpc::LivenessResult& GetNetworkStateResponse::liveness_resu // @@protoc_insertion_point(field_get:tari.rpc.GetNetworkStateResponse.liveness_results) return _internal_liveness_results().Get(index); } -inline ::tari::rpc::LivenessResult* GetNetworkStateResponse::add_liveness_results() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::LivenessResult* PROTOBUF_NONNULL GetNetworkStateResponse::add_liveness_results() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); ::tari::rpc::LivenessResult* _add = _internal_mutable_liveness_results()->Add(); // @@protoc_insertion_point(field_add:tari.rpc.GetNetworkStateResponse.liveness_results) return _add; @@ -18853,73 +24409,187 @@ inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::LivenessResult>& } inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::LivenessResult>& GetNetworkStateResponse::_internal_liveness_results() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.liveness_results_; } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::LivenessResult>* +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::LivenessResult>* PROTOBUF_NONNULL GetNetworkStateResponse::_internal_mutable_liveness_results() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.liveness_results_; } +// .tari.rpc.ReadinessStatus readiness_status = 11; +inline bool GetNetworkStateResponse::has_readiness_status() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.readiness_status_ != nullptr); + return value; +} +inline void GetNetworkStateResponse::clear_readiness_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.readiness_status_ != nullptr) _impl_.readiness_status_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::tari::rpc::ReadinessStatus& GetNetworkStateResponse::_internal_readiness_status() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::tari::rpc::ReadinessStatus* p = _impl_.readiness_status_; + return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ReadinessStatus_default_instance_); +} +inline const ::tari::rpc::ReadinessStatus& GetNetworkStateResponse::readiness_status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.GetNetworkStateResponse.readiness_status) + return _internal_readiness_status(); +} +inline void GetNetworkStateResponse::unsafe_arena_set_allocated_readiness_status( + ::tari::rpc::ReadinessStatus* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.readiness_status_); + } + _impl_.readiness_status_ = reinterpret_cast<::tari::rpc::ReadinessStatus*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetNetworkStateResponse.readiness_status) +} +inline ::tari::rpc::ReadinessStatus* PROTOBUF_NULLABLE GetNetworkStateResponse::release_readiness_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::tari::rpc::ReadinessStatus* released = _impl_.readiness_status_; + _impl_.readiness_status_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::tari::rpc::ReadinessStatus* PROTOBUF_NULLABLE GetNetworkStateResponse::unsafe_arena_release_readiness_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.GetNetworkStateResponse.readiness_status) + + _impl_._has_bits_[0] &= ~0x00000002u; + ::tari::rpc::ReadinessStatus* temp = _impl_.readiness_status_; + _impl_.readiness_status_ = nullptr; + return temp; +} +inline ::tari::rpc::ReadinessStatus* PROTOBUF_NONNULL GetNetworkStateResponse::_internal_mutable_readiness_status() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.readiness_status_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ReadinessStatus>(GetArena()); + _impl_.readiness_status_ = reinterpret_cast<::tari::rpc::ReadinessStatus*>(p); + } + return _impl_.readiness_status_; +} +inline ::tari::rpc::ReadinessStatus* PROTOBUF_NONNULL GetNetworkStateResponse::mutable_readiness_status() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; + ::tari::rpc::ReadinessStatus* _msg = _internal_mutable_readiness_status(); + // @@protoc_insertion_point(field_mutable:tari.rpc.GetNetworkStateResponse.readiness_status) + return _msg; +} +inline void GetNetworkStateResponse::set_allocated_readiness_status(::tari::rpc::ReadinessStatus* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.readiness_status_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + + _impl_.readiness_status_ = reinterpret_cast<::tari::rpc::ReadinessStatus*>(value); + // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNetworkStateResponse.readiness_status) +} + // ------------------------------------------------------------------- // LivenessResult // bytes peer_node_id = 1; inline void LivenessResult::clear_peer_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.peer_node_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& LivenessResult::peer_node_id() const +inline const ::std::string& LivenessResult::peer_node_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.LivenessResult.peer_node_id) return _internal_peer_node_id(); } template -inline PROTOBUF_ALWAYS_INLINE void LivenessResult::set_peer_node_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void LivenessResult::set_peer_node_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.peer_node_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.LivenessResult.peer_node_id) } -inline std::string* LivenessResult::mutable_peer_node_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_peer_node_id(); +inline ::std::string* PROTOBUF_NONNULL LivenessResult::mutable_peer_node_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_peer_node_id(); // @@protoc_insertion_point(field_mutable:tari.rpc.LivenessResult.peer_node_id) return _s; } -inline const std::string& LivenessResult::_internal_peer_node_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& LivenessResult::_internal_peer_node_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.peer_node_id_.Get(); } -inline void LivenessResult::_internal_set_peer_node_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void LivenessResult::_internal_set_peer_node_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.peer_node_id_.Set(value, GetArena()); } -inline std::string* LivenessResult::_internal_mutable_peer_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL LivenessResult::_internal_mutable_peer_node_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.peer_node_id_.Mutable( GetArena()); } -inline std::string* LivenessResult::release_peer_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE LivenessResult::release_peer_node_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.LivenessResult.peer_node_id) - return _impl_.peer_node_id_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.peer_node_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.peer_node_id_.Set("", GetArena()); + } + return released; } -inline void LivenessResult::set_allocated_peer_node_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void LivenessResult::set_allocated_peer_node_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.peer_node_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.peer_node_id_.IsDefault()) { - _impl_.peer_node_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.peer_node_id_.IsDefault()) { + _impl_.peer_node_id_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.LivenessResult.peer_node_id) } // uint64 discover_latency = 2; inline void LivenessResult::clear_discover_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.discover_latency_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t LivenessResult::discover_latency() const { // @@protoc_insertion_point(field_get:tari.rpc.LivenessResult.discover_latency) @@ -18927,21 +24597,23 @@ inline ::uint64_t LivenessResult::discover_latency() const { } inline void LivenessResult::set_discover_latency(::uint64_t value) { _internal_set_discover_latency(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.LivenessResult.discover_latency) } inline ::uint64_t LivenessResult::_internal_discover_latency() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.discover_latency_; } inline void LivenessResult::_internal_set_discover_latency(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.discover_latency_ = value; } // uint64 ping_latency = 3; inline void LivenessResult::clear_ping_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ping_latency_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t LivenessResult::ping_latency() const { // @@protoc_insertion_point(field_get:tari.rpc.LivenessResult.ping_latency) @@ -18949,17 +24621,647 @@ inline ::uint64_t LivenessResult::ping_latency() const { } inline void LivenessResult::set_ping_latency(::uint64_t value) { _internal_set_ping_latency(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.LivenessResult.ping_latency) } inline ::uint64_t LivenessResult::_internal_ping_latency() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.ping_latency_; } inline void LivenessResult::_internal_set_ping_latency(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ping_latency_ = value; } +// ------------------------------------------------------------------- + +// SearchPaymentReferencesRequest + +// repeated string payment_reference_hex = 1; +inline int SearchPaymentReferencesRequest::_internal_payment_reference_hex_size() const { + return _internal_payment_reference_hex().size(); +} +inline int SearchPaymentReferencesRequest::payment_reference_hex_size() const { + return _internal_payment_reference_hex_size(); +} +inline void SearchPaymentReferencesRequest::clear_payment_reference_hex() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.payment_reference_hex_.Clear(); +} +inline ::std::string* PROTOBUF_NONNULL SearchPaymentReferencesRequest::add_payment_reference_hex() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::std::string* _s = _internal_mutable_payment_reference_hex()->Add(); + // @@protoc_insertion_point(field_add_mutable:tari.rpc.SearchPaymentReferencesRequest.payment_reference_hex) + return _s; +} +inline const ::std::string& SearchPaymentReferencesRequest::payment_reference_hex(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SearchPaymentReferencesRequest.payment_reference_hex) + return _internal_payment_reference_hex().Get(index); +} +inline ::std::string* PROTOBUF_NONNULL SearchPaymentReferencesRequest::mutable_payment_reference_hex(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:tari.rpc.SearchPaymentReferencesRequest.payment_reference_hex) + return _internal_mutable_payment_reference_hex()->Mutable(index); +} +template +inline void SearchPaymentReferencesRequest::set_payment_reference_hex(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString(*_internal_mutable_payment_reference_hex()->Mutable(index), ::std::forward(value), + args... ); + // @@protoc_insertion_point(field_set:tari.rpc.SearchPaymentReferencesRequest.payment_reference_hex) +} +template +inline void SearchPaymentReferencesRequest::add_payment_reference_hex(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_payment_reference_hex(), + ::std::forward(value), + args... ); + // @@protoc_insertion_point(field_add:tari.rpc.SearchPaymentReferencesRequest.payment_reference_hex) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& SearchPaymentReferencesRequest::payment_reference_hex() + const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:tari.rpc.SearchPaymentReferencesRequest.payment_reference_hex) + return _internal_payment_reference_hex(); +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL +SearchPaymentReferencesRequest::mutable_payment_reference_hex() ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:tari.rpc.SearchPaymentReferencesRequest.payment_reference_hex) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_payment_reference_hex(); +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +SearchPaymentReferencesRequest::_internal_payment_reference_hex() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.payment_reference_hex_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL +SearchPaymentReferencesRequest::_internal_mutable_payment_reference_hex() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.payment_reference_hex_; +} + +// repeated bytes payment_reference_bytes = 2; +inline int SearchPaymentReferencesRequest::_internal_payment_reference_bytes_size() const { + return _internal_payment_reference_bytes().size(); +} +inline int SearchPaymentReferencesRequest::payment_reference_bytes_size() const { + return _internal_payment_reference_bytes_size(); +} +inline void SearchPaymentReferencesRequest::clear_payment_reference_bytes() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.payment_reference_bytes_.Clear(); +} +inline ::std::string* PROTOBUF_NONNULL SearchPaymentReferencesRequest::add_payment_reference_bytes() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::std::string* _s = _internal_mutable_payment_reference_bytes()->Add(); + // @@protoc_insertion_point(field_add_mutable:tari.rpc.SearchPaymentReferencesRequest.payment_reference_bytes) + return _s; +} +inline const ::std::string& SearchPaymentReferencesRequest::payment_reference_bytes(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SearchPaymentReferencesRequest.payment_reference_bytes) + return _internal_payment_reference_bytes().Get(index); +} +inline ::std::string* PROTOBUF_NONNULL SearchPaymentReferencesRequest::mutable_payment_reference_bytes(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:tari.rpc.SearchPaymentReferencesRequest.payment_reference_bytes) + return _internal_mutable_payment_reference_bytes()->Mutable(index); +} +template +inline void SearchPaymentReferencesRequest::set_payment_reference_bytes(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString(*_internal_mutable_payment_reference_bytes()->Mutable(index), ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); + // @@protoc_insertion_point(field_set:tari.rpc.SearchPaymentReferencesRequest.payment_reference_bytes) +} +template +inline void SearchPaymentReferencesRequest::add_payment_reference_bytes(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_payment_reference_bytes(), + ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); + // @@protoc_insertion_point(field_add:tari.rpc.SearchPaymentReferencesRequest.payment_reference_bytes) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& SearchPaymentReferencesRequest::payment_reference_bytes() + const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:tari.rpc.SearchPaymentReferencesRequest.payment_reference_bytes) + return _internal_payment_reference_bytes(); +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL +SearchPaymentReferencesRequest::mutable_payment_reference_bytes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:tari.rpc.SearchPaymentReferencesRequest.payment_reference_bytes) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_payment_reference_bytes(); +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +SearchPaymentReferencesRequest::_internal_payment_reference_bytes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.payment_reference_bytes_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL +SearchPaymentReferencesRequest::_internal_mutable_payment_reference_bytes() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.payment_reference_bytes_; +} + +// bool include_spent = 3; +inline void SearchPaymentReferencesRequest::clear_include_spent() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.include_spent_ = false; + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline bool SearchPaymentReferencesRequest::include_spent() const { + // @@protoc_insertion_point(field_get:tari.rpc.SearchPaymentReferencesRequest.include_spent) + return _internal_include_spent(); +} +inline void SearchPaymentReferencesRequest::set_include_spent(bool value) { + _internal_set_include_spent(value); + _impl_._has_bits_[0] |= 0x00000001u; + // @@protoc_insertion_point(field_set:tari.rpc.SearchPaymentReferencesRequest.include_spent) +} +inline bool SearchPaymentReferencesRequest::_internal_include_spent() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.include_spent_; +} +inline void SearchPaymentReferencesRequest::_internal_set_include_spent(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.include_spent_ = value; +} + +// ------------------------------------------------------------------- + +// PaymentReferenceResponse + +// string payment_reference_hex = 1; +inline void PaymentReferenceResponse::clear_payment_reference_hex() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.payment_reference_hex_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& PaymentReferenceResponse::payment_reference_hex() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.PaymentReferenceResponse.payment_reference_hex) + return _internal_payment_reference_hex(); +} +template +PROTOBUF_ALWAYS_INLINE void PaymentReferenceResponse::set_payment_reference_hex(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.payment_reference_hex_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.PaymentReferenceResponse.payment_reference_hex) +} +inline ::std::string* PROTOBUF_NONNULL PaymentReferenceResponse::mutable_payment_reference_hex() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_payment_reference_hex(); + // @@protoc_insertion_point(field_mutable:tari.rpc.PaymentReferenceResponse.payment_reference_hex) + return _s; +} +inline const ::std::string& PaymentReferenceResponse::_internal_payment_reference_hex() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.payment_reference_hex_.Get(); +} +inline void PaymentReferenceResponse::_internal_set_payment_reference_hex(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.payment_reference_hex_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL PaymentReferenceResponse::_internal_mutable_payment_reference_hex() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.payment_reference_hex_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE PaymentReferenceResponse::release_payment_reference_hex() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.PaymentReferenceResponse.payment_reference_hex) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.payment_reference_hex_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.payment_reference_hex_.Set("", GetArena()); + } + return released; +} +inline void PaymentReferenceResponse::set_allocated_payment_reference_hex(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.payment_reference_hex_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.payment_reference_hex_.IsDefault()) { + _impl_.payment_reference_hex_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.PaymentReferenceResponse.payment_reference_hex) +} + +// uint64 block_height = 2; +inline void PaymentReferenceResponse::clear_block_height() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.block_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000020u; +} +inline ::uint64_t PaymentReferenceResponse::block_height() const { + // @@protoc_insertion_point(field_get:tari.rpc.PaymentReferenceResponse.block_height) + return _internal_block_height(); +} +inline void PaymentReferenceResponse::set_block_height(::uint64_t value) { + _internal_set_block_height(value); + _impl_._has_bits_[0] |= 0x00000020u; + // @@protoc_insertion_point(field_set:tari.rpc.PaymentReferenceResponse.block_height) +} +inline ::uint64_t PaymentReferenceResponse::_internal_block_height() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.block_height_; +} +inline void PaymentReferenceResponse::_internal_set_block_height(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.block_height_ = value; +} + +// bytes block_hash = 3; +inline void PaymentReferenceResponse::clear_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.block_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::std::string& PaymentReferenceResponse::block_hash() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.PaymentReferenceResponse.block_hash) + return _internal_block_hash(); +} +template +PROTOBUF_ALWAYS_INLINE void PaymentReferenceResponse::set_block_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.block_hash_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.PaymentReferenceResponse.block_hash) +} +inline ::std::string* PROTOBUF_NONNULL PaymentReferenceResponse::mutable_block_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_block_hash(); + // @@protoc_insertion_point(field_mutable:tari.rpc.PaymentReferenceResponse.block_hash) + return _s; +} +inline const ::std::string& PaymentReferenceResponse::_internal_block_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.block_hash_.Get(); +} +inline void PaymentReferenceResponse::_internal_set_block_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.block_hash_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL PaymentReferenceResponse::_internal_mutable_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + return _impl_.block_hash_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE PaymentReferenceResponse::release_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.PaymentReferenceResponse.block_hash) + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.block_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.block_hash_.Set("", GetArena()); + } + return released; +} +inline void PaymentReferenceResponse::set_allocated_block_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + _impl_.block_hash_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.block_hash_.IsDefault()) { + _impl_.block_hash_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.PaymentReferenceResponse.block_hash) +} + +// uint64 mined_timestamp = 4; +inline void PaymentReferenceResponse::clear_mined_timestamp() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mined_timestamp_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000040u; +} +inline ::uint64_t PaymentReferenceResponse::mined_timestamp() const { + // @@protoc_insertion_point(field_get:tari.rpc.PaymentReferenceResponse.mined_timestamp) + return _internal_mined_timestamp(); +} +inline void PaymentReferenceResponse::set_mined_timestamp(::uint64_t value) { + _internal_set_mined_timestamp(value); + _impl_._has_bits_[0] |= 0x00000040u; + // @@protoc_insertion_point(field_set:tari.rpc.PaymentReferenceResponse.mined_timestamp) +} +inline ::uint64_t PaymentReferenceResponse::_internal_mined_timestamp() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.mined_timestamp_; +} +inline void PaymentReferenceResponse::_internal_set_mined_timestamp(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mined_timestamp_ = value; +} + +// bytes commitment = 5; +inline void PaymentReferenceResponse::clear_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.commitment_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline const ::std::string& PaymentReferenceResponse::commitment() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.PaymentReferenceResponse.commitment) + return _internal_commitment(); +} +template +PROTOBUF_ALWAYS_INLINE void PaymentReferenceResponse::set_commitment(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.commitment_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.PaymentReferenceResponse.commitment) +} +inline ::std::string* PROTOBUF_NONNULL PaymentReferenceResponse::mutable_commitment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_commitment(); + // @@protoc_insertion_point(field_mutable:tari.rpc.PaymentReferenceResponse.commitment) + return _s; +} +inline const ::std::string& PaymentReferenceResponse::_internal_commitment() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.commitment_.Get(); +} +inline void PaymentReferenceResponse::_internal_set_commitment(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.commitment_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL PaymentReferenceResponse::_internal_mutable_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + return _impl_.commitment_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE PaymentReferenceResponse::release_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.PaymentReferenceResponse.commitment) + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.commitment_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.commitment_.Set("", GetArena()); + } + return released; +} +inline void PaymentReferenceResponse::set_allocated_commitment(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + _impl_.commitment_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.commitment_.IsDefault()) { + _impl_.commitment_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.PaymentReferenceResponse.commitment) +} + +// bool is_spent = 6; +inline void PaymentReferenceResponse::clear_is_spent() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_spent_ = false; + _impl_._has_bits_[0] &= ~0x00000400u; +} +inline bool PaymentReferenceResponse::is_spent() const { + // @@protoc_insertion_point(field_get:tari.rpc.PaymentReferenceResponse.is_spent) + return _internal_is_spent(); +} +inline void PaymentReferenceResponse::set_is_spent(bool value) { + _internal_set_is_spent(value); + _impl_._has_bits_[0] |= 0x00000400u; + // @@protoc_insertion_point(field_set:tari.rpc.PaymentReferenceResponse.is_spent) +} +inline bool PaymentReferenceResponse::_internal_is_spent() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.is_spent_; +} +inline void PaymentReferenceResponse::_internal_set_is_spent(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.is_spent_ = value; +} + +// uint64 spent_height = 7; +inline void PaymentReferenceResponse::clear_spent_height() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.spent_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000080u; +} +inline ::uint64_t PaymentReferenceResponse::spent_height() const { + // @@protoc_insertion_point(field_get:tari.rpc.PaymentReferenceResponse.spent_height) + return _internal_spent_height(); +} +inline void PaymentReferenceResponse::set_spent_height(::uint64_t value) { + _internal_set_spent_height(value); + _impl_._has_bits_[0] |= 0x00000080u; + // @@protoc_insertion_point(field_set:tari.rpc.PaymentReferenceResponse.spent_height) +} +inline ::uint64_t PaymentReferenceResponse::_internal_spent_height() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.spent_height_; +} +inline void PaymentReferenceResponse::_internal_set_spent_height(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.spent_height_ = value; +} + +// bytes spent_block_hash = 8; +inline void PaymentReferenceResponse::clear_spent_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.spent_block_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; +} +inline const ::std::string& PaymentReferenceResponse::spent_block_hash() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.PaymentReferenceResponse.spent_block_hash) + return _internal_spent_block_hash(); +} +template +PROTOBUF_ALWAYS_INLINE void PaymentReferenceResponse::set_spent_block_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; + _impl_.spent_block_hash_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.PaymentReferenceResponse.spent_block_hash) +} +inline ::std::string* PROTOBUF_NONNULL PaymentReferenceResponse::mutable_spent_block_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_spent_block_hash(); + // @@protoc_insertion_point(field_mutable:tari.rpc.PaymentReferenceResponse.spent_block_hash) + return _s; +} +inline const ::std::string& PaymentReferenceResponse::_internal_spent_block_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.spent_block_hash_.Get(); +} +inline void PaymentReferenceResponse::_internal_set_spent_block_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; + _impl_.spent_block_hash_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL PaymentReferenceResponse::_internal_mutable_spent_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; + return _impl_.spent_block_hash_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE PaymentReferenceResponse::release_spent_block_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.PaymentReferenceResponse.spent_block_hash) + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.spent_block_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.spent_block_hash_.Set("", GetArena()); + } + return released; +} +inline void PaymentReferenceResponse::set_allocated_spent_block_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } + _impl_.spent_block_hash_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.spent_block_hash_.IsDefault()) { + _impl_.spent_block_hash_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.PaymentReferenceResponse.spent_block_hash) +} + +// uint64 min_value_promise = 9; +inline void PaymentReferenceResponse::clear_min_value_promise() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.min_value_promise_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000100u; +} +inline ::uint64_t PaymentReferenceResponse::min_value_promise() const { + // @@protoc_insertion_point(field_get:tari.rpc.PaymentReferenceResponse.min_value_promise) + return _internal_min_value_promise(); +} +inline void PaymentReferenceResponse::set_min_value_promise(::uint64_t value) { + _internal_set_min_value_promise(value); + _impl_._has_bits_[0] |= 0x00000100u; + // @@protoc_insertion_point(field_set:tari.rpc.PaymentReferenceResponse.min_value_promise) +} +inline ::uint64_t PaymentReferenceResponse::_internal_min_value_promise() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.min_value_promise_; +} +inline void PaymentReferenceResponse::_internal_set_min_value_promise(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.min_value_promise_ = value; +} + +// uint64 spent_timestamp = 10; +inline void PaymentReferenceResponse::clear_spent_timestamp() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.spent_timestamp_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000200u; +} +inline ::uint64_t PaymentReferenceResponse::spent_timestamp() const { + // @@protoc_insertion_point(field_get:tari.rpc.PaymentReferenceResponse.spent_timestamp) + return _internal_spent_timestamp(); +} +inline void PaymentReferenceResponse::set_spent_timestamp(::uint64_t value) { + _internal_set_spent_timestamp(value); + _impl_._has_bits_[0] |= 0x00000200u; + // @@protoc_insertion_point(field_set:tari.rpc.PaymentReferenceResponse.spent_timestamp) +} +inline ::uint64_t PaymentReferenceResponse::_internal_spent_timestamp() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.spent_timestamp_; +} +inline void PaymentReferenceResponse::_internal_set_spent_timestamp(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.spent_timestamp_ = value; +} + +// bytes output_hash = 11; +inline void PaymentReferenceResponse::clear_output_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.output_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000010u; +} +inline const ::std::string& PaymentReferenceResponse::output_hash() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.PaymentReferenceResponse.output_hash) + return _internal_output_hash(); +} +template +PROTOBUF_ALWAYS_INLINE void PaymentReferenceResponse::set_output_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; + _impl_.output_hash_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.PaymentReferenceResponse.output_hash) +} +inline ::std::string* PROTOBUF_NONNULL PaymentReferenceResponse::mutable_output_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_output_hash(); + // @@protoc_insertion_point(field_mutable:tari.rpc.PaymentReferenceResponse.output_hash) + return _s; +} +inline const ::std::string& PaymentReferenceResponse::_internal_output_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.output_hash_.Get(); +} +inline void PaymentReferenceResponse::_internal_set_output_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; + _impl_.output_hash_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL PaymentReferenceResponse::_internal_mutable_output_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; + return _impl_.output_hash_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE PaymentReferenceResponse::release_output_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.PaymentReferenceResponse.output_hash) + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000010u; + auto* released = _impl_.output_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.output_hash_.Set("", GetArena()); + } + return released; +} +inline void PaymentReferenceResponse::set_allocated_output_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000010u; + } else { + _impl_._has_bits_[0] &= ~0x00000010u; + } + _impl_.output_hash_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.output_hash_.IsDefault()) { + _impl_.output_hash_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.PaymentReferenceResponse.output_hash) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -18972,40 +25274,46 @@ inline void LivenessResult::_internal_set_ping_latency(::uint64_t value) { namespace google { namespace protobuf { +template <> +struct is_proto_enum<::tari::rpc::ReadinessStatus_State> : std::true_type {}; +template <> +inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::tari::rpc::ReadinessStatus_State>() { + return ::tari::rpc::ReadinessStatus_State_descriptor(); +} template <> struct is_proto_enum<::tari::rpc::BaseNodeState> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::BaseNodeState>() { +inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::tari::rpc::BaseNodeState>() { return ::tari::rpc::BaseNodeState_descriptor(); } template <> struct is_proto_enum<::tari::rpc::CalcType> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::CalcType>() { +inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::tari::rpc::CalcType>() { return ::tari::rpc::CalcType_descriptor(); } template <> struct is_proto_enum<::tari::rpc::Sorting> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::Sorting>() { +inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::tari::rpc::Sorting>() { return ::tari::rpc::Sorting_descriptor(); } template <> struct is_proto_enum<::tari::rpc::SyncState> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::SyncState>() { +inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::tari::rpc::SyncState>() { return ::tari::rpc::SyncState_descriptor(); } template <> struct is_proto_enum<::tari::rpc::SubmitTransactionResult> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::SubmitTransactionResult>() { +inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::tari::rpc::SubmitTransactionResult>() { return ::tari::rpc::SubmitTransactionResult_descriptor(); } template <> struct is_proto_enum<::tari::rpc::TransactionLocation> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::TransactionLocation>() { +inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::tari::rpc::TransactionLocation>() { return ::tari::rpc::TransactionLocation_descriptor(); } @@ -19016,4 +25324,4 @@ inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::TransactionLocation> #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_base_5fnode_2eproto_2epb_2eh +#endif // base_5fnode_2eproto_2epb_2eh diff --git a/external/src/Tari/proto/gRPC/base_node.proto b/external/src/Tari/proto/gRPC/base_node.proto index cf56bac..ae81b62 100644 --- a/external/src/Tari/proto/gRPC/base_node.proto +++ b/external/src/Tari/proto/gRPC/base_node.proto @@ -46,7 +46,7 @@ service BaseNode { // Returns Block Fees rpc GetBlockFees (BlockGroupRequest) returns (BlockGroupResponse); // Get Version - rpc GetVersion(Empty) returns (StringValue); + rpc GetVersion(Empty) returns (BaseNodeGetVersionResponse); // Check for new updates rpc CheckForUpdates(Empty) returns (SoftwareUpdate); // Get coins in circulation @@ -95,11 +95,17 @@ service BaseNode { rpc GetMempoolStats(Empty) returns (MempoolStatsResponse); // Get VNs rpc GetActiveValidatorNodes(GetActiveValidatorNodesRequest) returns (stream GetActiveValidatorNodesResponse); + rpc GetValidatorNodeChanges(GetValidatorNodeChangesRequest) returns (GetValidatorNodeChangesResponse); rpc GetShardKey(GetShardKeyRequest) returns (GetShardKeyResponse); // Get templates rpc GetTemplateRegistrations(GetTemplateRegistrationsRequest) returns (stream GetTemplateRegistrationResponse); rpc GetSideChainUtxos(GetSideChainUtxosRequest) returns (stream GetSideChainUtxosResponse); rpc GetNetworkState(GetNetworkStateRequest) returns (GetNetworkStateResponse); + // PayRef (Payment Reference) lookup for block explorers and external services + rpc SearchPaymentReferences(SearchPaymentReferencesRequest) returns (stream PaymentReferenceResponse); + // PayRef (Payment Reference) lookup for block explorers and external services via output hash + rpc SearchPaymentReferencesViaOutputHash(FetchMatchingUtxosRequest) returns (stream PaymentReferenceResponse); + } message GetAssetMetadataRequest { @@ -174,6 +180,42 @@ enum BaseNodeState{ SYNC_FAILED = 6; } +message ReadinessStatus { + enum State { + NOT_READY = 0; + STARTING_UP = 1; + + // Database phase (10-19) + DATABASE_INITIALIZING = 10; + + // Recovery phase (20-29) + RECOVERING_PREPARING = 20; + RECOVERING_REBUILDING = 21; + RECOVERING_REBUILDING_DATABASE = 22; + + // Context building phase (30-39) + BUILDING_CONTEXT_BLOCKCHAIN = 32; + BUILDING_CONTEXT_BOOTSTRAP = 34; + + READY = 100; + } + + oneof status { + State state = 1; + MigrationProgress migration = 2; + } + uint64 timestamp = 6; + +} + +message MigrationProgress { + uint64 current_block = 1; + uint64 total_blocks = 2; + double progress_percentage = 3; + uint64 current_db_version = 4; + uint64 target_db_version = 5; +} + /// return type of GetNewBlockTemplate message NewBlockTemplateResponse { NewBlockTemplate new_block_template = 1; @@ -226,9 +268,24 @@ message NetworkDifficultyResponse { // A generic single value response for a specific height message ValueAtHeightResponse { + // This is the total circulating token supply up to date ('mined_rewards + spendable_pre_mine'). uint64 circulating_supply = 1; - uint64 spendable_supply = 2; + // uint64 spendable_supply = 2; // No longer used + // This is the block height the values are valid for. uint64 height = 3; + // This is the total mined rewards up to date, including time locked coinbase rewards that is not spendable. + uint64 mined_rewards = 4; + // This is the total spendable minded rewards up to date, which excludes all coinbase rewards that is + // still time locked. + uint64 spendable_rewards = 5; + // This is the total spendable pre-mine tokens released up to date, i.e. not time-locked anymore. + uint64 spendable_pre_mine = 6; + // This is the total spendable token supply up to date ('spendable_rewards + spendable_pre_mine'). + uint64 total_spendable = 7; + // This is the total pre-mine tokens in the genesis block, time-locked and not time-locked. + uint64 total_pre_mine = 8; + // This is the total pre-mine tokens that are still time-locked up to date (`total_pre_mine - spendable_pre_mine`). + uint64 time_locked_pre_mine = 9; } // A generic uint value @@ -236,9 +293,9 @@ message IntegerValue { uint64 value = 1; } -// A generic String value -message StringValue { - string value = 1; +message BaseNodeGetVersionResponse { + string version = 1; + uint32 network = 2; } /// GetBlockSize / GetBlockFees Request @@ -481,48 +538,76 @@ message MempoolStatsResponse { } message GetActiveValidatorNodesRequest { - uint64 height = 1; + uint64 height = 1; + bytes sidechain_id = 2; } message GetActiveValidatorNodesResponse { - bytes shard_key = 1; - bytes public_key = 2; + bytes shard_key = 1; + bytes public_key = 2; + bytes sidechain_id = 3; +} + +message GetValidatorNodeChangesRequest { + uint64 epoch = 1; + bytes sidechain_id = 2; +} + +message ValidatorNodeChange { + oneof change { + ValidatorNodeChangeAdd add = 1; + ValidatorNodeChangeRemove remove = 2; + } +} + +message ValidatorNodeChangeAdd { + uint64 activation_epoch = 1; + ValidatorNodeRegistration registration = 2; + uint64 minimum_value_promise = 3; + bytes shard_key = 4; +} + +message ValidatorNodeChangeRemove { + bytes public_key = 1; +} + +message GetValidatorNodeChangesResponse { + repeated ValidatorNodeChange changes = 1; } message GetShardKeyRequest { - uint64 height = 1; - bytes public_key = 2; + uint64 epoch = 1; + bytes public_key = 2; } message GetShardKeyResponse { - bytes shard_key = 1; - bool found = 2; + bytes shard_key = 1; } message GetTemplateRegistrationsRequest { - bytes start_hash = 1; - uint64 count = 2; + bytes start_hash = 1; + uint64 count = 2; } message GetTemplateRegistrationResponse { - bytes utxo_hash = 1; - TemplateRegistration registration = 2; + bytes utxo_hash = 1; + TemplateRegistration registration = 2; } message BlockInfo { - uint64 height = 1; - bytes hash = 2; - bytes next_block_hash = 3; + uint64 height = 1; + bytes hash = 2; + bytes next_block_hash = 3; } message GetSideChainUtxosRequest { - bytes start_hash = 1; - uint64 count = 2; + bytes start_hash = 1; + uint64 count = 2; } message GetSideChainUtxosResponse { - BlockInfo block_info = 1; - repeated TransactionOutput outputs = 2; + BlockInfo block_info = 1; + repeated TransactionOutput outputs = 2; } message GetNetworkStateRequest { @@ -548,6 +633,8 @@ message GetNetworkStateResponse { uint64 num_connections = 8; //liveness results repeated LivenessResult liveness_results = 9; + // readiness status + ReadinessStatus readiness_status = 11; } message LivenessResult{ @@ -559,3 +646,39 @@ message LivenessResult{ uint64 ping_latency = 3; } +// PayRef (Payment Reference) search and lookup messages + +// Request to search for outputs by payment reference +message SearchPaymentReferencesRequest { + // Payment reference as hex string (64 characters) + repeated string payment_reference_hex = 1; + repeated bytes payment_reference_bytes = 2; + // Optional: include spent outputs in results + bool include_spent = 3; +} + +// Response containing payment reference match +message PaymentReferenceResponse { + // The payment reference that was found + string payment_reference_hex = 1; + // Block height where the output was mined + uint64 block_height = 2; + // Block hash where the output was mined + bytes block_hash = 3; + // Timestamp when the output was mined + uint64 mined_timestamp = 4; + // Output commitment (32 bytes) + bytes commitment = 5; + // Whether this output has been spent + bool is_spent = 6; + // Height where output was spent - will be 0 for unspent outputs as it is not applicable + uint64 spent_height = 7; + // Block hash where output was spent - will be empty for unspent outputs + bytes spent_block_hash = 8; + // Minimum value promise + uint64 min_value_promise = 9; + // Timestamp when the output was spent - will be 0 for unspent outputs as it is not applicable + uint64 spent_timestamp = 10; + // Output hash of the output + bytes output_hash = 11; +} diff --git a/external/src/Tari/proto/gRPC/block.grpc.pb.cc b/external/src/Tari/proto/gRPC/block.grpc.pb.cc index d4f6024..6fb4599 100644 --- a/external/src/Tari/proto/gRPC/block.grpc.pb.cc +++ b/external/src/Tari/proto/gRPC/block.grpc.pb.cc @@ -19,9 +19,11 @@ #include #include #include +#include namespace tari { namespace rpc { } // namespace tari } // namespace rpc +#include diff --git a/external/src/Tari/proto/gRPC/block.grpc.pb.h b/external/src/Tari/proto/gRPC/block.grpc.pb.h index 20ac627..e098806 100644 --- a/external/src/Tari/proto/gRPC/block.grpc.pb.h +++ b/external/src/Tari/proto/gRPC/block.grpc.pb.h @@ -46,6 +46,7 @@ #include #include #include +#include namespace tari { namespace rpc { @@ -54,4 +55,5 @@ namespace rpc { } // namespace tari +#include #endif // GRPC_block_2eproto__INCLUDED diff --git a/external/src/Tari/proto/gRPC/block.pb.cc b/external/src/Tari/proto/gRPC/block.pb.cc index 9216297..82e2e0c 100644 --- a/external/src/Tari/proto/gRPC/block.pb.cc +++ b/external/src/Tari/proto/gRPC/block.pb.cc @@ -1,18 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: block.proto -// Protobuf C++ Version: 5.26.1 +// Protobuf C++ Version: 6.31.1 #include "block.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -26,15 +29,21 @@ namespace rpc { inline constexpr ProofOfWork::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : pow_data_( + : _cached_size_{0}, + pow_data_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - pow_algo_{::uint64_t{0u}}, - _cached_size_{0} {} + pow_algo_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR ProofOfWork::ProofOfWork(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ProofOfWork_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ProofOfWorkDefaultTypeInternal { PROTOBUF_CONSTEXPR ProofOfWorkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ProofOfWorkDefaultTypeInternal() {} @@ -48,12 +57,18 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr PowAlgo::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : pow_algo_{static_cast< ::tari::rpc::PowAlgo_PowAlgos >(0)}, - _cached_size_{0} {} + : _cached_size_{0}, + pow_algo_{static_cast< ::tari::rpc::PowAlgo_PowAlgos >(0)} {} template PROTOBUF_CONSTEXPR PowAlgo::PowAlgo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(PowAlgo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PowAlgoDefaultTypeInternal { PROTOBUF_CONSTEXPR PowAlgoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PowAlgoDefaultTypeInternal() {} @@ -83,7 +98,13 @@ inline constexpr NewBlockHeaderTemplate::Impl_::Impl_( template PROTOBUF_CONSTEXPR NewBlockHeaderTemplate::NewBlockHeaderTemplate(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(NewBlockHeaderTemplate_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct NewBlockHeaderTemplateDefaultTypeInternal { PROTOBUF_CONSTEXPR NewBlockHeaderTemplateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NewBlockHeaderTemplateDefaultTypeInternal() {} @@ -136,7 +157,13 @@ inline constexpr BlockHeader::Impl_::Impl_( template PROTOBUF_CONSTEXPR BlockHeader::BlockHeader(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(BlockHeader_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct BlockHeaderDefaultTypeInternal { PROTOBUF_CONSTEXPR BlockHeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~BlockHeaderDefaultTypeInternal() {} @@ -157,7 +184,13 @@ inline constexpr NewBlockTemplate::Impl_::Impl_( template PROTOBUF_CONSTEXPR NewBlockTemplate::NewBlockTemplate(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(NewBlockTemplate_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct NewBlockTemplateDefaultTypeInternal { PROTOBUF_CONSTEXPR NewBlockTemplateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NewBlockTemplateDefaultTypeInternal() {} @@ -177,7 +210,13 @@ inline constexpr Block::Impl_::Impl_( template PROTOBUF_CONSTEXPR Block::Block(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(Block_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct BlockDefaultTypeInternal { PROTOBUF_CONSTEXPR BlockDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~BlockDefaultTypeInternal() {} @@ -197,7 +236,13 @@ inline constexpr HistoricalBlock::Impl_::Impl_( template PROTOBUF_CONSTEXPR HistoricalBlock::HistoricalBlock(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(HistoricalBlock_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct HistoricalBlockDefaultTypeInternal { PROTOBUF_CONSTEXPR HistoricalBlockDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~HistoricalBlockDefaultTypeInternal() {} @@ -210,21 +255,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HistoricalBlockDefaultTypeInternal _HistoricalBlock_default_instance_; } // namespace rpc } // namespace tari -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** +static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL + file_level_enum_descriptors_block_2eproto[1]; +static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_block_2eproto = nullptr; const ::uint32_t TableStruct_block_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { + 0x081, // bitmap 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) + 20, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.hash_), PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.version_), PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.height_), @@ -242,113 +282,86 @@ const ::uint32_t 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, - ~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) + 16, + 10, + 1, + 11, + 2, + 3, + 4, + 5, + 6, + 12, + 9, + 13, + 14, + 7, + 8, + 15, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ProofOfWork, _impl_._has_bits_), + 5, // hasbit index offset 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) + 1, + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgo, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgo, _impl_.pow_algo_), + 0, + 0x081, // bitmap 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) + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _impl_.header_), PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _impl_.body_), 0, 1, + 0x081, // bitmap 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) + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _impl_.confirmations_), PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _impl_.block_), - ~0u, + 1, 0, + 0x081, // bitmap 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) + 9, // hasbit index offset 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, + 5, + 4, 0, - ~0u, + 1, + 3, + 2, + 0x081, // bitmap 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) + 6, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _impl_.header_), PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _impl_.body_), PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _impl_.is_mempool_in_sync_), 0, 1, - ~0u, + 2, }; static const ::_pbi::MigrationSchema schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, 25, -1, sizeof(::tari::rpc::BlockHeader)}, - {42, -1, -1, sizeof(::tari::rpc::ProofOfWork)}, - {52, -1, -1, sizeof(::tari::rpc::PowAlgo)}, - {61, 71, -1, sizeof(::tari::rpc::Block)}, - {73, 83, -1, sizeof(::tari::rpc::HistoricalBlock)}, - {85, 99, -1, sizeof(::tari::rpc::NewBlockHeaderTemplate)}, - {105, 116, -1, sizeof(::tari::rpc::NewBlockTemplate)}, + {0, sizeof(::tari::rpc::BlockHeader)}, + {37, sizeof(::tari::rpc::ProofOfWork)}, + {44, sizeof(::tari::rpc::PowAlgo)}, + {49, sizeof(::tari::rpc::Block)}, + {56, sizeof(::tari::rpc::HistoricalBlock)}, + {63, sizeof(::tari::rpc::NewBlockHeaderTemplate)}, + {78, sizeof(::tari::rpc::NewBlockTemplate)}, }; -static const ::_pb::Message* const file_default_instances[] = { +static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { &::tari::rpc::_BlockHeader_default_instance_._instance, &::tari::rpc::_ProofOfWork_default_instance_._instance, &::tari::rpc::_PowAlgo_default_instance_._instance, @@ -388,12 +401,12 @@ const char descriptor_table_protodef_block_2eproto[] ABSL_ATTRIBUTE_SECTION_VARI "dy\030\002 \001(\0132\027.tari.rpc.AggregateBody\022\032\n\022is_" "mempool_in_sync\030\003 \001(\010b\006proto3" }; -static const ::_pbi::DescriptorTable* const descriptor_table_block_2eproto_deps[1] = - { +static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const + descriptor_table_block_2eproto_deps[1] = { &::descriptor_table_transaction_2eproto, }; static ::absl::once_flag descriptor_table_block_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_block_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_block_2eproto = { false, false, 1109, @@ -406,65 +419,40 @@ const ::_pbi::DescriptorTable descriptor_table_block_2eproto = { schemas, file_default_instances, TableStruct_block_2eproto::offsets, - file_level_metadata_block_2eproto, file_level_enum_descriptors_block_2eproto, file_level_service_descriptors_block_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_block_2eproto_getter() { - return &descriptor_table_block_2eproto; -} namespace tari { namespace rpc { -const ::google::protobuf::EnumDescriptor* PowAlgo_PowAlgos_descriptor() { +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL PowAlgo_PowAlgos_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_block_2eproto); return file_level_enum_descriptors_block_2eproto[0]; } PROTOBUF_CONSTINIT const uint32_t PowAlgo_PowAlgos_internal_data_[] = { 196608u, 0u, }; -bool PowAlgo_PowAlgos_IsValid(int value) { - return 0 <= value && value <= 2; -} -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) - -constexpr PowAlgo_PowAlgos PowAlgo::POW_ALGOS_RANDOMXM; -constexpr PowAlgo_PowAlgos PowAlgo::POW_ALGOS_SHA3X; -constexpr PowAlgo_PowAlgos PowAlgo::POW_ALGOS_RANDOMXT; -constexpr PowAlgo_PowAlgos PowAlgo::PowAlgos_MIN; -constexpr PowAlgo_PowAlgos PowAlgo::PowAlgos_MAX; -constexpr int PowAlgo::PowAlgos_ARRAYSIZE; - -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== class BlockHeader::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_._has_bits_); }; -BlockHeader::BlockHeader(::google::protobuf::Arena* arena) +BlockHeader::BlockHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockHeader_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockHeader) } -inline PROTOBUF_NDEBUG_INLINE BlockHeader::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE BlockHeader::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::BlockHeader& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, hash_(arena, from.hash_), @@ -478,18 +466,22 @@ inline PROTOBUF_NDEBUG_INLINE BlockHeader::Impl_::Impl_( validator_node_mr_(arena, from.validator_node_mr_) {} BlockHeader::BlockHeader( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockHeader& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockHeader_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE BlockHeader* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pow_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ProofOfWork>( - arena, *from._impl_.pow_) - : nullptr; + _impl_.pow_ = ((cached_has_bits & 0x00000200u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.pow_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, height_), reinterpret_cast(&from._impl_) + @@ -500,9 +492,9 @@ BlockHeader::BlockHeader( // @@protoc_insertion_point(copy_constructor:tari.rpc.BlockHeader) } -inline PROTOBUF_NDEBUG_INLINE BlockHeader::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE BlockHeader::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, hash_(arena), prev_hash_(arena), @@ -514,7 +506,7 @@ inline PROTOBUF_NDEBUG_INLINE BlockHeader::Impl_::Impl_( total_script_offset_(arena), validator_node_mr_(arena) {} -inline void BlockHeader::SharedCtor(::_pb::Arena* arena) { +inline void BlockHeader::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, pow_), @@ -525,75 +517,70 @@ inline void BlockHeader::SharedCtor(::_pb::Arena* arena) { } BlockHeader::~BlockHeader() { // @@protoc_insertion_point(destructor:tari.rpc.BlockHeader) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void BlockHeader::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.hash_.Destroy(); - _impl_.prev_hash_.Destroy(); - _impl_.output_mr_.Destroy(); - _impl_.block_output_mr_.Destroy(); - _impl_.kernel_mr_.Destroy(); - _impl_.input_mr_.Destroy(); - _impl_.total_kernel_offset_.Destroy(); - _impl_.total_script_offset_.Destroy(); - _impl_.validator_node_mr_.Destroy(); - delete _impl_.pow_; - _impl_.~Impl_(); +inline void BlockHeader::SharedDtor(MessageLite& self) { + BlockHeader& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.hash_.Destroy(); + this_._impl_.prev_hash_.Destroy(); + this_._impl_.output_mr_.Destroy(); + this_._impl_.block_output_mr_.Destroy(); + this_._impl_.kernel_mr_.Destroy(); + this_._impl_.input_mr_.Destroy(); + this_._impl_.total_kernel_offset_.Destroy(); + this_._impl_.total_script_offset_.Destroy(); + this_._impl_.validator_node_mr_.Destroy(); + delete this_._impl_.pow_; + this_._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, - }, +inline void* PROTOBUF_NONNULL BlockHeader::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BlockHeader(arena); +} +constexpr auto BlockHeader::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BlockHeader), + alignof(BlockHeader)); +} +constexpr auto BlockHeader::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_BlockHeader_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.hash_.ClearToEmpty(); - _impl_.prev_hash_.ClearToEmpty(); - _impl_.output_mr_.ClearToEmpty(); - _impl_.block_output_mr_.ClearToEmpty(); - _impl_.kernel_mr_.ClearToEmpty(); - _impl_.input_mr_.ClearToEmpty(); - _impl_.total_kernel_offset_.ClearToEmpty(); - _impl_.total_script_offset_.ClearToEmpty(); - _impl_.validator_node_mr_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.pow_ != nullptr); - _impl_.pow_->Clear(); - } - ::memset(&_impl_.height_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.version_) - - reinterpret_cast(&_impl_.height_)) + sizeof(_impl_.version_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BlockHeader::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &BlockHeader::ByteSizeLong, + &BlockHeader::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_._cached_size_), + false, + }, + &BlockHeader::kDescriptorMethods, + &descriptor_table_block_2eproto, + nullptr, // tracker + }; } -const char* BlockHeader::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull BlockHeader_class_data_ = + BlockHeader::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BlockHeader::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&BlockHeader_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(BlockHeader_class_data_.tc_table); + return BlockHeader_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 17, 1, 0, 2> BlockHeader::_table_ = { +const ::_pbi::TcParseTable<5, 17, 1, 0, 2> +BlockHeader::_table_ = { { PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_._has_bits_), 0, // no _extensions_ @@ -604,7 +591,8 @@ const ::_pbi::TcParseTable<5, 17, 1, 0, 2> BlockHeader::_table_ = { 17, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_BlockHeader_default_instance_._instance, + BlockHeader_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::BlockHeader>(), // to_prefetch @@ -613,55 +601,55 @@ const ::_pbi::TcParseTable<5, 17, 1, 0, 2> BlockHeader::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // bytes hash = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.hash_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.hash_)}}, // uint32 version = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BlockHeader, _impl_.version_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.version_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BlockHeader, _impl_.version_), 16>(), + {16, 16, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.version_)}}, // uint64 height = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.height_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.height_), 10>(), + {24, 10, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.height_)}}, // bytes prev_hash = 4; {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.prev_hash_)}}, + {34, 1, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.prev_hash_)}}, // uint64 timestamp = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.timestamp_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.timestamp_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.timestamp_), 11>(), + {40, 11, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.timestamp_)}}, // bytes output_mr = 6; {::_pbi::TcParser::FastBS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.output_mr_)}}, + {50, 2, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.output_mr_)}}, // bytes block_output_mr = 7; {::_pbi::TcParser::FastBS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.block_output_mr_)}}, + {58, 3, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.block_output_mr_)}}, // bytes kernel_mr = 8; {::_pbi::TcParser::FastBS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.kernel_mr_)}}, + {66, 4, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.kernel_mr_)}}, // bytes input_mr = 9; {::_pbi::TcParser::FastBS1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.input_mr_)}}, + {74, 5, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.input_mr_)}}, // bytes total_kernel_offset = 10; {::_pbi::TcParser::FastBS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.total_kernel_offset_)}}, + {82, 6, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.total_kernel_offset_)}}, // uint64 nonce = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.nonce_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.nonce_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.nonce_), 12>(), + {88, 12, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.nonce_)}}, // .tari.rpc.ProofOfWork pow = 12; {::_pbi::TcParser::FastMtS1, - {98, 0, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.pow_)}}, + {98, 9, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.pow_)}}, // uint64 kernel_mmr_size = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.kernel_mmr_size_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.kernel_mmr_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.kernel_mmr_size_), 13>(), + {104, 13, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.kernel_mmr_size_)}}, // uint64 output_mmr_size = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.output_mmr_size_), 63>(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.output_mmr_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.output_mmr_size_), 14>(), + {112, 14, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.output_mmr_size_)}}, // bytes total_script_offset = 15; {::_pbi::TcParser::FastBS1, - {122, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.total_script_offset_)}}, + {122, 7, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.total_script_offset_)}}, // bytes validator_node_mr = 16; {::_pbi::TcParser::FastBS2, - {386, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.validator_node_mr_)}}, + {386, 8, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.validator_node_mr_)}}, // uint64 validator_node_size = 17; {::_pbi::TcParser::FastV64S2, - {392, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.validator_node_size_)}}, + {392, 15, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.validator_node_size_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -680,303 +668,426 @@ const ::_pbi::TcParseTable<5, 17, 1, 0, 2> BlockHeader::_table_ = { 65535, 65535 }}, {{ // bytes hash = 1; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint32 version = 2; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.version_), _Internal::kHasBitsOffset + 16, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint64 height = 3; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.height_), _Internal::kHasBitsOffset + 10, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes prev_hash = 4; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.prev_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.prev_hash_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint64 timestamp = 5; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.timestamp_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.timestamp_), _Internal::kHasBitsOffset + 11, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes output_mr = 6; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.output_mr_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.output_mr_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes block_output_mr = 7; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.block_output_mr_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.block_output_mr_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes kernel_mr = 8; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.kernel_mr_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.kernel_mr_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes input_mr = 9; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.input_mr_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.input_mr_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes total_kernel_offset = 10; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.total_kernel_offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.total_kernel_offset_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint64 nonce = 11; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.nonce_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.nonce_), _Internal::kHasBitsOffset + 12, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // .tari.rpc.ProofOfWork pow = 12; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.pow_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.pow_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint64 kernel_mmr_size = 13; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.kernel_mmr_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.kernel_mmr_size_), _Internal::kHasBitsOffset + 13, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 output_mmr_size = 14; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.output_mmr_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.output_mmr_size_), _Internal::kHasBitsOffset + 14, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes total_script_offset = 15; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.total_script_offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.total_script_offset_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes validator_node_mr = 16; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.validator_node_mr_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.validator_node_mr_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint64 validator_node_size = 17; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.validator_node_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::ProofOfWork>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.validator_node_size_), _Internal::kHasBitsOffset + 15, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::ProofOfWork>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void BlockHeader::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockHeader) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* BlockHeader::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.prev_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.output_mr_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.block_output_mr_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + _impl_.kernel_mr_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000020u) != 0) { + _impl_.input_mr_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000040u) != 0) { + _impl_.total_kernel_offset_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000080u) != 0) { + _impl_.total_script_offset_.ClearNonDefaultToEmpty(); + } + } + if ((cached_has_bits & 0x00000300u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { + _impl_.validator_node_mr_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000200u) != 0) { + ABSL_DCHECK(_impl_.pow_ != nullptr); + _impl_.pow_->Clear(); + } + } + if ((cached_has_bits & 0x0000fc00u) != 0) { + ::memset(&_impl_.height_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.validator_node_size_) - + reinterpret_cast(&_impl_.height_)) + sizeof(_impl_.validator_node_size_)); + } + _impl_.version_ = 0u; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BlockHeader::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BlockHeader& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BlockHeader::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BlockHeader& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockHeader) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes hash = 1; - if (!this->_internal_hash().empty()) { - const std::string& _s = this->_internal_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_hash().empty()) { + const ::std::string& _s = this_._internal_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // uint32 version = 2; - if (this->_internal_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_version(), target); + if ((this_._impl_._has_bits_[0] & 0x00010000u) != 0) { + if (this_._internal_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_version(), target); + } } // uint64 height = 3; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000400u) != 0) { + if (this_._internal_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_height(), target); + } } // bytes prev_hash = 4; - if (!this->_internal_prev_hash().empty()) { - const std::string& _s = this->_internal_prev_hash(); - target = stream->WriteBytesMaybeAliased(4, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_prev_hash().empty()) { + const ::std::string& _s = this_._internal_prev_hash(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } } // uint64 timestamp = 5; - if (this->_internal_timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_timestamp(), target); + if ((this_._impl_._has_bits_[0] & 0x00000800u) != 0) { + if (this_._internal_timestamp() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 5, this_._internal_timestamp(), target); + } } // bytes output_mr = 6; - if (!this->_internal_output_mr().empty()) { - const std::string& _s = this->_internal_output_mr(); - target = stream->WriteBytesMaybeAliased(6, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (!this_._internal_output_mr().empty()) { + const ::std::string& _s = this_._internal_output_mr(); + target = stream->WriteBytesMaybeAliased(6, _s, target); + } } // bytes block_output_mr = 7; - if (!this->_internal_block_output_mr().empty()) { - const std::string& _s = this->_internal_block_output_mr(); - target = stream->WriteBytesMaybeAliased(7, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (!this_._internal_block_output_mr().empty()) { + const ::std::string& _s = this_._internal_block_output_mr(); + target = stream->WriteBytesMaybeAliased(7, _s, target); + } } // bytes kernel_mr = 8; - if (!this->_internal_kernel_mr().empty()) { - const std::string& _s = this->_internal_kernel_mr(); - target = stream->WriteBytesMaybeAliased(8, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (!this_._internal_kernel_mr().empty()) { + const ::std::string& _s = this_._internal_kernel_mr(); + target = stream->WriteBytesMaybeAliased(8, _s, target); + } } // bytes input_mr = 9; - if (!this->_internal_input_mr().empty()) { - const std::string& _s = this->_internal_input_mr(); - target = stream->WriteBytesMaybeAliased(9, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { + if (!this_._internal_input_mr().empty()) { + const ::std::string& _s = this_._internal_input_mr(); + target = stream->WriteBytesMaybeAliased(9, _s, target); + } } // bytes total_kernel_offset = 10; - if (!this->_internal_total_kernel_offset().empty()) { - const std::string& _s = this->_internal_total_kernel_offset(); - target = stream->WriteBytesMaybeAliased(10, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { + if (!this_._internal_total_kernel_offset().empty()) { + const ::std::string& _s = this_._internal_total_kernel_offset(); + target = stream->WriteBytesMaybeAliased(10, _s, target); + } } // uint64 nonce = 11; - if (this->_internal_nonce() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 11, this->_internal_nonce(), target); + if ((this_._impl_._has_bits_[0] & 0x00001000u) != 0) { + if (this_._internal_nonce() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 11, this_._internal_nonce(), target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.ProofOfWork pow = 12; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000200u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, *_impl_.pow_, _impl_.pow_->GetCachedSize(), target, stream); + 12, *this_._impl_.pow_, this_._impl_.pow_->GetCachedSize(), target, + stream); } // uint64 kernel_mmr_size = 13; - if (this->_internal_kernel_mmr_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 13, this->_internal_kernel_mmr_size(), target); + if ((cached_has_bits & 0x00002000u) != 0) { + if (this_._internal_kernel_mmr_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 13, this_._internal_kernel_mmr_size(), target); + } } // uint64 output_mmr_size = 14; - if (this->_internal_output_mmr_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 14, this->_internal_output_mmr_size(), target); + if ((cached_has_bits & 0x00004000u) != 0) { + if (this_._internal_output_mmr_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 14, this_._internal_output_mmr_size(), target); + } } // bytes total_script_offset = 15; - if (!this->_internal_total_script_offset().empty()) { - const std::string& _s = this->_internal_total_script_offset(); - target = stream->WriteBytesMaybeAliased(15, _s, target); + if ((cached_has_bits & 0x00000080u) != 0) { + if (!this_._internal_total_script_offset().empty()) { + const ::std::string& _s = this_._internal_total_script_offset(); + target = stream->WriteBytesMaybeAliased(15, _s, target); + } } // bytes validator_node_mr = 16; - if (!this->_internal_validator_node_mr().empty()) { - const std::string& _s = this->_internal_validator_node_mr(); - target = stream->WriteBytesMaybeAliased(16, _s, target); + if ((cached_has_bits & 0x00000100u) != 0) { + if (!this_._internal_validator_node_mr().empty()) { + const ::std::string& _s = this_._internal_validator_node_mr(); + target = stream->WriteBytesMaybeAliased(16, _s, target); + } } // uint64 validator_node_size = 17; - if (this->_internal_validator_node_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 17, this->_internal_validator_node_size(), target); + if ((cached_has_bits & 0x00008000u) != 0) { + if (this_._internal_validator_node_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 17, this_._internal_validator_node_size(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockHeader) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BlockHeader::ByteSizeLong(const MessageLite& base) { + const BlockHeader& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t BlockHeader::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockHeader) + const BlockHeader& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockHeader) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes hash = 1; - if (!this->_internal_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_hash()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + // bytes hash = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_hash()); + } + } + // bytes prev_hash = 4; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_prev_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_prev_hash()); + } + } + // bytes output_mr = 6; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_output_mr().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_output_mr()); + } + } + // bytes block_output_mr = 7; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_block_output_mr().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_block_output_mr()); + } + } + // bytes kernel_mr = 8; + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_kernel_mr().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_kernel_mr()); + } + } + // bytes input_mr = 9; + if ((cached_has_bits & 0x00000020u) != 0) { + if (!this_._internal_input_mr().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_input_mr()); + } + } + // bytes total_kernel_offset = 10; + if ((cached_has_bits & 0x00000040u) != 0) { + if (!this_._internal_total_kernel_offset().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_total_kernel_offset()); + } + } + // bytes total_script_offset = 15; + if ((cached_has_bits & 0x00000080u) != 0) { + if (!this_._internal_total_script_offset().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_total_script_offset()); + } + } } - - // bytes prev_hash = 4; - if (!this->_internal_prev_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_prev_hash()); + if ((cached_has_bits & 0x0000ff00u) != 0) { + // bytes validator_node_mr = 16; + if ((cached_has_bits & 0x00000100u) != 0) { + if (!this_._internal_validator_node_mr().empty()) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_validator_node_mr()); + } + } + // .tari.rpc.ProofOfWork pow = 12; + if ((cached_has_bits & 0x00000200u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.pow_); + } + // uint64 height = 3; + if ((cached_has_bits & 0x00000400u) != 0) { + if (this_._internal_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_height()); + } + } + // uint64 timestamp = 5; + if ((cached_has_bits & 0x00000800u) != 0) { + if (this_._internal_timestamp() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_timestamp()); + } + } + // uint64 nonce = 11; + if ((cached_has_bits & 0x00001000u) != 0) { + if (this_._internal_nonce() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_nonce()); + } + } + // uint64 kernel_mmr_size = 13; + if ((cached_has_bits & 0x00002000u) != 0) { + if (this_._internal_kernel_mmr_size() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_kernel_mmr_size()); + } + } + // uint64 output_mmr_size = 14; + if ((cached_has_bits & 0x00004000u) != 0) { + if (this_._internal_output_mmr_size() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_output_mmr_size()); + } + } + // uint64 validator_node_size = 17; + if ((cached_has_bits & 0x00008000u) != 0) { + if (this_._internal_validator_node_size() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_validator_node_size()); + } + } } - - // bytes output_mr = 6; - if (!this->_internal_output_mr().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_output_mr()); + { + // uint32 version = 2; + if ((cached_has_bits & 0x00010000u) != 0) { + if (this_._internal_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_version()); + } + } } - - // bytes block_output_mr = 7; - if (!this->_internal_block_output_mr().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_block_output_mr()); - } - - // bytes kernel_mr = 8; - if (!this->_internal_kernel_mr().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_kernel_mr()); - } - - // bytes input_mr = 9; - if (!this->_internal_input_mr().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_input_mr()); - } - - // bytes total_kernel_offset = 10; - if (!this->_internal_total_kernel_offset().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_total_kernel_offset()); - } - - // bytes total_script_offset = 15; - if (!this->_internal_total_script_offset().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_total_script_offset()); - } - - // bytes validator_node_mr = 16; - if (!this->_internal_validator_node_mr().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_validator_node_mr()); - } - - // .tari.rpc.ProofOfWork pow = 12; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pow_); - } - - // uint64 height = 3; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - // uint64 timestamp = 5; - if (this->_internal_timestamp() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_timestamp()); - } - - // uint64 nonce = 11; - if (this->_internal_nonce() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_nonce()); - } - - // uint64 kernel_mmr_size = 13; - if (this->_internal_kernel_mmr_size() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_kernel_mmr_size()); - } - - // uint64 output_mmr_size = 14; - if (this->_internal_output_mmr_size() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_output_mmr_size()); - } - - // uint64 validator_node_size = 17; - if (this->_internal_validator_node_size() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_validator_node_size()); - } - - // uint32 version = 2; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -986,63 +1097,134 @@ void BlockHeader::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goo ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_hash().empty()) { - _this->_internal_set_hash(from._internal_hash()); - } - if (!from._internal_prev_hash().empty()) { - _this->_internal_set_prev_hash(from._internal_prev_hash()); - } - if (!from._internal_output_mr().empty()) { - _this->_internal_set_output_mr(from._internal_output_mr()); - } - if (!from._internal_block_output_mr().empty()) { - _this->_internal_set_block_output_mr(from._internal_block_output_mr()); - } - if (!from._internal_kernel_mr().empty()) { - _this->_internal_set_kernel_mr(from._internal_kernel_mr()); - } - if (!from._internal_input_mr().empty()) { - _this->_internal_set_input_mr(from._internal_input_mr()); - } - if (!from._internal_total_kernel_offset().empty()) { - _this->_internal_set_total_kernel_offset(from._internal_total_kernel_offset()); - } - if (!from._internal_total_script_offset().empty()) { - _this->_internal_set_total_script_offset(from._internal_total_script_offset()); - } - if (!from._internal_validator_node_mr().empty()) { - _this->_internal_set_validator_node_mr(from._internal_validator_node_mr()); - } 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 ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_hash().empty()) { + _this->_internal_set_hash(from._internal_hash()); + } else { + if (_this->_impl_.hash_.IsDefault()) { + _this->_internal_set_hash(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_prev_hash().empty()) { + _this->_internal_set_prev_hash(from._internal_prev_hash()); + } else { + if (_this->_impl_.prev_hash_.IsDefault()) { + _this->_internal_set_prev_hash(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_output_mr().empty()) { + _this->_internal_set_output_mr(from._internal_output_mr()); + } else { + if (_this->_impl_.output_mr_.IsDefault()) { + _this->_internal_set_output_mr(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_block_output_mr().empty()) { + _this->_internal_set_block_output_mr(from._internal_block_output_mr()); + } else { + if (_this->_impl_.block_output_mr_.IsDefault()) { + _this->_internal_set_block_output_mr(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (!from._internal_kernel_mr().empty()) { + _this->_internal_set_kernel_mr(from._internal_kernel_mr()); + } else { + if (_this->_impl_.kernel_mr_.IsDefault()) { + _this->_internal_set_kernel_mr(""); + } + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (!from._internal_input_mr().empty()) { + _this->_internal_set_input_mr(from._internal_input_mr()); + } else { + if (_this->_impl_.input_mr_.IsDefault()) { + _this->_internal_set_input_mr(""); + } + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (!from._internal_total_kernel_offset().empty()) { + _this->_internal_set_total_kernel_offset(from._internal_total_kernel_offset()); + } else { + if (_this->_impl_.total_kernel_offset_.IsDefault()) { + _this->_internal_set_total_kernel_offset(""); + } + } + } + if ((cached_has_bits & 0x00000080u) != 0) { + if (!from._internal_total_script_offset().empty()) { + _this->_internal_set_total_script_offset(from._internal_total_script_offset()); + } else { + if (_this->_impl_.total_script_offset_.IsDefault()) { + _this->_internal_set_total_script_offset(""); + } + } } } - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; + if ((cached_has_bits & 0x0000ff00u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { + if (!from._internal_validator_node_mr().empty()) { + _this->_internal_set_validator_node_mr(from._internal_validator_node_mr()); + } else { + if (_this->_impl_.validator_node_mr_.IsDefault()) { + _this->_internal_set_validator_node_mr(""); + } + } + } + if ((cached_has_bits & 0x00000200u) != 0) { + ABSL_DCHECK(from._impl_.pow_ != nullptr); + if (_this->_impl_.pow_ == nullptr) { + _this->_impl_.pow_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.pow_); + } else { + _this->_impl_.pow_->MergeFrom(*from._impl_.pow_); + } + } + if ((cached_has_bits & 0x00000400u) != 0) { + if (from._internal_height() != 0) { + _this->_impl_.height_ = from._impl_.height_; + } + } + if ((cached_has_bits & 0x00000800u) != 0) { + if (from._internal_timestamp() != 0) { + _this->_impl_.timestamp_ = from._impl_.timestamp_; + } + } + if ((cached_has_bits & 0x00001000u) != 0) { + if (from._internal_nonce() != 0) { + _this->_impl_.nonce_ = from._impl_.nonce_; + } + } + if ((cached_has_bits & 0x00002000u) != 0) { + if (from._internal_kernel_mmr_size() != 0) { + _this->_impl_.kernel_mmr_size_ = from._impl_.kernel_mmr_size_; + } + } + if ((cached_has_bits & 0x00004000u) != 0) { + if (from._internal_output_mmr_size() != 0) { + _this->_impl_.output_mmr_size_ = from._impl_.output_mmr_size_; + } + } + if ((cached_has_bits & 0x00008000u) != 0) { + if (from._internal_validator_node_size() != 0) { + _this->_impl_.validator_node_size_ = from._impl_.validator_node_size_; + } + } } - if (from._internal_timestamp() != 0) { - _this->_impl_.timestamp_ = from._impl_.timestamp_; - } - if (from._internal_nonce() != 0) { - _this->_impl_.nonce_ = from._impl_.nonce_; - } - if (from._internal_kernel_mmr_size() != 0) { - _this->_impl_.kernel_mmr_size_ = from._impl_.kernel_mmr_size_; - } - if (from._internal_output_mmr_size() != 0) { - _this->_impl_.output_mmr_size_ = from._impl_.output_mmr_size_; - } - if (from._internal_validator_node_size() != 0) { - _this->_impl_.validator_node_size_ = from._impl_.validator_node_size_; - } - if (from._internal_version() != 0) { - _this->_impl_.version_ = from._impl_.version_; + if ((cached_has_bits & 0x00010000u) != 0) { + if (from._internal_version() != 0) { + _this->_impl_.version_ = from._impl_.version_; + } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); @@ -1055,12 +1237,9 @@ void BlockHeader::CopyFrom(const BlockHeader& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool BlockHeader::IsInitialized() const { - return true; -} -void BlockHeader::InternalSwap(BlockHeader* PROTOBUF_RESTRICT other) { - using std::swap; +void BlockHeader::InternalSwap(BlockHeader* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1083,98 +1262,121 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ProofOfWork::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_._has_bits_); }; -ProofOfWork::ProofOfWork(::google::protobuf::Arena* arena) +ProofOfWork::ProofOfWork(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ProofOfWork_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.ProofOfWork) } -inline PROTOBUF_NDEBUG_INLINE ProofOfWork::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : pow_data_(arena, from.pow_data_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ProofOfWork::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ProofOfWork& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + pow_data_(arena, from.pow_data_) {} ProofOfWork::ProofOfWork( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ProofOfWork& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ProofOfWork_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ProofOfWork* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.pow_algo_ = from._impl_.pow_algo_; // @@protoc_insertion_point(copy_constructor:tari.rpc.ProofOfWork) } -inline PROTOBUF_NDEBUG_INLINE ProofOfWork::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE ProofOfWork::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : pow_data_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + pow_data_(arena) {} -inline void ProofOfWork::SharedCtor(::_pb::Arena* arena) { +inline void ProofOfWork::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.pow_algo_ = {}; } ProofOfWork::~ProofOfWork() { // @@protoc_insertion_point(destructor:tari.rpc.ProofOfWork) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void ProofOfWork::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.pow_data_.Destroy(); - _impl_.~Impl_(); +inline void ProofOfWork::SharedDtor(MessageLite& self) { + ProofOfWork& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.pow_data_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL ProofOfWork::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ProofOfWork(arena); +} +constexpr auto ProofOfWork::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ProofOfWork), + alignof(ProofOfWork)); +} +constexpr auto ProofOfWork::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ProofOfWork_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.pow_data_.ClearToEmpty(); - _impl_.pow_algo_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ProofOfWork::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ProofOfWork::ByteSizeLong, + &ProofOfWork::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_._cached_size_), + false, + }, + &ProofOfWork::kDescriptorMethods, + &descriptor_table_block_2eproto, + nullptr, // tracker + }; } -const char* ProofOfWork::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ProofOfWork_class_data_ = + ProofOfWork::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ProofOfWork::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ProofOfWork_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ProofOfWork_class_data_.tc_table); + return ProofOfWork_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ProofOfWork::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +ProofOfWork::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_._has_bits_), 0, // no _extensions_ 4, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -1183,7 +1385,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ProofOfWork::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ProofOfWork_default_instance_._instance, + ProofOfWork_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::ProofOfWork>(), // to_prefetch @@ -1191,78 +1394,117 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ProofOfWork::_table_ = { }, {{ // bytes pow_data = 4; {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_.pow_data_)}}, + {34, 0, 0, PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_.pow_data_)}}, // uint64 pow_algo = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ProofOfWork, _impl_.pow_algo_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_.pow_algo_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ProofOfWork, _impl_.pow_algo_), 1>(), + {8, 1, 0, PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_.pow_algo_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 pow_algo = 1; - {PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_.pow_algo_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_.pow_algo_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes pow_data = 4; - {PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_.pow_data_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_.pow_data_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void ProofOfWork::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ProofOfWork) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* ProofOfWork::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.pow_data_.ClearNonDefaultToEmpty(); + } + _impl_.pow_algo_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ProofOfWork::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ProofOfWork& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ProofOfWork::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ProofOfWork& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ProofOfWork) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 pow_algo = 1; - if (this->_internal_pow_algo() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_pow_algo(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_pow_algo() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_pow_algo(), target); + } } // bytes pow_data = 4; - if (!this->_internal_pow_data().empty()) { - const std::string& _s = this->_internal_pow_data(); - target = stream->WriteBytesMaybeAliased(4, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_pow_data().empty()) { + const ::std::string& _s = this_._internal_pow_data(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ProofOfWork) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ProofOfWork::ByteSizeLong(const MessageLite& base) { + const ProofOfWork& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t ProofOfWork::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ProofOfWork) + const ProofOfWork& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ProofOfWork) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes pow_data = 4; - if (!this->_internal_pow_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_pow_data()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes pow_data = 4; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_pow_data().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_pow_data()); + } + } + // uint64 pow_algo = 1; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_pow_algo() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_pow_algo()); + } + } } - - // uint64 pow_algo = 1; - if (this->_internal_pow_algo() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_pow_algo()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1271,12 +1513,24 @@ void ProofOfWork::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goo ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_pow_data().empty()) { - _this->_internal_set_pow_data(from._internal_pow_data()); - } - if (from._internal_pow_algo() != 0) { - _this->_impl_.pow_algo_ = from._impl_.pow_algo_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_pow_data().empty()) { + _this->_internal_set_pow_data(from._internal_pow_data()); + } else { + if (_this->_impl_.pow_data_.IsDefault()) { + _this->_internal_set_pow_data(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_pow_algo() != 0) { + _this->_impl_.pow_algo_ = from._impl_.pow_algo_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1287,95 +1541,117 @@ void ProofOfWork::CopyFrom(const ProofOfWork& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ProofOfWork::IsInitialized() const { - return true; -} -void ProofOfWork::InternalSwap(ProofOfWork* PROTOBUF_RESTRICT other) { - using std::swap; +void ProofOfWork::InternalSwap(ProofOfWork* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pow_data_, &other->_impl_.pow_data_, arena); - swap(_impl_.pow_algo_, other->_impl_.pow_algo_); + swap(_impl_.pow_algo_, other->_impl_.pow_algo_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class PowAlgo::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PowAlgo, _impl_._has_bits_); }; -PowAlgo::PowAlgo(::google::protobuf::Arena* arena) +PowAlgo::PowAlgo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, PowAlgo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.PowAlgo) } PowAlgo::PowAlgo( - ::google::protobuf::Arena* arena, const PowAlgo& from) - : PowAlgo(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PowAlgo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, PowAlgo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE PowAlgo::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE PowAlgo::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void PowAlgo::SharedCtor(::_pb::Arena* arena) { +inline void PowAlgo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.pow_algo_ = {}; } PowAlgo::~PowAlgo() { // @@protoc_insertion_point(destructor:tari.rpc.PowAlgo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void PowAlgo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void PowAlgo::SharedDtor(MessageLite& self) { + PowAlgo& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL PowAlgo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PowAlgo(arena); +} +constexpr auto PowAlgo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PowAlgo), + alignof(PowAlgo)); +} +constexpr auto PowAlgo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_PowAlgo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.pow_algo_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PowAlgo::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &PowAlgo::ByteSizeLong, + &PowAlgo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PowAlgo, _impl_._cached_size_), + false, + }, + &PowAlgo::kDescriptorMethods, + &descriptor_table_block_2eproto, + nullptr, // tracker + }; } -const char* PowAlgo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull PowAlgo_class_data_ = + PowAlgo::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PowAlgo::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&PowAlgo_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(PowAlgo_class_data_.tc_table); + return PowAlgo_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> PowAlgo::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +PowAlgo::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(PowAlgo, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -1384,68 +1660,100 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> PowAlgo::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_PowAlgo_default_instance_._instance, + PowAlgo_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PowAlgo, _impl_.pow_algo_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PowAlgo, _impl_.pow_algo_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(PowAlgo, _impl_.pow_algo_)}}, }}, {{ 65535, 65535 }}, {{ // .tari.rpc.PowAlgo.PowAlgos pow_algo = 1; - {PROTOBUF_FIELD_OFFSET(PowAlgo, _impl_.pow_algo_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + {PROTOBUF_FIELD_OFFSET(PowAlgo, _impl_.pow_algo_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void PowAlgo::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.PowAlgo) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* PowAlgo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.pow_algo_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PowAlgo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PowAlgo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PowAlgo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PowAlgo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.PowAlgo) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // .tari.rpc.PowAlgo.PowAlgos pow_algo = 1; - if (this->_internal_pow_algo() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_pow_algo(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_pow_algo() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_pow_algo(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.PowAlgo) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PowAlgo::ByteSizeLong(const MessageLite& base) { + const PowAlgo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t PowAlgo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.PowAlgo) + const PowAlgo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.PowAlgo) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.PowAlgo.PowAlgos pow_algo = 1; - if (this->_internal_pow_algo() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_pow_algo()); + { + // .tari.rpc.PowAlgo.PowAlgos pow_algo = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_pow_algo() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_pow_algo()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1454,9 +1762,13 @@ void PowAlgo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_pow_algo() != 0) { - _this->_impl_.pow_algo_ = from._impl_.pow_algo_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_pow_algo() != 0) { + _this->_impl_.pow_algo_ = from._impl_.pow_algo_; + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1467,71 +1779,77 @@ void PowAlgo::CopyFrom(const PowAlgo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PowAlgo::IsInitialized() const { - return true; -} -void PowAlgo::InternalSwap(PowAlgo* PROTOBUF_RESTRICT other) { - using std::swap; +void PowAlgo::InternalSwap(PowAlgo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.pow_algo_, other->_impl_.pow_algo_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class Block::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Block, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(Block, _impl_._has_bits_); }; void Block::clear_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.body_ != nullptr) _impl_.body_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; } -Block::Block(::google::protobuf::Arena* arena) +Block::Block(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, Block_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.Block) } -inline PROTOBUF_NDEBUG_INLINE Block::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE Block::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::Block& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} Block::Block( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Block& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, Block_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE Block* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _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; + _impl_.header_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.header_) + : nullptr; + _impl_.body_ = ((cached_has_bits & 0x00000002u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.body_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.Block) } -inline PROTOBUF_NDEBUG_INLINE Block::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE Block::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void Block::SharedCtor(::_pb::Arena* arena) { +inline void Block::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, header_), @@ -1542,61 +1860,62 @@ inline void Block::SharedCtor(::_pb::Arena* arena) { } Block::~Block() { // @@protoc_insertion_point(destructor:tari.rpc.Block) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void Block::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.header_; - delete _impl_.body_; - _impl_.~Impl_(); +inline void Block::SharedDtor(MessageLite& self) { + Block& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.header_; + delete this_._impl_.body_; + this_._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, - }, +inline void* PROTOBUF_NONNULL Block::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Block(arena); +} +constexpr auto Block::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Block), + alignof(Block)); +} +constexpr auto Block::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Block_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.header_ != nullptr); - _impl_.header_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.body_ != nullptr); - _impl_.body_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Block::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Block::ByteSizeLong, + &Block::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Block, _impl_._cached_size_), + false, + }, + &Block::kDescriptorMethods, + &descriptor_table_block_2eproto, + nullptr, // tracker + }; } -const char* Block::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Block_class_data_ = + Block::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Block::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Block_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Block_class_data_.tc_table); + return Block_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> Block::_table_ = { +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +Block::_table_ = { { PROTOBUF_FIELD_OFFSET(Block, _impl_._has_bits_), 0, // no _extensions_ @@ -1607,7 +1926,8 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> Block::_table_ = { 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_Block_default_instance_._instance, + Block_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::Block>(), // to_prefetch @@ -1628,68 +1948,106 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> Block::_table_ = { // .tari.rpc.AggregateBody body = 2; {PROTOBUF_FIELD_OFFSET(Block, _impl_.body_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::BlockHeader>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::AggregateBody>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::BlockHeader>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::AggregateBody>()}, + }}, + {{ }}, }; - -::uint8_t* Block::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Block) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.BlockHeader header = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 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, *_impl_.body_, _impl_.body_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Block) - return target; -} - -::size_t Block::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.Block) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void Block::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.Block) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .tari.rpc.BlockHeader header = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.header_); + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.header_ != nullptr); + _impl_.header_->Clear(); } - - // .tari.rpc.AggregateBody body = 2; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.body_); + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(_impl_.body_ != nullptr); + _impl_.body_->Clear(); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Block::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Block& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Block::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Block& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Block) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.BlockHeader header = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.header_, this_._impl_.header_->GetCachedSize(), target, + stream); + } + + // .tari.rpc.AggregateBody body = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.body_, this_._impl_.body_->GetCachedSize(), target, + stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Block) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Block::ByteSizeLong(const MessageLite& base) { + const Block& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Block::ByteSizeLong() const { + const Block& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.Block) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // .tari.rpc.BlockHeader header = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.header_); + } + // .tari.rpc.AggregateBody body = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.body_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} void Block::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); @@ -1701,21 +2059,19 @@ void Block::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::p (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { 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_); + _this->_impl_.header_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.header_); } else { _this->_impl_.header_->MergeFrom(*from._impl_.header_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { 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_); + _this->_impl_.body_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.body_); } else { _this->_impl_.body_->MergeFrom(*from._impl_.body_); } @@ -1732,12 +2088,9 @@ void Block::CopyFrom(const Block& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Block::IsInitialized() const { - return true; -} -void Block::InternalSwap(Block* PROTOBUF_RESTRICT other) { - using std::swap; +void Block::InternalSwap(Block* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< @@ -1749,53 +2102,61 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class HistoricalBlock::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_._has_bits_); }; -HistoricalBlock::HistoricalBlock(::google::protobuf::Arena* arena) +HistoricalBlock::HistoricalBlock(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, HistoricalBlock_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.HistoricalBlock) } -inline PROTOBUF_NDEBUG_INLINE HistoricalBlock::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE HistoricalBlock::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::HistoricalBlock& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} HistoricalBlock::HistoricalBlock( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HistoricalBlock& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, HistoricalBlock_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE HistoricalBlock* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.block_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Block>( - arena, *from._impl_.block_) - : nullptr; + _impl_.block_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.block_) + : nullptr; _impl_.confirmations_ = from._impl_.confirmations_; // @@protoc_insertion_point(copy_constructor:tari.rpc.HistoricalBlock) } -inline PROTOBUF_NDEBUG_INLINE HistoricalBlock::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE HistoricalBlock::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void HistoricalBlock::SharedCtor(::_pb::Arena* arena) { +inline void HistoricalBlock::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, block_), @@ -1806,55 +2167,61 @@ inline void HistoricalBlock::SharedCtor(::_pb::Arena* arena) { } HistoricalBlock::~HistoricalBlock() { // @@protoc_insertion_point(destructor:tari.rpc.HistoricalBlock) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void HistoricalBlock::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.block_; - _impl_.~Impl_(); +inline void HistoricalBlock::SharedDtor(MessageLite& self) { + HistoricalBlock& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.block_; + this_._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, - }, +inline void* PROTOBUF_NONNULL HistoricalBlock::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) HistoricalBlock(arena); +} +constexpr auto HistoricalBlock::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(HistoricalBlock), + alignof(HistoricalBlock)); +} +constexpr auto HistoricalBlock::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_HistoricalBlock_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.block_ != nullptr); - _impl_.block_->Clear(); - } - _impl_.confirmations_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &HistoricalBlock::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &HistoricalBlock::ByteSizeLong, + &HistoricalBlock::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_._cached_size_), + false, + }, + &HistoricalBlock::kDescriptorMethods, + &descriptor_table_block_2eproto, + nullptr, // tracker + }; } -const char* HistoricalBlock::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull HistoricalBlock_class_data_ = + HistoricalBlock::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +HistoricalBlock::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&HistoricalBlock_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(HistoricalBlock_class_data_.tc_table); + return HistoricalBlock_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> HistoricalBlock::_table_ = { +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +HistoricalBlock::_table_ = { { PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_._has_bits_), 0, // no _extensions_ @@ -1865,7 +2232,8 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> HistoricalBlock::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_HistoricalBlock_default_instance_._instance, + HistoricalBlock_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::HistoricalBlock>(), // to_prefetch @@ -1875,78 +2243,116 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> HistoricalBlock::_table_ = { {::_pbi::TcParser::FastMtS1, {18, 0, 0, PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_.block_)}}, // uint64 confirmations = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HistoricalBlock, _impl_.confirmations_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_.confirmations_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HistoricalBlock, _impl_.confirmations_), 1>(), + {8, 1, 0, PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_.confirmations_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 confirmations = 1; - {PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_.confirmations_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_.confirmations_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // .tari.rpc.Block block = 2; {PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_.block_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Block>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Block>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void HistoricalBlock::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.HistoricalBlock) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* HistoricalBlock::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.block_ != nullptr); + _impl_.block_->Clear(); + } + _impl_.confirmations_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL HistoricalBlock::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const HistoricalBlock& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL HistoricalBlock::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const HistoricalBlock& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.HistoricalBlock) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 confirmations = 1; - if (this->_internal_confirmations() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_confirmations(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_confirmations() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_confirmations(), target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.Block block = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.block_, _impl_.block_->GetCachedSize(), target, stream); + 2, *this_._impl_.block_, this_._impl_.block_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.HistoricalBlock) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t HistoricalBlock::ByteSizeLong(const MessageLite& base) { + const HistoricalBlock& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t HistoricalBlock::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.HistoricalBlock) + const HistoricalBlock& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.HistoricalBlock) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.Block block = 2; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.block_); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // .tari.rpc.Block block = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.block_); + } + // uint64 confirmations = 1; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_confirmations() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_confirmations()); + } + } } - - // uint64 confirmations = 1; - if (this->_internal_confirmations() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_confirmations()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1957,17 +2363,20 @@ void HistoricalBlock::MergeImpl(::google::protobuf::MessageLite& to_msg, const : (void) cached_has_bits; 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 ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(from._impl_.block_ != nullptr); + if (_this->_impl_.block_ == nullptr) { + _this->_impl_.block_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.block_); + } else { + _this->_impl_.block_->MergeFrom(*from._impl_.block_); + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_confirmations() != 0) { + _this->_impl_.confirmations_ = from._impl_.confirmations_; + } } - } - if (from._internal_confirmations() != 0) { - _this->_impl_.confirmations_ = from._impl_.confirmations_; } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); @@ -1980,12 +2389,9 @@ void HistoricalBlock::CopyFrom(const HistoricalBlock& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool HistoricalBlock::IsInitialized() const { - return true; -} -void HistoricalBlock::InternalSwap(HistoricalBlock* PROTOBUF_RESTRICT other) { - using std::swap; +void HistoricalBlock::InternalSwap(HistoricalBlock* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< @@ -1997,27 +2403,31 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class NewBlockHeaderTemplate::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_._has_bits_); }; -NewBlockHeaderTemplate::NewBlockHeaderTemplate(::google::protobuf::Arena* arena) +NewBlockHeaderTemplate::NewBlockHeaderTemplate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NewBlockHeaderTemplate_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.NewBlockHeaderTemplate) } -inline PROTOBUF_NDEBUG_INLINE NewBlockHeaderTemplate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE NewBlockHeaderTemplate::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::NewBlockHeaderTemplate& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, prev_hash_(arena, from.prev_hash_), @@ -2025,18 +2435,22 @@ inline PROTOBUF_NDEBUG_INLINE NewBlockHeaderTemplate::Impl_::Impl_( total_script_offset_(arena, from.total_script_offset_) {} NewBlockHeaderTemplate::NewBlockHeaderTemplate( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NewBlockHeaderTemplate& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NewBlockHeaderTemplate_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE NewBlockHeaderTemplate* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pow_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ProofOfWork>( - arena, *from._impl_.pow_) - : nullptr; + _impl_.pow_ = ((cached_has_bits & 0x00000008u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.pow_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, height_), reinterpret_cast(&from._impl_) + @@ -2047,15 +2461,15 @@ NewBlockHeaderTemplate::NewBlockHeaderTemplate( // @@protoc_insertion_point(copy_constructor:tari.rpc.NewBlockHeaderTemplate) } -inline PROTOBUF_NDEBUG_INLINE NewBlockHeaderTemplate::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE NewBlockHeaderTemplate::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, prev_hash_(arena), total_kernel_offset_(arena), total_script_offset_(arena) {} -inline void NewBlockHeaderTemplate::SharedCtor(::_pb::Arena* arena) { +inline void NewBlockHeaderTemplate::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, pow_), @@ -2066,63 +2480,64 @@ inline void NewBlockHeaderTemplate::SharedCtor(::_pb::Arena* arena) { } NewBlockHeaderTemplate::~NewBlockHeaderTemplate() { // @@protoc_insertion_point(destructor:tari.rpc.NewBlockHeaderTemplate) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void NewBlockHeaderTemplate::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.prev_hash_.Destroy(); - _impl_.total_kernel_offset_.Destroy(); - _impl_.total_script_offset_.Destroy(); - delete _impl_.pow_; - _impl_.~Impl_(); +inline void NewBlockHeaderTemplate::SharedDtor(MessageLite& self) { + NewBlockHeaderTemplate& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.prev_hash_.Destroy(); + this_._impl_.total_kernel_offset_.Destroy(); + this_._impl_.total_script_offset_.Destroy(); + delete this_._impl_.pow_; + this_._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, - }, +inline void* PROTOBUF_NONNULL NewBlockHeaderTemplate::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) NewBlockHeaderTemplate(arena); +} +constexpr auto NewBlockHeaderTemplate::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(NewBlockHeaderTemplate), + alignof(NewBlockHeaderTemplate)); +} +constexpr auto NewBlockHeaderTemplate::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_NewBlockHeaderTemplate_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.prev_hash_.ClearToEmpty(); - _impl_.total_kernel_offset_.ClearToEmpty(); - _impl_.total_script_offset_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.pow_ != nullptr); - _impl_.pow_->Clear(); - } - ::memset(&_impl_.height_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.version_) - - reinterpret_cast(&_impl_.height_)) + sizeof(_impl_.version_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &NewBlockHeaderTemplate::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &NewBlockHeaderTemplate::ByteSizeLong, + &NewBlockHeaderTemplate::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_._cached_size_), + false, + }, + &NewBlockHeaderTemplate::kDescriptorMethods, + &descriptor_table_block_2eproto, + nullptr, // tracker + }; } -const char* NewBlockHeaderTemplate::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull NewBlockHeaderTemplate_class_data_ = + NewBlockHeaderTemplate::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +NewBlockHeaderTemplate::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&NewBlockHeaderTemplate_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(NewBlockHeaderTemplate_class_data_.tc_table); + return NewBlockHeaderTemplate_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 1, 0, 2> NewBlockHeaderTemplate::_table_ = { +const ::_pbi::TcParseTable<3, 6, 1, 0, 2> +NewBlockHeaderTemplate::_table_ = { { PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_._has_bits_), 0, // no _extensions_ @@ -2133,7 +2548,8 @@ const ::_pbi::TcParseTable<3, 6, 1, 0, 2> NewBlockHeaderTemplate::_table_ = { 6, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_NewBlockHeaderTemplate_default_instance_._instance, + NewBlockHeaderTemplate_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockHeaderTemplate>(), // to_prefetch @@ -2141,155 +2557,220 @@ const ::_pbi::TcParseTable<3, 6, 1, 0, 2> NewBlockHeaderTemplate::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint32 version = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NewBlockHeaderTemplate, _impl_.version_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.version_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NewBlockHeaderTemplate, _impl_.version_), 5>(), + {8, 5, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.version_)}}, // uint64 height = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NewBlockHeaderTemplate, _impl_.height_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NewBlockHeaderTemplate, _impl_.height_), 4>(), + {16, 4, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.height_)}}, // bytes prev_hash = 3; {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.prev_hash_)}}, + {26, 0, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.prev_hash_)}}, // bytes total_kernel_offset = 4; {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.total_kernel_offset_)}}, + {34, 1, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.total_kernel_offset_)}}, // .tari.rpc.ProofOfWork pow = 5; {::_pbi::TcParser::FastMtS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.pow_)}}, + {42, 3, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.pow_)}}, {::_pbi::TcParser::MiniParse, {}}, // bytes total_script_offset = 7; {::_pbi::TcParser::FastBS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.total_script_offset_)}}, + {58, 2, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.total_script_offset_)}}, }}, {{ 65535, 65535 }}, {{ // uint32 version = 1; - {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.version_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint64 height = 2; - {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.height_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes prev_hash = 3; - {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.prev_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.prev_hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes total_kernel_offset = 4; - {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.total_kernel_offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.total_kernel_offset_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.ProofOfWork pow = 5; - {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.pow_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.pow_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes total_script_offset = 7; - {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.total_script_offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::ProofOfWork>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.total_script_offset_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::ProofOfWork>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void NewBlockHeaderTemplate::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockHeaderTemplate) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* NewBlockHeaderTemplate::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.prev_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.total_kernel_offset_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.total_script_offset_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + ABSL_DCHECK(_impl_.pow_ != nullptr); + _impl_.pow_->Clear(); + } + } + if ((cached_has_bits & 0x00000030u) != 0) { + ::memset(&_impl_.height_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.version_) - + reinterpret_cast(&_impl_.height_)) + sizeof(_impl_.version_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL NewBlockHeaderTemplate::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const NewBlockHeaderTemplate& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL NewBlockHeaderTemplate::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const NewBlockHeaderTemplate& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NewBlockHeaderTemplate) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint32 version = 1; - if (this->_internal_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_version(), target); + if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { + if (this_._internal_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_version(), target); + } } // uint64 height = 2; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (this_._internal_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_height(), target); + } } // bytes prev_hash = 3; - if (!this->_internal_prev_hash().empty()) { - const std::string& _s = this->_internal_prev_hash(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_prev_hash().empty()) { + const ::std::string& _s = this_._internal_prev_hash(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } // bytes total_kernel_offset = 4; - if (!this->_internal_total_kernel_offset().empty()) { - const std::string& _s = this->_internal_total_kernel_offset(); - target = stream->WriteBytesMaybeAliased(4, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_total_kernel_offset().empty()) { + const ::std::string& _s = this_._internal_total_kernel_offset(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.ProofOfWork pow = 5; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *_impl_.pow_, _impl_.pow_->GetCachedSize(), target, stream); + 5, *this_._impl_.pow_, this_._impl_.pow_->GetCachedSize(), target, + stream); } // bytes total_script_offset = 7; - if (!this->_internal_total_script_offset().empty()) { - const std::string& _s = this->_internal_total_script_offset(); - target = stream->WriteBytesMaybeAliased(7, _s, target); + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_total_script_offset().empty()) { + const ::std::string& _s = this_._internal_total_script_offset(); + target = stream->WriteBytesMaybeAliased(7, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NewBlockHeaderTemplate) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t NewBlockHeaderTemplate::ByteSizeLong(const MessageLite& base) { + const NewBlockHeaderTemplate& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t NewBlockHeaderTemplate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockHeaderTemplate) + const NewBlockHeaderTemplate& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockHeaderTemplate) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes prev_hash = 3; - if (!this->_internal_prev_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_prev_hash()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000003fu) != 0) { + // bytes prev_hash = 3; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_prev_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_prev_hash()); + } + } + // bytes total_kernel_offset = 4; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_total_kernel_offset().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_total_kernel_offset()); + } + } + // bytes total_script_offset = 7; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_total_script_offset().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_total_script_offset()); + } + } + // .tari.rpc.ProofOfWork pow = 5; + if ((cached_has_bits & 0x00000008u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.pow_); + } + // uint64 height = 2; + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_height()); + } + } + // uint32 version = 1; + if ((cached_has_bits & 0x00000020u) != 0) { + if (this_._internal_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_version()); + } + } } - - // bytes total_kernel_offset = 4; - if (!this->_internal_total_kernel_offset().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_total_kernel_offset()); - } - - // bytes total_script_offset = 7; - if (!this->_internal_total_script_offset().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_total_script_offset()); - } - - // .tari.rpc.ProofOfWork pow = 5; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pow_); - } - - // uint64 height = 2; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - // uint32 version = 1; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2299,30 +2780,53 @@ void NewBlockHeaderTemplate::MergeImpl(::google::protobuf::MessageLite& to_msg, ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_prev_hash().empty()) { - _this->_internal_set_prev_hash(from._internal_prev_hash()); - } - if (!from._internal_total_kernel_offset().empty()) { - _this->_internal_set_total_kernel_offset(from._internal_total_kernel_offset()); - } - if (!from._internal_total_script_offset().empty()) { - _this->_internal_set_total_script_offset(from._internal_total_script_offset()); - } 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 ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_prev_hash().empty()) { + _this->_internal_set_prev_hash(from._internal_prev_hash()); + } else { + if (_this->_impl_.prev_hash_.IsDefault()) { + _this->_internal_set_prev_hash(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_total_kernel_offset().empty()) { + _this->_internal_set_total_kernel_offset(from._internal_total_kernel_offset()); + } else { + if (_this->_impl_.total_kernel_offset_.IsDefault()) { + _this->_internal_set_total_kernel_offset(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_total_script_offset().empty()) { + _this->_internal_set_total_script_offset(from._internal_total_script_offset()); + } else { + if (_this->_impl_.total_script_offset_.IsDefault()) { + _this->_internal_set_total_script_offset(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + ABSL_DCHECK(from._impl_.pow_ != nullptr); + if (_this->_impl_.pow_ == nullptr) { + _this->_impl_.pow_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.pow_); + } else { + _this->_impl_.pow_->MergeFrom(*from._impl_.pow_); + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (from._internal_height() != 0) { + _this->_impl_.height_ = from._impl_.height_; + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (from._internal_version() != 0) { + _this->_impl_.version_ = from._impl_.version_; + } } - } - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; - } - if (from._internal_version() != 0) { - _this->_impl_.version_ = from._impl_.version_; } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); @@ -2335,12 +2839,9 @@ void NewBlockHeaderTemplate::CopyFrom(const NewBlockHeaderTemplate& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NewBlockHeaderTemplate::IsInitialized() const { - return true; -} -void NewBlockHeaderTemplate::InternalSwap(NewBlockHeaderTemplate* PROTOBUF_RESTRICT other) { - using std::swap; +void NewBlockHeaderTemplate::InternalSwap(NewBlockHeaderTemplate* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2357,61 +2858,69 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class NewBlockTemplate::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_._has_bits_); }; void NewBlockTemplate::clear_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.body_ != nullptr) _impl_.body_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; } -NewBlockTemplate::NewBlockTemplate(::google::protobuf::Arena* arena) +NewBlockTemplate::NewBlockTemplate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NewBlockTemplate_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.NewBlockTemplate) } -inline PROTOBUF_NDEBUG_INLINE NewBlockTemplate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE NewBlockTemplate::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::NewBlockTemplate& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} NewBlockTemplate::NewBlockTemplate( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NewBlockTemplate& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NewBlockTemplate_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE NewBlockTemplate* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _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; + _impl_.header_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.header_) + : nullptr; + _impl_.body_ = ((cached_has_bits & 0x00000002u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.body_) + : nullptr; _impl_.is_mempool_in_sync_ = from._impl_.is_mempool_in_sync_; // @@protoc_insertion_point(copy_constructor:tari.rpc.NewBlockTemplate) } -inline PROTOBUF_NDEBUG_INLINE NewBlockTemplate::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE NewBlockTemplate::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void NewBlockTemplate::SharedCtor(::_pb::Arena* arena) { +inline void NewBlockTemplate::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, header_), @@ -2422,62 +2931,62 @@ inline void NewBlockTemplate::SharedCtor(::_pb::Arena* arena) { } NewBlockTemplate::~NewBlockTemplate() { // @@protoc_insertion_point(destructor:tari.rpc.NewBlockTemplate) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void NewBlockTemplate::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.header_; - delete _impl_.body_; - _impl_.~Impl_(); +inline void NewBlockTemplate::SharedDtor(MessageLite& self) { + NewBlockTemplate& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.header_; + delete this_._impl_.body_; + this_._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, - }, +inline void* PROTOBUF_NONNULL NewBlockTemplate::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) NewBlockTemplate(arena); +} +constexpr auto NewBlockTemplate::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(NewBlockTemplate), + alignof(NewBlockTemplate)); +} +constexpr auto NewBlockTemplate::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_NewBlockTemplate_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.header_ != nullptr); - _impl_.header_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.body_ != nullptr); - _impl_.body_->Clear(); - } - } - _impl_.is_mempool_in_sync_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &NewBlockTemplate::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &NewBlockTemplate::ByteSizeLong, + &NewBlockTemplate::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_._cached_size_), + false, + }, + &NewBlockTemplate::kDescriptorMethods, + &descriptor_table_block_2eproto, + nullptr, // tracker + }; } -const char* NewBlockTemplate::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull NewBlockTemplate_class_data_ = + NewBlockTemplate::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +NewBlockTemplate::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&NewBlockTemplate_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(NewBlockTemplate_class_data_.tc_table); + return NewBlockTemplate_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplate::_table_ = { +const ::_pbi::TcParseTable<2, 3, 2, 0, 2> +NewBlockTemplate::_table_ = { { PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_._has_bits_), 0, // no _extensions_ @@ -2488,7 +2997,8 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplate::_table_ = { 3, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_NewBlockTemplate_default_instance_._instance, + NewBlockTemplate_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplate>(), // to_prefetch @@ -2502,8 +3012,8 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplate::_table_ = { {::_pbi::TcParser::FastMtS1, {18, 1, 1, PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_.body_)}}, // bool is_mempool_in_sync = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_.is_mempool_in_sync_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_.is_mempool_in_sync_)}}, }}, {{ 65535, 65535 }}, {{ @@ -2514,82 +3024,124 @@ const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplate::_table_ = { {PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_.body_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bool is_mempool_in_sync = 3; - {PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_.is_mempool_in_sync_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::NewBlockHeaderTemplate>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::AggregateBody>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_.is_mempool_in_sync_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::NewBlockHeaderTemplate>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::AggregateBody>()}, + }}, + {{ }}, }; - -::uint8_t* NewBlockTemplate::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NewBlockTemplate) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.NewBlockHeaderTemplate header = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 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, *_impl_.body_, _impl_.body_->GetCachedSize(), target, stream); - } - - // bool is_mempool_in_sync = 3; - if (this->_internal_is_mempool_in_sync() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_is_mempool_in_sync(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NewBlockTemplate) - return target; -} - -::size_t NewBlockTemplate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockTemplate) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void NewBlockTemplate::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockTemplate) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .tari.rpc.NewBlockHeaderTemplate header = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.header_); + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.header_ != nullptr); + _impl_.header_->Clear(); } - - // .tari.rpc.AggregateBody body = 2; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.body_); + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(_impl_.body_ != nullptr); + _impl_.body_->Clear(); } - } - // bool is_mempool_in_sync = 3; - if (this->_internal_is_mempool_in_sync() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _impl_.is_mempool_in_sync_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL NewBlockTemplate::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const NewBlockTemplate& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL NewBlockTemplate::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const NewBlockTemplate& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NewBlockTemplate) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.NewBlockHeaderTemplate header = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.header_, this_._impl_.header_->GetCachedSize(), target, + stream); + } + + // .tari.rpc.AggregateBody body = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.body_, this_._impl_.body_->GetCachedSize(), target, + stream); + } + + // bool is_mempool_in_sync = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_is_mempool_in_sync() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_is_mempool_in_sync(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NewBlockTemplate) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t NewBlockTemplate::ByteSizeLong(const MessageLite& base) { + const NewBlockTemplate& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t NewBlockTemplate::ByteSizeLong() const { + const NewBlockTemplate& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockTemplate) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // .tari.rpc.NewBlockHeaderTemplate header = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.header_); + } + // .tari.rpc.AggregateBody body = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.body_); + } + // bool is_mempool_in_sync = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_is_mempool_in_sync() != 0) { + total_size += 2; + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} void NewBlockTemplate::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); @@ -2601,28 +3153,28 @@ void NewBlockTemplate::MergeImpl(::google::protobuf::MessageLite& to_msg, const (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { 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_); + _this->_impl_.header_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.header_); } else { _this->_impl_.header_->MergeFrom(*from._impl_.header_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { 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_); + _this->_impl_.body_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.body_); } else { _this->_impl_.body_->MergeFrom(*from._impl_.body_); } } - } - if (from._internal_is_mempool_in_sync() != 0) { - _this->_impl_.is_mempool_in_sync_ = from._impl_.is_mempool_in_sync_; + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_is_mempool_in_sync() != 0) { + _this->_impl_.is_mempool_in_sync_ = from._impl_.is_mempool_in_sync_; + } + } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); @@ -2635,12 +3187,9 @@ void NewBlockTemplate::CopyFrom(const NewBlockTemplate& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NewBlockTemplate::IsInitialized() const { - return true; -} -void NewBlockTemplate::InternalSwap(NewBlockTemplate* PROTOBUF_RESTRICT other) { - using std::swap; +void NewBlockTemplate::InternalSwap(NewBlockTemplate* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< @@ -2652,9 +3201,7 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -2664,8 +3211,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{}); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ [[maybe_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 b579dd2..b20c69e 100644 --- a/external/src/Tari/proto/gRPC/block.pb.h +++ b/external/src/Tari/proto/gRPC/block.pb.h @@ -1,22 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: block.proto -// Protobuf C++ Version: 5.26.1 +// Protobuf C++ Version: 6.31.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_block_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_block_2eproto_2epb_2eh +#ifndef block_2eproto_2epb_2eh +#define block_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026001 +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6031001 #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" #include "google/protobuf/arenastring.h" @@ -25,6 +25,7 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/generated_enum_reflection.h" @@ -40,7 +41,8 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal } // namespace protobuf } // namespace google @@ -49,35 +51,48 @@ class AnyMetadata; struct TableStruct_block_2eproto { static const ::uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_block_2eproto; +extern "C" { +extern const ::google::protobuf::internal::DescriptorTable descriptor_table_block_2eproto; +} // extern "C" namespace tari { namespace rpc { +enum PowAlgo_PowAlgos : int; +extern const uint32_t PowAlgo_PowAlgos_internal_data_[]; class Block; struct BlockDefaultTypeInternal; extern BlockDefaultTypeInternal _Block_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Block_class_data_; class BlockHeader; struct BlockHeaderDefaultTypeInternal; extern BlockHeaderDefaultTypeInternal _BlockHeader_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull BlockHeader_class_data_; class HistoricalBlock; struct HistoricalBlockDefaultTypeInternal; extern HistoricalBlockDefaultTypeInternal _HistoricalBlock_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull HistoricalBlock_class_data_; class NewBlockHeaderTemplate; struct NewBlockHeaderTemplateDefaultTypeInternal; extern NewBlockHeaderTemplateDefaultTypeInternal _NewBlockHeaderTemplate_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull NewBlockHeaderTemplate_class_data_; class NewBlockTemplate; struct NewBlockTemplateDefaultTypeInternal; extern NewBlockTemplateDefaultTypeInternal _NewBlockTemplate_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull NewBlockTemplate_class_data_; class PowAlgo; struct PowAlgoDefaultTypeInternal; extern PowAlgoDefaultTypeInternal _PowAlgo_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull PowAlgo_class_data_; class ProofOfWork; struct ProofOfWorkDefaultTypeInternal; extern ProofOfWorkDefaultTypeInternal _ProofOfWork_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ProofOfWork_class_data_; } // namespace rpc } // namespace tari namespace google { namespace protobuf { +template <> +internal::EnumTraitsT<::tari::rpc::PowAlgo_PowAlgos_internal_data_> + internal::EnumTraitsImpl::value<::tari::rpc::PowAlgo_PowAlgos>; } // namespace protobuf } // namespace google @@ -88,34 +103,37 @@ enum PowAlgo_PowAlgos : int { PowAlgo_PowAlgos_POW_ALGOS_SHA3X = 1, PowAlgo_PowAlgos_POW_ALGOS_RANDOMXT = 2, PowAlgo_PowAlgos_PowAlgo_PowAlgos_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), + ::std::numeric_limits<::int32_t>::min(), PowAlgo_PowAlgos_PowAlgo_PowAlgos_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ::std::numeric_limits<::int32_t>::max(), }; -bool PowAlgo_PowAlgos_IsValid(int value); extern const uint32_t PowAlgo_PowAlgos_internal_data_[]; -constexpr PowAlgo_PowAlgos PowAlgo_PowAlgos_PowAlgos_MIN = static_cast(0); -constexpr PowAlgo_PowAlgos PowAlgo_PowAlgos_PowAlgos_MAX = static_cast(2); -constexpr int PowAlgo_PowAlgos_PowAlgos_ARRAYSIZE = 2 + 1; -const ::google::protobuf::EnumDescriptor* -PowAlgo_PowAlgos_descriptor(); +inline constexpr PowAlgo_PowAlgos PowAlgo_PowAlgos_PowAlgos_MIN = + static_cast(0); +inline constexpr PowAlgo_PowAlgos PowAlgo_PowAlgos_PowAlgos_MAX = + static_cast(2); +inline bool PowAlgo_PowAlgos_IsValid(int value) { + return 0 <= value && value <= 2; +} +inline constexpr int PowAlgo_PowAlgos_PowAlgos_ARRAYSIZE = 2 + 1; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL PowAlgo_PowAlgos_descriptor(); template -const std::string& PowAlgo_PowAlgos_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, +const ::std::string& PowAlgo_PowAlgos_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, "Incorrect type passed to PowAlgos_Name()."); return PowAlgo_PowAlgos_Name(static_cast(value)); } template <> -inline const std::string& PowAlgo_PowAlgos_Name(PowAlgo_PowAlgos value) { - return ::google::protobuf::internal::NameOfDenseEnum( +inline const ::std::string& PowAlgo_PowAlgos_Name(PowAlgo_PowAlgos value) { + return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool PowAlgo_PowAlgos_Parse(absl::string_view name, PowAlgo_PowAlgos* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PowAlgo_PowAlgos_descriptor(), name, value); +inline bool PowAlgo_PowAlgos_Parse( + ::absl::string_view name, PowAlgo_PowAlgos* PROTOBUF_NONNULL value) { + return ::google::protobuf::internal::ParseNamedEnum(PowAlgo_PowAlgos_descriptor(), name, + value); } // =================================================================== @@ -127,25 +145,28 @@ class ProofOfWork final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ProofOfWork) */ { public: inline ProofOfWork() : ProofOfWork(nullptr) {} - ~ProofOfWork() override; + ~ProofOfWork() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ProofOfWork* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ProofOfWork)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR ProofOfWork( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : ProofOfWork(nullptr, ::std::move(from)) {} inline ProofOfWork& operator=(const ProofOfWork& from) { CopyFrom(from); return *this; } inline ProofOfWork& operator=(ProofOfWork&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -157,42 +178,35 @@ class ProofOfWork final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ProofOfWork& default_instance() { - return *internal_default_instance(); - } - static inline const ProofOfWork* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ProofOfWork_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(ProofOfWork& a, ProofOfWork& b) { a.Swap(&b); } - inline void Swap(ProofOfWork* other) { + inline void Swap(ProofOfWork* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ProofOfWork* other) { + void UnsafeArenaSwap(ProofOfWork* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -200,7 +214,7 @@ class ProofOfWork final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ProofOfWork* New(::google::protobuf::Arena* arena = nullptr) const final { + ProofOfWork* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -209,41 +223,63 @@ class ProofOfWork final : public ::google::protobuf::Message void MergeFrom(const ProofOfWork& from) { ProofOfWork::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ProofOfWork* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ProofOfWork* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.ProofOfWork"; } protected: - explicit ProofOfWork(::google::protobuf::Arena* arena); - ProofOfWork(::google::protobuf::Arena* arena, const ProofOfWork& from); - ProofOfWork(::google::protobuf::Arena* arena, ProofOfWork&& from) noexcept + explicit ProofOfWork(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ProofOfWork(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ProofOfWork& from); + ProofOfWork( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ProofOfWork&& from) noexcept : ProofOfWork(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -253,18 +289,17 @@ class ProofOfWork final : public ::google::protobuf::Message }; // bytes pow_data = 4; void clear_pow_data() ; - const std::string& pow_data() const; - template + const ::std::string& pow_data() const; + template void set_pow_data(Arg_&& arg, Args_... args); - std::string* mutable_pow_data(); - PROTOBUF_NODISCARD std::string* release_pow_data(); - void set_allocated_pow_data(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_pow_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_pow_data(); + void set_allocated_pow_data(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_pow_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pow_data( - const std::string& value); - std::string* _internal_mutable_pow_data(); + const ::std::string& _internal_pow_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_pow_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_pow_data(); public: // uint64 pow_algo = 1; @@ -281,10 +316,11 @@ class ProofOfWork final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -292,45 +328,53 @@ class ProofOfWork final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ProofOfWork& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr pow_data_; ::uint64_t pow_algo_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_block_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ProofOfWork_class_data_; // ------------------------------------------------------------------- class PowAlgo final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.PowAlgo) */ { public: inline PowAlgo() : PowAlgo(nullptr) {} - ~PowAlgo() override; + ~PowAlgo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PowAlgo* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PowAlgo)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR PowAlgo( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : PowAlgo(nullptr, ::std::move(from)) {} inline PowAlgo& operator=(const PowAlgo& from) { CopyFrom(from); return *this; } inline PowAlgo& operator=(PowAlgo&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -342,42 +386,35 @@ class PowAlgo final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const PowAlgo& default_instance() { - return *internal_default_instance(); - } - static inline const PowAlgo* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_PowAlgo_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(PowAlgo& a, PowAlgo& b) { a.Swap(&b); } - inline void Swap(PowAlgo* other) { + inline void Swap(PowAlgo* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PowAlgo* other) { + void UnsafeArenaSwap(PowAlgo* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -385,7 +422,7 @@ class PowAlgo final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - PowAlgo* New(::google::protobuf::Arena* arena = nullptr) const final { + PowAlgo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -394,41 +431,63 @@ class PowAlgo final : public ::google::protobuf::Message void MergeFrom(const PowAlgo& from) { PowAlgo::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(PowAlgo* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PowAlgo* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.PowAlgo"; } protected: - explicit PowAlgo(::google::protobuf::Arena* arena); - PowAlgo(::google::protobuf::Arena* arena, const PowAlgo& from); - PowAlgo(::google::protobuf::Arena* arena, PowAlgo&& from) noexcept + explicit PowAlgo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PowAlgo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PowAlgo& from); + PowAlgo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PowAlgo&& from) noexcept : PowAlgo(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- using PowAlgos = PowAlgo_PowAlgos; static constexpr PowAlgos POW_ALGOS_RANDOMXM = PowAlgo_PowAlgos_POW_ALGOS_RANDOMXM; @@ -440,14 +499,15 @@ class PowAlgo final : public ::google::protobuf::Message static constexpr PowAlgos PowAlgos_MIN = PowAlgo_PowAlgos_PowAlgos_MIN; static constexpr PowAlgos PowAlgos_MAX = PowAlgo_PowAlgos_PowAlgos_MAX; static constexpr int PowAlgos_ARRAYSIZE = PowAlgo_PowAlgos_PowAlgos_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* PowAlgos_descriptor() { + static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL PowAlgos_descriptor() { return PowAlgo_PowAlgos_descriptor(); } template - static inline const std::string& PowAlgos_Name(T value) { + static inline const ::std::string& PowAlgos_Name(T value) { return PowAlgo_PowAlgos_Name(value); } - static inline bool PowAlgos_Parse(absl::string_view name, PowAlgos* value) { + static inline bool PowAlgos_Parse( + ::absl::string_view name, PowAlgos* PROTOBUF_NONNULL value) { return PowAlgo_PowAlgos_Parse(name, value); } @@ -469,10 +529,11 @@ class PowAlgo final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -480,44 +541,52 @@ class PowAlgo final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PowAlgo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; int pow_algo_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_block_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull PowAlgo_class_data_; // ------------------------------------------------------------------- class NewBlockHeaderTemplate final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockHeaderTemplate) */ { public: inline NewBlockHeaderTemplate() : NewBlockHeaderTemplate(nullptr) {} - ~NewBlockHeaderTemplate() override; + ~NewBlockHeaderTemplate() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(NewBlockHeaderTemplate* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(NewBlockHeaderTemplate)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR NewBlockHeaderTemplate( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : NewBlockHeaderTemplate(nullptr, ::std::move(from)) {} inline NewBlockHeaderTemplate& operator=(const NewBlockHeaderTemplate& from) { CopyFrom(from); return *this; } inline NewBlockHeaderTemplate& operator=(NewBlockHeaderTemplate&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -529,42 +598,35 @@ class NewBlockHeaderTemplate final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const NewBlockHeaderTemplate& default_instance() { - return *internal_default_instance(); - } - static inline const NewBlockHeaderTemplate* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_NewBlockHeaderTemplate_default_instance_); } static constexpr int kIndexInFileMessages = 5; friend void swap(NewBlockHeaderTemplate& a, NewBlockHeaderTemplate& b) { a.Swap(&b); } - inline void Swap(NewBlockHeaderTemplate* other) { + inline void Swap(NewBlockHeaderTemplate* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NewBlockHeaderTemplate* other) { + void UnsafeArenaSwap(NewBlockHeaderTemplate* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -572,7 +634,7 @@ class NewBlockHeaderTemplate final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - NewBlockHeaderTemplate* New(::google::protobuf::Arena* arena = nullptr) const final { + NewBlockHeaderTemplate* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -581,41 +643,63 @@ class NewBlockHeaderTemplate final : public ::google::protobuf::Message void MergeFrom(const NewBlockHeaderTemplate& from) { NewBlockHeaderTemplate::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NewBlockHeaderTemplate* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(NewBlockHeaderTemplate* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockHeaderTemplate"; } protected: - explicit NewBlockHeaderTemplate(::google::protobuf::Arena* arena); - NewBlockHeaderTemplate(::google::protobuf::Arena* arena, const NewBlockHeaderTemplate& from); - NewBlockHeaderTemplate(::google::protobuf::Arena* arena, NewBlockHeaderTemplate&& from) noexcept + explicit NewBlockHeaderTemplate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + NewBlockHeaderTemplate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NewBlockHeaderTemplate& from); + NewBlockHeaderTemplate( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, NewBlockHeaderTemplate&& from) noexcept : NewBlockHeaderTemplate(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -629,65 +713,62 @@ class NewBlockHeaderTemplate final : public ::google::protobuf::Message }; // bytes prev_hash = 3; void clear_prev_hash() ; - const std::string& prev_hash() const; - template + const ::std::string& prev_hash() const; + template void set_prev_hash(Arg_&& arg, Args_... args); - std::string* mutable_prev_hash(); - PROTOBUF_NODISCARD std::string* release_prev_hash(); - void set_allocated_prev_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_prev_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_prev_hash(); + void set_allocated_prev_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_prev_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_prev_hash( - const std::string& value); - std::string* _internal_mutable_prev_hash(); + const ::std::string& _internal_prev_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_prev_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_prev_hash(); public: // bytes total_kernel_offset = 4; void clear_total_kernel_offset() ; - const std::string& total_kernel_offset() const; - template + const ::std::string& total_kernel_offset() const; + template void set_total_kernel_offset(Arg_&& arg, Args_... args); - std::string* mutable_total_kernel_offset(); - PROTOBUF_NODISCARD std::string* release_total_kernel_offset(); - void set_allocated_total_kernel_offset(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_total_kernel_offset(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_total_kernel_offset(); + void set_allocated_total_kernel_offset(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_total_kernel_offset() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_total_kernel_offset( - const std::string& value); - std::string* _internal_mutable_total_kernel_offset(); + const ::std::string& _internal_total_kernel_offset() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_total_kernel_offset(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_total_kernel_offset(); public: // bytes total_script_offset = 7; void clear_total_script_offset() ; - const std::string& total_script_offset() const; - template + const ::std::string& total_script_offset() const; + template void set_total_script_offset(Arg_&& arg, Args_... args); - std::string* mutable_total_script_offset(); - PROTOBUF_NODISCARD std::string* release_total_script_offset(); - void set_allocated_total_script_offset(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_total_script_offset(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_total_script_offset(); + void set_allocated_total_script_offset(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_total_script_offset() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_total_script_offset( - const std::string& value); - std::string* _internal_mutable_total_script_offset(); + const ::std::string& _internal_total_script_offset() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_total_script_offset(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_total_script_offset(); public: // .tari.rpc.ProofOfWork pow = 5; bool has_pow() const; void clear_pow() ; const ::tari::rpc::ProofOfWork& pow() const; - PROTOBUF_NODISCARD ::tari::rpc::ProofOfWork* release_pow(); - ::tari::rpc::ProofOfWork* mutable_pow(); - void set_allocated_pow(::tari::rpc::ProofOfWork* value); - void unsafe_arena_set_allocated_pow(::tari::rpc::ProofOfWork* value); - ::tari::rpc::ProofOfWork* unsafe_arena_release_pow(); + [[nodiscard]] ::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE release_pow(); + ::tari::rpc::ProofOfWork* PROTOBUF_NONNULL mutable_pow(); + void set_allocated_pow(::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_pow(::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE value); + ::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE unsafe_arena_release_pow(); private: const ::tari::rpc::ProofOfWork& _internal_pow() const; - ::tari::rpc::ProofOfWork* _internal_mutable_pow(); + ::tari::rpc::ProofOfWork* PROTOBUF_NONNULL _internal_mutable_pow(); public: // uint64 height = 2; @@ -714,10 +795,11 @@ class NewBlockHeaderTemplate final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<3, 6, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -725,18 +807,20 @@ class NewBlockHeaderTemplate final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const NewBlockHeaderTemplate& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr prev_hash_; ::google::protobuf::internal::ArenaStringPtr total_kernel_offset_; ::google::protobuf::internal::ArenaStringPtr total_script_offset_; - ::tari::rpc::ProofOfWork* pow_; + ::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE pow_; ::uint64_t height_; ::uint32_t version_; PROTOBUF_TSAN_DECLARE_MEMBER @@ -744,31 +828,36 @@ class NewBlockHeaderTemplate final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_block_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull NewBlockHeaderTemplate_class_data_; // ------------------------------------------------------------------- class BlockHeader final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockHeader) */ { public: inline BlockHeader() : BlockHeader(nullptr) {} - ~BlockHeader() override; + ~BlockHeader() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BlockHeader* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BlockHeader)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR BlockHeader( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : BlockHeader(nullptr, ::std::move(from)) {} inline BlockHeader& operator=(const BlockHeader& from) { CopyFrom(from); return *this; } inline BlockHeader& operator=(BlockHeader&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -780,42 +869,35 @@ class BlockHeader final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const BlockHeader& default_instance() { - return *internal_default_instance(); - } - static inline const BlockHeader* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_BlockHeader_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(BlockHeader& a, BlockHeader& b) { a.Swap(&b); } - inline void Swap(BlockHeader* other) { + inline void Swap(BlockHeader* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BlockHeader* other) { + void UnsafeArenaSwap(BlockHeader* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -823,7 +905,7 @@ class BlockHeader final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - BlockHeader* New(::google::protobuf::Arena* arena = nullptr) const final { + BlockHeader* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -832,41 +914,63 @@ class BlockHeader final : public ::google::protobuf::Message void MergeFrom(const BlockHeader& from) { BlockHeader::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockHeader* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BlockHeader* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.BlockHeader"; } protected: - explicit BlockHeader(::google::protobuf::Arena* arena); - BlockHeader(::google::protobuf::Arena* arena, const BlockHeader& from); - BlockHeader(::google::protobuf::Arena* arena, BlockHeader&& from) noexcept + explicit BlockHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BlockHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockHeader& from); + BlockHeader( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BlockHeader&& from) noexcept : BlockHeader(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -891,161 +995,152 @@ class BlockHeader final : public ::google::protobuf::Message }; // bytes hash = 1; void clear_hash() ; - const std::string& hash() const; - template + const ::std::string& hash() const; + template void set_hash(Arg_&& arg, Args_... args); - std::string* mutable_hash(); - PROTOBUF_NODISCARD std::string* release_hash(); - void set_allocated_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_hash(); + void set_allocated_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash( - const std::string& value); - std::string* _internal_mutable_hash(); + const ::std::string& _internal_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_hash(); public: // bytes prev_hash = 4; void clear_prev_hash() ; - const std::string& prev_hash() const; - template + const ::std::string& prev_hash() const; + template void set_prev_hash(Arg_&& arg, Args_... args); - std::string* mutable_prev_hash(); - PROTOBUF_NODISCARD std::string* release_prev_hash(); - void set_allocated_prev_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_prev_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_prev_hash(); + void set_allocated_prev_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_prev_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_prev_hash( - const std::string& value); - std::string* _internal_mutable_prev_hash(); + const ::std::string& _internal_prev_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_prev_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_prev_hash(); public: // bytes output_mr = 6; void clear_output_mr() ; - const std::string& output_mr() const; - template + const ::std::string& output_mr() const; + template void set_output_mr(Arg_&& arg, Args_... args); - std::string* mutable_output_mr(); - PROTOBUF_NODISCARD std::string* release_output_mr(); - void set_allocated_output_mr(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_output_mr(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_output_mr(); + void set_allocated_output_mr(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_output_mr() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_output_mr( - const std::string& value); - std::string* _internal_mutable_output_mr(); + const ::std::string& _internal_output_mr() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_output_mr(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_output_mr(); public: // bytes block_output_mr = 7; void clear_block_output_mr() ; - const std::string& block_output_mr() const; - template + const ::std::string& block_output_mr() const; + template void set_block_output_mr(Arg_&& arg, Args_... args); - std::string* mutable_block_output_mr(); - PROTOBUF_NODISCARD std::string* release_block_output_mr(); - void set_allocated_block_output_mr(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_block_output_mr(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_block_output_mr(); + void set_allocated_block_output_mr(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_block_output_mr() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_block_output_mr( - const std::string& value); - std::string* _internal_mutable_block_output_mr(); + const ::std::string& _internal_block_output_mr() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_block_output_mr(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_block_output_mr(); public: // bytes kernel_mr = 8; void clear_kernel_mr() ; - const std::string& kernel_mr() const; - template + const ::std::string& kernel_mr() const; + template void set_kernel_mr(Arg_&& arg, Args_... args); - std::string* mutable_kernel_mr(); - PROTOBUF_NODISCARD std::string* release_kernel_mr(); - void set_allocated_kernel_mr(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_kernel_mr(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_kernel_mr(); + void set_allocated_kernel_mr(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_kernel_mr() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_kernel_mr( - const std::string& value); - std::string* _internal_mutable_kernel_mr(); + const ::std::string& _internal_kernel_mr() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_kernel_mr(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_kernel_mr(); public: // bytes input_mr = 9; void clear_input_mr() ; - const std::string& input_mr() const; - template + const ::std::string& input_mr() const; + template void set_input_mr(Arg_&& arg, Args_... args); - std::string* mutable_input_mr(); - PROTOBUF_NODISCARD std::string* release_input_mr(); - void set_allocated_input_mr(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_input_mr(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_input_mr(); + void set_allocated_input_mr(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_input_mr() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_input_mr( - const std::string& value); - std::string* _internal_mutable_input_mr(); + const ::std::string& _internal_input_mr() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_input_mr(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_input_mr(); public: // bytes total_kernel_offset = 10; void clear_total_kernel_offset() ; - const std::string& total_kernel_offset() const; - template + const ::std::string& total_kernel_offset() const; + template void set_total_kernel_offset(Arg_&& arg, Args_... args); - std::string* mutable_total_kernel_offset(); - PROTOBUF_NODISCARD std::string* release_total_kernel_offset(); - void set_allocated_total_kernel_offset(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_total_kernel_offset(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_total_kernel_offset(); + void set_allocated_total_kernel_offset(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_total_kernel_offset() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_total_kernel_offset( - const std::string& value); - std::string* _internal_mutable_total_kernel_offset(); + const ::std::string& _internal_total_kernel_offset() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_total_kernel_offset(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_total_kernel_offset(); public: // bytes total_script_offset = 15; void clear_total_script_offset() ; - const std::string& total_script_offset() const; - template + const ::std::string& total_script_offset() const; + template void set_total_script_offset(Arg_&& arg, Args_... args); - std::string* mutable_total_script_offset(); - PROTOBUF_NODISCARD std::string* release_total_script_offset(); - void set_allocated_total_script_offset(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_total_script_offset(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_total_script_offset(); + void set_allocated_total_script_offset(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_total_script_offset() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_total_script_offset( - const std::string& value); - std::string* _internal_mutable_total_script_offset(); + const ::std::string& _internal_total_script_offset() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_total_script_offset(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_total_script_offset(); public: // bytes validator_node_mr = 16; void clear_validator_node_mr() ; - const std::string& validator_node_mr() const; - template + const ::std::string& validator_node_mr() const; + template void set_validator_node_mr(Arg_&& arg, Args_... args); - std::string* mutable_validator_node_mr(); - PROTOBUF_NODISCARD std::string* release_validator_node_mr(); - void set_allocated_validator_node_mr(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_validator_node_mr(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_validator_node_mr(); + void set_allocated_validator_node_mr(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_validator_node_mr() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_validator_node_mr( - const std::string& value); - std::string* _internal_mutable_validator_node_mr(); + const ::std::string& _internal_validator_node_mr() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_validator_node_mr(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_validator_node_mr(); public: // .tari.rpc.ProofOfWork pow = 12; bool has_pow() const; void clear_pow() ; const ::tari::rpc::ProofOfWork& pow() const; - PROTOBUF_NODISCARD ::tari::rpc::ProofOfWork* release_pow(); - ::tari::rpc::ProofOfWork* mutable_pow(); - void set_allocated_pow(::tari::rpc::ProofOfWork* value); - void unsafe_arena_set_allocated_pow(::tari::rpc::ProofOfWork* value); - ::tari::rpc::ProofOfWork* unsafe_arena_release_pow(); + [[nodiscard]] ::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE release_pow(); + ::tari::rpc::ProofOfWork* PROTOBUF_NONNULL mutable_pow(); + void set_allocated_pow(::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_pow(::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE value); + ::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE unsafe_arena_release_pow(); private: const ::tari::rpc::ProofOfWork& _internal_pow() const; - ::tari::rpc::ProofOfWork* _internal_mutable_pow(); + ::tari::rpc::ProofOfWork* PROTOBUF_NONNULL _internal_mutable_pow(); public: // uint64 height = 3; @@ -1122,10 +1217,11 @@ class BlockHeader final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 5, 17, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<5, 17, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1133,14 +1229,16 @@ class BlockHeader final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BlockHeader& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr hash_; ::google::protobuf::internal::ArenaStringPtr prev_hash_; ::google::protobuf::internal::ArenaStringPtr output_mr_; @@ -1150,7 +1248,7 @@ class BlockHeader final : public ::google::protobuf::Message ::google::protobuf::internal::ArenaStringPtr total_kernel_offset_; ::google::protobuf::internal::ArenaStringPtr total_script_offset_; ::google::protobuf::internal::ArenaStringPtr validator_node_mr_; - ::tari::rpc::ProofOfWork* pow_; + ::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE pow_; ::uint64_t height_; ::uint64_t timestamp_; ::uint64_t nonce_; @@ -1163,31 +1261,36 @@ class BlockHeader final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_block_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull BlockHeader_class_data_; // ------------------------------------------------------------------- class NewBlockTemplate final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplate) */ { public: inline NewBlockTemplate() : NewBlockTemplate(nullptr) {} - ~NewBlockTemplate() override; + ~NewBlockTemplate() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(NewBlockTemplate* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(NewBlockTemplate)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR NewBlockTemplate( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : NewBlockTemplate(nullptr, ::std::move(from)) {} inline NewBlockTemplate& operator=(const NewBlockTemplate& from) { CopyFrom(from); return *this; } inline NewBlockTemplate& operator=(NewBlockTemplate&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1199,42 +1302,35 @@ class NewBlockTemplate final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const NewBlockTemplate& default_instance() { - return *internal_default_instance(); - } - static inline const NewBlockTemplate* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_NewBlockTemplate_default_instance_); } static constexpr int kIndexInFileMessages = 6; friend void swap(NewBlockTemplate& a, NewBlockTemplate& b) { a.Swap(&b); } - inline void Swap(NewBlockTemplate* other) { + inline void Swap(NewBlockTemplate* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NewBlockTemplate* other) { + void UnsafeArenaSwap(NewBlockTemplate* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1242,7 +1338,7 @@ class NewBlockTemplate final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - NewBlockTemplate* New(::google::protobuf::Arena* arena = nullptr) const final { + NewBlockTemplate* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1251,41 +1347,63 @@ class NewBlockTemplate final : public ::google::protobuf::Message void MergeFrom(const NewBlockTemplate& from) { NewBlockTemplate::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NewBlockTemplate* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(NewBlockTemplate* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockTemplate"; } protected: - explicit NewBlockTemplate(::google::protobuf::Arena* arena); - NewBlockTemplate(::google::protobuf::Arena* arena, const NewBlockTemplate& from); - NewBlockTemplate(::google::protobuf::Arena* arena, NewBlockTemplate&& from) noexcept + explicit NewBlockTemplate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + NewBlockTemplate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NewBlockTemplate& from); + NewBlockTemplate( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, NewBlockTemplate&& from) noexcept : NewBlockTemplate(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1298,30 +1416,30 @@ class NewBlockTemplate final : public ::google::protobuf::Message bool has_header() const; void clear_header() ; const ::tari::rpc::NewBlockHeaderTemplate& header() const; - PROTOBUF_NODISCARD ::tari::rpc::NewBlockHeaderTemplate* release_header(); - ::tari::rpc::NewBlockHeaderTemplate* mutable_header(); - void set_allocated_header(::tari::rpc::NewBlockHeaderTemplate* value); - void unsafe_arena_set_allocated_header(::tari::rpc::NewBlockHeaderTemplate* value); - ::tari::rpc::NewBlockHeaderTemplate* unsafe_arena_release_header(); + [[nodiscard]] ::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NULLABLE release_header(); + ::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NONNULL mutable_header(); + void set_allocated_header(::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_header(::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NULLABLE value); + ::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NULLABLE unsafe_arena_release_header(); private: const ::tari::rpc::NewBlockHeaderTemplate& _internal_header() const; - ::tari::rpc::NewBlockHeaderTemplate* _internal_mutable_header(); + ::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NONNULL _internal_mutable_header(); public: // .tari.rpc.AggregateBody body = 2; bool has_body() const; void clear_body() ; const ::tari::rpc::AggregateBody& body() const; - PROTOBUF_NODISCARD ::tari::rpc::AggregateBody* release_body(); - ::tari::rpc::AggregateBody* mutable_body(); - void set_allocated_body(::tari::rpc::AggregateBody* value); - void unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* value); - ::tari::rpc::AggregateBody* unsafe_arena_release_body(); + [[nodiscard]] ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE release_body(); + ::tari::rpc::AggregateBody* PROTOBUF_NONNULL mutable_body(); + void set_allocated_body(::tari::rpc::AggregateBody* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* PROTOBUF_NULLABLE value); + ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE unsafe_arena_release_body(); private: const ::tari::rpc::AggregateBody& _internal_body() const; - ::tari::rpc::AggregateBody* _internal_mutable_body(); + ::tari::rpc::AggregateBody* PROTOBUF_NONNULL _internal_mutable_body(); public: // bool is_mempool_in_sync = 3; @@ -1338,10 +1456,11 @@ class NewBlockTemplate final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 2, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 2, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1349,47 +1468,54 @@ class NewBlockTemplate final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const NewBlockTemplate& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::NewBlockHeaderTemplate* header_; - ::tari::rpc::AggregateBody* body_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NULLABLE header_; + ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE body_; bool is_mempool_in_sync_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_block_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull NewBlockTemplate_class_data_; // ------------------------------------------------------------------- class Block final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.Block) */ { public: inline Block() : Block(nullptr) {} - ~Block() override; + ~Block() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Block* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Block)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR Block( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : Block(nullptr, ::std::move(from)) {} inline Block& operator=(const Block& from) { CopyFrom(from); return *this; } inline Block& operator=(Block&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1401,42 +1527,35 @@ class Block final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Block& default_instance() { - return *internal_default_instance(); - } - static inline const Block* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_Block_default_instance_); } static constexpr int kIndexInFileMessages = 3; friend void swap(Block& a, Block& b) { a.Swap(&b); } - inline void Swap(Block* other) { + inline void Swap(Block* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Block* other) { + void UnsafeArenaSwap(Block* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1444,7 +1563,7 @@ class Block final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Block* New(::google::protobuf::Arena* arena = nullptr) const final { + Block* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1453,41 +1572,63 @@ class Block final : public ::google::protobuf::Message void MergeFrom(const Block& from) { Block::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Block* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Block* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.Block"; } protected: - explicit Block(::google::protobuf::Arena* arena); - Block(::google::protobuf::Arena* arena, const Block& from); - Block(::google::protobuf::Arena* arena, Block&& from) noexcept + explicit Block(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Block(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Block& from); + Block( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Block&& from) noexcept : Block(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1499,40 +1640,41 @@ class Block final : public ::google::protobuf::Message bool has_header() const; void clear_header() ; const ::tari::rpc::BlockHeader& header() const; - PROTOBUF_NODISCARD ::tari::rpc::BlockHeader* release_header(); - ::tari::rpc::BlockHeader* mutable_header(); - void set_allocated_header(::tari::rpc::BlockHeader* value); - void unsafe_arena_set_allocated_header(::tari::rpc::BlockHeader* value); - ::tari::rpc::BlockHeader* unsafe_arena_release_header(); + [[nodiscard]] ::tari::rpc::BlockHeader* PROTOBUF_NULLABLE release_header(); + ::tari::rpc::BlockHeader* PROTOBUF_NONNULL mutable_header(); + void set_allocated_header(::tari::rpc::BlockHeader* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_header(::tari::rpc::BlockHeader* PROTOBUF_NULLABLE value); + ::tari::rpc::BlockHeader* PROTOBUF_NULLABLE unsafe_arena_release_header(); private: const ::tari::rpc::BlockHeader& _internal_header() const; - ::tari::rpc::BlockHeader* _internal_mutable_header(); + ::tari::rpc::BlockHeader* PROTOBUF_NONNULL _internal_mutable_header(); public: // .tari.rpc.AggregateBody body = 2; bool has_body() const; void clear_body() ; const ::tari::rpc::AggregateBody& body() const; - PROTOBUF_NODISCARD ::tari::rpc::AggregateBody* release_body(); - ::tari::rpc::AggregateBody* mutable_body(); - void set_allocated_body(::tari::rpc::AggregateBody* value); - void unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* value); - ::tari::rpc::AggregateBody* unsafe_arena_release_body(); + [[nodiscard]] ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE release_body(); + ::tari::rpc::AggregateBody* PROTOBUF_NONNULL mutable_body(); + void set_allocated_body(::tari::rpc::AggregateBody* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* PROTOBUF_NULLABLE value); + ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE unsafe_arena_release_body(); private: const ::tari::rpc::AggregateBody& _internal_body() const; - ::tari::rpc::AggregateBody* _internal_mutable_body(); + ::tari::rpc::AggregateBody* PROTOBUF_NONNULL _internal_mutable_body(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1540,46 +1682,53 @@ class Block final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Block& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::BlockHeader* header_; - ::tari::rpc::AggregateBody* body_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::BlockHeader* PROTOBUF_NULLABLE header_; + ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE body_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_block_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull Block_class_data_; // ------------------------------------------------------------------- class HistoricalBlock final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.HistoricalBlock) */ { public: inline HistoricalBlock() : HistoricalBlock(nullptr) {} - ~HistoricalBlock() override; + ~HistoricalBlock() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(HistoricalBlock* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(HistoricalBlock)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR HistoricalBlock( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : HistoricalBlock(nullptr, ::std::move(from)) {} inline HistoricalBlock& operator=(const HistoricalBlock& from) { CopyFrom(from); return *this; } inline HistoricalBlock& operator=(HistoricalBlock&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1591,42 +1740,35 @@ class HistoricalBlock final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const HistoricalBlock& default_instance() { - return *internal_default_instance(); - } - static inline const HistoricalBlock* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_HistoricalBlock_default_instance_); } static constexpr int kIndexInFileMessages = 4; friend void swap(HistoricalBlock& a, HistoricalBlock& b) { a.Swap(&b); } - inline void Swap(HistoricalBlock* other) { + inline void Swap(HistoricalBlock* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(HistoricalBlock* other) { + void UnsafeArenaSwap(HistoricalBlock* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1634,7 +1776,7 @@ class HistoricalBlock final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - HistoricalBlock* New(::google::protobuf::Arena* arena = nullptr) const final { + HistoricalBlock* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1643,41 +1785,63 @@ class HistoricalBlock final : public ::google::protobuf::Message void MergeFrom(const HistoricalBlock& from) { HistoricalBlock::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(HistoricalBlock* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(HistoricalBlock* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.HistoricalBlock"; } protected: - explicit HistoricalBlock(::google::protobuf::Arena* arena); - HistoricalBlock(::google::protobuf::Arena* arena, const HistoricalBlock& from); - HistoricalBlock(::google::protobuf::Arena* arena, HistoricalBlock&& from) noexcept + explicit HistoricalBlock(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + HistoricalBlock(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HistoricalBlock& from); + HistoricalBlock( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, HistoricalBlock&& from) noexcept : HistoricalBlock(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1689,15 +1853,15 @@ class HistoricalBlock final : public ::google::protobuf::Message bool has_block() const; void clear_block() ; const ::tari::rpc::Block& block() const; - PROTOBUF_NODISCARD ::tari::rpc::Block* release_block(); - ::tari::rpc::Block* mutable_block(); - void set_allocated_block(::tari::rpc::Block* value); - void unsafe_arena_set_allocated_block(::tari::rpc::Block* value); - ::tari::rpc::Block* unsafe_arena_release_block(); + [[nodiscard]] ::tari::rpc::Block* PROTOBUF_NULLABLE release_block(); + ::tari::rpc::Block* PROTOBUF_NONNULL mutable_block(); + void set_allocated_block(::tari::rpc::Block* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_block(::tari::rpc::Block* PROTOBUF_NULLABLE value); + ::tari::rpc::Block* PROTOBUF_NULLABLE unsafe_arena_release_block(); private: const ::tari::rpc::Block& _internal_block() const; - ::tari::rpc::Block* _internal_mutable_block(); + ::tari::rpc::Block* PROTOBUF_NONNULL _internal_mutable_block(); public: // uint64 confirmations = 1; @@ -1714,10 +1878,11 @@ class HistoricalBlock final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1725,15 +1890,17 @@ class HistoricalBlock final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const HistoricalBlock& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Block* block_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::Block* PROTOBUF_NULLABLE block_; ::uint64_t confirmations_; PROTOBUF_TSAN_DECLARE_MEMBER }; @@ -1741,6 +1908,8 @@ class HistoricalBlock final : public ::google::protobuf::Message friend struct ::TableStruct_block_2eproto; }; +extern const ::google::protobuf::internal::ClassDataFull HistoricalBlock_class_data_; + // =================================================================== @@ -1759,58 +1928,74 @@ class HistoricalBlock final : public ::google::protobuf::Message // bytes hash = 1; inline void BlockHeader::clear_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& BlockHeader::hash() const +inline const ::std::string& BlockHeader::hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.hash) return _internal_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockHeader::set_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.hash) } -inline std::string* BlockHeader::mutable_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_hash(); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::mutable_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.hash) return _s; } -inline const std::string& BlockHeader::_internal_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockHeader::_internal_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.hash_.Get(); } -inline void BlockHeader::_internal_set_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::_internal_set_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.hash_.Set(value, GetArena()); } -inline std::string* BlockHeader::_internal_mutable_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::_internal_mutable_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.hash_.Mutable( GetArena()); } -inline std::string* BlockHeader::release_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockHeader::release_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.hash) - return _impl_.hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.hash_.Set("", GetArena()); + } + return released; } -inline void BlockHeader::set_allocated_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::set_allocated_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.hash_.IsDefault()) { - _impl_.hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.hash_.IsDefault()) { + _impl_.hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.hash) } // uint32 version = 2; inline void BlockHeader::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = 0u; + _impl_._has_bits_[0] &= ~0x00010000u; } inline ::uint32_t BlockHeader::version() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.version) @@ -1818,21 +2003,23 @@ inline ::uint32_t BlockHeader::version() const { } inline void BlockHeader::set_version(::uint32_t value) { _internal_set_version(value); + _impl_._has_bits_[0] |= 0x00010000u; // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.version) } inline ::uint32_t BlockHeader::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.version_; } inline void BlockHeader::_internal_set_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = value; } // uint64 height = 3; inline void BlockHeader::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000400u; } inline ::uint64_t BlockHeader::height() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.height) @@ -1840,71 +2027,88 @@ inline ::uint64_t BlockHeader::height() const { } inline void BlockHeader::set_height(::uint64_t value) { _internal_set_height(value); + _impl_._has_bits_[0] |= 0x00000400u; // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.height) } inline ::uint64_t BlockHeader::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.height_; } inline void BlockHeader::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = value; } // bytes prev_hash = 4; inline void BlockHeader::clear_prev_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.prev_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& BlockHeader::prev_hash() const +inline const ::std::string& BlockHeader::prev_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.prev_hash) return _internal_prev_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_prev_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockHeader::set_prev_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.prev_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.prev_hash) } -inline std::string* BlockHeader::mutable_prev_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_prev_hash(); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::mutable_prev_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_prev_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.prev_hash) return _s; } -inline const std::string& BlockHeader::_internal_prev_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockHeader::_internal_prev_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.prev_hash_.Get(); } -inline void BlockHeader::_internal_set_prev_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::_internal_set_prev_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.prev_hash_.Set(value, GetArena()); } -inline std::string* BlockHeader::_internal_mutable_prev_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::_internal_mutable_prev_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.prev_hash_.Mutable( GetArena()); } -inline std::string* BlockHeader::release_prev_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockHeader::release_prev_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.prev_hash) - return _impl_.prev_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.prev_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.prev_hash_.Set("", GetArena()); + } + return released; } -inline void BlockHeader::set_allocated_prev_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::set_allocated_prev_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.prev_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.prev_hash_.IsDefault()) { - _impl_.prev_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.prev_hash_.IsDefault()) { + _impl_.prev_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.prev_hash) } // uint64 timestamp = 5; inline void BlockHeader::clear_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.timestamp_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000800u; } inline ::uint64_t BlockHeader::timestamp() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.timestamp) @@ -1912,271 +2116,348 @@ inline ::uint64_t BlockHeader::timestamp() const { } inline void BlockHeader::set_timestamp(::uint64_t value) { _internal_set_timestamp(value); + _impl_._has_bits_[0] |= 0x00000800u; // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.timestamp) } inline ::uint64_t BlockHeader::_internal_timestamp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.timestamp_; } inline void BlockHeader::_internal_set_timestamp(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.timestamp_ = value; } // bytes output_mr = 6; inline void BlockHeader::clear_output_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.output_mr_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& BlockHeader::output_mr() const +inline const ::std::string& BlockHeader::output_mr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.output_mr) return _internal_output_mr(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_output_mr(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockHeader::set_output_mr(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.output_mr_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.output_mr) } -inline std::string* BlockHeader::mutable_output_mr() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_output_mr(); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::mutable_output_mr() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_output_mr(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.output_mr) return _s; } -inline const std::string& BlockHeader::_internal_output_mr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockHeader::_internal_output_mr() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.output_mr_.Get(); } -inline void BlockHeader::_internal_set_output_mr(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::_internal_set_output_mr(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.output_mr_.Set(value, GetArena()); } -inline std::string* BlockHeader::_internal_mutable_output_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::_internal_mutable_output_mr() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.output_mr_.Mutable( GetArena()); } -inline std::string* BlockHeader::release_output_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockHeader::release_output_mr() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.output_mr) - return _impl_.output_mr_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.output_mr_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.output_mr_.Set("", GetArena()); + } + return released; } -inline void BlockHeader::set_allocated_output_mr(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::set_allocated_output_mr(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.output_mr_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.output_mr_.IsDefault()) { - _impl_.output_mr_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.output_mr_.IsDefault()) { + _impl_.output_mr_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.output_mr) } // bytes block_output_mr = 7; inline void BlockHeader::clear_block_output_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_output_mr_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& BlockHeader::block_output_mr() const +inline const ::std::string& BlockHeader::block_output_mr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.block_output_mr) return _internal_block_output_mr(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_block_output_mr(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockHeader::set_block_output_mr(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.block_output_mr_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.block_output_mr) } -inline std::string* BlockHeader::mutable_block_output_mr() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_block_output_mr(); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::mutable_block_output_mr() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_block_output_mr(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.block_output_mr) return _s; } -inline const std::string& BlockHeader::_internal_block_output_mr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockHeader::_internal_block_output_mr() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.block_output_mr_.Get(); } -inline void BlockHeader::_internal_set_block_output_mr(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::_internal_set_block_output_mr(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.block_output_mr_.Set(value, GetArena()); } -inline std::string* BlockHeader::_internal_mutable_block_output_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::_internal_mutable_block_output_mr() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.block_output_mr_.Mutable( GetArena()); } -inline std::string* BlockHeader::release_block_output_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockHeader::release_block_output_mr() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.block_output_mr) - return _impl_.block_output_mr_.Release(); + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.block_output_mr_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.block_output_mr_.Set("", GetArena()); + } + return released; } -inline void BlockHeader::set_allocated_block_output_mr(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::set_allocated_block_output_mr(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } _impl_.block_output_mr_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.block_output_mr_.IsDefault()) { - _impl_.block_output_mr_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.block_output_mr_.IsDefault()) { + _impl_.block_output_mr_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.block_output_mr) } // bytes kernel_mr = 8; inline void BlockHeader::clear_kernel_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.kernel_mr_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000010u; } -inline const std::string& BlockHeader::kernel_mr() const +inline const ::std::string& BlockHeader::kernel_mr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.kernel_mr) return _internal_kernel_mr(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_kernel_mr(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockHeader::set_kernel_mr(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.kernel_mr_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.kernel_mr) } -inline std::string* BlockHeader::mutable_kernel_mr() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_kernel_mr(); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::mutable_kernel_mr() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_kernel_mr(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.kernel_mr) return _s; } -inline const std::string& BlockHeader::_internal_kernel_mr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockHeader::_internal_kernel_mr() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.kernel_mr_.Get(); } -inline void BlockHeader::_internal_set_kernel_mr(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::_internal_set_kernel_mr(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.kernel_mr_.Set(value, GetArena()); } -inline std::string* BlockHeader::_internal_mutable_kernel_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::_internal_mutable_kernel_mr() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; return _impl_.kernel_mr_.Mutable( GetArena()); } -inline std::string* BlockHeader::release_kernel_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockHeader::release_kernel_mr() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.kernel_mr) - return _impl_.kernel_mr_.Release(); + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000010u; + auto* released = _impl_.kernel_mr_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.kernel_mr_.Set("", GetArena()); + } + return released; } -inline void BlockHeader::set_allocated_kernel_mr(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::set_allocated_kernel_mr(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000010u; + } else { + _impl_._has_bits_[0] &= ~0x00000010u; + } _impl_.kernel_mr_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.kernel_mr_.IsDefault()) { - _impl_.kernel_mr_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.kernel_mr_.IsDefault()) { + _impl_.kernel_mr_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.kernel_mr) } // bytes input_mr = 9; inline void BlockHeader::clear_input_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.input_mr_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000020u; } -inline const std::string& BlockHeader::input_mr() const +inline const ::std::string& BlockHeader::input_mr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.input_mr) return _internal_input_mr(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_input_mr(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockHeader::set_input_mr(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; _impl_.input_mr_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.input_mr) } -inline std::string* BlockHeader::mutable_input_mr() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_input_mr(); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::mutable_input_mr() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_input_mr(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.input_mr) return _s; } -inline const std::string& BlockHeader::_internal_input_mr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockHeader::_internal_input_mr() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.input_mr_.Get(); } -inline void BlockHeader::_internal_set_input_mr(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::_internal_set_input_mr(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; _impl_.input_mr_.Set(value, GetArena()); } -inline std::string* BlockHeader::_internal_mutable_input_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::_internal_mutable_input_mr() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; return _impl_.input_mr_.Mutable( GetArena()); } -inline std::string* BlockHeader::release_input_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockHeader::release_input_mr() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.input_mr) - return _impl_.input_mr_.Release(); + if ((_impl_._has_bits_[0] & 0x00000020u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000020u; + auto* released = _impl_.input_mr_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.input_mr_.Set("", GetArena()); + } + return released; } -inline void BlockHeader::set_allocated_input_mr(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::set_allocated_input_mr(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000020u; + } else { + _impl_._has_bits_[0] &= ~0x00000020u; + } _impl_.input_mr_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.input_mr_.IsDefault()) { - _impl_.input_mr_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.input_mr_.IsDefault()) { + _impl_.input_mr_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.input_mr) } // bytes total_kernel_offset = 10; inline void BlockHeader::clear_total_kernel_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.total_kernel_offset_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000040u; } -inline const std::string& BlockHeader::total_kernel_offset() const +inline const ::std::string& BlockHeader::total_kernel_offset() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.total_kernel_offset) return _internal_total_kernel_offset(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_total_kernel_offset(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockHeader::set_total_kernel_offset(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; _impl_.total_kernel_offset_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.total_kernel_offset) } -inline std::string* BlockHeader::mutable_total_kernel_offset() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_total_kernel_offset(); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::mutable_total_kernel_offset() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_total_kernel_offset(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.total_kernel_offset) return _s; } -inline const std::string& BlockHeader::_internal_total_kernel_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockHeader::_internal_total_kernel_offset() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.total_kernel_offset_.Get(); } -inline void BlockHeader::_internal_set_total_kernel_offset(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::_internal_set_total_kernel_offset(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; _impl_.total_kernel_offset_.Set(value, GetArena()); } -inline std::string* BlockHeader::_internal_mutable_total_kernel_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::_internal_mutable_total_kernel_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; return _impl_.total_kernel_offset_.Mutable( GetArena()); } -inline std::string* BlockHeader::release_total_kernel_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockHeader::release_total_kernel_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.total_kernel_offset) - return _impl_.total_kernel_offset_.Release(); + if ((_impl_._has_bits_[0] & 0x00000040u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000040u; + auto* released = _impl_.total_kernel_offset_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.total_kernel_offset_.Set("", GetArena()); + } + return released; } -inline void BlockHeader::set_allocated_total_kernel_offset(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::set_allocated_total_kernel_offset(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000040u; + } else { + _impl_._has_bits_[0] &= ~0x00000040u; + } _impl_.total_kernel_offset_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.total_kernel_offset_.IsDefault()) { - _impl_.total_kernel_offset_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.total_kernel_offset_.IsDefault()) { + _impl_.total_kernel_offset_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.total_kernel_offset) } // uint64 nonce = 11; inline void BlockHeader::clear_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.nonce_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00001000u; } inline ::uint64_t BlockHeader::nonce() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.nonce) @@ -2184,30 +2465,31 @@ inline ::uint64_t BlockHeader::nonce() const { } inline void BlockHeader::set_nonce(::uint64_t value) { _internal_set_nonce(value); + _impl_._has_bits_[0] |= 0x00001000u; // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.nonce) } inline ::uint64_t BlockHeader::_internal_nonce() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.nonce_; } inline void BlockHeader::_internal_set_nonce(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.nonce_ = value; } // .tari.rpc.ProofOfWork pow = 12; inline bool BlockHeader::has_pow() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; PROTOBUF_ASSUME(!value || _impl_.pow_ != nullptr); return value; } inline void BlockHeader::clear_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.pow_ != nullptr) _impl_.pow_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000200u; } inline const ::tari::rpc::ProofOfWork& BlockHeader::_internal_pow() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::ProofOfWork* p = _impl_.pow_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ProofOfWork_default_instance_); } @@ -2215,76 +2497,78 @@ inline const ::tari::rpc::ProofOfWork& BlockHeader::pow() const ABSL_ATTRIBUTE_L // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.pow) return _internal_pow(); } -inline void BlockHeader::unsafe_arena_set_allocated_pow(::tari::rpc::ProofOfWork* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::unsafe_arena_set_allocated_pow( + ::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pow_); } _impl_.pow_ = reinterpret_cast<::tari::rpc::ProofOfWork*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000200u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000200u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.BlockHeader.pow) } -inline ::tari::rpc::ProofOfWork* BlockHeader::release_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE BlockHeader::release_pow() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000200u; ::tari::rpc::ProofOfWork* released = _impl_.pow_; _impl_.pow_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::ProofOfWork* BlockHeader::unsafe_arena_release_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE BlockHeader::unsafe_arena_release_pow() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.pow) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000200u; ::tari::rpc::ProofOfWork* temp = _impl_.pow_; _impl_.pow_ = nullptr; return temp; } -inline ::tari::rpc::ProofOfWork* BlockHeader::_internal_mutable_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ProofOfWork* PROTOBUF_NONNULL BlockHeader::_internal_mutable_pow() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.pow_ == nullptr) { 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; +inline ::tari::rpc::ProofOfWork* PROTOBUF_NONNULL BlockHeader::mutable_pow() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000200u; ::tari::rpc::ProofOfWork* _msg = _internal_mutable_pow(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.pow) return _msg; } -inline void BlockHeader::set_allocated_pow(::tari::rpc::ProofOfWork* value) { +inline void BlockHeader::set_allocated_pow(::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.pow_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pow_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000200u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000200u; } _impl_.pow_ = reinterpret_cast<::tari::rpc::ProofOfWork*>(value); @@ -2293,8 +2577,9 @@ inline void BlockHeader::set_allocated_pow(::tari::rpc::ProofOfWork* value) { // uint64 kernel_mmr_size = 13; inline void BlockHeader::clear_kernel_mmr_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.kernel_mmr_size_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00002000u; } inline ::uint64_t BlockHeader::kernel_mmr_size() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.kernel_mmr_size) @@ -2302,21 +2587,23 @@ inline ::uint64_t BlockHeader::kernel_mmr_size() const { } inline void BlockHeader::set_kernel_mmr_size(::uint64_t value) { _internal_set_kernel_mmr_size(value); + _impl_._has_bits_[0] |= 0x00002000u; // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.kernel_mmr_size) } inline ::uint64_t BlockHeader::_internal_kernel_mmr_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.kernel_mmr_size_; } inline void BlockHeader::_internal_set_kernel_mmr_size(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.kernel_mmr_size_ = value; } // uint64 output_mmr_size = 14; inline void BlockHeader::clear_output_mmr_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.output_mmr_size_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00004000u; } inline ::uint64_t BlockHeader::output_mmr_size() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.output_mmr_size) @@ -2324,121 +2611,153 @@ inline ::uint64_t BlockHeader::output_mmr_size() const { } inline void BlockHeader::set_output_mmr_size(::uint64_t value) { _internal_set_output_mmr_size(value); + _impl_._has_bits_[0] |= 0x00004000u; // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.output_mmr_size) } inline ::uint64_t BlockHeader::_internal_output_mmr_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.output_mmr_size_; } inline void BlockHeader::_internal_set_output_mmr_size(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.output_mmr_size_ = value; } // bytes total_script_offset = 15; inline void BlockHeader::clear_total_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.total_script_offset_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000080u; } -inline const std::string& BlockHeader::total_script_offset() const +inline const ::std::string& BlockHeader::total_script_offset() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.total_script_offset) return _internal_total_script_offset(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_total_script_offset(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockHeader::set_total_script_offset(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000080u; _impl_.total_script_offset_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.total_script_offset) } -inline std::string* BlockHeader::mutable_total_script_offset() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_total_script_offset(); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::mutable_total_script_offset() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_total_script_offset(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.total_script_offset) return _s; } -inline const std::string& BlockHeader::_internal_total_script_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockHeader::_internal_total_script_offset() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.total_script_offset_.Get(); } -inline void BlockHeader::_internal_set_total_script_offset(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::_internal_set_total_script_offset(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000080u; _impl_.total_script_offset_.Set(value, GetArena()); } -inline std::string* BlockHeader::_internal_mutable_total_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::_internal_mutable_total_script_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000080u; return _impl_.total_script_offset_.Mutable( GetArena()); } -inline std::string* BlockHeader::release_total_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockHeader::release_total_script_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.total_script_offset) - return _impl_.total_script_offset_.Release(); + if ((_impl_._has_bits_[0] & 0x00000080u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000080u; + auto* released = _impl_.total_script_offset_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.total_script_offset_.Set("", GetArena()); + } + return released; } -inline void BlockHeader::set_allocated_total_script_offset(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::set_allocated_total_script_offset(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000080u; + } else { + _impl_._has_bits_[0] &= ~0x00000080u; + } _impl_.total_script_offset_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.total_script_offset_.IsDefault()) { - _impl_.total_script_offset_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.total_script_offset_.IsDefault()) { + _impl_.total_script_offset_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.total_script_offset) } // bytes validator_node_mr = 16; inline void BlockHeader::clear_validator_node_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.validator_node_mr_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000100u; } -inline const std::string& BlockHeader::validator_node_mr() const +inline const ::std::string& BlockHeader::validator_node_mr() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.validator_node_mr) return _internal_validator_node_mr(); } template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_validator_node_mr(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BlockHeader::set_validator_node_mr(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000100u; _impl_.validator_node_mr_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.validator_node_mr) } -inline std::string* BlockHeader::mutable_validator_node_mr() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_validator_node_mr(); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::mutable_validator_node_mr() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_validator_node_mr(); // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.validator_node_mr) return _s; } -inline const std::string& BlockHeader::_internal_validator_node_mr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BlockHeader::_internal_validator_node_mr() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.validator_node_mr_.Get(); } -inline void BlockHeader::_internal_set_validator_node_mr(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::_internal_set_validator_node_mr(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000100u; _impl_.validator_node_mr_.Set(value, GetArena()); } -inline std::string* BlockHeader::_internal_mutable_validator_node_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BlockHeader::_internal_mutable_validator_node_mr() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000100u; return _impl_.validator_node_mr_.Mutable( GetArena()); } -inline std::string* BlockHeader::release_validator_node_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BlockHeader::release_validator_node_mr() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.validator_node_mr) - return _impl_.validator_node_mr_.Release(); + if ((_impl_._has_bits_[0] & 0x00000100u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000100u; + auto* released = _impl_.validator_node_mr_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.validator_node_mr_.Set("", GetArena()); + } + return released; } -inline void BlockHeader::set_allocated_validator_node_mr(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BlockHeader::set_allocated_validator_node_mr(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000100u; + } else { + _impl_._has_bits_[0] &= ~0x00000100u; + } _impl_.validator_node_mr_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.validator_node_mr_.IsDefault()) { - _impl_.validator_node_mr_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.validator_node_mr_.IsDefault()) { + _impl_.validator_node_mr_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.validator_node_mr) } // uint64 validator_node_size = 17; inline void BlockHeader::clear_validator_node_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.validator_node_size_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00008000u; } inline ::uint64_t BlockHeader::validator_node_size() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.validator_node_size) @@ -2446,14 +2765,15 @@ inline ::uint64_t BlockHeader::validator_node_size() const { } inline void BlockHeader::set_validator_node_size(::uint64_t value) { _internal_set_validator_node_size(value); + _impl_._has_bits_[0] |= 0x00008000u; // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.validator_node_size) } inline ::uint64_t BlockHeader::_internal_validator_node_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.validator_node_size_; } inline void BlockHeader::_internal_set_validator_node_size(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.validator_node_size_ = value; } @@ -2463,8 +2783,9 @@ inline void BlockHeader::_internal_set_validator_node_size(::uint64_t value) { // uint64 pow_algo = 1; inline void ProofOfWork::clear_pow_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pow_algo_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t ProofOfWork::pow_algo() const { // @@protoc_insertion_point(field_get:tari.rpc.ProofOfWork.pow_algo) @@ -2472,64 +2793,80 @@ inline ::uint64_t ProofOfWork::pow_algo() const { } inline void ProofOfWork::set_pow_algo(::uint64_t value) { _internal_set_pow_algo(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.ProofOfWork.pow_algo) } inline ::uint64_t ProofOfWork::_internal_pow_algo() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pow_algo_; } inline void ProofOfWork::_internal_set_pow_algo(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pow_algo_ = value; } // bytes pow_data = 4; inline void ProofOfWork::clear_pow_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pow_data_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& ProofOfWork::pow_data() const +inline const ::std::string& ProofOfWork::pow_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.ProofOfWork.pow_data) return _internal_pow_data(); } template -inline PROTOBUF_ALWAYS_INLINE void ProofOfWork::set_pow_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void ProofOfWork::set_pow_data(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.pow_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ProofOfWork.pow_data) } -inline std::string* ProofOfWork::mutable_pow_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_pow_data(); +inline ::std::string* PROTOBUF_NONNULL ProofOfWork::mutable_pow_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_pow_data(); // @@protoc_insertion_point(field_mutable:tari.rpc.ProofOfWork.pow_data) return _s; } -inline const std::string& ProofOfWork::_internal_pow_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& ProofOfWork::_internal_pow_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pow_data_.Get(); } -inline void ProofOfWork::_internal_set_pow_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ProofOfWork::_internal_set_pow_data(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.pow_data_.Set(value, GetArena()); } -inline std::string* ProofOfWork::_internal_mutable_pow_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL ProofOfWork::_internal_mutable_pow_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.pow_data_.Mutable( GetArena()); } -inline std::string* ProofOfWork::release_pow_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE ProofOfWork::release_pow_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ProofOfWork.pow_data) - return _impl_.pow_data_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.pow_data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.pow_data_.Set("", GetArena()); + } + return released; } -inline void ProofOfWork::set_allocated_pow_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ProofOfWork::set_allocated_pow_data(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.pow_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pow_data_.IsDefault()) { - _impl_.pow_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.pow_data_.IsDefault()) { + _impl_.pow_data_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.ProofOfWork.pow_data) } @@ -2539,8 +2876,9 @@ inline void ProofOfWork::set_allocated_pow_data(std::string* value) { // .tari.rpc.PowAlgo.PowAlgos pow_algo = 1; inline void PowAlgo::clear_pow_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pow_algo_ = 0; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::tari::rpc::PowAlgo_PowAlgos PowAlgo::pow_algo() const { // @@protoc_insertion_point(field_get:tari.rpc.PowAlgo.pow_algo) @@ -2548,14 +2886,15 @@ inline ::tari::rpc::PowAlgo_PowAlgos PowAlgo::pow_algo() const { } inline void PowAlgo::set_pow_algo(::tari::rpc::PowAlgo_PowAlgos value) { _internal_set_pow_algo(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.PowAlgo.pow_algo) } inline ::tari::rpc::PowAlgo_PowAlgos PowAlgo::_internal_pow_algo() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::tari::rpc::PowAlgo_PowAlgos>(_impl_.pow_algo_); } inline void PowAlgo::_internal_set_pow_algo(::tari::rpc::PowAlgo_PowAlgos value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pow_algo_ = value; } @@ -2570,12 +2909,12 @@ inline bool Block::has_header() const { return value; } inline void Block::clear_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.header_ != nullptr) _impl_.header_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::tari::rpc::BlockHeader& Block::_internal_header() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::BlockHeader* p = _impl_.header_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_BlockHeader_default_instance_); } @@ -2583,8 +2922,9 @@ inline const ::tari::rpc::BlockHeader& Block::header() const ABSL_ATTRIBUTE_LIFE // @@protoc_insertion_point(field_get:tari.rpc.Block.header) return _internal_header(); } -inline void Block::unsafe_arena_set_allocated_header(::tari::rpc::BlockHeader* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Block::unsafe_arena_set_allocated_header( + ::tari::rpc::BlockHeader* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); } @@ -2596,27 +2936,27 @@ inline void Block::unsafe_arena_set_allocated_header(::tari::rpc::BlockHeader* v } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.Block.header) } -inline ::tari::rpc::BlockHeader* Block::release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::BlockHeader* PROTOBUF_NULLABLE Block::release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::BlockHeader* released = _impl_.header_; _impl_.header_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::BlockHeader* Block::unsafe_arena_release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::BlockHeader* PROTOBUF_NULLABLE Block::unsafe_arena_release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Block.header) _impl_._has_bits_[0] &= ~0x00000001u; @@ -2624,29 +2964,30 @@ inline ::tari::rpc::BlockHeader* Block::unsafe_arena_release_header() { _impl_.header_ = nullptr; return temp; } -inline ::tari::rpc::BlockHeader* Block::_internal_mutable_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::BlockHeader* PROTOBUF_NONNULL Block::_internal_mutable_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.header_ == nullptr) { 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 { +inline ::tari::rpc::BlockHeader* PROTOBUF_NONNULL 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; } -inline void Block::set_allocated_header(::tari::rpc::BlockHeader* value) { +inline void Block::set_allocated_header(::tari::rpc::BlockHeader* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.header_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2666,7 +3007,7 @@ inline bool Block::has_body() const { return value; } inline const ::tari::rpc::AggregateBody& Block::_internal_body() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::AggregateBody* p = _impl_.body_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_AggregateBody_default_instance_); } @@ -2674,8 +3015,9 @@ inline const ::tari::rpc::AggregateBody& Block::body() const ABSL_ATTRIBUTE_LIFE // @@protoc_insertion_point(field_get:tari.rpc.Block.body) return _internal_body(); } -inline void Block::unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Block::unsafe_arena_set_allocated_body( + ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.body_); } @@ -2687,27 +3029,27 @@ inline void Block::unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* v } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.Block.body) } -inline ::tari::rpc::AggregateBody* Block::release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE Block::release_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000002u; ::tari::rpc::AggregateBody* released = _impl_.body_; _impl_.body_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::AggregateBody* Block::unsafe_arena_release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE Block::unsafe_arena_release_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Block.body) _impl_._has_bits_[0] &= ~0x00000002u; @@ -2715,29 +3057,30 @@ inline ::tari::rpc::AggregateBody* Block::unsafe_arena_release_body() { _impl_.body_ = nullptr; return temp; } -inline ::tari::rpc::AggregateBody* Block::_internal_mutable_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::AggregateBody* PROTOBUF_NONNULL Block::_internal_mutable_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.body_ == nullptr) { 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 { +inline ::tari::rpc::AggregateBody* PROTOBUF_NONNULL 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; } -inline void Block::set_allocated_body(::tari::rpc::AggregateBody* value) { +inline void Block::set_allocated_body(::tari::rpc::AggregateBody* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.body_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2756,8 +3099,9 @@ inline void Block::set_allocated_body(::tari::rpc::AggregateBody* value) { // uint64 confirmations = 1; inline void HistoricalBlock::clear_confirmations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.confirmations_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t HistoricalBlock::confirmations() const { // @@protoc_insertion_point(field_get:tari.rpc.HistoricalBlock.confirmations) @@ -2765,14 +3109,15 @@ inline ::uint64_t HistoricalBlock::confirmations() const { } inline void HistoricalBlock::set_confirmations(::uint64_t value) { _internal_set_confirmations(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.HistoricalBlock.confirmations) } inline ::uint64_t HistoricalBlock::_internal_confirmations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.confirmations_; } inline void HistoricalBlock::_internal_set_confirmations(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.confirmations_ = value; } @@ -2783,12 +3128,12 @@ inline bool HistoricalBlock::has_block() const { return value; } inline void HistoricalBlock::clear_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.block_ != nullptr) _impl_.block_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::tari::rpc::Block& HistoricalBlock::_internal_block() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Block* p = _impl_.block_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Block_default_instance_); } @@ -2796,8 +3141,9 @@ inline const ::tari::rpc::Block& HistoricalBlock::block() const ABSL_ATTRIBUTE_L // @@protoc_insertion_point(field_get:tari.rpc.HistoricalBlock.block) return _internal_block(); } -inline void HistoricalBlock::unsafe_arena_set_allocated_block(::tari::rpc::Block* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void HistoricalBlock::unsafe_arena_set_allocated_block( + ::tari::rpc::Block* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.block_); } @@ -2809,27 +3155,27 @@ inline void HistoricalBlock::unsafe_arena_set_allocated_block(::tari::rpc::Block } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.HistoricalBlock.block) } -inline ::tari::rpc::Block* HistoricalBlock::release_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Block* PROTOBUF_NULLABLE HistoricalBlock::release_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::Block* released = _impl_.block_; _impl_.block_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Block* HistoricalBlock::unsafe_arena_release_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Block* PROTOBUF_NULLABLE HistoricalBlock::unsafe_arena_release_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.HistoricalBlock.block) _impl_._has_bits_[0] &= ~0x00000001u; @@ -2837,29 +3183,30 @@ inline ::tari::rpc::Block* HistoricalBlock::unsafe_arena_release_block() { _impl_.block_ = nullptr; return temp; } -inline ::tari::rpc::Block* HistoricalBlock::_internal_mutable_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Block* PROTOBUF_NONNULL HistoricalBlock::_internal_mutable_block() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.block_ == nullptr) { 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 { +inline ::tari::rpc::Block* PROTOBUF_NONNULL 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; } -inline void HistoricalBlock::set_allocated_block(::tari::rpc::Block* value) { +inline void HistoricalBlock::set_allocated_block(::tari::rpc::Block* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.block_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.block_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2878,8 +3225,9 @@ inline void HistoricalBlock::set_allocated_block(::tari::rpc::Block* value) { // uint32 version = 1; inline void NewBlockHeaderTemplate::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = 0u; + _impl_._has_bits_[0] &= ~0x00000020u; } inline ::uint32_t NewBlockHeaderTemplate::version() const { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockHeaderTemplate.version) @@ -2887,21 +3235,23 @@ inline ::uint32_t NewBlockHeaderTemplate::version() const { } inline void NewBlockHeaderTemplate::set_version(::uint32_t value) { _internal_set_version(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.version) } inline ::uint32_t NewBlockHeaderTemplate::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.version_; } inline void NewBlockHeaderTemplate::_internal_set_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = value; } // uint64 height = 2; inline void NewBlockHeaderTemplate::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000010u; } inline ::uint64_t NewBlockHeaderTemplate::height() const { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockHeaderTemplate.height) @@ -2909,130 +3259,161 @@ inline ::uint64_t NewBlockHeaderTemplate::height() const { } inline void NewBlockHeaderTemplate::set_height(::uint64_t value) { _internal_set_height(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.height) } inline ::uint64_t NewBlockHeaderTemplate::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.height_; } inline void NewBlockHeaderTemplate::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = value; } // bytes prev_hash = 3; inline void NewBlockHeaderTemplate::clear_prev_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.prev_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& NewBlockHeaderTemplate::prev_hash() const +inline const ::std::string& NewBlockHeaderTemplate::prev_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockHeaderTemplate.prev_hash) return _internal_prev_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void NewBlockHeaderTemplate::set_prev_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void NewBlockHeaderTemplate::set_prev_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.prev_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.prev_hash) } -inline std::string* NewBlockHeaderTemplate::mutable_prev_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_prev_hash(); +inline ::std::string* PROTOBUF_NONNULL NewBlockHeaderTemplate::mutable_prev_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_prev_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockHeaderTemplate.prev_hash) return _s; } -inline const std::string& NewBlockHeaderTemplate::_internal_prev_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& NewBlockHeaderTemplate::_internal_prev_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.prev_hash_.Get(); } -inline void NewBlockHeaderTemplate::_internal_set_prev_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockHeaderTemplate::_internal_set_prev_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.prev_hash_.Set(value, GetArena()); } -inline std::string* NewBlockHeaderTemplate::_internal_mutable_prev_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL NewBlockHeaderTemplate::_internal_mutable_prev_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.prev_hash_.Mutable( GetArena()); } -inline std::string* NewBlockHeaderTemplate::release_prev_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE NewBlockHeaderTemplate::release_prev_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NewBlockHeaderTemplate.prev_hash) - return _impl_.prev_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.prev_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.prev_hash_.Set("", GetArena()); + } + return released; } -inline void NewBlockHeaderTemplate::set_allocated_prev_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockHeaderTemplate::set_allocated_prev_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.prev_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.prev_hash_.IsDefault()) { - _impl_.prev_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.prev_hash_.IsDefault()) { + _impl_.prev_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockHeaderTemplate.prev_hash) } // bytes total_kernel_offset = 4; inline void NewBlockHeaderTemplate::clear_total_kernel_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.total_kernel_offset_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& NewBlockHeaderTemplate::total_kernel_offset() const +inline const ::std::string& NewBlockHeaderTemplate::total_kernel_offset() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockHeaderTemplate.total_kernel_offset) return _internal_total_kernel_offset(); } template -inline PROTOBUF_ALWAYS_INLINE void NewBlockHeaderTemplate::set_total_kernel_offset(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void NewBlockHeaderTemplate::set_total_kernel_offset(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.total_kernel_offset_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.total_kernel_offset) } -inline std::string* NewBlockHeaderTemplate::mutable_total_kernel_offset() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_total_kernel_offset(); +inline ::std::string* PROTOBUF_NONNULL NewBlockHeaderTemplate::mutable_total_kernel_offset() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_total_kernel_offset(); // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockHeaderTemplate.total_kernel_offset) return _s; } -inline const std::string& NewBlockHeaderTemplate::_internal_total_kernel_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& NewBlockHeaderTemplate::_internal_total_kernel_offset() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.total_kernel_offset_.Get(); } -inline void NewBlockHeaderTemplate::_internal_set_total_kernel_offset(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockHeaderTemplate::_internal_set_total_kernel_offset(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.total_kernel_offset_.Set(value, GetArena()); } -inline std::string* NewBlockHeaderTemplate::_internal_mutable_total_kernel_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL NewBlockHeaderTemplate::_internal_mutable_total_kernel_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.total_kernel_offset_.Mutable( GetArena()); } -inline std::string* NewBlockHeaderTemplate::release_total_kernel_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE NewBlockHeaderTemplate::release_total_kernel_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NewBlockHeaderTemplate.total_kernel_offset) - return _impl_.total_kernel_offset_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.total_kernel_offset_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.total_kernel_offset_.Set("", GetArena()); + } + return released; } -inline void NewBlockHeaderTemplate::set_allocated_total_kernel_offset(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockHeaderTemplate::set_allocated_total_kernel_offset(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.total_kernel_offset_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.total_kernel_offset_.IsDefault()) { - _impl_.total_kernel_offset_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.total_kernel_offset_.IsDefault()) { + _impl_.total_kernel_offset_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockHeaderTemplate.total_kernel_offset) } // .tari.rpc.ProofOfWork pow = 5; inline bool NewBlockHeaderTemplate::has_pow() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; PROTOBUF_ASSUME(!value || _impl_.pow_ != nullptr); return value; } inline void NewBlockHeaderTemplate::clear_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.pow_ != nullptr) _impl_.pow_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000008u; } inline const ::tari::rpc::ProofOfWork& NewBlockHeaderTemplate::_internal_pow() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::ProofOfWork* p = _impl_.pow_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ProofOfWork_default_instance_); } @@ -3040,76 +3421,78 @@ inline const ::tari::rpc::ProofOfWork& NewBlockHeaderTemplate::pow() const ABSL_ // @@protoc_insertion_point(field_get:tari.rpc.NewBlockHeaderTemplate.pow) return _internal_pow(); } -inline void NewBlockHeaderTemplate::unsafe_arena_set_allocated_pow(::tari::rpc::ProofOfWork* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockHeaderTemplate::unsafe_arena_set_allocated_pow( + ::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pow_); } _impl_.pow_ = reinterpret_cast<::tari::rpc::ProofOfWork*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000008u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000008u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.NewBlockHeaderTemplate.pow) } -inline ::tari::rpc::ProofOfWork* NewBlockHeaderTemplate::release_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE NewBlockHeaderTemplate::release_pow() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000008u; ::tari::rpc::ProofOfWork* released = _impl_.pow_; _impl_.pow_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::ProofOfWork* NewBlockHeaderTemplate::unsafe_arena_release_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE NewBlockHeaderTemplate::unsafe_arena_release_pow() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NewBlockHeaderTemplate.pow) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000008u; ::tari::rpc::ProofOfWork* temp = _impl_.pow_; _impl_.pow_ = nullptr; return temp; } -inline ::tari::rpc::ProofOfWork* NewBlockHeaderTemplate::_internal_mutable_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ProofOfWork* PROTOBUF_NONNULL NewBlockHeaderTemplate::_internal_mutable_pow() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.pow_ == nullptr) { 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; +inline ::tari::rpc::ProofOfWork* PROTOBUF_NONNULL NewBlockHeaderTemplate::mutable_pow() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000008u; ::tari::rpc::ProofOfWork* _msg = _internal_mutable_pow(); // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockHeaderTemplate.pow) return _msg; } -inline void NewBlockHeaderTemplate::set_allocated_pow(::tari::rpc::ProofOfWork* value) { +inline void NewBlockHeaderTemplate::set_allocated_pow(::tari::rpc::ProofOfWork* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.pow_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pow_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000008u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000008u; } _impl_.pow_ = reinterpret_cast<::tari::rpc::ProofOfWork*>(value); @@ -3118,51 +3501,66 @@ inline void NewBlockHeaderTemplate::set_allocated_pow(::tari::rpc::ProofOfWork* // bytes total_script_offset = 7; inline void NewBlockHeaderTemplate::clear_total_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.total_script_offset_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& NewBlockHeaderTemplate::total_script_offset() const +inline const ::std::string& NewBlockHeaderTemplate::total_script_offset() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockHeaderTemplate.total_script_offset) return _internal_total_script_offset(); } template -inline PROTOBUF_ALWAYS_INLINE void NewBlockHeaderTemplate::set_total_script_offset(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void NewBlockHeaderTemplate::set_total_script_offset(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.total_script_offset_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.total_script_offset) } -inline std::string* NewBlockHeaderTemplate::mutable_total_script_offset() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_total_script_offset(); +inline ::std::string* PROTOBUF_NONNULL NewBlockHeaderTemplate::mutable_total_script_offset() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_total_script_offset(); // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockHeaderTemplate.total_script_offset) return _s; } -inline const std::string& NewBlockHeaderTemplate::_internal_total_script_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& NewBlockHeaderTemplate::_internal_total_script_offset() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.total_script_offset_.Get(); } -inline void NewBlockHeaderTemplate::_internal_set_total_script_offset(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockHeaderTemplate::_internal_set_total_script_offset(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.total_script_offset_.Set(value, GetArena()); } -inline std::string* NewBlockHeaderTemplate::_internal_mutable_total_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL NewBlockHeaderTemplate::_internal_mutable_total_script_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.total_script_offset_.Mutable( GetArena()); } -inline std::string* NewBlockHeaderTemplate::release_total_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE NewBlockHeaderTemplate::release_total_script_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NewBlockHeaderTemplate.total_script_offset) - return _impl_.total_script_offset_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.total_script_offset_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.total_script_offset_.Set("", GetArena()); + } + return released; } -inline void NewBlockHeaderTemplate::set_allocated_total_script_offset(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockHeaderTemplate::set_allocated_total_script_offset(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.total_script_offset_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.total_script_offset_.IsDefault()) { - _impl_.total_script_offset_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.total_script_offset_.IsDefault()) { + _impl_.total_script_offset_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockHeaderTemplate.total_script_offset) } @@ -3177,12 +3575,12 @@ inline bool NewBlockTemplate::has_header() const { return value; } inline void NewBlockTemplate::clear_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.header_ != nullptr) _impl_.header_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::tari::rpc::NewBlockHeaderTemplate& NewBlockTemplate::_internal_header() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::NewBlockHeaderTemplate* p = _impl_.header_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_NewBlockHeaderTemplate_default_instance_); } @@ -3190,8 +3588,9 @@ inline const ::tari::rpc::NewBlockHeaderTemplate& NewBlockTemplate::header() con // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplate.header) return _internal_header(); } -inline void NewBlockTemplate::unsafe_arena_set_allocated_header(::tari::rpc::NewBlockHeaderTemplate* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockTemplate::unsafe_arena_set_allocated_header( + ::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); } @@ -3203,27 +3602,27 @@ inline void NewBlockTemplate::unsafe_arena_set_allocated_header(::tari::rpc::New } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.NewBlockTemplate.header) } -inline ::tari::rpc::NewBlockHeaderTemplate* NewBlockTemplate::release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NULLABLE NewBlockTemplate::release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::NewBlockHeaderTemplate* released = _impl_.header_; _impl_.header_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::NewBlockHeaderTemplate* NewBlockTemplate::unsafe_arena_release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NULLABLE NewBlockTemplate::unsafe_arena_release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NewBlockTemplate.header) _impl_._has_bits_[0] &= ~0x00000001u; @@ -3231,29 +3630,30 @@ inline ::tari::rpc::NewBlockHeaderTemplate* NewBlockTemplate::unsafe_arena_relea _impl_.header_ = nullptr; return temp; } -inline ::tari::rpc::NewBlockHeaderTemplate* NewBlockTemplate::_internal_mutable_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NONNULL NewBlockTemplate::_internal_mutable_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.header_ == nullptr) { 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 { +inline ::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NONNULL 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; } -inline void NewBlockTemplate::set_allocated_header(::tari::rpc::NewBlockHeaderTemplate* value) { +inline void NewBlockTemplate::set_allocated_header(::tari::rpc::NewBlockHeaderTemplate* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.header_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3273,7 +3673,7 @@ inline bool NewBlockTemplate::has_body() const { return value; } inline const ::tari::rpc::AggregateBody& NewBlockTemplate::_internal_body() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::AggregateBody* p = _impl_.body_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_AggregateBody_default_instance_); } @@ -3281,8 +3681,9 @@ inline const ::tari::rpc::AggregateBody& NewBlockTemplate::body() const ABSL_ATT // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplate.body) return _internal_body(); } -inline void NewBlockTemplate::unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NewBlockTemplate::unsafe_arena_set_allocated_body( + ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.body_); } @@ -3294,27 +3695,27 @@ inline void NewBlockTemplate::unsafe_arena_set_allocated_body(::tari::rpc::Aggre } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.NewBlockTemplate.body) } -inline ::tari::rpc::AggregateBody* NewBlockTemplate::release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE NewBlockTemplate::release_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000002u; ::tari::rpc::AggregateBody* released = _impl_.body_; _impl_.body_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::AggregateBody* NewBlockTemplate::unsafe_arena_release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE NewBlockTemplate::unsafe_arena_release_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NewBlockTemplate.body) _impl_._has_bits_[0] &= ~0x00000002u; @@ -3322,29 +3723,30 @@ inline ::tari::rpc::AggregateBody* NewBlockTemplate::unsafe_arena_release_body() _impl_.body_ = nullptr; return temp; } -inline ::tari::rpc::AggregateBody* NewBlockTemplate::_internal_mutable_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::AggregateBody* PROTOBUF_NONNULL NewBlockTemplate::_internal_mutable_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.body_ == nullptr) { 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 { +inline ::tari::rpc::AggregateBody* PROTOBUF_NONNULL 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; } -inline void NewBlockTemplate::set_allocated_body(::tari::rpc::AggregateBody* value) { +inline void NewBlockTemplate::set_allocated_body(::tari::rpc::AggregateBody* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.body_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3359,8 +3761,9 @@ inline void NewBlockTemplate::set_allocated_body(::tari::rpc::AggregateBody* val // bool is_mempool_in_sync = 3; inline void NewBlockTemplate::clear_is_mempool_in_sync() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_mempool_in_sync_ = false; + _impl_._has_bits_[0] &= ~0x00000004u; } inline bool NewBlockTemplate::is_mempool_in_sync() const { // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplate.is_mempool_in_sync) @@ -3368,14 +3771,15 @@ inline bool NewBlockTemplate::is_mempool_in_sync() const { } inline void NewBlockTemplate::set_is_mempool_in_sync(bool value) { _internal_set_is_mempool_in_sync(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.NewBlockTemplate.is_mempool_in_sync) } inline bool NewBlockTemplate::_internal_is_mempool_in_sync() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.is_mempool_in_sync_; } inline void NewBlockTemplate::_internal_set_is_mempool_in_sync(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_mempool_in_sync_ = value; } @@ -3394,7 +3798,7 @@ namespace protobuf { template <> struct is_proto_enum<::tari::rpc::PowAlgo_PowAlgos> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::PowAlgo_PowAlgos>() { +inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::tari::rpc::PowAlgo_PowAlgos>() { return ::tari::rpc::PowAlgo_PowAlgos_descriptor(); } @@ -3405,4 +3809,4 @@ inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::PowAlgo_PowAlgos>() #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_block_2eproto_2epb_2eh +#endif // block_2eproto_2epb_2eh diff --git a/external/src/Tari/proto/gRPC/network.grpc.pb.cc b/external/src/Tari/proto/gRPC/network.grpc.pb.cc index cab6127..e25dd4f 100644 --- a/external/src/Tari/proto/gRPC/network.grpc.pb.cc +++ b/external/src/Tari/proto/gRPC/network.grpc.pb.cc @@ -19,9 +19,11 @@ #include #include #include +#include namespace tari { namespace rpc { } // namespace tari } // namespace rpc +#include diff --git a/external/src/Tari/proto/gRPC/network.grpc.pb.h b/external/src/Tari/proto/gRPC/network.grpc.pb.h index a1b7076..46f7d9d 100644 --- a/external/src/Tari/proto/gRPC/network.grpc.pb.h +++ b/external/src/Tari/proto/gRPC/network.grpc.pb.h @@ -46,6 +46,7 @@ #include #include #include +#include namespace tari { namespace rpc { @@ -54,4 +55,5 @@ namespace rpc { } // namespace tari +#include #endif // GRPC_network_2eproto__INCLUDED diff --git a/external/src/Tari/proto/gRPC/network.pb.cc b/external/src/Tari/proto/gRPC/network.pb.cc index d134d22..8938512 100644 --- a/external/src/Tari/proto/gRPC/network.pb.cc +++ b/external/src/Tari/proto/gRPC/network.pb.cc @@ -1,18 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: network.proto -// Protobuf C++ Version: 5.26.1 +// Protobuf C++ Version: 6.31.1 #include "network.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -26,7 +29,8 @@ namespace rpc { inline constexpr SoftwareUpdate::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : version_( + : _cached_size_{0}, + version_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), sha_( @@ -35,12 +39,17 @@ inline constexpr SoftwareUpdate::Impl_::Impl_( download_url_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - has_update_{false}, - _cached_size_{0} {} + has_update_{false} {} template PROTOBUF_CONSTEXPR SoftwareUpdate::SoftwareUpdate(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SoftwareUpdate_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SoftwareUpdateDefaultTypeInternal { PROTOBUF_CONSTEXPR SoftwareUpdateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SoftwareUpdateDefaultTypeInternal() {} @@ -54,18 +63,24 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr NodeIdentity::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : public_addresses_{}, + : _cached_size_{0}, + public_addresses_{}, public_key_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), node_id_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR NodeIdentity::NodeIdentity(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(NodeIdentity_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct NodeIdentityDefaultTypeInternal { PROTOBUF_CONSTEXPR NodeIdentityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NodeIdentityDefaultTypeInternal() {} @@ -79,14 +94,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr NetworkStatusResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : status_{static_cast< ::tari::rpc::ConnectivityStatus >(0)}, + : _cached_size_{0}, + status_{static_cast< ::tari::rpc::ConnectivityStatus >(0)}, avg_latency_ms_{0u}, - num_node_connections_{0u}, - _cached_size_{0} {} + num_node_connections_{0u} {} template PROTOBUF_CONSTEXPR NetworkStatusResponse::NetworkStatusResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(NetworkStatusResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct NetworkStatusResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR NetworkStatusResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NetworkStatusResponseDefaultTypeInternal() {} @@ -100,7 +121,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetIdentityResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : public_key_( + : _cached_size_{0}, + public_key_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), public_address_( @@ -108,12 +130,17 @@ inline constexpr GetIdentityResponse::Impl_::Impl_( ::_pbi::ConstantInitialized()), node_id_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetIdentityResponse::GetIdentityResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetIdentityResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetIdentityResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetIdentityResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetIdentityResponseDefaultTypeInternal() {} @@ -124,8 +151,14 @@ struct GetIdentityResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetIdentityResponseDefaultTypeInternal _GetIdentityResponse_default_instance_; - template -PROTOBUF_CONSTEXPR GetIdentityRequest::GetIdentityRequest(::_pbi::ConstantInitialized) {} +template +PROTOBUF_CONSTEXPR GetIdentityRequest::GetIdentityRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(GetIdentityRequest_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct GetIdentityRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetIdentityRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetIdentityRequestDefaultTypeInternal() {} @@ -139,12 +172,18 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr AverageLatency::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : latency_{::uint64_t{0u}}, - _cached_size_{0} {} + : _cached_size_{0}, + latency_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR AverageLatency::AverageLatency(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(AverageLatency_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct AverageLatencyDefaultTypeInternal { PROTOBUF_CONSTEXPR AverageLatencyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AverageLatencyDefaultTypeInternal() {} @@ -170,7 +209,13 @@ inline constexpr Address::Impl_::Impl_( template PROTOBUF_CONSTEXPR Address::Address(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(Address_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct AddressDefaultTypeInternal { PROTOBUF_CONSTEXPR AddressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AddressDefaultTypeInternal() {} @@ -184,7 +229,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr Peer::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : addresses_{}, + : _cached_size_{0}, + addresses_{}, supported_protocols_{}, public_key_( &::google::protobuf::internal::fixed_address_empty_string, @@ -202,12 +248,17 @@ inline constexpr Peer::Impl_::Impl_( banned_until_{::uint64_t{0u}}, flags_{0u}, features_{0u}, - offline_at_{::uint64_t{0u}}, - _cached_size_{0} {} + offline_at_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR Peer::Peer(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(Peer_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PeerDefaultTypeInternal { PROTOBUF_CONSTEXPR PeerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PeerDefaultTypeInternal() {} @@ -226,7 +277,13 @@ inline constexpr ListConnectedPeersResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ListConnectedPeersResponse::ListConnectedPeersResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ListConnectedPeersResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ListConnectedPeersResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ListConnectedPeersResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListConnectedPeersResponseDefaultTypeInternal() {} @@ -239,32 +296,25 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListConnectedPeersResponseDefaultTypeInternal _ListConnectedPeersResponse_default_instance_; } // namespace rpc } // namespace tari -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** +static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL + file_level_enum_descriptors_network_2eproto[1]; +static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_network_2eproto = nullptr; 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) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::NodeIdentity, _impl_._has_bits_), + 6, // hasbit index offset 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) + 0, + ~0u, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_._has_bits_), + 14, // hasbit index offset 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_), @@ -276,97 +326,80 @@ const ::uint32_t 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) + 0, + 1, + ~0u, + 4, + 6, + 5, + 2, + 8, + 7, + ~0u, + 3, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkStatusResponse, _impl_._has_bits_), + 6, // hasbit index offset 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_), + 0, + 1, + 2, + 0x081, // bitmap 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) + 7, // hasbit index offset 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) + 1, + 3, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::AverageLatency, _impl_._has_bits_), + 4, // hasbit index offset 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) + 0, + 0x000, // bitmap 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) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _impl_._has_bits_), + 7, // hasbit index offset 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) + 3, + 0, + 1, + 2, + 0x000, // bitmap + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityResponse, _impl_._has_bits_), + 6, // hasbit index offset 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_), + 0, + 1, + 2, }; static const ::_pbi::MigrationSchema 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)}, - {41, 53, -1, sizeof(::tari::rpc::Address)}, - {57, -1, -1, sizeof(::tari::rpc::AverageLatency)}, - {66, -1, -1, sizeof(::tari::rpc::ListConnectedPeersResponse)}, - {75, -1, -1, sizeof(::tari::rpc::SoftwareUpdate)}, - {87, -1, -1, sizeof(::tari::rpc::GetIdentityRequest)}, - {95, -1, -1, sizeof(::tari::rpc::GetIdentityResponse)}, + {0, sizeof(::tari::rpc::NodeIdentity)}, + {9, sizeof(::tari::rpc::Peer)}, + {34, sizeof(::tari::rpc::NetworkStatusResponse)}, + {43, sizeof(::tari::rpc::Address)}, + {54, sizeof(::tari::rpc::AverageLatency)}, + {59, sizeof(::tari::rpc::ListConnectedPeersResponse)}, + {61, sizeof(::tari::rpc::SoftwareUpdate)}, + {72, sizeof(::tari::rpc::GetIdentityRequest)}, + {73, sizeof(::tari::rpc::GetIdentityResponse)}, }; -static const ::_pb::Message* const file_default_instances[] = { +static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { &::tari::rpc::_NodeIdentity_default_instance_._instance, &::tari::rpc::_Peer_default_instance_._instance, &::tari::rpc::_NetworkStatusResponse_default_instance_._instance, @@ -406,12 +439,12 @@ const char descriptor_table_protodef_network_2eproto[] ABSL_ATTRIBUTE_SECTION_VA "tatus\022\020\n\014Initializing\020\000\022\n\n\006Online\020\001\022\014\n\010D" "egraded\020\002\022\013\n\007Offline\020\003b\006proto3" }; -static const ::_pbi::DescriptorTable* const descriptor_table_network_2eproto_deps[1] = - { +static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const + descriptor_table_network_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; static ::absl::once_flag descriptor_table_network_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_network_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_network_2eproto = { false, false, 1030, @@ -424,128 +457,145 @@ const ::_pbi::DescriptorTable descriptor_table_network_2eproto = { schemas, file_default_instances, TableStruct_network_2eproto::offsets, - file_level_metadata_network_2eproto, file_level_enum_descriptors_network_2eproto, file_level_service_descriptors_network_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_network_2eproto_getter() { - return &descriptor_table_network_2eproto; -} namespace tari { namespace rpc { -const ::google::protobuf::EnumDescriptor* ConnectivityStatus_descriptor() { +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL ConnectivityStatus_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_network_2eproto); return file_level_enum_descriptors_network_2eproto[0]; } PROTOBUF_CONSTINIT const uint32_t ConnectivityStatus_internal_data_[] = { 262144u, 0u, }; -bool ConnectivityStatus_IsValid(int value) { - return 0 <= value && value <= 3; -} // =================================================================== class NodeIdentity::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_._has_bits_); }; -NodeIdentity::NodeIdentity(::google::protobuf::Arena* arena) +NodeIdentity::NodeIdentity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NodeIdentity_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.NodeIdentity) } -inline PROTOBUF_NDEBUG_INLINE NodeIdentity::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : public_addresses_{visibility, arena, from.public_addresses_}, +PROTOBUF_NDEBUG_INLINE NodeIdentity::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::NodeIdentity& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + public_addresses_{visibility, arena, from.public_addresses_}, public_key_(arena, from.public_key_), - node_id_(arena, from.node_id_), - _cached_size_{0} {} + node_id_(arena, from.node_id_) {} NodeIdentity::NodeIdentity( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NodeIdentity& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NodeIdentity_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE NodeIdentity* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.NodeIdentity) } -inline PROTOBUF_NDEBUG_INLINE NodeIdentity::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE NodeIdentity::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : public_addresses_{visibility, arena}, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + public_addresses_{visibility, arena}, public_key_(arena), - node_id_(arena), - _cached_size_{0} {} + node_id_(arena) {} -inline void NodeIdentity::SharedCtor(::_pb::Arena* arena) { +inline void NodeIdentity::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } NodeIdentity::~NodeIdentity() { // @@protoc_insertion_point(destructor:tari.rpc.NodeIdentity) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void NodeIdentity::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_key_.Destroy(); - _impl_.node_id_.Destroy(); - _impl_.~Impl_(); +inline void NodeIdentity::SharedDtor(MessageLite& self) { + NodeIdentity& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_key_.Destroy(); + this_._impl_.node_id_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL NodeIdentity::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) NodeIdentity(arena); +} +constexpr auto NodeIdentity::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.public_addresses_) + + decltype(NodeIdentity::_impl_.public_addresses_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(NodeIdentity), alignof(NodeIdentity), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&NodeIdentity::PlacementNew_, + sizeof(NodeIdentity), + alignof(NodeIdentity)); + } +} +constexpr auto NodeIdentity::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_NodeIdentity_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_addresses_.Clear(); - _impl_.public_key_.ClearToEmpty(); - _impl_.node_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &NodeIdentity::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &NodeIdentity::ByteSizeLong, + &NodeIdentity::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_._cached_size_), + false, + }, + &NodeIdentity::kDescriptorMethods, + &descriptor_table_network_2eproto, + nullptr, // tracker + }; } -const char* NodeIdentity::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull NodeIdentity_class_data_ = + NodeIdentity::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +NodeIdentity::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&NodeIdentity_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(NodeIdentity_class_data_.tc_table); + return NodeIdentity_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 46, 2> NodeIdentity::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 46, 2> +NodeIdentity::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -554,7 +604,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 46, 2> NodeIdentity::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_NodeIdentity_default_instance_._instance, + NodeIdentity_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::NodeIdentity>(), // to_prefetch @@ -563,25 +614,25 @@ const ::_pbi::TcParseTable<2, 3, 0, 46, 2> NodeIdentity::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // bytes public_key = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.public_key_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.public_key_)}}, // repeated string public_addresses = 2; {::_pbi::TcParser::FastUR1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.public_addresses_)}}, // bytes node_id = 3; {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.node_id_)}}, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.node_id_)}}, }}, {{ 65535, 65535 }}, {{ // bytes public_key = 1; - {PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // repeated string public_addresses = 2; - {PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.public_addresses_), 0, 0, + {PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.public_addresses_), -1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, // bytes node_id = 3; - {PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.node_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.node_id_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -590,73 +641,122 @@ const ::_pbi::TcParseTable<2, 3, 0, 46, 2> NodeIdentity::_table_ = { "public_addresses" }}, }; +PROTOBUF_NOINLINE void NodeIdentity::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.NodeIdentity) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* NodeIdentity::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.public_addresses_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.node_id_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL NodeIdentity::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const NodeIdentity& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL NodeIdentity::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const NodeIdentity& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NodeIdentity) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - const std::string& _s = this->_internal_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // repeated string public_addresses = 2; - for (int i = 0, n = this->_internal_public_addresses_size(); i < n; ++i) { - const auto& s = this->_internal_public_addresses().Get(i); + for (int i = 0, n = this_._internal_public_addresses_size(); i < n; ++i) { + const auto& s = this_._internal_public_addresses().Get(i); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.NodeIdentity.public_addresses"); target = stream->WriteString(2, s, target); } // bytes node_id = 3; - if (!this->_internal_node_id().empty()) { - const std::string& _s = this->_internal_node_id(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_node_id().empty()) { + const ::std::string& _s = this_._internal_node_id(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NodeIdentity) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t NodeIdentity::ByteSizeLong(const MessageLite& base) { + const NodeIdentity& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t NodeIdentity::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NodeIdentity) + const NodeIdentity& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.NodeIdentity) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated string public_addresses = 2; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_public_addresses().size()); - for (int i = 0, n = _internal_public_addresses().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_public_addresses().Get(i)); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated string public_addresses = 2; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_public_addresses().size()); + for (int i = 0, n = this_._internal_public_addresses().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_public_addresses().Get(i)); + } + } } - // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes public_key = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + } + // bytes node_id = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_node_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_node_id()); + } + } } - - // bytes node_id = 3; - if (!this->_internal_node_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_node_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -666,12 +766,28 @@ void NodeIdentity::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::go (void) cached_has_bits; _this->_internal_mutable_public_addresses()->MergeFrom(from._internal_public_addresses()); - if (!from._internal_public_key().empty()) { - _this->_internal_set_public_key(from._internal_public_key()); - } - if (!from._internal_node_id().empty()) { - _this->_internal_set_node_id(from._internal_node_id()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_public_key().empty()) { + _this->_internal_set_public_key(from._internal_public_key()); + } else { + if (_this->_impl_.public_key_.IsDefault()) { + _this->_internal_set_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_node_id().empty()) { + _this->_internal_set_node_id(from._internal_node_id()); + } else { + if (_this->_impl_.node_id_.IsDefault()) { + _this->_internal_set_node_id(""); + } + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -682,56 +798,66 @@ void NodeIdentity::CopyFrom(const NodeIdentity& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NodeIdentity::IsInitialized() const { - return true; -} -void NodeIdentity::InternalSwap(NodeIdentity* PROTOBUF_RESTRICT other) { - using std::swap; +void NodeIdentity::InternalSwap(NodeIdentity* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.public_addresses_.InternalSwap(&other->_impl_.public_addresses_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.node_id_, &other->_impl_.node_id_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class Peer::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Peer, _impl_._has_bits_); }; -Peer::Peer(::google::protobuf::Arena* arena) +Peer::Peer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, Peer_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.Peer) } -inline PROTOBUF_NDEBUG_INLINE Peer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : addresses_{visibility, arena, from.addresses_}, +PROTOBUF_NDEBUG_INLINE Peer::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::Peer& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + addresses_{visibility, arena, from.addresses_}, supported_protocols_{visibility, arena, from.supported_protocols_}, public_key_(arena, from.public_key_), node_id_(arena, from.node_id_), banned_reason_(arena, from.banned_reason_), - user_agent_(arena, from.user_agent_), - _cached_size_{0} {} + user_agent_(arena, from.user_agent_) {} Peer::Peer( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Peer& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, Peer_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE Peer* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, last_connection_), reinterpret_cast(&from._impl_) + @@ -742,18 +868,18 @@ Peer::Peer( // @@protoc_insertion_point(copy_constructor:tari.rpc.Peer) } -inline PROTOBUF_NDEBUG_INLINE Peer::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE Peer::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : addresses_{visibility, arena}, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + addresses_{visibility, arena}, supported_protocols_{visibility, arena}, public_key_(arena), node_id_(arena), banned_reason_(arena), - user_agent_(arena), - _cached_size_{0} {} + user_agent_(arena) {} -inline void Peer::SharedCtor(::_pb::Arena* arena) { +inline void Peer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, last_connection_), @@ -764,62 +890,82 @@ inline void Peer::SharedCtor(::_pb::Arena* arena) { } Peer::~Peer() { // @@protoc_insertion_point(destructor:tari.rpc.Peer) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void Peer::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_key_.Destroy(); - _impl_.node_id_.Destroy(); - _impl_.banned_reason_.Destroy(); - _impl_.user_agent_.Destroy(); - _impl_.~Impl_(); +inline void Peer::SharedDtor(MessageLite& self) { + Peer& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_key_.Destroy(); + this_._impl_.node_id_.Destroy(); + this_._impl_.banned_reason_.Destroy(); + this_._impl_.user_agent_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL Peer::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Peer(arena); +} +constexpr auto Peer::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Peer, _impl_.addresses_) + + decltype(Peer::_impl_.addresses_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Peer, _impl_.supported_protocols_) + + decltype(Peer::_impl_.supported_protocols_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(Peer), alignof(Peer), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Peer::PlacementNew_, + sizeof(Peer), + alignof(Peer)); + } +} +constexpr auto Peer::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Peer_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.addresses_.Clear(); - _impl_.supported_protocols_.Clear(); - _impl_.public_key_.ClearToEmpty(); - _impl_.node_id_.ClearToEmpty(); - _impl_.banned_reason_.ClearToEmpty(); - _impl_.user_agent_.ClearToEmpty(); - ::memset(&_impl_.last_connection_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.offline_at_) - - reinterpret_cast(&_impl_.last_connection_)) + sizeof(_impl_.offline_at_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Peer::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Peer::ByteSizeLong, + &Peer::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Peer, _impl_._cached_size_), + false, + }, + &Peer::kDescriptorMethods, + &descriptor_table_network_2eproto, + nullptr, // tracker + }; } -const char* Peer::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Peer_class_data_ = + Peer::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Peer::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Peer_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Peer_class_data_.tc_table); + return Peer_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 11, 1, 53, 2> Peer::_table_ = { +const ::_pbi::TcParseTable<4, 11, 1, 53, 2> +Peer::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(Peer, _impl_._has_bits_), 0, // no _extensions_ 12, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -828,7 +974,8 @@ const ::_pbi::TcParseTable<4, 11, 1, 53, 2> Peer::_table_ = { 11, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_Peer_default_instance_._instance, + Peer_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::Peer>(), // to_prefetch @@ -837,38 +984,38 @@ const ::_pbi::TcParseTable<4, 11, 1, 53, 2> Peer::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // bytes public_key = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.public_key_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.public_key_)}}, // bytes node_id = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.node_id_)}}, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.node_id_)}}, // repeated .tari.rpc.Address addresses = 3; {::_pbi::TcParser::FastMtR1, {26, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.addresses_)}}, // uint64 last_connection = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Peer, _impl_.last_connection_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.last_connection_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Peer, _impl_.last_connection_), 4>(), + {32, 4, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.last_connection_)}}, // uint32 flags = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Peer, _impl_.flags_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.flags_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Peer, _impl_.flags_), 6>(), + {40, 6, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.flags_)}}, // uint64 banned_until = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Peer, _impl_.banned_until_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.banned_until_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Peer, _impl_.banned_until_), 5>(), + {48, 5, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.banned_until_)}}, // string banned_reason = 7; {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.banned_reason_)}}, + {58, 2, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.banned_reason_)}}, // uint64 offline_at = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Peer, _impl_.offline_at_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.offline_at_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Peer, _impl_.offline_at_), 8>(), + {64, 8, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.offline_at_)}}, // uint32 features = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Peer, _impl_.features_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.features_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Peer, _impl_.features_), 7>(), + {72, 7, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.features_)}}, {::_pbi::TcParser::MiniParse, {}}, // repeated bytes supported_protocols = 11; {::_pbi::TcParser::FastBR1, {90, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.supported_protocols_)}}, // string user_agent = 12; {::_pbi::TcParser::FastUS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.user_agent_)}}, + {98, 3, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.user_agent_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -876,72 +1023,119 @@ const ::_pbi::TcParseTable<4, 11, 1, 53, 2> Peer::_table_ = { 65535, 65535 }}, {{ // bytes public_key = 1; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Peer, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes node_id = 2; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.node_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Peer, _impl_.node_id_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // repeated .tari.rpc.Address addresses = 3; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.addresses_), 0, 0, + {PROTOBUF_FIELD_OFFSET(Peer, _impl_.addresses_), -1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, // uint64 last_connection = 4; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.last_connection_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(Peer, _impl_.last_connection_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint32 flags = 5; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.flags_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(Peer, _impl_.flags_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint64 banned_until = 6; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.banned_until_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(Peer, _impl_.banned_until_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // string banned_reason = 7; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.banned_reason_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Peer, _impl_.banned_reason_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint64 offline_at = 8; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.offline_at_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(Peer, _impl_.offline_at_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint32 features = 9; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.features_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(Peer, _impl_.features_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // repeated bytes supported_protocols = 11; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.supported_protocols_), 0, 0, + {PROTOBUF_FIELD_OFFSET(Peer, _impl_.supported_protocols_), -1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, // string user_agent = 12; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.user_agent_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Address>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(Peer, _impl_.user_agent_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Address>()}, + }}, + {{ "\15\0\0\0\0\0\0\15\0\0\0\12\0\0\0\0" "tari.rpc.Peer" "banned_reason" "user_agent" }}, }; +PROTOBUF_NOINLINE void Peer::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.Peer) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* Peer::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.addresses_.Clear(); + _impl_.supported_protocols_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.node_id_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.banned_reason_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.user_agent_.ClearNonDefaultToEmpty(); + } + } + if ((cached_has_bits & 0x000000f0u) != 0) { + ::memset(&_impl_.last_connection_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.features_) - + reinterpret_cast(&_impl_.last_connection_)) + sizeof(_impl_.features_)); + } + _impl_.offline_at_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Peer::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Peer& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Peer::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Peer& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Peer) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - const std::string& _s = this->_internal_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // bytes node_id = 2; - if (!this->_internal_node_id().empty()) { - const std::string& _s = this->_internal_node_id(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_node_id().empty()) { + const ::std::string& _s = this_._internal_node_id(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } // repeated .tari.rpc.Address addresses = 3; for (unsigned i = 0, n = static_cast( - this->_internal_addresses_size()); + this_._internal_addresses_size()); i < n; i++) { - const auto& repfield = this->_internal_addresses().Get(i); + const auto& repfield = this_._internal_addresses().Get(i); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, repfield, repfield.GetCachedSize(), @@ -949,148 +1143,190 @@ const ::_pbi::TcParseTable<4, 11, 1, 53, 2> Peer::_table_ = { } // uint64 last_connection = 4; - if (this->_internal_last_connection() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_last_connection(), target); + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (this_._internal_last_connection() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_last_connection(), target); + } } // uint32 flags = 5; - if (this->_internal_flags() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 5, this->_internal_flags(), target); + if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { + if (this_._internal_flags() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 5, this_._internal_flags(), target); + } } // uint64 banned_until = 6; - if (this->_internal_banned_until() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 6, this->_internal_banned_until(), target); + if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { + if (this_._internal_banned_until() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 6, this_._internal_banned_until(), target); + } } // string banned_reason = 7; - if (!this->_internal_banned_reason().empty()) { - const std::string& _s = this->_internal_banned_reason(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.Peer.banned_reason"); - target = stream->WriteStringMaybeAliased(7, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (!this_._internal_banned_reason().empty()) { + const ::std::string& _s = this_._internal_banned_reason(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.Peer.banned_reason"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } } // uint64 offline_at = 8; - if (this->_internal_offline_at() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 8, this->_internal_offline_at(), target); + if ((this_._impl_._has_bits_[0] & 0x00000100u) != 0) { + if (this_._internal_offline_at() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 8, this_._internal_offline_at(), target); + } } // uint32 features = 9; - if (this->_internal_features() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 9, this->_internal_features(), target); + if ((this_._impl_._has_bits_[0] & 0x00000080u) != 0) { + if (this_._internal_features() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 9, this_._internal_features(), target); + } } // repeated bytes supported_protocols = 11; - for (int i = 0, n = this->_internal_supported_protocols_size(); i < n; ++i) { - const auto& s = this->_internal_supported_protocols().Get(i); + for (int i = 0, n = this_._internal_supported_protocols_size(); i < n; ++i) { + const auto& s = this_._internal_supported_protocols().Get(i); target = stream->WriteBytes(11, s, target); } // string user_agent = 12; - if (!this->_internal_user_agent().empty()) { - const std::string& _s = this->_internal_user_agent(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.Peer.user_agent"); - target = stream->WriteStringMaybeAliased(12, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (!this_._internal_user_agent().empty()) { + const ::std::string& _s = this_._internal_user_agent(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.Peer.user_agent"); + target = stream->WriteStringMaybeAliased(12, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Peer) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Peer::ByteSizeLong(const MessageLite& base) { + const Peer& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t Peer::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.Peer) + const Peer& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.Peer) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // 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); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // 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); + } + } + // repeated bytes supported_protocols = 11; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_supported_protocols().size()); + for (int i = 0, n = this_._internal_supported_protocols().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_supported_protocols().Get(i)); + } + } } - // repeated bytes supported_protocols = 11; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_supported_protocols().size()); - for (int i = 0, n = _internal_supported_protocols().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( - _internal_supported_protocols().Get(i)); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + // bytes public_key = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + } + // bytes node_id = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_node_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_node_id()); + } + } + // string banned_reason = 7; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_banned_reason().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_banned_reason()); + } + } + // string user_agent = 12; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_user_agent().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_user_agent()); + } + } + // uint64 last_connection = 4; + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_last_connection() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_last_connection()); + } + } + // uint64 banned_until = 6; + if ((cached_has_bits & 0x00000020u) != 0) { + if (this_._internal_banned_until() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_banned_until()); + } + } + // uint32 flags = 5; + if ((cached_has_bits & 0x00000040u) != 0) { + if (this_._internal_flags() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_flags()); + } + } + // uint32 features = 9; + if ((cached_has_bits & 0x00000080u) != 0) { + if (this_._internal_features() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_features()); + } + } } - // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + { + // uint64 offline_at = 8; + if ((cached_has_bits & 0x00000100u) != 0) { + if (this_._internal_offline_at() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_offline_at()); + } + } } - - // bytes node_id = 2; - if (!this->_internal_node_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_node_id()); - } - - // string banned_reason = 7; - if (!this->_internal_banned_reason().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_banned_reason()); - } - - // string user_agent = 12; - if (!this->_internal_user_agent().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_user_agent()); - } - - // uint64 last_connection = 4; - if (this->_internal_last_connection() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_last_connection()); - } - - // uint64 banned_until = 6; - if (this->_internal_banned_until() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_banned_until()); - } - - // uint32 flags = 5; - if (this->_internal_flags() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_flags()); - } - - // uint32 features = 9; - if (this->_internal_features() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_features()); - } - - // uint64 offline_at = 8; - if (this->_internal_offline_at() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_offline_at()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1102,33 +1338,71 @@ void Peer::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::pr _this->_internal_mutable_addresses()->MergeFrom( from._internal_addresses()); _this->_internal_mutable_supported_protocols()->MergeFrom(from._internal_supported_protocols()); - if (!from._internal_public_key().empty()) { - _this->_internal_set_public_key(from._internal_public_key()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_public_key().empty()) { + _this->_internal_set_public_key(from._internal_public_key()); + } else { + if (_this->_impl_.public_key_.IsDefault()) { + _this->_internal_set_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_node_id().empty()) { + _this->_internal_set_node_id(from._internal_node_id()); + } else { + if (_this->_impl_.node_id_.IsDefault()) { + _this->_internal_set_node_id(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_banned_reason().empty()) { + _this->_internal_set_banned_reason(from._internal_banned_reason()); + } else { + if (_this->_impl_.banned_reason_.IsDefault()) { + _this->_internal_set_banned_reason(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_user_agent().empty()) { + _this->_internal_set_user_agent(from._internal_user_agent()); + } else { + if (_this->_impl_.user_agent_.IsDefault()) { + _this->_internal_set_user_agent(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (from._internal_last_connection() != 0) { + _this->_impl_.last_connection_ = from._impl_.last_connection_; + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (from._internal_banned_until() != 0) { + _this->_impl_.banned_until_ = from._impl_.banned_until_; + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (from._internal_flags() != 0) { + _this->_impl_.flags_ = from._impl_.flags_; + } + } + if ((cached_has_bits & 0x00000080u) != 0) { + if (from._internal_features() != 0) { + _this->_impl_.features_ = from._impl_.features_; + } + } } - if (!from._internal_node_id().empty()) { - _this->_internal_set_node_id(from._internal_node_id()); - } - if (!from._internal_banned_reason().empty()) { - _this->_internal_set_banned_reason(from._internal_banned_reason()); - } - if (!from._internal_user_agent().empty()) { - _this->_internal_set_user_agent(from._internal_user_agent()); - } - if (from._internal_last_connection() != 0) { - _this->_impl_.last_connection_ = from._impl_.last_connection_; - } - if (from._internal_banned_until() != 0) { - _this->_impl_.banned_until_ = from._impl_.banned_until_; - } - if (from._internal_flags() != 0) { - _this->_impl_.flags_ = from._impl_.flags_; - } - if (from._internal_features() != 0) { - _this->_impl_.features_ = from._impl_.features_; - } - if (from._internal_offline_at() != 0) { - _this->_impl_.offline_at_ = from._impl_.offline_at_; + if ((cached_has_bits & 0x00000100u) != 0) { + if (from._internal_offline_at() != 0) { + _this->_impl_.offline_at_ = from._impl_.offline_at_; + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1139,15 +1413,13 @@ void Peer::CopyFrom(const Peer& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Peer::IsInitialized() const { - return true; -} -void Peer::InternalSwap(Peer* PROTOBUF_RESTRICT other) { - using std::swap; +void Peer::InternalSwap(Peer* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.addresses_.InternalSwap(&other->_impl_.addresses_); _impl_.supported_protocols_.InternalSwap(&other->_impl_.supported_protocols_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); @@ -1163,32 +1435,44 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class NetworkStatusResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_._has_bits_); }; -NetworkStatusResponse::NetworkStatusResponse(::google::protobuf::Arena* arena) +NetworkStatusResponse::NetworkStatusResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NetworkStatusResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.NetworkStatusResponse) } NetworkStatusResponse::NetworkStatusResponse( - ::google::protobuf::Arena* arena, const NetworkStatusResponse& from) - : NetworkStatusResponse(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NetworkStatusResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, NetworkStatusResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE NetworkStatusResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE NetworkStatusResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void NetworkStatusResponse::SharedCtor(::_pb::Arena* arena) { +inline void NetworkStatusResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, status_), @@ -1199,52 +1483,62 @@ inline void NetworkStatusResponse::SharedCtor(::_pb::Arena* arena) { } NetworkStatusResponse::~NetworkStatusResponse() { // @@protoc_insertion_point(destructor:tari.rpc.NetworkStatusResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void NetworkStatusResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void NetworkStatusResponse::SharedDtor(MessageLite& self) { + NetworkStatusResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL NetworkStatusResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) NetworkStatusResponse(arena); +} +constexpr auto NetworkStatusResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(NetworkStatusResponse), + alignof(NetworkStatusResponse)); +} +constexpr auto NetworkStatusResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_NetworkStatusResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.status_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_node_connections_) - - reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.num_node_connections_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &NetworkStatusResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &NetworkStatusResponse::ByteSizeLong, + &NetworkStatusResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_._cached_size_), + false, + }, + &NetworkStatusResponse::kDescriptorMethods, + &descriptor_table_network_2eproto, + nullptr, // tracker + }; } -const char* NetworkStatusResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull NetworkStatusResponse_class_data_ = + NetworkStatusResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +NetworkStatusResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&NetworkStatusResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(NetworkStatusResponse_class_data_.tc_table); + return NetworkStatusResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> NetworkStatusResponse::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +NetworkStatusResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -1253,7 +1547,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> NetworkStatusResponse::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_NetworkStatusResponse_default_instance_._instance, + NetworkStatusResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::NetworkStatusResponse>(), // to_prefetch @@ -1261,99 +1556,142 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> NetworkStatusResponse::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // .tari.rpc.ConnectivityStatus status = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetworkStatusResponse, _impl_.status_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.status_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetworkStatusResponse, _impl_.status_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.status_)}}, // uint32 avg_latency_ms = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetworkStatusResponse, _impl_.avg_latency_ms_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.avg_latency_ms_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetworkStatusResponse, _impl_.avg_latency_ms_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.avg_latency_ms_)}}, // uint32 num_node_connections = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetworkStatusResponse, _impl_.num_node_connections_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.num_node_connections_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetworkStatusResponse, _impl_.num_node_connections_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.num_node_connections_)}}, }}, {{ 65535, 65535 }}, {{ // .tari.rpc.ConnectivityStatus status = 1; - {PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.status_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + {PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.status_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, // uint32 avg_latency_ms = 2; - {PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.avg_latency_ms_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.avg_latency_ms_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 num_node_connections = 3; - {PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.num_node_connections_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.num_node_connections_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void NetworkStatusResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.NetworkStatusResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* NetworkStatusResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + ::memset(&_impl_.status_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.num_node_connections_) - + reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.num_node_connections_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL NetworkStatusResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const NetworkStatusResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL NetworkStatusResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const NetworkStatusResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NetworkStatusResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // .tari.rpc.ConnectivityStatus status = 1; - if (this->_internal_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_status(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_status() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_status(), target); + } } // uint32 avg_latency_ms = 2; - if (this->_internal_avg_latency_ms() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_avg_latency_ms(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_avg_latency_ms() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_avg_latency_ms(), target); + } } // uint32 num_node_connections = 3; - if (this->_internal_num_node_connections() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_num_node_connections(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_num_node_connections() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 3, this_._internal_num_node_connections(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NetworkStatusResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t NetworkStatusResponse::ByteSizeLong(const MessageLite& base) { + const NetworkStatusResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t NetworkStatusResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NetworkStatusResponse) + const NetworkStatusResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.NetworkStatusResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // .tari.rpc.ConnectivityStatus status = 1; - if (this->_internal_status() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // .tari.rpc.ConnectivityStatus status = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_status() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); + } + } + // uint32 avg_latency_ms = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_avg_latency_ms() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_avg_latency_ms()); + } + } + // uint32 num_node_connections = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_num_node_connections() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_num_node_connections()); + } + } } - - // uint32 avg_latency_ms = 2; - if (this->_internal_avg_latency_ms() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_avg_latency_ms()); - } - - // uint32 num_node_connections = 3; - if (this->_internal_num_node_connections() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_num_node_connections()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1362,15 +1700,25 @@ void NetworkStatusResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, c ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_status() != 0) { - _this->_impl_.status_ = from._impl_.status_; - } - if (from._internal_avg_latency_ms() != 0) { - _this->_impl_.avg_latency_ms_ = from._impl_.avg_latency_ms_; - } - if (from._internal_num_node_connections() != 0) { - _this->_impl_.num_node_connections_ = from._impl_.num_node_connections_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_status() != 0) { + _this->_impl_.status_ = from._impl_.status_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_avg_latency_ms() != 0) { + _this->_impl_.avg_latency_ms_ = from._impl_.avg_latency_ms_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_num_node_connections() != 0) { + _this->_impl_.num_node_connections_ = from._impl_.num_node_connections_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1381,13 +1729,11 @@ void NetworkStatusResponse::CopyFrom(const NetworkStatusResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool NetworkStatusResponse::IsInitialized() const { - return true; -} -void NetworkStatusResponse::InternalSwap(NetworkStatusResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void NetworkStatusResponse::InternalSwap(NetworkStatusResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.num_node_connections_) + sizeof(NetworkStatusResponse::_impl_.num_node_connections_) @@ -1397,57 +1743,65 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class Address::_Internal { public: - using HasBits = decltype(std::declval
()._impl_._has_bits_); + using HasBits = + decltype(::std::declval
()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Address, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(Address, _impl_._has_bits_); }; -Address::Address(::google::protobuf::Arena* arena) +Address::Address(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, Address_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.Address) } -inline PROTOBUF_NDEBUG_INLINE Address::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE Address::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::Address& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, address_(arena, from.address_), last_seen_(arena, from.last_seen_) {} Address::Address( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Address& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, Address_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE Address* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.avg_latency_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::AverageLatency>( - arena, *from._impl_.avg_latency_) - : nullptr; + _impl_.avg_latency_ = ((cached_has_bits & 0x00000004u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.avg_latency_) + : nullptr; _impl_.connection_attempts_ = from._impl_.connection_attempts_; // @@protoc_insertion_point(copy_constructor:tari.rpc.Address) } -inline PROTOBUF_NDEBUG_INLINE Address::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE Address::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, address_(arena), last_seen_(arena) {} -inline void Address::SharedCtor(::_pb::Arena* arena) { +inline void Address::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, avg_latency_), @@ -1458,59 +1812,63 @@ inline void Address::SharedCtor(::_pb::Arena* arena) { } Address::~Address() { // @@protoc_insertion_point(destructor:tari.rpc.Address) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void Address::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.address_.Destroy(); - _impl_.last_seen_.Destroy(); - delete _impl_.avg_latency_; - _impl_.~Impl_(); +inline void Address::SharedDtor(MessageLite& self) { + Address& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.address_.Destroy(); + this_._impl_.last_seen_.Destroy(); + delete this_._impl_.avg_latency_; + this_._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, - }, +inline void* PROTOBUF_NONNULL Address::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Address(arena); +} +constexpr auto Address::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Address), + alignof(Address)); +} +constexpr auto Address::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Address_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.address_.ClearToEmpty(); - _impl_.last_seen_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.avg_latency_ != nullptr); - _impl_.avg_latency_->Clear(); - } - _impl_.connection_attempts_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl
(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Address::SharedDtor, + ::google::protobuf::Message::GetClearImpl
(), &Address::ByteSizeLong, + &Address::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Address, _impl_._cached_size_), + false, + }, + &Address::kDescriptorMethods, + &descriptor_table_network_2eproto, + nullptr, // tracker + }; } -const char* Address::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Address_class_data_ = + Address::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Address::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Address_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Address_class_data_.tc_table); + return Address_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 4, 1, 34, 2> Address::_table_ = { +const ::_pbi::TcParseTable<3, 4, 1, 34, 2> +Address::_table_ = { { PROTOBUF_FIELD_OFFSET(Address, _impl_._has_bits_), 0, // no _extensions_ @@ -1521,7 +1879,8 @@ const ::_pbi::TcParseTable<3, 4, 1, 34, 2> Address::_table_ = { 4, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_Address_default_instance_._instance, + Address_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::Address>(), // to_prefetch @@ -1530,124 +1889,176 @@ const ::_pbi::TcParseTable<3, 4, 1, 34, 2> Address::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // bytes address = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.address_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.address_)}}, // string last_seen = 2; {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.last_seen_)}}, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.last_seen_)}}, // uint32 connection_attempts = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Address, _impl_.connection_attempts_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.connection_attempts_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Address, _impl_.connection_attempts_), 3>(), + {24, 3, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.connection_attempts_)}}, {::_pbi::TcParser::MiniParse, {}}, // .tari.rpc.AverageLatency avg_latency = 5; {::_pbi::TcParser::FastMtS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.avg_latency_)}}, + {42, 2, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.avg_latency_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // bytes address = 1; - {PROTOBUF_FIELD_OFFSET(Address, _impl_.address_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Address, _impl_.address_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // string last_seen = 2; - {PROTOBUF_FIELD_OFFSET(Address, _impl_.last_seen_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Address, _impl_.last_seen_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint32 connection_attempts = 3; - {PROTOBUF_FIELD_OFFSET(Address, _impl_.connection_attempts_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(Address, _impl_.connection_attempts_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .tari.rpc.AverageLatency avg_latency = 5; - {PROTOBUF_FIELD_OFFSET(Address, _impl_.avg_latency_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(Address, _impl_.avg_latency_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::AverageLatency>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::AverageLatency>()}, + }}, + {{ "\20\0\11\0\0\0\0\0" "tari.rpc.Address" "last_seen" }}, }; +PROTOBUF_NOINLINE void Address::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.Address) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* Address::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.address_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.last_seen_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + ABSL_DCHECK(_impl_.avg_latency_ != nullptr); + _impl_.avg_latency_->Clear(); + } + } + _impl_.connection_attempts_ = 0u; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Address::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Address& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Address::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Address& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Address) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes address = 1; - if (!this->_internal_address().empty()) { - const std::string& _s = this->_internal_address(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_address().empty()) { + const ::std::string& _s = this_._internal_address(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // string last_seen = 2; - if (!this->_internal_last_seen().empty()) { - const std::string& _s = this->_internal_last_seen(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.Address.last_seen"); - target = stream->WriteStringMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_last_seen().empty()) { + const ::std::string& _s = this_._internal_last_seen(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.Address.last_seen"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } } // uint32 connection_attempts = 3; - if (this->_internal_connection_attempts() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_connection_attempts(), target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (this_._internal_connection_attempts() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 3, this_._internal_connection_attempts(), target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.AverageLatency avg_latency = 5; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *_impl_.avg_latency_, _impl_.avg_latency_->GetCachedSize(), target, stream); + 5, *this_._impl_.avg_latency_, this_._impl_.avg_latency_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Address) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Address::ByteSizeLong(const MessageLite& base) { + const Address& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t Address::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.Address) + const Address& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.Address) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes address = 1; - if (!this->_internal_address().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_address()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + // bytes address = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_address().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_address()); + } + } + // string last_seen = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_last_seen().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_last_seen()); + } + } + // .tari.rpc.AverageLatency avg_latency = 5; + if ((cached_has_bits & 0x00000004u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.avg_latency_); + } + // uint32 connection_attempts = 3; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_connection_attempts() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_connection_attempts()); + } + } } - - // string last_seen = 2; - if (!this->_internal_last_seen().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_last_seen()); - } - - // .tari.rpc.AverageLatency avg_latency = 5; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.avg_latency_); - } - - // uint32 connection_attempts = 3; - if (this->_internal_connection_attempts() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_connection_attempts()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1657,24 +2068,39 @@ void Address::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_address().empty()) { - _this->_internal_set_address(from._internal_address()); - } - if (!from._internal_last_seen().empty()) { - _this->_internal_set_last_seen(from._internal_last_seen()); - } 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 ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_address().empty()) { + _this->_internal_set_address(from._internal_address()); + } else { + if (_this->_impl_.address_.IsDefault()) { + _this->_internal_set_address(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_last_seen().empty()) { + _this->_internal_set_last_seen(from._internal_last_seen()); + } else { + if (_this->_impl_.last_seen_.IsDefault()) { + _this->_internal_set_last_seen(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + ABSL_DCHECK(from._impl_.avg_latency_ != nullptr); + if (_this->_impl_.avg_latency_ == nullptr) { + _this->_impl_.avg_latency_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.avg_latency_); + } else { + _this->_impl_.avg_latency_->MergeFrom(*from._impl_.avg_latency_); + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_connection_attempts() != 0) { + _this->_impl_.connection_attempts_ = from._impl_.connection_attempts_; + } } - } - if (from._internal_connection_attempts() != 0) { - _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_); @@ -1687,12 +2113,9 @@ void Address::CopyFrom(const Address& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Address::IsInitialized() const { - return true; -} -void Address::InternalSwap(Address* PROTOBUF_RESTRICT other) { - using std::swap; +void Address::InternalSwap(Address* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1708,81 +2131,105 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class AverageLatency::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(AverageLatency, _impl_._has_bits_); }; -AverageLatency::AverageLatency(::google::protobuf::Arena* arena) +AverageLatency::AverageLatency(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, AverageLatency_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.AverageLatency) } AverageLatency::AverageLatency( - ::google::protobuf::Arena* arena, const AverageLatency& from) - : AverageLatency(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AverageLatency& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, AverageLatency_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE AverageLatency::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE AverageLatency::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void AverageLatency::SharedCtor(::_pb::Arena* arena) { +inline void AverageLatency::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.latency_ = {}; } AverageLatency::~AverageLatency() { // @@protoc_insertion_point(destructor:tari.rpc.AverageLatency) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void AverageLatency::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void AverageLatency::SharedDtor(MessageLite& self) { + AverageLatency& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL AverageLatency::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) AverageLatency(arena); +} +constexpr auto AverageLatency::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AverageLatency), + alignof(AverageLatency)); +} +constexpr auto AverageLatency::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_AverageLatency_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.latency_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AverageLatency::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &AverageLatency::ByteSizeLong, + &AverageLatency::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AverageLatency, _impl_._cached_size_), + false, + }, + &AverageLatency::kDescriptorMethods, + &descriptor_table_network_2eproto, + nullptr, // tracker + }; } -const char* AverageLatency::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull AverageLatency_class_data_ = + AverageLatency::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +AverageLatency::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&AverageLatency_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(AverageLatency_class_data_.tc_table); + return AverageLatency_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AverageLatency::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +AverageLatency::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(AverageLatency, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -1791,68 +2238,100 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AverageLatency::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_AverageLatency_default_instance_._instance, + AverageLatency_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(AverageLatency, _impl_.latency_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AverageLatency, _impl_.latency_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(AverageLatency, _impl_.latency_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 latency = 1; - {PROTOBUF_FIELD_OFFSET(AverageLatency, _impl_.latency_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(AverageLatency, _impl_.latency_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void AverageLatency::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.AverageLatency) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* AverageLatency::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.latency_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL AverageLatency::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const AverageLatency& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL AverageLatency::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const AverageLatency& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.AverageLatency) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 latency = 1; - if (this->_internal_latency() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_latency(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_latency() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_latency(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.AverageLatency) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AverageLatency::ByteSizeLong(const MessageLite& base) { + const AverageLatency& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t AverageLatency::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.AverageLatency) + const AverageLatency& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.AverageLatency) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 latency = 1; - if (this->_internal_latency() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_latency()); + { + // uint64 latency = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_latency() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_latency()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1861,9 +2340,13 @@ void AverageLatency::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_latency() != 0) { - _this->_impl_.latency_ = from._impl_.latency_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_latency() != 0) { + _this->_impl_.latency_ = from._impl_.latency_; + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1874,20 +2357,16 @@ void AverageLatency::CopyFrom(const AverageLatency& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AverageLatency::IsInitialized() const { - return true; -} -void AverageLatency::InternalSwap(AverageLatency* PROTOBUF_RESTRICT other) { - using std::swap; +void AverageLatency::InternalSwap(AverageLatency* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.latency_, other->_impl_.latency_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.latency_, other->_impl_.latency_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1895,82 +2374,115 @@ class ListConnectedPeersResponse::_Internal { public: }; -ListConnectedPeersResponse::ListConnectedPeersResponse(::google::protobuf::Arena* arena) +ListConnectedPeersResponse::ListConnectedPeersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ListConnectedPeersResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.ListConnectedPeersResponse) } -inline PROTOBUF_NDEBUG_INLINE ListConnectedPeersResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE ListConnectedPeersResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ListConnectedPeersResponse& from_msg) : connected_peers_{visibility, arena, from.connected_peers_}, _cached_size_{0} {} ListConnectedPeersResponse::ListConnectedPeersResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ListConnectedPeersResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ListConnectedPeersResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ListConnectedPeersResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.ListConnectedPeersResponse) } -inline PROTOBUF_NDEBUG_INLINE ListConnectedPeersResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE ListConnectedPeersResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : connected_peers_{visibility, arena}, _cached_size_{0} {} -inline void ListConnectedPeersResponse::SharedCtor(::_pb::Arena* arena) { +inline void ListConnectedPeersResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } ListConnectedPeersResponse::~ListConnectedPeersResponse() { // @@protoc_insertion_point(destructor:tari.rpc.ListConnectedPeersResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void ListConnectedPeersResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void ListConnectedPeersResponse::SharedDtor(MessageLite& self) { + ListConnectedPeersResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL ListConnectedPeersResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ListConnectedPeersResponse(arena); +} +constexpr auto ListConnectedPeersResponse::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(ListConnectedPeersResponse, _impl_.connected_peers_) + + decltype(ListConnectedPeersResponse::_impl_.connected_peers_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ListConnectedPeersResponse), alignof(ListConnectedPeersResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&ListConnectedPeersResponse::PlacementNew_, + sizeof(ListConnectedPeersResponse), + alignof(ListConnectedPeersResponse)); + } +} +constexpr auto ListConnectedPeersResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ListConnectedPeersResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.connected_peers_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ListConnectedPeersResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ListConnectedPeersResponse::ByteSizeLong, + &ListConnectedPeersResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ListConnectedPeersResponse, _impl_._cached_size_), + false, + }, + &ListConnectedPeersResponse::kDescriptorMethods, + &descriptor_table_network_2eproto, + nullptr, // tracker + }; } -const char* ListConnectedPeersResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ListConnectedPeersResponse_class_data_ = + ListConnectedPeersResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ListConnectedPeersResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ListConnectedPeersResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ListConnectedPeersResponse_class_data_.tc_table); + return ListConnectedPeersResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListConnectedPeersResponse::_table_ = { +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +ListConnectedPeersResponse::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -1981,7 +2493,8 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListConnectedPeersResponse::_table_ = 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ListConnectedPeersResponse_default_instance_._instance, + ListConnectedPeersResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::ListConnectedPeersResponse>(), // to_prefetch @@ -1996,56 +2509,87 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListConnectedPeersResponse::_table_ = // repeated .tari.rpc.Peer connected_peers = 1; {PROTOBUF_FIELD_OFFSET(ListConnectedPeersResponse, _impl_.connected_peers_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Peer>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Peer>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void ListConnectedPeersResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ListConnectedPeersResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* ListConnectedPeersResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.connected_peers_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ListConnectedPeersResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ListConnectedPeersResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ListConnectedPeersResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ListConnectedPeersResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ListConnectedPeersResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated .tari.rpc.Peer connected_peers = 1; for (unsigned i = 0, n = static_cast( - this->_internal_connected_peers_size()); + this_._internal_connected_peers_size()); i < n; i++) { - const auto& repfield = this->_internal_connected_peers().Get(i); + const auto& repfield = this_._internal_connected_peers().Get(i); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, repfield, repfield.GetCachedSize(), target, stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ListConnectedPeersResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ListConnectedPeersResponse::ByteSizeLong(const MessageLite& base) { + const ListConnectedPeersResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t ListConnectedPeersResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ListConnectedPeersResponse) + const ListConnectedPeersResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ListConnectedPeersResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // 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); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // 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); + } + } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2066,117 +2610,135 @@ void ListConnectedPeersResponse::CopyFrom(const ListConnectedPeersResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool ListConnectedPeersResponse::IsInitialized() const { - return true; -} -void ListConnectedPeersResponse::InternalSwap(ListConnectedPeersResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void ListConnectedPeersResponse::InternalSwap(ListConnectedPeersResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.connected_peers_.InternalSwap(&other->_impl_.connected_peers_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SoftwareUpdate::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_._has_bits_); }; -SoftwareUpdate::SoftwareUpdate(::google::protobuf::Arena* arena) +SoftwareUpdate::SoftwareUpdate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SoftwareUpdate_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.SoftwareUpdate) } -inline PROTOBUF_NDEBUG_INLINE SoftwareUpdate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : version_(arena, from.version_), +PROTOBUF_NDEBUG_INLINE SoftwareUpdate::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::SoftwareUpdate& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + version_(arena, from.version_), sha_(arena, from.sha_), - download_url_(arena, from.download_url_), - _cached_size_{0} {} + download_url_(arena, from.download_url_) {} SoftwareUpdate::SoftwareUpdate( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SoftwareUpdate& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SoftwareUpdate_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SoftwareUpdate* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.has_update_ = from._impl_.has_update_; // @@protoc_insertion_point(copy_constructor:tari.rpc.SoftwareUpdate) } -inline PROTOBUF_NDEBUG_INLINE SoftwareUpdate::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE SoftwareUpdate::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : version_(arena), + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + version_(arena), sha_(arena), - download_url_(arena), - _cached_size_{0} {} + download_url_(arena) {} -inline void SoftwareUpdate::SharedCtor(::_pb::Arena* arena) { +inline void SoftwareUpdate::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.has_update_ = {}; } SoftwareUpdate::~SoftwareUpdate() { // @@protoc_insertion_point(destructor:tari.rpc.SoftwareUpdate) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void SoftwareUpdate::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.version_.Destroy(); - _impl_.sha_.Destroy(); - _impl_.download_url_.Destroy(); - _impl_.~Impl_(); +inline void SoftwareUpdate::SharedDtor(MessageLite& self) { + SoftwareUpdate& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.version_.Destroy(); + this_._impl_.sha_.Destroy(); + this_._impl_.download_url_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL SoftwareUpdate::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SoftwareUpdate(arena); +} +constexpr auto SoftwareUpdate::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SoftwareUpdate), + alignof(SoftwareUpdate)); +} +constexpr auto SoftwareUpdate::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SoftwareUpdate_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.version_.ClearToEmpty(); - _impl_.sha_.ClearToEmpty(); - _impl_.download_url_.ClearToEmpty(); - _impl_.has_update_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SoftwareUpdate::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SoftwareUpdate::ByteSizeLong, + &SoftwareUpdate::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_._cached_size_), + false, + }, + &SoftwareUpdate::kDescriptorMethods, + &descriptor_table_network_2eproto, + nullptr, // tracker + }; } -const char* SoftwareUpdate::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SoftwareUpdate_class_data_ = + SoftwareUpdate::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SoftwareUpdate::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SoftwareUpdate_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SoftwareUpdate_class_data_.tc_table); + return SoftwareUpdate_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 54, 2> SoftwareUpdate::_table_ = { +const ::_pbi::TcParseTable<2, 4, 0, 54, 2> +SoftwareUpdate::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_._has_bits_), 0, // no _extensions_ 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -2185,7 +2747,8 @@ const ::_pbi::TcParseTable<2, 4, 0, 54, 2> SoftwareUpdate::_table_ = { 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SoftwareUpdate_default_instance_._instance, + SoftwareUpdate_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::SoftwareUpdate>(), // to_prefetch @@ -2193,31 +2756,31 @@ const ::_pbi::TcParseTable<2, 4, 0, 54, 2> SoftwareUpdate::_table_ = { }, {{ // string download_url = 4; {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.download_url_)}}, + {34, 2, 0, PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.download_url_)}}, // bool has_update = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.has_update_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {8, 3, 0, PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.has_update_)}}, // string version = 2; {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.version_)}}, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.version_)}}, // string sha = 3; {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.sha_)}}, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.sha_)}}, }}, {{ 65535, 65535 }}, {{ // bool has_update = 1; - {PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.has_update_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.has_update_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // string version = 2; - {PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.version_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string sha = 3; - {PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.sha_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.sha_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string download_url = 4; - {PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.download_url_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.download_url_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -2228,89 +2791,142 @@ const ::_pbi::TcParseTable<2, 4, 0, 54, 2> SoftwareUpdate::_table_ = { "download_url" }}, }; +PROTOBUF_NOINLINE void SoftwareUpdate::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SoftwareUpdate) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* SoftwareUpdate::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.version_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.sha_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.download_url_.ClearNonDefaultToEmpty(); + } + } + _impl_.has_update_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SoftwareUpdate::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SoftwareUpdate& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SoftwareUpdate::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SoftwareUpdate& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SoftwareUpdate) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bool has_update = 1; - if (this->_internal_has_update() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_has_update(), target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (this_._internal_has_update() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_has_update(), target); + } } // string version = 2; - if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.SoftwareUpdate.version"); - target = stream->WriteStringMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_version().empty()) { + const ::std::string& _s = this_._internal_version(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.SoftwareUpdate.version"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } } // string sha = 3; - if (!this->_internal_sha().empty()) { - const std::string& _s = this->_internal_sha(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.SoftwareUpdate.sha"); - target = stream->WriteStringMaybeAliased(3, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_sha().empty()) { + const ::std::string& _s = this_._internal_sha(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.SoftwareUpdate.sha"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } } // string download_url = 4; - if (!this->_internal_download_url().empty()) { - const std::string& _s = this->_internal_download_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.SoftwareUpdate.download_url"); - target = stream->WriteStringMaybeAliased(4, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (!this_._internal_download_url().empty()) { + const ::std::string& _s = this_._internal_download_url(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.SoftwareUpdate.download_url"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SoftwareUpdate) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SoftwareUpdate::ByteSizeLong(const MessageLite& base) { + const SoftwareUpdate& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t SoftwareUpdate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SoftwareUpdate) + const SoftwareUpdate& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SoftwareUpdate) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // string version = 2; - if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + // string version = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_version().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_version()); + } + } + // string sha = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_sha().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_sha()); + } + } + // string download_url = 4; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_download_url().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_download_url()); + } + } + // bool has_update = 1; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_has_update() != 0) { + total_size += 2; + } + } } - - // string sha = 3; - if (!this->_internal_sha().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_sha()); - } - - // string download_url = 4; - if (!this->_internal_download_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_download_url()); - } - - // bool has_update = 1; - if (this->_internal_has_update() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2319,18 +2935,42 @@ void SoftwareUpdate::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); - } - if (!from._internal_sha().empty()) { - _this->_internal_set_sha(from._internal_sha()); - } - if (!from._internal_download_url().empty()) { - _this->_internal_set_download_url(from._internal_download_url()); - } - if (from._internal_has_update() != 0) { - _this->_impl_.has_update_ = from._impl_.has_update_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_version().empty()) { + _this->_internal_set_version(from._internal_version()); + } else { + if (_this->_impl_.version_.IsDefault()) { + _this->_internal_set_version(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_sha().empty()) { + _this->_internal_set_sha(from._internal_sha()); + } else { + if (_this->_impl_.sha_.IsDefault()) { + _this->_internal_set_sha(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_download_url().empty()) { + _this->_internal_set_download_url(from._internal_download_url()); + } else { + if (_this->_impl_.download_url_.IsDefault()) { + _this->_internal_set_download_url(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_has_update() != 0) { + _this->_impl_.has_update_ = from._impl_.has_update_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2341,25 +2981,21 @@ void SoftwareUpdate::CopyFrom(const SoftwareUpdate& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SoftwareUpdate::IsInitialized() const { - return true; -} -void SoftwareUpdate::InternalSwap(SoftwareUpdate* PROTOBUF_RESTRICT other) { - using std::swap; +void SoftwareUpdate::InternalSwap(SoftwareUpdate* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sha_, &other->_impl_.sha_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.download_url_, &other->_impl_.download_url_, arena); - swap(_impl_.has_update_, other->_impl_.has_update_); + swap(_impl_.has_update_, other->_impl_.has_update_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2367,14 +3003,22 @@ class GetIdentityRequest::_Internal { public: }; -GetIdentityRequest::GetIdentityRequest(::google::protobuf::Arena* arena) +GetIdentityRequest::GetIdentityRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, GetIdentityRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:tari.rpc.GetIdentityRequest) } GetIdentityRequest::GetIdentityRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetIdentityRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, GetIdentityRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetIdentityRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -2383,7 +3027,75 @@ GetIdentityRequest::GetIdentityRequest( // @@protoc_insertion_point(copy_constructor:tari.rpc.GetIdentityRequest) } +inline void* PROTOBUF_NONNULL GetIdentityRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetIdentityRequest(arena); +} +constexpr auto GetIdentityRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetIdentityRequest), + alignof(GetIdentityRequest)); +} +constexpr auto GetIdentityRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetIdentityRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetIdentityRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetIdentityRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &GetIdentityRequest::ByteSizeLong, + &GetIdentityRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetIdentityRequest, _impl_._cached_size_), + false, + }, + &GetIdentityRequest::kDescriptorMethods, + &descriptor_table_network_2eproto, + nullptr, // tracker + }; +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetIdentityRequest_class_data_ = + GetIdentityRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetIdentityRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetIdentityRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetIdentityRequest_class_data_.tc_table); + return GetIdentityRequest_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +GetIdentityRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + GetIdentityRequest_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::GetIdentityRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; @@ -2392,103 +3104,125 @@ 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 ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetIdentityResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_._has_bits_); }; -GetIdentityResponse::GetIdentityResponse(::google::protobuf::Arena* arena) +GetIdentityResponse::GetIdentityResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetIdentityResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.GetIdentityResponse) } -inline PROTOBUF_NDEBUG_INLINE GetIdentityResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : public_key_(arena, from.public_key_), +PROTOBUF_NDEBUG_INLINE GetIdentityResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::GetIdentityResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + public_key_(arena, from.public_key_), public_address_(arena, from.public_address_), - node_id_(arena, from.node_id_), - _cached_size_{0} {} + node_id_(arena, from.node_id_) {} GetIdentityResponse::GetIdentityResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetIdentityResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetIdentityResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetIdentityResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.GetIdentityResponse) } -inline PROTOBUF_NDEBUG_INLINE GetIdentityResponse::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE GetIdentityResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : public_key_(arena), + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + public_key_(arena), public_address_(arena), - node_id_(arena), - _cached_size_{0} {} + node_id_(arena) {} -inline void GetIdentityResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetIdentityResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetIdentityResponse::~GetIdentityResponse() { // @@protoc_insertion_point(destructor:tari.rpc.GetIdentityResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void GetIdentityResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_key_.Destroy(); - _impl_.public_address_.Destroy(); - _impl_.node_id_.Destroy(); - _impl_.~Impl_(); +inline void GetIdentityResponse::SharedDtor(MessageLite& self) { + GetIdentityResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_key_.Destroy(); + this_._impl_.public_address_.Destroy(); + this_._impl_.node_id_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL GetIdentityResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetIdentityResponse(arena); +} +constexpr auto GetIdentityResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetIdentityResponse), + alignof(GetIdentityResponse)); +} +constexpr auto GetIdentityResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetIdentityResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_key_.ClearToEmpty(); - _impl_.public_address_.ClearToEmpty(); - _impl_.node_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetIdentityResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetIdentityResponse::ByteSizeLong, + &GetIdentityResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_._cached_size_), + false, + }, + &GetIdentityResponse::kDescriptorMethods, + &descriptor_table_network_2eproto, + nullptr, // tracker + }; } -const char* GetIdentityResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetIdentityResponse_class_data_ = + GetIdentityResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetIdentityResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetIdentityResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetIdentityResponse_class_data_.tc_table); + return GetIdentityResponse_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 51, 2> GetIdentityResponse::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 51, 2> +GetIdentityResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -2497,7 +3231,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 51, 2> GetIdentityResponse::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GetIdentityResponse_default_instance_._instance, + GetIdentityResponse_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::GetIdentityResponse>(), // to_prefetch @@ -2506,25 +3241,25 @@ const ::_pbi::TcParseTable<2, 3, 0, 51, 2> GetIdentityResponse::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // bytes public_key = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.public_key_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.public_key_)}}, // string public_address = 2; {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.public_address_)}}, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.public_address_)}}, // bytes node_id = 3; {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.node_id_)}}, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.node_id_)}}, }}, {{ 65535, 65535 }}, {{ // bytes public_key = 1; - {PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // string public_address = 2; - {PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.public_address_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.public_address_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bytes node_id = 3; - {PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.node_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.node_id_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -2533,73 +3268,122 @@ const ::_pbi::TcParseTable<2, 3, 0, 51, 2> GetIdentityResponse::_table_ = { "public_address" }}, }; +PROTOBUF_NOINLINE void GetIdentityResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.GetIdentityResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* GetIdentityResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.public_address_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.node_id_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetIdentityResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetIdentityResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetIdentityResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetIdentityResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetIdentityResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - const std::string& _s = this->_internal_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // string public_address = 2; - if (!this->_internal_public_address().empty()) { - const std::string& _s = this->_internal_public_address(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.GetIdentityResponse.public_address"); - target = stream->WriteStringMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_public_address().empty()) { + const ::std::string& _s = this_._internal_public_address(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.GetIdentityResponse.public_address"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } } // bytes node_id = 3; - if (!this->_internal_node_id().empty()) { - const std::string& _s = this->_internal_node_id(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (!this_._internal_node_id().empty()) { + const ::std::string& _s = this_._internal_node_id(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetIdentityResponse) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetIdentityResponse::ByteSizeLong(const MessageLite& base) { + const GetIdentityResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t GetIdentityResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetIdentityResponse) + const GetIdentityResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetIdentityResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // bytes public_key = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + } + // string public_address = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_public_address().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_public_address()); + } + } + // bytes node_id = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_node_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_node_id()); + } + } } - - // string public_address = 2; - if (!this->_internal_public_address().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_public_address()); - } - - // bytes node_id = 3; - if (!this->_internal_node_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_node_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2608,15 +3392,37 @@ void GetIdentityResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, con ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_public_key().empty()) { - _this->_internal_set_public_key(from._internal_public_key()); - } - if (!from._internal_public_address().empty()) { - _this->_internal_set_public_address(from._internal_public_address()); - } - if (!from._internal_node_id().empty()) { - _this->_internal_set_node_id(from._internal_node_id()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_public_key().empty()) { + _this->_internal_set_public_key(from._internal_public_key()); + } else { + if (_this->_impl_.public_key_.IsDefault()) { + _this->_internal_set_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_public_address().empty()) { + _this->_internal_set_public_address(from._internal_public_address()); + } else { + if (_this->_impl_.public_address_.IsDefault()) { + _this->_internal_set_public_address(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_node_id().empty()) { + _this->_internal_set_node_id(from._internal_node_id()); + } else { + if (_this->_impl_.node_id_.IsDefault()) { + _this->_internal_set_node_id(""); + } + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2627,24 +3433,20 @@ void GetIdentityResponse::CopyFrom(const GetIdentityResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetIdentityResponse::IsInitialized() const { - return true; -} -void GetIdentityResponse::InternalSwap(GetIdentityResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetIdentityResponse::InternalSwap(GetIdentityResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_address_, &other->_impl_.public_address_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.node_id_, &other->_impl_.node_id_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -2654,8 +3456,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{}); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ [[maybe_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 28b4662..3ab1bdd 100644 --- a/external/src/Tari/proto/gRPC/network.pb.h +++ b/external/src/Tari/proto/gRPC/network.pb.h @@ -1,22 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: network.proto -// Protobuf C++ Version: 5.26.1 +// Protobuf C++ Version: 6.31.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_network_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_network_2eproto_2epb_2eh +#ifndef network_2eproto_2epb_2eh +#define network_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026001 +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6031001 #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" #include "google/protobuf/arenastring.h" @@ -26,6 +26,7 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/generated_enum_reflection.h" @@ -41,7 +42,8 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal } // namespace protobuf } // namespace google @@ -50,41 +52,56 @@ class AnyMetadata; struct TableStruct_network_2eproto { static const ::uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_network_2eproto; +extern "C" { +extern const ::google::protobuf::internal::DescriptorTable descriptor_table_network_2eproto; +} // extern "C" namespace tari { namespace rpc { +enum ConnectivityStatus : int; +extern const uint32_t ConnectivityStatus_internal_data_[]; class Address; struct AddressDefaultTypeInternal; extern AddressDefaultTypeInternal _Address_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Address_class_data_; class AverageLatency; struct AverageLatencyDefaultTypeInternal; extern AverageLatencyDefaultTypeInternal _AverageLatency_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull AverageLatency_class_data_; class GetIdentityRequest; struct GetIdentityRequestDefaultTypeInternal; extern GetIdentityRequestDefaultTypeInternal _GetIdentityRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetIdentityRequest_class_data_; class GetIdentityResponse; struct GetIdentityResponseDefaultTypeInternal; extern GetIdentityResponseDefaultTypeInternal _GetIdentityResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetIdentityResponse_class_data_; class ListConnectedPeersResponse; struct ListConnectedPeersResponseDefaultTypeInternal; extern ListConnectedPeersResponseDefaultTypeInternal _ListConnectedPeersResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ListConnectedPeersResponse_class_data_; class NetworkStatusResponse; struct NetworkStatusResponseDefaultTypeInternal; extern NetworkStatusResponseDefaultTypeInternal _NetworkStatusResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull NetworkStatusResponse_class_data_; class NodeIdentity; struct NodeIdentityDefaultTypeInternal; extern NodeIdentityDefaultTypeInternal _NodeIdentity_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull NodeIdentity_class_data_; class Peer; struct PeerDefaultTypeInternal; extern PeerDefaultTypeInternal _Peer_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Peer_class_data_; class SoftwareUpdate; struct SoftwareUpdateDefaultTypeInternal; extern SoftwareUpdateDefaultTypeInternal _SoftwareUpdate_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SoftwareUpdate_class_data_; } // namespace rpc } // namespace tari namespace google { namespace protobuf { +template <> +internal::EnumTraitsT<::tari::rpc::ConnectivityStatus_internal_data_> + internal::EnumTraitsImpl::value<::tari::rpc::ConnectivityStatus>; } // namespace protobuf } // namespace google @@ -96,34 +113,37 @@ enum ConnectivityStatus : int { Degraded = 2, Offline = 3, ConnectivityStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), + ::std::numeric_limits<::int32_t>::min(), ConnectivityStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ::std::numeric_limits<::int32_t>::max(), }; -bool ConnectivityStatus_IsValid(int value); extern const uint32_t ConnectivityStatus_internal_data_[]; -constexpr ConnectivityStatus ConnectivityStatus_MIN = static_cast(0); -constexpr ConnectivityStatus ConnectivityStatus_MAX = static_cast(3); -constexpr int ConnectivityStatus_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -ConnectivityStatus_descriptor(); +inline constexpr ConnectivityStatus ConnectivityStatus_MIN = + static_cast(0); +inline constexpr ConnectivityStatus ConnectivityStatus_MAX = + static_cast(3); +inline bool ConnectivityStatus_IsValid(int value) { + return 0 <= value && value <= 3; +} +inline constexpr int ConnectivityStatus_ARRAYSIZE = 3 + 1; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL ConnectivityStatus_descriptor(); template -const std::string& ConnectivityStatus_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, +const ::std::string& ConnectivityStatus_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, "Incorrect type passed to ConnectivityStatus_Name()."); return ConnectivityStatus_Name(static_cast(value)); } template <> -inline const std::string& ConnectivityStatus_Name(ConnectivityStatus value) { - return ::google::protobuf::internal::NameOfDenseEnum( +inline const ::std::string& ConnectivityStatus_Name(ConnectivityStatus value) { + return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool ConnectivityStatus_Parse(absl::string_view name, ConnectivityStatus* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ConnectivityStatus_descriptor(), name, value); +inline bool ConnectivityStatus_Parse( + ::absl::string_view name, ConnectivityStatus* PROTOBUF_NONNULL value) { + return ::google::protobuf::internal::ParseNamedEnum(ConnectivityStatus_descriptor(), name, + value); } // =================================================================== @@ -135,25 +155,28 @@ class SoftwareUpdate final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.SoftwareUpdate) */ { public: inline SoftwareUpdate() : SoftwareUpdate(nullptr) {} - ~SoftwareUpdate() override; + ~SoftwareUpdate() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SoftwareUpdate* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SoftwareUpdate)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR SoftwareUpdate( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : SoftwareUpdate(nullptr, ::std::move(from)) {} inline SoftwareUpdate& operator=(const SoftwareUpdate& from) { CopyFrom(from); return *this; } inline SoftwareUpdate& operator=(SoftwareUpdate&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -165,42 +188,35 @@ class SoftwareUpdate final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const SoftwareUpdate& default_instance() { - return *internal_default_instance(); - } - static inline const SoftwareUpdate* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_SoftwareUpdate_default_instance_); } static constexpr int kIndexInFileMessages = 6; friend void swap(SoftwareUpdate& a, SoftwareUpdate& b) { a.Swap(&b); } - inline void Swap(SoftwareUpdate* other) { + inline void Swap(SoftwareUpdate* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SoftwareUpdate* other) { + void UnsafeArenaSwap(SoftwareUpdate* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -208,7 +224,7 @@ class SoftwareUpdate final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - SoftwareUpdate* New(::google::protobuf::Arena* arena = nullptr) const final { + SoftwareUpdate* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -217,41 +233,63 @@ class SoftwareUpdate final : public ::google::protobuf::Message void MergeFrom(const SoftwareUpdate& from) { SoftwareUpdate::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SoftwareUpdate* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SoftwareUpdate* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.SoftwareUpdate"; } protected: - explicit SoftwareUpdate(::google::protobuf::Arena* arena); - SoftwareUpdate(::google::protobuf::Arena* arena, const SoftwareUpdate& from); - SoftwareUpdate(::google::protobuf::Arena* arena, SoftwareUpdate&& from) noexcept + explicit SoftwareUpdate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SoftwareUpdate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SoftwareUpdate& from); + SoftwareUpdate( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SoftwareUpdate&& from) noexcept : SoftwareUpdate(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -263,50 +301,47 @@ class SoftwareUpdate final : public ::google::protobuf::Message }; // string version = 2; void clear_version() ; - const std::string& version() const; - template + const ::std::string& version() const; + template void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_version(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_version(); + void set_allocated_version(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); + const ::std::string& _internal_version() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_version(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_version(); public: // string sha = 3; void clear_sha() ; - const std::string& sha() const; - template + const ::std::string& sha() const; + template void set_sha(Arg_&& arg, Args_... args); - std::string* mutable_sha(); - PROTOBUF_NODISCARD std::string* release_sha(); - void set_allocated_sha(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_sha(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_sha(); + void set_allocated_sha(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_sha() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sha( - const std::string& value); - std::string* _internal_mutable_sha(); + const ::std::string& _internal_sha() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_sha(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_sha(); public: // string download_url = 4; void clear_download_url() ; - const std::string& download_url() const; - template + const ::std::string& download_url() const; + template void set_download_url(Arg_&& arg, Args_... args); - std::string* mutable_download_url(); - PROTOBUF_NODISCARD std::string* release_download_url(); - void set_allocated_download_url(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_download_url(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_download_url(); + void set_allocated_download_url(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_download_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_download_url( - const std::string& value); - std::string* _internal_mutable_download_url(); + const ::std::string& _internal_download_url() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_download_url(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_download_url(); public: // bool has_update = 1; @@ -323,10 +358,11 @@ class SoftwareUpdate final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 54, 2> + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 54, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -334,47 +370,55 @@ class SoftwareUpdate final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SoftwareUpdate& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr version_; ::google::protobuf::internal::ArenaStringPtr sha_; ::google::protobuf::internal::ArenaStringPtr download_url_; bool has_update_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull SoftwareUpdate_class_data_; // ------------------------------------------------------------------- class NodeIdentity final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NodeIdentity) */ { public: inline NodeIdentity() : NodeIdentity(nullptr) {} - ~NodeIdentity() override; + ~NodeIdentity() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(NodeIdentity* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(NodeIdentity)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR NodeIdentity( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : NodeIdentity(nullptr, ::std::move(from)) {} inline NodeIdentity& operator=(const NodeIdentity& from) { CopyFrom(from); return *this; } inline NodeIdentity& operator=(NodeIdentity&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -386,42 +430,35 @@ class NodeIdentity final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const NodeIdentity& default_instance() { - return *internal_default_instance(); - } - static inline const NodeIdentity* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_NodeIdentity_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(NodeIdentity& a, NodeIdentity& b) { a.Swap(&b); } - inline void Swap(NodeIdentity* other) { + inline void Swap(NodeIdentity* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NodeIdentity* other) { + void UnsafeArenaSwap(NodeIdentity* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -429,7 +466,7 @@ class NodeIdentity final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - NodeIdentity* New(::google::protobuf::Arena* arena = nullptr) const final { + NodeIdentity* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -438,41 +475,63 @@ class NodeIdentity final : public ::google::protobuf::Message void MergeFrom(const NodeIdentity& from) { NodeIdentity::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NodeIdentity* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(NodeIdentity* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.NodeIdentity"; } protected: - explicit NodeIdentity(::google::protobuf::Arena* arena); - NodeIdentity(::google::protobuf::Arena* arena, const NodeIdentity& from); - NodeIdentity(::google::protobuf::Arena* arena, NodeIdentity&& from) noexcept + explicit NodeIdentity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + NodeIdentity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NodeIdentity& from); + NodeIdentity( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, NodeIdentity&& from) noexcept : NodeIdentity(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -488,67 +547,60 @@ class NodeIdentity final : public ::google::protobuf::Message public: void clear_public_addresses() ; - const std::string& public_addresses(int index) const; - std::string* mutable_public_addresses(int index); - void set_public_addresses(int index, const std::string& value); - void set_public_addresses(int index, std::string&& value); - void set_public_addresses(int index, const char* value); - void set_public_addresses(int index, const char* value, std::size_t size); - void set_public_addresses(int index, absl::string_view value); - std::string* add_public_addresses(); - void add_public_addresses(const std::string& value); - void add_public_addresses(std::string&& value); - void add_public_addresses(const char* value); - void add_public_addresses(const char* value, std::size_t size); - void add_public_addresses(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& public_addresses() const; - ::google::protobuf::RepeatedPtrField* mutable_public_addresses(); + const ::std::string& public_addresses(int index) const; + ::std::string* PROTOBUF_NONNULL mutable_public_addresses(int index); + template + void set_public_addresses(int index, Arg_&& value, Args_... args); + ::std::string* PROTOBUF_NONNULL add_public_addresses(); + template + void add_public_addresses(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField<::std::string>& public_addresses() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_public_addresses(); private: - const ::google::protobuf::RepeatedPtrField& _internal_public_addresses() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_public_addresses(); + const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_public_addresses() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_public_addresses(); public: // bytes public_key = 1; void clear_public_key() ; - const std::string& public_key() const; - template + const ::std::string& public_key() const; + template void set_public_key(Arg_&& arg, Args_... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key( - const std::string& value); - std::string* _internal_mutable_public_key(); + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); public: // bytes node_id = 3; void clear_node_id() ; - const std::string& node_id() const; - template + const ::std::string& node_id() const; + template void set_node_id(Arg_&& arg, Args_... args); - std::string* mutable_node_id(); - PROTOBUF_NODISCARD std::string* release_node_id(); - void set_allocated_node_id(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_node_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_node_id(); + void set_allocated_node_id(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_node_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_node_id( - const std::string& value); - std::string* _internal_mutable_node_id(); + const ::std::string& _internal_node_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_node_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_node_id(); public: // @@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, - 46, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 46, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -556,46 +608,54 @@ class NodeIdentity final : public ::google::protobuf::Message 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::RepeatedPtrField public_addresses_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const NodeIdentity& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField<::std::string> public_addresses_; ::google::protobuf::internal::ArenaStringPtr public_key_; ::google::protobuf::internal::ArenaStringPtr node_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull NodeIdentity_class_data_; // ------------------------------------------------------------------- class NetworkStatusResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.NetworkStatusResponse) */ { public: inline NetworkStatusResponse() : NetworkStatusResponse(nullptr) {} - ~NetworkStatusResponse() override; + ~NetworkStatusResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(NetworkStatusResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(NetworkStatusResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR NetworkStatusResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : NetworkStatusResponse(nullptr, ::std::move(from)) {} inline NetworkStatusResponse& operator=(const NetworkStatusResponse& from) { CopyFrom(from); return *this; } inline NetworkStatusResponse& operator=(NetworkStatusResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -607,42 +667,35 @@ class NetworkStatusResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const NetworkStatusResponse& default_instance() { - return *internal_default_instance(); - } - static inline const NetworkStatusResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_NetworkStatusResponse_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(NetworkStatusResponse& a, NetworkStatusResponse& b) { a.Swap(&b); } - inline void Swap(NetworkStatusResponse* other) { + inline void Swap(NetworkStatusResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(NetworkStatusResponse* other) { + void UnsafeArenaSwap(NetworkStatusResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -650,7 +703,7 @@ class NetworkStatusResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - NetworkStatusResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + NetworkStatusResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -659,41 +712,63 @@ class NetworkStatusResponse final : public ::google::protobuf::Message void MergeFrom(const NetworkStatusResponse& from) { NetworkStatusResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NetworkStatusResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(NetworkStatusResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.NetworkStatusResponse"; } protected: - explicit NetworkStatusResponse(::google::protobuf::Arena* arena); - NetworkStatusResponse(::google::protobuf::Arena* arena, const NetworkStatusResponse& from); - NetworkStatusResponse(::google::protobuf::Arena* arena, NetworkStatusResponse&& from) noexcept + explicit NetworkStatusResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + NetworkStatusResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NetworkStatusResponse& from); + NetworkStatusResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, NetworkStatusResponse&& from) noexcept : NetworkStatusResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -736,10 +811,11 @@ class NetworkStatusResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -747,46 +823,54 @@ class NetworkStatusResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const NetworkStatusResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; int status_; ::uint32_t avg_latency_ms_; ::uint32_t num_node_connections_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull NetworkStatusResponse_class_data_; // ------------------------------------------------------------------- class GetIdentityResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.GetIdentityResponse) */ { public: inline GetIdentityResponse() : GetIdentityResponse(nullptr) {} - ~GetIdentityResponse() override; + ~GetIdentityResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetIdentityResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetIdentityResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetIdentityResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetIdentityResponse(nullptr, ::std::move(from)) {} inline GetIdentityResponse& operator=(const GetIdentityResponse& from) { CopyFrom(from); return *this; } inline GetIdentityResponse& operator=(GetIdentityResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -798,42 +882,35 @@ class GetIdentityResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetIdentityResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetIdentityResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetIdentityResponse_default_instance_); } static constexpr int kIndexInFileMessages = 8; friend void swap(GetIdentityResponse& a, GetIdentityResponse& b) { a.Swap(&b); } - inline void Swap(GetIdentityResponse* other) { + inline void Swap(GetIdentityResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetIdentityResponse* other) { + void UnsafeArenaSwap(GetIdentityResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -841,7 +918,7 @@ class GetIdentityResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetIdentityResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + GetIdentityResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -850,41 +927,63 @@ class GetIdentityResponse final : public ::google::protobuf::Message void MergeFrom(const GetIdentityResponse& from) { GetIdentityResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetIdentityResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetIdentityResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetIdentityResponse"; } protected: - explicit GetIdentityResponse(::google::protobuf::Arena* arena); - GetIdentityResponse(::google::protobuf::Arena* arena, const GetIdentityResponse& from); - GetIdentityResponse(::google::protobuf::Arena* arena, GetIdentityResponse&& from) noexcept + explicit GetIdentityResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetIdentityResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetIdentityResponse& from); + GetIdentityResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetIdentityResponse&& from) noexcept : GetIdentityResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -895,60 +994,58 @@ class GetIdentityResponse final : public ::google::protobuf::Message }; // bytes public_key = 1; void clear_public_key() ; - const std::string& public_key() const; - template + const ::std::string& public_key() const; + template void set_public_key(Arg_&& arg, Args_... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key( - const std::string& value); - std::string* _internal_mutable_public_key(); + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); public: // string public_address = 2; void clear_public_address() ; - const std::string& public_address() const; - template + const ::std::string& public_address() const; + template void set_public_address(Arg_&& arg, Args_... args); - std::string* mutable_public_address(); - PROTOBUF_NODISCARD std::string* release_public_address(); - void set_allocated_public_address(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_public_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_address(); + void set_allocated_public_address(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_public_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_address( - const std::string& value); - std::string* _internal_mutable_public_address(); + const ::std::string& _internal_public_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_address(); public: // bytes node_id = 3; void clear_node_id() ; - const std::string& node_id() const; - template + const ::std::string& node_id() const; + template void set_node_id(Arg_&& arg, Args_... args); - std::string* mutable_node_id(); - PROTOBUF_NODISCARD std::string* release_node_id(); - void set_allocated_node_id(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_node_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_node_id(); + void set_allocated_node_id(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_node_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_node_id( - const std::string& value); - std::string* _internal_mutable_node_id(); + const ::std::string& _internal_node_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_node_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_node_id(); public: // @@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, - 51, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 51, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -956,45 +1053,53 @@ class GetIdentityResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetIdentityResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr public_key_; ::google::protobuf::internal::ArenaStringPtr public_address_; ::google::protobuf::internal::ArenaStringPtr node_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetIdentityResponse_class_data_; // ------------------------------------------------------------------- class GetIdentityRequest final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:tari.rpc.GetIdentityRequest) */ { public: inline GetIdentityRequest() : GetIdentityRequest(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetIdentityRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetIdentityRequest)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR GetIdentityRequest( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : GetIdentityRequest(nullptr, ::std::move(from)) {} inline GetIdentityRequest& operator=(const GetIdentityRequest& from) { CopyFrom(from); return *this; } inline GetIdentityRequest& operator=(GetIdentityRequest&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1006,42 +1111,35 @@ class GetIdentityRequest final : public ::google::protobuf::internal::ZeroFields ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetIdentityRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetIdentityRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetIdentityRequest_default_instance_); } static constexpr int kIndexInFileMessages = 7; friend void swap(GetIdentityRequest& a, GetIdentityRequest& b) { a.Swap(&b); } - inline void Swap(GetIdentityRequest* other) { + inline void Swap(GetIdentityRequest* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetIdentityRequest* other) { + void UnsafeArenaSwap(GetIdentityRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1049,7 +1147,7 @@ class GetIdentityRequest final : public ::google::protobuf::internal::ZeroFields // implements Message ---------------------------------------------- - GetIdentityRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + GetIdentityRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; @@ -1062,26 +1160,44 @@ class GetIdentityRequest final : public ::google::protobuf::internal::ZeroFields } public: + bool IsInitialized() const { + return true; + } private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.GetIdentityRequest"; } protected: - explicit GetIdentityRequest(::google::protobuf::Arena* arena); - GetIdentityRequest(::google::protobuf::Arena* arena, const GetIdentityRequest& from); - GetIdentityRequest(::google::protobuf::Arena* arena, GetIdentityRequest&& from) noexcept + explicit GetIdentityRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetIdentityRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetIdentityRequest& from); + GetIdentityRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetIdentityRequest&& from) noexcept : GetIdentityRequest(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // @@protoc_insertion_point(class_scope:tari.rpc.GetIdentityRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1089,41 +1205,48 @@ class GetIdentityRequest final : public ::google::protobuf::internal::ZeroFields 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetIdentityRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_network_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetIdentityRequest_class_data_; // ------------------------------------------------------------------- class AverageLatency final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.AverageLatency) */ { public: inline AverageLatency() : AverageLatency(nullptr) {} - ~AverageLatency() override; + ~AverageLatency() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AverageLatency* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AverageLatency)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR AverageLatency( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : AverageLatency(nullptr, ::std::move(from)) {} inline AverageLatency& operator=(const AverageLatency& from) { CopyFrom(from); return *this; } inline AverageLatency& operator=(AverageLatency&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1135,42 +1258,35 @@ class AverageLatency final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const AverageLatency& default_instance() { - return *internal_default_instance(); - } - static inline const AverageLatency* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_AverageLatency_default_instance_); } static constexpr int kIndexInFileMessages = 4; friend void swap(AverageLatency& a, AverageLatency& b) { a.Swap(&b); } - inline void Swap(AverageLatency* other) { + inline void Swap(AverageLatency* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AverageLatency* other) { + void UnsafeArenaSwap(AverageLatency* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1178,7 +1294,7 @@ class AverageLatency final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - AverageLatency* New(::google::protobuf::Arena* arena = nullptr) const final { + AverageLatency* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1187,41 +1303,63 @@ class AverageLatency final : public ::google::protobuf::Message void MergeFrom(const AverageLatency& from) { AverageLatency::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AverageLatency* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AverageLatency* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.AverageLatency"; } protected: - explicit AverageLatency(::google::protobuf::Arena* arena); - AverageLatency(::google::protobuf::Arena* arena, const AverageLatency& from); - AverageLatency(::google::protobuf::Arena* arena, AverageLatency&& from) noexcept + explicit AverageLatency(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + AverageLatency(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AverageLatency& from); + AverageLatency( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, AverageLatency&& from) noexcept : AverageLatency(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1242,10 +1380,11 @@ class AverageLatency final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1253,44 +1392,52 @@ class AverageLatency final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const AverageLatency& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t latency_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull AverageLatency_class_data_; // ------------------------------------------------------------------- class Address final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.Address) */ { public: inline Address() : Address(nullptr) {} - ~Address() override; + ~Address() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Address* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Address)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR Address( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : Address(nullptr, ::std::move(from)) {} inline Address& operator=(const Address& from) { CopyFrom(from); return *this; } inline Address& operator=(Address&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1302,42 +1449,35 @@ class Address final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Address& default_instance() { - return *internal_default_instance(); - } - static inline const Address* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_Address_default_instance_); } static constexpr int kIndexInFileMessages = 3; friend void swap(Address& a, Address& b) { a.Swap(&b); } - inline void Swap(Address* other) { + inline void Swap(Address* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Address* other) { + void UnsafeArenaSwap(Address* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1345,7 +1485,7 @@ class Address final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Address* New(::google::protobuf::Arena* arena = nullptr) const final { + Address* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct
(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1354,41 +1494,63 @@ class Address final : public ::google::protobuf::Message void MergeFrom(const Address& from) { Address::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Address* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Address* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.Address"; } protected: - explicit Address(::google::protobuf::Arena* arena); - Address(::google::protobuf::Arena* arena, const Address& from); - Address(::google::protobuf::Arena* arena, Address&& from) noexcept + explicit Address(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Address(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Address& from); + Address( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Address&& from) noexcept : Address(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1400,49 +1562,47 @@ class Address final : public ::google::protobuf::Message }; // bytes address = 1; void clear_address() ; - const std::string& address() const; - template + const ::std::string& address() const; + template void set_address(Arg_&& arg, Args_... args); - std::string* mutable_address(); - PROTOBUF_NODISCARD std::string* release_address(); - void set_allocated_address(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_address(); + void set_allocated_address(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_address( - const std::string& value); - std::string* _internal_mutable_address(); + const ::std::string& _internal_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_address(); public: // string last_seen = 2; void clear_last_seen() ; - const std::string& last_seen() const; - template + const ::std::string& last_seen() const; + template void set_last_seen(Arg_&& arg, Args_... args); - std::string* mutable_last_seen(); - PROTOBUF_NODISCARD std::string* release_last_seen(); - void set_allocated_last_seen(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_last_seen(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_last_seen(); + void set_allocated_last_seen(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_last_seen() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_last_seen( - const std::string& value); - std::string* _internal_mutable_last_seen(); + const ::std::string& _internal_last_seen() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_last_seen(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_last_seen(); public: // .tari.rpc.AverageLatency avg_latency = 5; bool has_avg_latency() const; void clear_avg_latency() ; const ::tari::rpc::AverageLatency& avg_latency() const; - PROTOBUF_NODISCARD ::tari::rpc::AverageLatency* release_avg_latency(); - ::tari::rpc::AverageLatency* mutable_avg_latency(); - void set_allocated_avg_latency(::tari::rpc::AverageLatency* value); - void unsafe_arena_set_allocated_avg_latency(::tari::rpc::AverageLatency* value); - ::tari::rpc::AverageLatency* unsafe_arena_release_avg_latency(); + [[nodiscard]] ::tari::rpc::AverageLatency* PROTOBUF_NULLABLE release_avg_latency(); + ::tari::rpc::AverageLatency* PROTOBUF_NONNULL mutable_avg_latency(); + void set_allocated_avg_latency(::tari::rpc::AverageLatency* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_avg_latency(::tari::rpc::AverageLatency* PROTOBUF_NULLABLE value); + ::tari::rpc::AverageLatency* PROTOBUF_NULLABLE unsafe_arena_release_avg_latency(); private: const ::tari::rpc::AverageLatency& _internal_avg_latency() const; - ::tari::rpc::AverageLatency* _internal_mutable_avg_latency(); + ::tari::rpc::AverageLatency* PROTOBUF_NONNULL _internal_mutable_avg_latency(); public: // uint32 connection_attempts = 3; @@ -1459,10 +1619,11 @@ class Address final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 4, 1, - 34, 2> + static const ::google::protobuf::internal::TcParseTable<3, 4, + 1, 34, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1470,48 +1631,55 @@ class Address final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Address& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr address_; ::google::protobuf::internal::ArenaStringPtr last_seen_; - ::tari::rpc::AverageLatency* avg_latency_; + ::tari::rpc::AverageLatency* PROTOBUF_NULLABLE avg_latency_; ::uint32_t connection_attempts_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull Address_class_data_; // ------------------------------------------------------------------- class Peer final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.Peer) */ { public: inline Peer() : Peer(nullptr) {} - ~Peer() override; + ~Peer() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Peer* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Peer)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR Peer( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : Peer(nullptr, ::std::move(from)) {} inline Peer& operator=(const Peer& from) { CopyFrom(from); return *this; } inline Peer& operator=(Peer&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1523,42 +1691,35 @@ class Peer final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Peer& default_instance() { - return *internal_default_instance(); - } - static inline const Peer* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_Peer_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(Peer& a, Peer& b) { a.Swap(&b); } - inline void Swap(Peer* other) { + inline void Swap(Peer* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Peer* other) { + void UnsafeArenaSwap(Peer* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1566,7 +1727,7 @@ class Peer final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Peer* New(::google::protobuf::Arena* arena = nullptr) const final { + Peer* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1575,41 +1736,63 @@ class Peer final : public ::google::protobuf::Message void MergeFrom(const Peer& from) { Peer::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Peer* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Peer* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.Peer"; } protected: - explicit Peer(::google::protobuf::Arena* arena); - Peer(::google::protobuf::Arena* arena, const Peer& from); - Peer(::google::protobuf::Arena* arena, Peer&& from) noexcept + explicit Peer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Peer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Peer& from); + Peer( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Peer&& from) noexcept : Peer(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1633,15 +1816,15 @@ class Peer final : public ::google::protobuf::Message public: void clear_addresses() ; - ::tari::rpc::Address* mutable_addresses(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* mutable_addresses(); + ::tari::rpc::Address* PROTOBUF_NONNULL mutable_addresses(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* PROTOBUF_NONNULL mutable_addresses(); private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>& _internal_addresses() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* _internal_mutable_addresses(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* PROTOBUF_NONNULL _internal_mutable_addresses(); public: const ::tari::rpc::Address& addresses(int index) const; - ::tari::rpc::Address* add_addresses(); + ::tari::rpc::Address* PROTOBUF_NONNULL add_addresses(); const ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>& addresses() const; // repeated bytes supported_protocols = 11; int supported_protocols_size() const; @@ -1650,89 +1833,79 @@ class Peer final : public ::google::protobuf::Message public: void clear_supported_protocols() ; - const std::string& supported_protocols(int index) const; - std::string* mutable_supported_protocols(int index); - void set_supported_protocols(int index, const std::string& value); - void set_supported_protocols(int index, std::string&& value); - void set_supported_protocols(int index, const char* value); - void set_supported_protocols(int index, const void* value, std::size_t size); - void set_supported_protocols(int index, absl::string_view value); - std::string* add_supported_protocols(); - void add_supported_protocols(const std::string& value); - void add_supported_protocols(std::string&& value); - void add_supported_protocols(const char* value); - void add_supported_protocols(const void* value, std::size_t size); - void add_supported_protocols(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& supported_protocols() const; - ::google::protobuf::RepeatedPtrField* mutable_supported_protocols(); + const ::std::string& supported_protocols(int index) const; + ::std::string* PROTOBUF_NONNULL mutable_supported_protocols(int index); + template + void set_supported_protocols(int index, Arg_&& value, Args_... args); + ::std::string* PROTOBUF_NONNULL add_supported_protocols(); + template + void add_supported_protocols(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField<::std::string>& supported_protocols() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_supported_protocols(); private: - const ::google::protobuf::RepeatedPtrField& _internal_supported_protocols() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_supported_protocols(); + const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_supported_protocols() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_supported_protocols(); public: // bytes public_key = 1; void clear_public_key() ; - const std::string& public_key() const; - template + const ::std::string& public_key() const; + template void set_public_key(Arg_&& arg, Args_... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key( - const std::string& value); - std::string* _internal_mutable_public_key(); + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); public: // bytes node_id = 2; void clear_node_id() ; - const std::string& node_id() const; - template + const ::std::string& node_id() const; + template void set_node_id(Arg_&& arg, Args_... args); - std::string* mutable_node_id(); - PROTOBUF_NODISCARD std::string* release_node_id(); - void set_allocated_node_id(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_node_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_node_id(); + void set_allocated_node_id(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_node_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_node_id( - const std::string& value); - std::string* _internal_mutable_node_id(); + const ::std::string& _internal_node_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_node_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_node_id(); public: // string banned_reason = 7; void clear_banned_reason() ; - const std::string& banned_reason() const; - template + const ::std::string& banned_reason() const; + template void set_banned_reason(Arg_&& arg, Args_... args); - std::string* mutable_banned_reason(); - PROTOBUF_NODISCARD std::string* release_banned_reason(); - void set_allocated_banned_reason(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_banned_reason(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_banned_reason(); + void set_allocated_banned_reason(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_banned_reason() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_banned_reason( - const std::string& value); - std::string* _internal_mutable_banned_reason(); + const ::std::string& _internal_banned_reason() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_banned_reason(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_banned_reason(); public: // string user_agent = 12; void clear_user_agent() ; - const std::string& user_agent() const; - template + const ::std::string& user_agent() const; + template void set_user_agent(Arg_&& arg, Args_... args); - std::string* mutable_user_agent(); - PROTOBUF_NODISCARD std::string* release_user_agent(); - void set_allocated_user_agent(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_user_agent(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_user_agent(); + void set_allocated_user_agent(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_user_agent() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_agent( - const std::string& value); - std::string* _internal_mutable_user_agent(); + const ::std::string& _internal_user_agent() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_user_agent(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_user_agent(); public: // uint64 last_connection = 4; @@ -1789,10 +1962,11 @@ class Peer final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 11, 1, - 53, 2> + static const ::google::protobuf::internal::TcParseTable<4, 11, + 1, 53, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1800,14 +1974,18 @@ class Peer final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Peer& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::tari::rpc::Address > addresses_; - ::google::protobuf::RepeatedPtrField supported_protocols_; + ::google::protobuf::RepeatedPtrField<::std::string> supported_protocols_; ::google::protobuf::internal::ArenaStringPtr public_key_; ::google::protobuf::internal::ArenaStringPtr node_id_; ::google::protobuf::internal::ArenaStringPtr banned_reason_; @@ -1817,37 +1995,41 @@ class Peer final : public ::google::protobuf::Message ::uint32_t flags_; ::uint32_t features_; ::uint64_t offline_at_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull Peer_class_data_; // ------------------------------------------------------------------- class ListConnectedPeersResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ListConnectedPeersResponse) */ { public: inline ListConnectedPeersResponse() : ListConnectedPeersResponse(nullptr) {} - ~ListConnectedPeersResponse() override; + ~ListConnectedPeersResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ListConnectedPeersResponse* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ListConnectedPeersResponse)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR ListConnectedPeersResponse( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : ListConnectedPeersResponse(nullptr, ::std::move(from)) {} inline ListConnectedPeersResponse& operator=(const ListConnectedPeersResponse& from) { CopyFrom(from); return *this; } inline ListConnectedPeersResponse& operator=(ListConnectedPeersResponse&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1859,42 +2041,35 @@ class ListConnectedPeersResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ListConnectedPeersResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ListConnectedPeersResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ListConnectedPeersResponse_default_instance_); } static constexpr int kIndexInFileMessages = 5; friend void swap(ListConnectedPeersResponse& a, ListConnectedPeersResponse& b) { a.Swap(&b); } - inline void Swap(ListConnectedPeersResponse* other) { + inline void Swap(ListConnectedPeersResponse* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListConnectedPeersResponse* other) { + void UnsafeArenaSwap(ListConnectedPeersResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1902,7 +2077,7 @@ class ListConnectedPeersResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ListConnectedPeersResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + ListConnectedPeersResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1911,41 +2086,63 @@ class ListConnectedPeersResponse final : public ::google::protobuf::Message void MergeFrom(const ListConnectedPeersResponse& from) { ListConnectedPeersResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ListConnectedPeersResponse* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ListConnectedPeersResponse* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.ListConnectedPeersResponse"; } protected: - explicit ListConnectedPeersResponse(::google::protobuf::Arena* arena); - ListConnectedPeersResponse(::google::protobuf::Arena* arena, const ListConnectedPeersResponse& from); - ListConnectedPeersResponse(::google::protobuf::Arena* arena, ListConnectedPeersResponse&& from) noexcept + explicit ListConnectedPeersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ListConnectedPeersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ListConnectedPeersResponse& from); + ListConnectedPeersResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ListConnectedPeersResponse&& from) noexcept : ListConnectedPeersResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1959,24 +2156,25 @@ class ListConnectedPeersResponse final : public ::google::protobuf::Message public: void clear_connected_peers() ; - ::tari::rpc::Peer* mutable_connected_peers(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* mutable_connected_peers(); + ::tari::rpc::Peer* PROTOBUF_NONNULL mutable_connected_peers(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* PROTOBUF_NONNULL 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(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* PROTOBUF_NONNULL _internal_mutable_connected_peers(); public: const ::tari::rpc::Peer& connected_peers(int index) const; - ::tari::rpc::Peer* add_connected_peers(); + ::tari::rpc::Peer* PROTOBUF_NONNULL add_connected_peers(); 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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1984,20 +2182,24 @@ class ListConnectedPeersResponse final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ListConnectedPeersResponse& from_msg); ::google::protobuf::RepeatedPtrField< ::tari::rpc::Peer > connected_peers_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_network_2eproto; }; +extern const ::google::protobuf::internal::ClassDataFull ListConnectedPeersResponse_class_data_; + // =================================================================== @@ -2016,51 +2218,66 @@ class ListConnectedPeersResponse final : public ::google::protobuf::Message // bytes public_key = 1; inline void NodeIdentity::clear_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& NodeIdentity::public_key() const +inline const ::std::string& NodeIdentity::public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.NodeIdentity.public_key) return _internal_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void NodeIdentity::set_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void NodeIdentity::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NodeIdentity.public_key) } -inline std::string* NodeIdentity::mutable_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_key(); +inline ::std::string* PROTOBUF_NONNULL NodeIdentity::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.NodeIdentity.public_key) return _s; } -inline const std::string& NodeIdentity::_internal_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& NodeIdentity::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.public_key_.Get(); } -inline void NodeIdentity::_internal_set_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NodeIdentity::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.public_key_.Set(value, GetArena()); } -inline std::string* NodeIdentity::_internal_mutable_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL NodeIdentity::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.public_key_.Mutable( GetArena()); } -inline std::string* NodeIdentity::release_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE NodeIdentity::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NodeIdentity.public_key) - return _impl_.public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; } -inline void NodeIdentity::set_allocated_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NodeIdentity::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.NodeIdentity.public_key) } @@ -2072,147 +2289,124 @@ inline int NodeIdentity::public_addresses_size() const { return _internal_public_addresses_size(); } inline void NodeIdentity::clear_public_addresses() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.public_addresses_.Clear(); } -inline std::string* NodeIdentity::add_public_addresses() +inline ::std::string* PROTOBUF_NONNULL NodeIdentity::add_public_addresses() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_public_addresses()->Add(); + ::google::protobuf::internal::TSanWrite(&_impl_); + ::std::string* _s = _internal_mutable_public_addresses()->Add(); // @@protoc_insertion_point(field_add_mutable:tari.rpc.NodeIdentity.public_addresses) return _s; } -inline const std::string& NodeIdentity::public_addresses(int index) const +inline const ::std::string& NodeIdentity::public_addresses(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.NodeIdentity.public_addresses) return _internal_public_addresses().Get(index); } -inline std::string* NodeIdentity::mutable_public_addresses(int index) +inline ::std::string* PROTOBUF_NONNULL NodeIdentity::mutable_public_addresses(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.NodeIdentity.public_addresses) return _internal_mutable_public_addresses()->Mutable(index); } -inline void NodeIdentity::set_public_addresses(int index, const std::string& value) { - _internal_mutable_public_addresses()->Mutable(index)->assign(value); +template +inline void NodeIdentity::set_public_addresses(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString(*_internal_mutable_public_addresses()->Mutable(index), ::std::forward(value), + args... ); // @@protoc_insertion_point(field_set:tari.rpc.NodeIdentity.public_addresses) } -inline void NodeIdentity::set_public_addresses(int index, std::string&& value) { - _internal_mutable_public_addresses()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::set_public_addresses(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_public_addresses()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::set_public_addresses(int index, const char* value, - std::size_t size) { - _internal_mutable_public_addresses()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@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()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::add_public_addresses(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_addresses()->Add()->assign(value); +template +inline void NodeIdentity::add_public_addresses(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_public_addresses(), + ::std::forward(value), + args... ); // @@protoc_insertion_point(field_add:tari.rpc.NodeIdentity.public_addresses) } -inline void NodeIdentity::add_public_addresses(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_addresses()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::add_public_addresses(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_addresses()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::add_public_addresses(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_addresses()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.NodeIdentity.public_addresses) -} -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()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.NodeIdentity.public_addresses) -} -inline const ::google::protobuf::RepeatedPtrField& -NodeIdentity::public_addresses() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::RepeatedPtrField<::std::string>& NodeIdentity::public_addresses() + const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:tari.rpc.NodeIdentity.public_addresses) return _internal_public_addresses(); } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL NodeIdentity::mutable_public_addresses() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.NodeIdentity.public_addresses) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_public_addresses(); } -inline const ::google::protobuf::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField<::std::string>& NodeIdentity::_internal_public_addresses() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.public_addresses_; } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL NodeIdentity::_internal_mutable_public_addresses() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.public_addresses_; } // bytes node_id = 3; inline void NodeIdentity::clear_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.node_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& NodeIdentity::node_id() const +inline const ::std::string& NodeIdentity::node_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.NodeIdentity.node_id) return _internal_node_id(); } template -inline PROTOBUF_ALWAYS_INLINE void NodeIdentity::set_node_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void NodeIdentity::set_node_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.node_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.NodeIdentity.node_id) } -inline std::string* NodeIdentity::mutable_node_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_node_id(); +inline ::std::string* PROTOBUF_NONNULL NodeIdentity::mutable_node_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_node_id(); // @@protoc_insertion_point(field_mutable:tari.rpc.NodeIdentity.node_id) return _s; } -inline const std::string& NodeIdentity::_internal_node_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& NodeIdentity::_internal_node_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.node_id_.Get(); } -inline void NodeIdentity::_internal_set_node_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NodeIdentity::_internal_set_node_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.node_id_.Set(value, GetArena()); } -inline std::string* NodeIdentity::_internal_mutable_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL NodeIdentity::_internal_mutable_node_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.node_id_.Mutable( GetArena()); } -inline std::string* NodeIdentity::release_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE NodeIdentity::release_node_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.NodeIdentity.node_id) - return _impl_.node_id_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.node_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.node_id_.Set("", GetArena()); + } + return released; } -inline void NodeIdentity::set_allocated_node_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void NodeIdentity::set_allocated_node_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.node_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.node_id_.IsDefault()) { - _impl_.node_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.node_id_.IsDefault()) { + _impl_.node_id_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.NodeIdentity.node_id) } @@ -2222,101 +2416,131 @@ inline void NodeIdentity::set_allocated_node_id(std::string* value) { // bytes public_key = 1; inline void Peer::clear_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& Peer::public_key() const +inline const ::std::string& Peer::public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.Peer.public_key) return _internal_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void Peer::set_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void Peer::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Peer.public_key) } -inline std::string* Peer::mutable_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_key(); +inline ::std::string* PROTOBUF_NONNULL Peer::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.Peer.public_key) return _s; } -inline const std::string& Peer::_internal_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& Peer::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.public_key_.Get(); } -inline void Peer::_internal_set_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Peer::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.public_key_.Set(value, GetArena()); } -inline std::string* Peer::_internal_mutable_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL Peer::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.public_key_.Mutable( GetArena()); } -inline std::string* Peer::release_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE Peer::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Peer.public_key) - return _impl_.public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; } -inline void Peer::set_allocated_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Peer::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.Peer.public_key) } // bytes node_id = 2; inline void Peer::clear_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.node_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& Peer::node_id() const +inline const ::std::string& Peer::node_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.Peer.node_id) return _internal_node_id(); } template -inline PROTOBUF_ALWAYS_INLINE void Peer::set_node_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void Peer::set_node_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.node_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Peer.node_id) } -inline std::string* Peer::mutable_node_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_node_id(); +inline ::std::string* PROTOBUF_NONNULL Peer::mutable_node_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_node_id(); // @@protoc_insertion_point(field_mutable:tari.rpc.Peer.node_id) return _s; } -inline const std::string& Peer::_internal_node_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& Peer::_internal_node_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.node_id_.Get(); } -inline void Peer::_internal_set_node_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Peer::_internal_set_node_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.node_id_.Set(value, GetArena()); } -inline std::string* Peer::_internal_mutable_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL Peer::_internal_mutable_node_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.node_id_.Mutable( GetArena()); } -inline std::string* Peer::release_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE Peer::release_node_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Peer.node_id) - return _impl_.node_id_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.node_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.node_id_.Set("", GetArena()); + } + return released; } -inline void Peer::set_allocated_node_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Peer::set_allocated_node_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.node_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.node_id_.IsDefault()) { - _impl_.node_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.node_id_.IsDefault()) { + _impl_.node_id_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.Peer.node_id) } @@ -2328,18 +2552,18 @@ inline int Peer::addresses_size() const { return _internal_addresses_size(); } inline void Peer::clear_addresses() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.addresses_.Clear(); } -inline ::tari::rpc::Address* Peer::mutable_addresses(int index) +inline ::tari::rpc::Address* PROTOBUF_NONNULL Peer::mutable_addresses(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.Peer.addresses) return _internal_mutable_addresses()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* Peer::mutable_addresses() +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* PROTOBUF_NONNULL Peer::mutable_addresses() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.Peer.addresses) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_addresses(); } inline const ::tari::rpc::Address& Peer::addresses(int index) const @@ -2347,8 +2571,9 @@ inline const ::tari::rpc::Address& Peer::addresses(int index) const // @@protoc_insertion_point(field_get:tari.rpc.Peer.addresses) return _internal_addresses().Get(index); } -inline ::tari::rpc::Address* Peer::add_addresses() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Address* PROTOBUF_NONNULL Peer::add_addresses() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); ::tari::rpc::Address* _add = _internal_mutable_addresses()->Add(); // @@protoc_insertion_point(field_add:tari.rpc.Peer.addresses) return _add; @@ -2360,19 +2585,20 @@ inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>& Peer::a } inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>& Peer::_internal_addresses() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.addresses_; } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* PROTOBUF_NONNULL Peer::_internal_mutable_addresses() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.addresses_; } // uint64 last_connection = 4; inline void Peer::clear_last_connection() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.last_connection_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000010u; } inline ::uint64_t Peer::last_connection() const { // @@protoc_insertion_point(field_get:tari.rpc.Peer.last_connection) @@ -2380,21 +2606,23 @@ inline ::uint64_t Peer::last_connection() const { } inline void Peer::set_last_connection(::uint64_t value) { _internal_set_last_connection(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:tari.rpc.Peer.last_connection) } inline ::uint64_t Peer::_internal_last_connection() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.last_connection_; } inline void Peer::_internal_set_last_connection(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.last_connection_ = value; } // uint32 flags = 5; inline void Peer::clear_flags() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.flags_ = 0u; + _impl_._has_bits_[0] &= ~0x00000040u; } inline ::uint32_t Peer::flags() const { // @@protoc_insertion_point(field_get:tari.rpc.Peer.flags) @@ -2402,21 +2630,23 @@ inline ::uint32_t Peer::flags() const { } inline void Peer::set_flags(::uint32_t value) { _internal_set_flags(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:tari.rpc.Peer.flags) } inline ::uint32_t Peer::_internal_flags() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.flags_; } inline void Peer::_internal_set_flags(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.flags_ = value; } // uint64 banned_until = 6; inline void Peer::clear_banned_until() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.banned_until_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000020u; } inline ::uint64_t Peer::banned_until() const { // @@protoc_insertion_point(field_get:tari.rpc.Peer.banned_until) @@ -2424,71 +2654,88 @@ inline ::uint64_t Peer::banned_until() const { } inline void Peer::set_banned_until(::uint64_t value) { _internal_set_banned_until(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:tari.rpc.Peer.banned_until) } inline ::uint64_t Peer::_internal_banned_until() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.banned_until_; } inline void Peer::_internal_set_banned_until(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.banned_until_ = value; } // string banned_reason = 7; inline void Peer::clear_banned_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.banned_reason_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& Peer::banned_reason() const +inline const ::std::string& Peer::banned_reason() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.Peer.banned_reason) return _internal_banned_reason(); } template -inline PROTOBUF_ALWAYS_INLINE void Peer::set_banned_reason(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void Peer::set_banned_reason(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.banned_reason_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Peer.banned_reason) } -inline std::string* Peer::mutable_banned_reason() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_banned_reason(); +inline ::std::string* PROTOBUF_NONNULL Peer::mutable_banned_reason() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_banned_reason(); // @@protoc_insertion_point(field_mutable:tari.rpc.Peer.banned_reason) return _s; } -inline const std::string& Peer::_internal_banned_reason() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& Peer::_internal_banned_reason() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.banned_reason_.Get(); } -inline void Peer::_internal_set_banned_reason(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Peer::_internal_set_banned_reason(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.banned_reason_.Set(value, GetArena()); } -inline std::string* Peer::_internal_mutable_banned_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL Peer::_internal_mutable_banned_reason() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.banned_reason_.Mutable( GetArena()); } -inline std::string* Peer::release_banned_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE Peer::release_banned_reason() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Peer.banned_reason) - return _impl_.banned_reason_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.banned_reason_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.banned_reason_.Set("", GetArena()); + } + return released; } -inline void Peer::set_allocated_banned_reason(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Peer::set_allocated_banned_reason(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.banned_reason_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.banned_reason_.IsDefault()) { - _impl_.banned_reason_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.banned_reason_.IsDefault()) { + _impl_.banned_reason_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.Peer.banned_reason) } // uint64 offline_at = 8; inline void Peer::clear_offline_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.offline_at_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000100u; } inline ::uint64_t Peer::offline_at() const { // @@protoc_insertion_point(field_get:tari.rpc.Peer.offline_at) @@ -2496,21 +2743,23 @@ inline ::uint64_t Peer::offline_at() const { } inline void Peer::set_offline_at(::uint64_t value) { _internal_set_offline_at(value); + _impl_._has_bits_[0] |= 0x00000100u; // @@protoc_insertion_point(field_set:tari.rpc.Peer.offline_at) } inline ::uint64_t Peer::_internal_offline_at() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.offline_at_; } inline void Peer::_internal_set_offline_at(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.offline_at_ = value; } // uint32 features = 9; inline void Peer::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.features_ = 0u; + _impl_._has_bits_[0] &= ~0x00000080u; } inline ::uint32_t Peer::features() const { // @@protoc_insertion_point(field_get:tari.rpc.Peer.features) @@ -2518,14 +2767,15 @@ inline ::uint32_t Peer::features() const { } inline void Peer::set_features(::uint32_t value) { _internal_set_features(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:tari.rpc.Peer.features) } inline ::uint32_t Peer::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.features_; } inline void Peer::_internal_set_features(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.features_ = value; } @@ -2537,147 +2787,124 @@ inline int Peer::supported_protocols_size() const { return _internal_supported_protocols_size(); } inline void Peer::clear_supported_protocols() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.supported_protocols_.Clear(); } -inline std::string* Peer::add_supported_protocols() +inline ::std::string* PROTOBUF_NONNULL Peer::add_supported_protocols() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_supported_protocols()->Add(); + ::google::protobuf::internal::TSanWrite(&_impl_); + ::std::string* _s = _internal_mutable_supported_protocols()->Add(); // @@protoc_insertion_point(field_add_mutable:tari.rpc.Peer.supported_protocols) return _s; } -inline const std::string& Peer::supported_protocols(int index) const +inline const ::std::string& Peer::supported_protocols(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.Peer.supported_protocols) return _internal_supported_protocols().Get(index); } -inline std::string* Peer::mutable_supported_protocols(int index) +inline ::std::string* PROTOBUF_NONNULL Peer::mutable_supported_protocols(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.Peer.supported_protocols) return _internal_mutable_supported_protocols()->Mutable(index); } -inline void Peer::set_supported_protocols(int index, const std::string& value) { - _internal_mutable_supported_protocols()->Mutable(index)->assign(value); +template +inline void Peer::set_supported_protocols(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString(*_internal_mutable_supported_protocols()->Mutable(index), ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); // @@protoc_insertion_point(field_set:tari.rpc.Peer.supported_protocols) } -inline void Peer::set_supported_protocols(int index, std::string&& value) { - _internal_mutable_supported_protocols()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.Peer.supported_protocols) -} -inline void Peer::set_supported_protocols(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_supported_protocols()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.Peer.supported_protocols) -} -inline void Peer::set_supported_protocols(int index, const void* value, - std::size_t size) { - _internal_mutable_supported_protocols()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@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()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.Peer.supported_protocols) -} -inline void Peer::add_supported_protocols(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_supported_protocols()->Add()->assign(value); +template +inline void Peer::add_supported_protocols(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_supported_protocols(), + ::std::forward(value), + args... , ::google::protobuf::internal::BytesTag{}); // @@protoc_insertion_point(field_add:tari.rpc.Peer.supported_protocols) } -inline void Peer::add_supported_protocols(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_supported_protocols()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.Peer.supported_protocols) -} -inline void Peer::add_supported_protocols(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_supported_protocols()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.Peer.supported_protocols) -} -inline void Peer::add_supported_protocols(const void* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_supported_protocols()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.Peer.supported_protocols) -} -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()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.Peer.supported_protocols) -} -inline const ::google::protobuf::RepeatedPtrField& -Peer::supported_protocols() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::RepeatedPtrField<::std::string>& Peer::supported_protocols() + const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:tari.rpc.Peer.supported_protocols) return _internal_supported_protocols(); } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL Peer::mutable_supported_protocols() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.Peer.supported_protocols) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_supported_protocols(); } -inline const ::google::protobuf::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField<::std::string>& Peer::_internal_supported_protocols() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.supported_protocols_; } -inline ::google::protobuf::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL Peer::_internal_mutable_supported_protocols() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.supported_protocols_; } // string user_agent = 12; inline void Peer::clear_user_agent() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.user_agent_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& Peer::user_agent() const +inline const ::std::string& Peer::user_agent() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.Peer.user_agent) return _internal_user_agent(); } template -inline PROTOBUF_ALWAYS_INLINE void Peer::set_user_agent(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void Peer::set_user_agent(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.user_agent_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Peer.user_agent) } -inline std::string* Peer::mutable_user_agent() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_user_agent(); +inline ::std::string* PROTOBUF_NONNULL Peer::mutable_user_agent() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_user_agent(); // @@protoc_insertion_point(field_mutable:tari.rpc.Peer.user_agent) return _s; } -inline const std::string& Peer::_internal_user_agent() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& Peer::_internal_user_agent() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.user_agent_.Get(); } -inline void Peer::_internal_set_user_agent(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Peer::_internal_set_user_agent(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.user_agent_.Set(value, GetArena()); } -inline std::string* Peer::_internal_mutable_user_agent() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL Peer::_internal_mutable_user_agent() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.user_agent_.Mutable( GetArena()); } -inline std::string* Peer::release_user_agent() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE Peer::release_user_agent() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Peer.user_agent) - return _impl_.user_agent_.Release(); + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.user_agent_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.user_agent_.Set("", GetArena()); + } + return released; } -inline void Peer::set_allocated_user_agent(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Peer::set_allocated_user_agent(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } _impl_.user_agent_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.user_agent_.IsDefault()) { - _impl_.user_agent_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.user_agent_.IsDefault()) { + _impl_.user_agent_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.Peer.user_agent) } @@ -2687,8 +2914,9 @@ inline void Peer::set_allocated_user_agent(std::string* value) { // .tari.rpc.ConnectivityStatus status = 1; inline void NetworkStatusResponse::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.status_ = 0; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::tari::rpc::ConnectivityStatus NetworkStatusResponse::status() const { // @@protoc_insertion_point(field_get:tari.rpc.NetworkStatusResponse.status) @@ -2696,21 +2924,23 @@ inline ::tari::rpc::ConnectivityStatus NetworkStatusResponse::status() const { } inline void NetworkStatusResponse::set_status(::tari::rpc::ConnectivityStatus value) { _internal_set_status(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.NetworkStatusResponse.status) } inline ::tari::rpc::ConnectivityStatus NetworkStatusResponse::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::tari::rpc::ConnectivityStatus>(_impl_.status_); } inline void NetworkStatusResponse::_internal_set_status(::tari::rpc::ConnectivityStatus value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.status_ = value; } // uint32 avg_latency_ms = 2; inline void NetworkStatusResponse::clear_avg_latency_ms() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.avg_latency_ms_ = 0u; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint32_t NetworkStatusResponse::avg_latency_ms() const { // @@protoc_insertion_point(field_get:tari.rpc.NetworkStatusResponse.avg_latency_ms) @@ -2718,21 +2948,23 @@ inline ::uint32_t NetworkStatusResponse::avg_latency_ms() const { } inline void NetworkStatusResponse::set_avg_latency_ms(::uint32_t value) { _internal_set_avg_latency_ms(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.NetworkStatusResponse.avg_latency_ms) } inline ::uint32_t NetworkStatusResponse::_internal_avg_latency_ms() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.avg_latency_ms_; } inline void NetworkStatusResponse::_internal_set_avg_latency_ms(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.avg_latency_ms_ = value; } // uint32 num_node_connections = 3; inline void NetworkStatusResponse::clear_num_node_connections() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_node_connections_ = 0u; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint32_t NetworkStatusResponse::num_node_connections() const { // @@protoc_insertion_point(field_get:tari.rpc.NetworkStatusResponse.num_node_connections) @@ -2740,14 +2972,15 @@ inline ::uint32_t NetworkStatusResponse::num_node_connections() const { } inline void NetworkStatusResponse::set_num_node_connections(::uint32_t value) { _internal_set_num_node_connections(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.NetworkStatusResponse.num_node_connections) } inline ::uint32_t NetworkStatusResponse::_internal_num_node_connections() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.num_node_connections_; } inline void NetworkStatusResponse::_internal_set_num_node_connections(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_node_connections_ = value; } @@ -2757,108 +2990,139 @@ inline void NetworkStatusResponse::_internal_set_num_node_connections(::uint32_t // bytes address = 1; inline void Address::clear_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.address_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& Address::address() const +inline const ::std::string& Address::address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.Address.address) return _internal_address(); } template -inline PROTOBUF_ALWAYS_INLINE void Address::set_address(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void Address::set_address(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.address_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Address.address) } -inline std::string* Address::mutable_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_address(); +inline ::std::string* PROTOBUF_NONNULL Address::mutable_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_address(); // @@protoc_insertion_point(field_mutable:tari.rpc.Address.address) return _s; } -inline const std::string& Address::_internal_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& Address::_internal_address() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.address_.Get(); } -inline void Address::_internal_set_address(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Address::_internal_set_address(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.address_.Set(value, GetArena()); } -inline std::string* Address::_internal_mutable_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL Address::_internal_mutable_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.address_.Mutable( GetArena()); } -inline std::string* Address::release_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE Address::release_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Address.address) - return _impl_.address_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.address_.Set("", GetArena()); + } + return released; } -inline void Address::set_allocated_address(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Address::set_allocated_address(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.address_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.address_.IsDefault()) { - _impl_.address_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.address_.IsDefault()) { + _impl_.address_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.Address.address) } // string last_seen = 2; inline void Address::clear_last_seen() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.last_seen_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& Address::last_seen() const +inline const ::std::string& Address::last_seen() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.Address.last_seen) return _internal_last_seen(); } template -inline PROTOBUF_ALWAYS_INLINE void Address::set_last_seen(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void Address::set_last_seen(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.last_seen_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Address.last_seen) } -inline std::string* Address::mutable_last_seen() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_last_seen(); +inline ::std::string* PROTOBUF_NONNULL Address::mutable_last_seen() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_last_seen(); // @@protoc_insertion_point(field_mutable:tari.rpc.Address.last_seen) return _s; } -inline const std::string& Address::_internal_last_seen() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& Address::_internal_last_seen() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.last_seen_.Get(); } -inline void Address::_internal_set_last_seen(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Address::_internal_set_last_seen(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.last_seen_.Set(value, GetArena()); } -inline std::string* Address::_internal_mutable_last_seen() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL Address::_internal_mutable_last_seen() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.last_seen_.Mutable( GetArena()); } -inline std::string* Address::release_last_seen() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE Address::release_last_seen() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Address.last_seen) - return _impl_.last_seen_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.last_seen_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.last_seen_.Set("", GetArena()); + } + return released; } -inline void Address::set_allocated_last_seen(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Address::set_allocated_last_seen(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.last_seen_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.last_seen_.IsDefault()) { - _impl_.last_seen_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.last_seen_.IsDefault()) { + _impl_.last_seen_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.Address.last_seen) } // uint32 connection_attempts = 3; inline void Address::clear_connection_attempts() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.connection_attempts_ = 0u; + _impl_._has_bits_[0] &= ~0x00000008u; } inline ::uint32_t Address::connection_attempts() const { // @@protoc_insertion_point(field_get:tari.rpc.Address.connection_attempts) @@ -2866,30 +3130,31 @@ inline ::uint32_t Address::connection_attempts() const { } inline void Address::set_connection_attempts(::uint32_t value) { _internal_set_connection_attempts(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.Address.connection_attempts) } inline ::uint32_t Address::_internal_connection_attempts() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.connection_attempts_; } inline void Address::_internal_set_connection_attempts(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.connection_attempts_ = value; } // .tari.rpc.AverageLatency avg_latency = 5; inline bool Address::has_avg_latency() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; PROTOBUF_ASSUME(!value || _impl_.avg_latency_ != nullptr); return value; } inline void Address::clear_avg_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.avg_latency_ != nullptr) _impl_.avg_latency_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::tari::rpc::AverageLatency& Address::_internal_avg_latency() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::AverageLatency* p = _impl_.avg_latency_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_AverageLatency_default_instance_); } @@ -2897,76 +3162,78 @@ inline const ::tari::rpc::AverageLatency& Address::avg_latency() const ABSL_ATTR // @@protoc_insertion_point(field_get:tari.rpc.Address.avg_latency) return _internal_avg_latency(); } -inline void Address::unsafe_arena_set_allocated_avg_latency(::tari::rpc::AverageLatency* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Address::unsafe_arena_set_allocated_avg_latency( + ::tari::rpc::AverageLatency* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.avg_latency_); } _impl_.avg_latency_ = reinterpret_cast<::tari::rpc::AverageLatency*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000004u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000004u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.Address.avg_latency) } -inline ::tari::rpc::AverageLatency* Address::release_avg_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::AverageLatency* PROTOBUF_NULLABLE Address::release_avg_latency() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000004u; ::tari::rpc::AverageLatency* released = _impl_.avg_latency_; _impl_.avg_latency_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::AverageLatency* Address::unsafe_arena_release_avg_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::AverageLatency* PROTOBUF_NULLABLE Address::unsafe_arena_release_avg_latency() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Address.avg_latency) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000004u; ::tari::rpc::AverageLatency* temp = _impl_.avg_latency_; _impl_.avg_latency_ = nullptr; return temp; } -inline ::tari::rpc::AverageLatency* Address::_internal_mutable_avg_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::AverageLatency* PROTOBUF_NONNULL Address::_internal_mutable_avg_latency() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.avg_latency_ == nullptr) { 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; +inline ::tari::rpc::AverageLatency* PROTOBUF_NONNULL Address::mutable_avg_latency() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::tari::rpc::AverageLatency* _msg = _internal_mutable_avg_latency(); // @@protoc_insertion_point(field_mutable:tari.rpc.Address.avg_latency) return _msg; } -inline void Address::set_allocated_avg_latency(::tari::rpc::AverageLatency* value) { +inline void Address::set_allocated_avg_latency(::tari::rpc::AverageLatency* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.avg_latency_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.avg_latency_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000004u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.avg_latency_ = reinterpret_cast<::tari::rpc::AverageLatency*>(value); @@ -2979,8 +3246,9 @@ inline void Address::set_allocated_avg_latency(::tari::rpc::AverageLatency* valu // uint64 latency = 1; inline void AverageLatency::clear_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.latency_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t AverageLatency::latency() const { // @@protoc_insertion_point(field_get:tari.rpc.AverageLatency.latency) @@ -2988,14 +3256,15 @@ inline ::uint64_t AverageLatency::latency() const { } inline void AverageLatency::set_latency(::uint64_t value) { _internal_set_latency(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.AverageLatency.latency) } inline ::uint64_t AverageLatency::_internal_latency() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.latency_; } inline void AverageLatency::_internal_set_latency(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.latency_ = value; } @@ -3011,18 +3280,18 @@ inline int ListConnectedPeersResponse::connected_peers_size() const { return _internal_connected_peers_size(); } inline void ListConnectedPeersResponse::clear_connected_peers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.connected_peers_.Clear(); } -inline ::tari::rpc::Peer* ListConnectedPeersResponse::mutable_connected_peers(int index) +inline ::tari::rpc::Peer* PROTOBUF_NONNULL ListConnectedPeersResponse::mutable_connected_peers(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.ListConnectedPeersResponse.connected_peers) return _internal_mutable_connected_peers()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* ListConnectedPeersResponse::mutable_connected_peers() +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* PROTOBUF_NONNULL ListConnectedPeersResponse::mutable_connected_peers() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.ListConnectedPeersResponse.connected_peers) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_connected_peers(); } inline const ::tari::rpc::Peer& ListConnectedPeersResponse::connected_peers(int index) const @@ -3030,8 +3299,9 @@ inline const ::tari::rpc::Peer& ListConnectedPeersResponse::connected_peers(int // @@protoc_insertion_point(field_get:tari.rpc.ListConnectedPeersResponse.connected_peers) return _internal_connected_peers().Get(index); } -inline ::tari::rpc::Peer* ListConnectedPeersResponse::add_connected_peers() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Peer* PROTOBUF_NONNULL ListConnectedPeersResponse::add_connected_peers() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); ::tari::rpc::Peer* _add = _internal_mutable_connected_peers()->Add(); // @@protoc_insertion_point(field_add:tari.rpc.ListConnectedPeersResponse.connected_peers) return _add; @@ -3043,12 +3313,12 @@ inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>& ListConnec } inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>& ListConnectedPeersResponse::_internal_connected_peers() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.connected_peers_; } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* PROTOBUF_NONNULL ListConnectedPeersResponse::_internal_mutable_connected_peers() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.connected_peers_; } @@ -3058,8 +3328,9 @@ ListConnectedPeersResponse::_internal_mutable_connected_peers() { // bool has_update = 1; inline void SoftwareUpdate::clear_has_update() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.has_update_ = false; + _impl_._has_bits_[0] &= ~0x00000008u; } inline bool SoftwareUpdate::has_update() const { // @@protoc_insertion_point(field_get:tari.rpc.SoftwareUpdate.has_update) @@ -3067,164 +3338,210 @@ inline bool SoftwareUpdate::has_update() const { } inline void SoftwareUpdate::set_has_update(bool value) { _internal_set_has_update(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.SoftwareUpdate.has_update) } inline bool SoftwareUpdate::_internal_has_update() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.has_update_; } inline void SoftwareUpdate::_internal_set_has_update(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.has_update_ = value; } // string version = 2; inline void SoftwareUpdate::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& SoftwareUpdate::version() const +inline const ::std::string& SoftwareUpdate::version() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.SoftwareUpdate.version) return _internal_version(); } template -inline PROTOBUF_ALWAYS_INLINE void SoftwareUpdate::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void SoftwareUpdate::set_version(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.SoftwareUpdate.version) } -inline std::string* SoftwareUpdate::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_version(); +inline ::std::string* PROTOBUF_NONNULL SoftwareUpdate::mutable_version() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:tari.rpc.SoftwareUpdate.version) return _s; } -inline const std::string& SoftwareUpdate::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& SoftwareUpdate::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.version_.Get(); } -inline void SoftwareUpdate::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SoftwareUpdate::_internal_set_version(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.version_.Set(value, GetArena()); } -inline std::string* SoftwareUpdate::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL SoftwareUpdate::_internal_mutable_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.version_.Mutable( GetArena()); } -inline std::string* SoftwareUpdate::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE SoftwareUpdate::release_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.SoftwareUpdate.version) - return _impl_.version_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.version_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.version_.Set("", GetArena()); + } + return released; } -inline void SoftwareUpdate::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SoftwareUpdate::set_allocated_version(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.version_.IsDefault()) { + _impl_.version_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.SoftwareUpdate.version) } // string sha = 3; inline void SoftwareUpdate::clear_sha() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sha_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& SoftwareUpdate::sha() const +inline const ::std::string& SoftwareUpdate::sha() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.SoftwareUpdate.sha) return _internal_sha(); } template -inline PROTOBUF_ALWAYS_INLINE void SoftwareUpdate::set_sha(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void SoftwareUpdate::set_sha(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.sha_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.SoftwareUpdate.sha) } -inline std::string* SoftwareUpdate::mutable_sha() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_sha(); +inline ::std::string* PROTOBUF_NONNULL SoftwareUpdate::mutable_sha() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_sha(); // @@protoc_insertion_point(field_mutable:tari.rpc.SoftwareUpdate.sha) return _s; } -inline const std::string& SoftwareUpdate::_internal_sha() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& SoftwareUpdate::_internal_sha() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.sha_.Get(); } -inline void SoftwareUpdate::_internal_set_sha(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SoftwareUpdate::_internal_set_sha(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.sha_.Set(value, GetArena()); } -inline std::string* SoftwareUpdate::_internal_mutable_sha() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL SoftwareUpdate::_internal_mutable_sha() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.sha_.Mutable( GetArena()); } -inline std::string* SoftwareUpdate::release_sha() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE SoftwareUpdate::release_sha() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.SoftwareUpdate.sha) - return _impl_.sha_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.sha_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.sha_.Set("", GetArena()); + } + return released; } -inline void SoftwareUpdate::set_allocated_sha(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SoftwareUpdate::set_allocated_sha(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.sha_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sha_.IsDefault()) { - _impl_.sha_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.sha_.IsDefault()) { + _impl_.sha_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.SoftwareUpdate.sha) } // string download_url = 4; inline void SoftwareUpdate::clear_download_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.download_url_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& SoftwareUpdate::download_url() const +inline const ::std::string& SoftwareUpdate::download_url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.SoftwareUpdate.download_url) return _internal_download_url(); } template -inline PROTOBUF_ALWAYS_INLINE void SoftwareUpdate::set_download_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void SoftwareUpdate::set_download_url(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.download_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.SoftwareUpdate.download_url) } -inline std::string* SoftwareUpdate::mutable_download_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_download_url(); +inline ::std::string* PROTOBUF_NONNULL SoftwareUpdate::mutable_download_url() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_download_url(); // @@protoc_insertion_point(field_mutable:tari.rpc.SoftwareUpdate.download_url) return _s; } -inline const std::string& SoftwareUpdate::_internal_download_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& SoftwareUpdate::_internal_download_url() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.download_url_.Get(); } -inline void SoftwareUpdate::_internal_set_download_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SoftwareUpdate::_internal_set_download_url(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.download_url_.Set(value, GetArena()); } -inline std::string* SoftwareUpdate::_internal_mutable_download_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL SoftwareUpdate::_internal_mutable_download_url() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.download_url_.Mutable( GetArena()); } -inline std::string* SoftwareUpdate::release_download_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE SoftwareUpdate::release_download_url() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.SoftwareUpdate.download_url) - return _impl_.download_url_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.download_url_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.download_url_.Set("", GetArena()); + } + return released; } -inline void SoftwareUpdate::set_allocated_download_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void SoftwareUpdate::set_allocated_download_url(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.download_url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.download_url_.IsDefault()) { - _impl_.download_url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.download_url_.IsDefault()) { + _impl_.download_url_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.SoftwareUpdate.download_url) } @@ -3238,151 +3555,196 @@ inline void SoftwareUpdate::set_allocated_download_url(std::string* value) { // bytes public_key = 1; inline void GetIdentityResponse::clear_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& GetIdentityResponse::public_key() const +inline const ::std::string& GetIdentityResponse::public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetIdentityResponse.public_key) return _internal_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void GetIdentityResponse::set_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetIdentityResponse::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetIdentityResponse.public_key) } -inline std::string* GetIdentityResponse::mutable_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_key(); +inline ::std::string* PROTOBUF_NONNULL GetIdentityResponse::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetIdentityResponse.public_key) return _s; } -inline const std::string& GetIdentityResponse::_internal_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetIdentityResponse::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.public_key_.Get(); } -inline void GetIdentityResponse::_internal_set_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetIdentityResponse::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.public_key_.Set(value, GetArena()); } -inline std::string* GetIdentityResponse::_internal_mutable_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetIdentityResponse::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.public_key_.Mutable( GetArena()); } -inline std::string* GetIdentityResponse::release_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetIdentityResponse::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetIdentityResponse.public_key) - return _impl_.public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; } -inline void GetIdentityResponse::set_allocated_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetIdentityResponse::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetIdentityResponse.public_key) } // string public_address = 2; inline void GetIdentityResponse::clear_public_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.public_address_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& GetIdentityResponse::public_address() const +inline const ::std::string& GetIdentityResponse::public_address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetIdentityResponse.public_address) return _internal_public_address(); } template -inline PROTOBUF_ALWAYS_INLINE void GetIdentityResponse::set_public_address(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetIdentityResponse::set_public_address(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.public_address_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetIdentityResponse.public_address) } -inline std::string* GetIdentityResponse::mutable_public_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_address(); +inline ::std::string* PROTOBUF_NONNULL GetIdentityResponse::mutable_public_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_address(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetIdentityResponse.public_address) return _s; } -inline const std::string& GetIdentityResponse::_internal_public_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetIdentityResponse::_internal_public_address() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.public_address_.Get(); } -inline void GetIdentityResponse::_internal_set_public_address(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetIdentityResponse::_internal_set_public_address(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.public_address_.Set(value, GetArena()); } -inline std::string* GetIdentityResponse::_internal_mutable_public_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetIdentityResponse::_internal_mutable_public_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.public_address_.Mutable( GetArena()); } -inline std::string* GetIdentityResponse::release_public_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetIdentityResponse::release_public_address() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetIdentityResponse.public_address) - return _impl_.public_address_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.public_address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_address_.Set("", GetArena()); + } + return released; } -inline void GetIdentityResponse::set_allocated_public_address(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetIdentityResponse::set_allocated_public_address(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.public_address_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_address_.IsDefault()) { - _impl_.public_address_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_address_.IsDefault()) { + _impl_.public_address_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetIdentityResponse.public_address) } // bytes node_id = 3; inline void GetIdentityResponse::clear_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.node_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& GetIdentityResponse::node_id() const +inline const ::std::string& GetIdentityResponse::node_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.GetIdentityResponse.node_id) return _internal_node_id(); } template -inline PROTOBUF_ALWAYS_INLINE void GetIdentityResponse::set_node_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void GetIdentityResponse::set_node_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.node_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.GetIdentityResponse.node_id) } -inline std::string* GetIdentityResponse::mutable_node_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_node_id(); +inline ::std::string* PROTOBUF_NONNULL GetIdentityResponse::mutable_node_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_node_id(); // @@protoc_insertion_point(field_mutable:tari.rpc.GetIdentityResponse.node_id) return _s; } -inline const std::string& GetIdentityResponse::_internal_node_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& GetIdentityResponse::_internal_node_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.node_id_.Get(); } -inline void GetIdentityResponse::_internal_set_node_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetIdentityResponse::_internal_set_node_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.node_id_.Set(value, GetArena()); } -inline std::string* GetIdentityResponse::_internal_mutable_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL GetIdentityResponse::_internal_mutable_node_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.node_id_.Mutable( GetArena()); } -inline std::string* GetIdentityResponse::release_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE GetIdentityResponse::release_node_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.GetIdentityResponse.node_id) - return _impl_.node_id_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.node_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.node_id_.Set("", GetArena()); + } + return released; } -inline void GetIdentityResponse::set_allocated_node_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void GetIdentityResponse::set_allocated_node_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.node_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.node_id_.IsDefault()) { - _impl_.node_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.node_id_.IsDefault()) { + _impl_.node_id_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetIdentityResponse.node_id) } @@ -3401,7 +3763,7 @@ namespace protobuf { template <> struct is_proto_enum<::tari::rpc::ConnectivityStatus> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::ConnectivityStatus>() { +inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::tari::rpc::ConnectivityStatus>() { return ::tari::rpc::ConnectivityStatus_descriptor(); } @@ -3412,4 +3774,4 @@ inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::ConnectivityStatus>( #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_network_2eproto_2epb_2eh +#endif // network_2eproto_2epb_2eh diff --git a/external/src/Tari/proto/gRPC/sidechain_types.grpc.pb.cc b/external/src/Tari/proto/gRPC/sidechain_types.grpc.pb.cc index 1c136c9..695b37c 100644 --- a/external/src/Tari/proto/gRPC/sidechain_types.grpc.pb.cc +++ b/external/src/Tari/proto/gRPC/sidechain_types.grpc.pb.cc @@ -19,9 +19,11 @@ #include #include #include +#include namespace tari { namespace rpc { } // namespace tari } // namespace rpc +#include diff --git a/external/src/Tari/proto/gRPC/sidechain_types.grpc.pb.h b/external/src/Tari/proto/gRPC/sidechain_types.grpc.pb.h index ed68a10..85d19d1 100644 --- a/external/src/Tari/proto/gRPC/sidechain_types.grpc.pb.h +++ b/external/src/Tari/proto/gRPC/sidechain_types.grpc.pb.h @@ -46,6 +46,7 @@ #include #include #include +#include namespace tari { namespace rpc { @@ -54,4 +55,5 @@ namespace rpc { } // namespace tari +#include #endif // GRPC_sidechain_5ftypes_2eproto__INCLUDED diff --git a/external/src/Tari/proto/gRPC/sidechain_types.pb.cc b/external/src/Tari/proto/gRPC/sidechain_types.pb.cc index 7c351e9..5137e99 100644 --- a/external/src/Tari/proto/gRPC/sidechain_types.pb.cc +++ b/external/src/Tari/proto/gRPC/sidechain_types.pb.cc @@ -1,18 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: sidechain_types.proto -// Protobuf C++ Version: 5.26.1 +// Protobuf C++ Version: 6.31.1 #include "sidechain_types.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -26,12 +29,18 @@ namespace rpc { inline constexpr WasmInfo::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : abi_version_{0u}, - _cached_size_{0} {} + : _cached_size_{0}, + abi_version_{0u} {} template PROTOBUF_CONSTEXPR WasmInfo::WasmInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(WasmInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct WasmInfoDefaultTypeInternal { PROTOBUF_CONSTEXPR WasmInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~WasmInfoDefaultTypeInternal() {} @@ -42,8 +51,40 @@ struct WasmInfoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WasmInfoDefaultTypeInternal _WasmInfo_default_instance_; - template -PROTOBUF_CONSTEXPR ManifestInfo::ManifestInfo(::_pbi::ConstantInitialized) {} + +inline constexpr ShardGroup::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + start_{0u}, + end_inclusive_{0u} {} + +template +PROTOBUF_CONSTEXPR ShardGroup::ShardGroup(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ShardGroup_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ShardGroupDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShardGroupDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ShardGroupDefaultTypeInternal() {} + union { + ShardGroup _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShardGroupDefaultTypeInternal _ShardGroup_default_instance_; +template +PROTOBUF_CONSTEXPR ManifestInfo::ManifestInfo(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(ManifestInfo_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ManifestInfoDefaultTypeInternal { PROTOBUF_CONSTEXPR ManifestInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ManifestInfoDefaultTypeInternal() {} @@ -54,8 +95,14 @@ struct ManifestInfoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ManifestInfoDefaultTypeInternal _ManifestInfo_default_instance_; - template -PROTOBUF_CONSTEXPR FlowInfo::FlowInfo(::_pbi::ConstantInitialized) {} +template +PROTOBUF_CONSTEXPR FlowInfo::FlowInfo(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(FlowInfo_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct FlowInfoDefaultTypeInternal { PROTOBUF_CONSTEXPR FlowInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FlowInfoDefaultTypeInternal() {} @@ -67,16 +114,49 @@ struct FlowInfoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowInfoDefaultTypeInternal _FlowInfo_default_instance_; +inline constexpr EvictAtom::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR EvictAtom::EvictAtom(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(EvictAtom_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct EvictAtomDefaultTypeInternal { + PROTOBUF_CONSTEXPR EvictAtomDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EvictAtomDefaultTypeInternal() {} + union { + EvictAtom _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvictAtomDefaultTypeInternal _EvictAtom_default_instance_; + inline constexpr ConfidentialOutputData::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : claim_public_key_( + : _cached_size_{0}, + claim_public_key_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR ConfidentialOutputData::ConfidentialOutputData(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ConfidentialOutputData_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ConfidentialOutputDataDefaultTypeInternal { PROTOBUF_CONSTEXPR ConfidentialOutputDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ConfidentialOutputDataDefaultTypeInternal() {} @@ -88,19 +168,55 @@ struct ConfidentialOutputDataDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConfidentialOutputDataDefaultTypeInternal _ConfidentialOutputData_default_instance_; +inline constexpr ChainLink::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + header_hash_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + parent_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR ChainLink::ChainLink(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ChainLink_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ChainLinkDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChainLinkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ChainLinkDefaultTypeInternal() {} + union { + ChainLink _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChainLinkDefaultTypeInternal _ChainLink_default_instance_; + inline constexpr BuildInfo::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : repo_url_( + : _cached_size_{0}, + repo_url_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), commit_hash_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR BuildInfo::BuildInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(BuildInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct BuildInfoDefaultTypeInternal { PROTOBUF_CONSTEXPR BuildInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~BuildInfoDefaultTypeInternal() {} @@ -112,7 +228,7 @@ struct BuildInfoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BuildInfoDefaultTypeInternal _BuildInfo_default_instance_; -inline constexpr ValidatorNodeRegistration::Impl_::Impl_( +inline constexpr ValidatorSignature::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, public_key_( @@ -120,9 +236,47 @@ inline constexpr ValidatorNodeRegistration::Impl_::Impl_( ::_pbi::ConstantInitialized()), signature_{nullptr} {} +template +PROTOBUF_CONSTEXPR ValidatorSignature::ValidatorSignature(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ValidatorSignature_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ValidatorSignatureDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValidatorSignatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ValidatorSignatureDefaultTypeInternal() {} + union { + ValidatorSignature _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidatorSignatureDefaultTypeInternal _ValidatorSignature_default_instance_; + +inline constexpr ValidatorNodeRegistration::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + claim_public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + signature_{nullptr}, + max_epoch_{::uint64_t{0u}} {} + template PROTOBUF_CONSTEXPR ValidatorNodeRegistration::ValidatorNodeRegistration(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ValidatorNodeRegistration_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ValidatorNodeRegistrationDefaultTypeInternal { PROTOBUF_CONSTEXPR ValidatorNodeRegistrationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ValidatorNodeRegistrationDefaultTypeInternal() {} @@ -134,6 +288,35 @@ struct ValidatorNodeRegistrationDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidatorNodeRegistrationDefaultTypeInternal _ValidatorNodeRegistration_default_instance_; +inline constexpr ValidatorNodeExit::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + signature_{nullptr}, + max_epoch_{::uint64_t{0u}} {} + +template +PROTOBUF_CONSTEXPR ValidatorNodeExit::ValidatorNodeExit(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ValidatorNodeExit_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ValidatorNodeExitDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValidatorNodeExitDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ValidatorNodeExitDefaultTypeInternal() {} + union { + ValidatorNodeExit _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidatorNodeExitDefaultTypeInternal _ValidatorNodeExit_default_instance_; + inline constexpr TemplateType::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : template_type_{}, @@ -142,7 +325,13 @@ inline constexpr TemplateType::Impl_::Impl_( template PROTOBUF_CONSTEXPR TemplateType::TemplateType(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(TemplateType_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TemplateTypeDefaultTypeInternal { PROTOBUF_CONSTEXPR TemplateTypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TemplateTypeDefaultTypeInternal() {} @@ -154,6 +343,106 @@ struct TemplateTypeDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TemplateTypeDefaultTypeInternal _TemplateType_default_instance_; +inline constexpr SidechainBlockHeader::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + parent_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + justify_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + proposed_by_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + state_merkle_root_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + command_merkle_root_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + metadata_hash_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + shard_group_{nullptr}, + signature_{nullptr}, + height_{::uint64_t{0u}}, + epoch_{::uint64_t{0u}}, + network_{0u} {} + +template +PROTOBUF_CONSTEXPR SidechainBlockHeader::SidechainBlockHeader(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SidechainBlockHeader_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SidechainBlockHeaderDefaultTypeInternal { + PROTOBUF_CONSTEXPR SidechainBlockHeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SidechainBlockHeaderDefaultTypeInternal() {} + union { + SidechainBlockHeader _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SidechainBlockHeaderDefaultTypeInternal _SidechainBlockHeader_default_instance_; + +inline constexpr SideChainId::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + public_key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + knowledge_proof_{nullptr} {} + +template +PROTOBUF_CONSTEXPR SideChainId::SideChainId(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SideChainId_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SideChainIdDefaultTypeInternal { + PROTOBUF_CONSTEXPR SideChainIdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SideChainIdDefaultTypeInternal() {} + union { + SideChainId _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SideChainIdDefaultTypeInternal _SideChainId_default_instance_; + +inline constexpr DummyChain::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : chain_links_{}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR DummyChain::DummyChain(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(DummyChain_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct DummyChainDefaultTypeInternal { + PROTOBUF_CONSTEXPR DummyChainDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DummyChainDefaultTypeInternal() {} + union { + DummyChain _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DummyChainDefaultTypeInternal _DummyChain_default_instance_; + inline constexpr TemplateRegistration::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -176,7 +465,13 @@ inline constexpr TemplateRegistration::Impl_::Impl_( template PROTOBUF_CONSTEXPR TemplateRegistration::TemplateRegistration(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(TemplateRegistration_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TemplateRegistrationDefaultTypeInternal { PROTOBUF_CONSTEXPR TemplateRegistrationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TemplateRegistrationDefaultTypeInternal() {} @@ -188,15 +483,188 @@ struct TemplateRegistrationDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TemplateRegistrationDefaultTypeInternal _TemplateRegistration_default_instance_; -inline constexpr SideChainFeature::Impl_::Impl_( +inline constexpr QuorumCertificate::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : side_chain_feature_{}, + : _cached_size_{0}, + signatures_{}, + header_hash_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + parent_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + decision_{static_cast< ::tari::rpc::QuorumDecision >(0)} {} + +template +PROTOBUF_CONSTEXPR QuorumCertificate::QuorumCertificate(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(QuorumCertificate_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct QuorumCertificateDefaultTypeInternal { + PROTOBUF_CONSTEXPR QuorumCertificateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~QuorumCertificateDefaultTypeInternal() {} + union { + QuorumCertificate _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuorumCertificateDefaultTypeInternal _QuorumCertificate_default_instance_; + +inline constexpr CommitProofElement::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : proof_element_{}, _cached_size_{0}, _oneof_case_{} {} +template +PROTOBUF_CONSTEXPR CommitProofElement::CommitProofElement(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(CommitProofElement_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct CommitProofElementDefaultTypeInternal { + PROTOBUF_CONSTEXPR CommitProofElementDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CommitProofElementDefaultTypeInternal() {} + union { + CommitProofElement _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommitProofElementDefaultTypeInternal _CommitProofElement_default_instance_; + +inline constexpr SidechainBlockCommitProof::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + proof_elements_{}, + header_{nullptr} {} + +template +PROTOBUF_CONSTEXPR SidechainBlockCommitProof::SidechainBlockCommitProof(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SidechainBlockCommitProof_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SidechainBlockCommitProofDefaultTypeInternal { + PROTOBUF_CONSTEXPR SidechainBlockCommitProofDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SidechainBlockCommitProofDefaultTypeInternal() {} + union { + SidechainBlockCommitProof _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SidechainBlockCommitProofDefaultTypeInternal _SidechainBlockCommitProof_default_instance_; + +inline constexpr CommitProofV1::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + command_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + encoded_inclusion_proof_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + commit_proof_{nullptr} {} + +template +PROTOBUF_CONSTEXPR CommitProofV1::CommitProofV1(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(CommitProofV1_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct CommitProofV1DefaultTypeInternal { + PROTOBUF_CONSTEXPR CommitProofV1DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CommitProofV1DefaultTypeInternal() {} + union { + CommitProofV1 _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommitProofV1DefaultTypeInternal _CommitProofV1_default_instance_; + +inline constexpr CommitProof::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : version_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR CommitProof::CommitProof(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(CommitProof_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct CommitProofDefaultTypeInternal { + PROTOBUF_CONSTEXPR CommitProofDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CommitProofDefaultTypeInternal() {} + union { + CommitProof _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommitProofDefaultTypeInternal _CommitProof_default_instance_; + +inline constexpr EvictionProof::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + proof_{nullptr} {} + +template +PROTOBUF_CONSTEXPR EvictionProof::EvictionProof(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(EvictionProof_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct EvictionProofDefaultTypeInternal { + PROTOBUF_CONSTEXPR EvictionProofDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EvictionProofDefaultTypeInternal() {} + union { + EvictionProof _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvictionProofDefaultTypeInternal _EvictionProof_default_instance_; + +inline constexpr SideChainFeature::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + sidechain_id_{nullptr}, + feature_{}, + _oneof_case_{} {} + template PROTOBUF_CONSTEXPR SideChainFeature::SideChainFeature(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(SideChainFeature_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SideChainFeatureDefaultTypeInternal { PROTOBUF_CONSTEXPR SideChainFeatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SideChainFeatureDefaultTypeInternal() {} @@ -209,46 +677,60 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SideChainFeatureDefaultTypeInternal _SideChainFeature_default_instance_; } // namespace rpc } // namespace tari -static ::_pb::Metadata file_level_metadata_sidechain_5ftypes_2eproto[9]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_sidechain_5ftypes_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** +static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL + file_level_enum_descriptors_sidechain_5ftypes_2eproto[1]; +static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_sidechain_5ftypes_2eproto = nullptr; 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_ + 0x085, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _impl_._has_bits_), 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) + 11, // hasbit index offset ::_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_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _impl_.sidechain_id_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _impl_.feature_), + ~0u, + ~0u, + ~0u, + ~0u, ~0u, 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainId, _impl_._has_bits_), + 5, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainId, _impl_.public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainId, _impl_.knowledge_proof_), + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_._has_bits_), + 7, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_.public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_.signature_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_.claim_public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_.max_epoch_), + 0, + 2, + 1, + 3, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeExit, _impl_._has_bits_), + 6, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeExit, _impl_.public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeExit, _impl_.signature_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeExit, _impl_.max_epoch_), + 0, + 1, + 2, + 0x081, // bitmap 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) + 11, // hasbit index offset 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_), @@ -257,87 +739,166 @@ const ::uint32_t 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, + 4, 1, + 7, + 5, + 6, 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) + 3, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConfidentialOutputData, _impl_._has_bits_), + 4, // hasbit index offset 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_ + 0, + 0x004, // bitmap 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) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::WasmInfo, _impl_._has_bits_), + 4, // hasbit index offset 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) + 0, + 0x000, // bitmap + 0x000, // bitmap + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::BuildInfo, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::BuildInfo, _impl_.repo_url_), PROTOBUF_FIELD_OFFSET(::tari::rpc::BuildInfo, _impl_.commit_hash_), + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::EvictionProof, _impl_._has_bits_), + 4, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::EvictionProof, _impl_.proof_), + 0, + 0x004, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitProof, _impl_._oneof_case_[0]), + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitProof, _impl_.version_), + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitProofV1, _impl_._has_bits_), + 6, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitProofV1, _impl_.command_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitProofV1, _impl_.commit_proof_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitProofV1, _impl_.encoded_inclusion_proof_), + 0, + 2, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockCommitProof, _impl_._has_bits_), + 5, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockCommitProof, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockCommitProof, _impl_.proof_elements_), + 0, + ~0u, + 0x004, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitProofElement, _impl_._oneof_case_[0]), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitProofElement, _impl_.proof_element_), + 0x000, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::DummyChain, _impl_.chain_links_), + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ChainLink, _impl_._has_bits_), + 5, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::ChainLink, _impl_.header_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ChainLink, _impl_.parent_id_), + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockHeader, _impl_._has_bits_), + 14, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockHeader, _impl_.network_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockHeader, _impl_.parent_id_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockHeader, _impl_.justify_id_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockHeader, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockHeader, _impl_.epoch_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockHeader, _impl_.shard_group_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockHeader, _impl_.proposed_by_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockHeader, _impl_.state_merkle_root_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockHeader, _impl_.command_merkle_root_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockHeader, _impl_.signature_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::SidechainBlockHeader, _impl_.metadata_hash_), + 10, + 0, + 1, + 8, + 9, + 6, + 2, + 3, + 4, + 7, + 5, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ShardGroup, _impl_._has_bits_), + 5, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::ShardGroup, _impl_.start_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ShardGroup, _impl_.end_inclusive_), + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::EvictAtom, _impl_._has_bits_), + 4, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::EvictAtom, _impl_.public_key_), + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::QuorumCertificate, _impl_._has_bits_), + 7, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::QuorumCertificate, _impl_.header_hash_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::QuorumCertificate, _impl_.parent_id_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::QuorumCertificate, _impl_.signatures_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::QuorumCertificate, _impl_.decision_), + 0, + 1, + ~0u, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorSignature, _impl_._has_bits_), + 5, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorSignature, _impl_.public_key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorSignature, _impl_.signature_), + 0, + 1, }; static const ::_pbi::MigrationSchema 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)}, - {48, -1, -1, sizeof(::tari::rpc::ConfidentialOutputData)}, - {57, -1, -1, sizeof(::tari::rpc::TemplateType)}, - {69, -1, -1, sizeof(::tari::rpc::WasmInfo)}, - {78, -1, -1, sizeof(::tari::rpc::FlowInfo)}, - {86, -1, -1, sizeof(::tari::rpc::ManifestInfo)}, - {94, -1, -1, sizeof(::tari::rpc::BuildInfo)}, + {0, sizeof(::tari::rpc::SideChainFeature)}, + {17, sizeof(::tari::rpc::SideChainId)}, + {24, sizeof(::tari::rpc::ValidatorNodeRegistration)}, + {35, sizeof(::tari::rpc::ValidatorNodeExit)}, + {44, sizeof(::tari::rpc::TemplateRegistration)}, + {63, sizeof(::tari::rpc::ConfidentialOutputData)}, + {68, sizeof(::tari::rpc::TemplateType)}, + {74, sizeof(::tari::rpc::WasmInfo)}, + {79, sizeof(::tari::rpc::FlowInfo)}, + {80, sizeof(::tari::rpc::ManifestInfo)}, + {81, sizeof(::tari::rpc::BuildInfo)}, + {88, sizeof(::tari::rpc::EvictionProof)}, + {93, sizeof(::tari::rpc::CommitProof)}, + {97, sizeof(::tari::rpc::CommitProofV1)}, + {106, sizeof(::tari::rpc::SidechainBlockCommitProof)}, + {113, sizeof(::tari::rpc::CommitProofElement)}, + {118, sizeof(::tari::rpc::DummyChain)}, + {120, sizeof(::tari::rpc::ChainLink)}, + {127, sizeof(::tari::rpc::SidechainBlockHeader)}, + {152, sizeof(::tari::rpc::ShardGroup)}, + {159, sizeof(::tari::rpc::EvictAtom)}, + {164, sizeof(::tari::rpc::QuorumCertificate)}, + {175, sizeof(::tari::rpc::ValidatorSignature)}, }; -static const ::_pb::Message* const file_default_instances[] = { +static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { &::tari::rpc::_SideChainFeature_default_instance_._instance, + &::tari::rpc::_SideChainId_default_instance_._instance, &::tari::rpc::_ValidatorNodeRegistration_default_instance_._instance, + &::tari::rpc::_ValidatorNodeExit_default_instance_._instance, &::tari::rpc::_TemplateRegistration_default_instance_._instance, &::tari::rpc::_ConfidentialOutputData_default_instance_._instance, &::tari::rpc::_TemplateType_default_instance_._instance, @@ -345,352 +906,572 @@ static const ::_pb::Message* const file_default_instances[] = { &::tari::rpc::_FlowInfo_default_instance_._instance, &::tari::rpc::_ManifestInfo_default_instance_._instance, &::tari::rpc::_BuildInfo_default_instance_._instance, + &::tari::rpc::_EvictionProof_default_instance_._instance, + &::tari::rpc::_CommitProof_default_instance_._instance, + &::tari::rpc::_CommitProofV1_default_instance_._instance, + &::tari::rpc::_SidechainBlockCommitProof_default_instance_._instance, + &::tari::rpc::_CommitProofElement_default_instance_._instance, + &::tari::rpc::_DummyChain_default_instance_._instance, + &::tari::rpc::_ChainLink_default_instance_._instance, + &::tari::rpc::_SidechainBlockHeader_default_instance_._instance, + &::tari::rpc::_ShardGroup_default_instance_._instance, + &::tari::rpc::_EvictAtom_default_instance_._instance, + &::tari::rpc::_QuorumCertificate_default_instance_._instance, + &::tari::rpc::_ValidatorSignature_default_instance_._instance, }; 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" + ".proto\"\207\003\n\020SideChainFeature\022J\n\033validator" "_node_registration\030\001 \001(\0132#.tari.rpc.Vali" "datorNodeRegistrationH\000\022\?\n\025template_regi" "stration\030\002 \001(\0132\036.tari.rpc.TemplateRegist" "rationH\000\022\?\n\023confidential_output\030\003 \001(\0132 ." - "tari.rpc.ConfidentialOutputDataH\000B\024\n\022sid" - "e_chain_feature\"W\n\031ValidatorNodeRegistra" - "tion\022\022\n\npublic_key\030\001 \001(\014\022&\n\tsignature\030\002 " - "\001(\0132\023.tari.rpc.Signature\"\221\002\n\024TemplateReg" - "istration\022\031\n\021author_public_key\030\001 \001(\014\022-\n\020" - "author_signature\030\002 \001(\0132\023.tari.rpc.Signat" - "ure\022\025\n\rtemplate_name\030\003 \001(\t\022\030\n\020template_v" - "ersion\030\004 \001(\r\022-\n\rtemplate_type\030\005 \001(\0132\026.ta" - "ri.rpc.TemplateType\022\'\n\nbuild_info\030\006 \001(\0132" - "\023.tari.rpc.BuildInfo\022\022\n\nbinary_sha\030\007 \001(\014" - "\022\022\n\nbinary_url\030\010 \001(\t\"2\n\026ConfidentialOutp" - "utData\022\030\n\020claim_public_key\030\001 \001(\014\"\223\001\n\014Tem" - "plateType\022\"\n\004wasm\030\001 \001(\0132\022.tari.rpc.WasmI" - "nfoH\000\022\"\n\004flow\030\002 \001(\0132\022.tari.rpc.FlowInfoH" - "\000\022*\n\010manifest\030\003 \001(\0132\026.tari.rpc.ManifestI" - "nfoH\000B\017\n\rtemplate_type\"\037\n\010WasmInfo\022\023\n\013ab" - "i_version\030\001 \001(\r\"\n\n\010FlowInfo\"\016\n\014ManifestI" - "nfo\"2\n\tBuildInfo\022\020\n\010repo_url\030\001 \001(\t\022\023\n\013co" - "mmit_hash\030\002 \001(\014b\006proto3" + "tari.rpc.ConfidentialOutputDataH\000\0221\n\016evi" + "ction_proof\030\004 \001(\0132\027.tari.rpc.EvictionPro" + "ofH\000\022:\n\023validator_node_exit\030\005 \001(\0132\033.tari" + ".rpc.ValidatorNodeExitH\000\022+\n\014sidechain_id" + "\030\006 \001(\0132\025.tari.rpc.SideChainIdB\t\n\007feature" + "\"O\n\013SideChainId\022\022\n\npublic_key\030\001 \001(\014\022,\n\017k" + "nowledge_proof\030\002 \001(\0132\023.tari.rpc.Signatur" + "e\"\204\001\n\031ValidatorNodeRegistration\022\022\n\npubli" + "c_key\030\001 \001(\014\022&\n\tsignature\030\002 \001(\0132\023.tari.rp" + "c.Signature\022\030\n\020claim_public_key\030\003 \001(\014\022\021\n" + "\tmax_epoch\030\004 \001(\004\"b\n\021ValidatorNodeExit\022\022\n" + "\npublic_key\030\001 \001(\014\022&\n\tsignature\030\002 \001(\0132\023.t" + "ari.rpc.Signature\022\021\n\tmax_epoch\030\003 \001(\004\"\221\002\n" + "\024TemplateRegistration\022\031\n\021author_public_k" + "ey\030\001 \001(\014\022-\n\020author_signature\030\002 \001(\0132\023.tar" + "i.rpc.Signature\022\025\n\rtemplate_name\030\003 \001(\t\022\030" + "\n\020template_version\030\004 \001(\r\022-\n\rtemplate_typ" + "e\030\005 \001(\0132\026.tari.rpc.TemplateType\022\'\n\nbuild" + "_info\030\006 \001(\0132\023.tari.rpc.BuildInfo\022\022\n\nbina" + "ry_sha\030\007 \001(\014\022\022\n\nbinary_url\030\010 \001(\t\"2\n\026Conf" + "identialOutputData\022\030\n\020claim_public_key\030\001" + " \001(\014\"\223\001\n\014TemplateType\022\"\n\004wasm\030\001 \001(\0132\022.ta" + "ri.rpc.WasmInfoH\000\022\"\n\004flow\030\002 \001(\0132\022.tari.r" + "pc.FlowInfoH\000\022*\n\010manifest\030\003 \001(\0132\026.tari.r" + "pc.ManifestInfoH\000B\017\n\rtemplate_type\"\037\n\010Wa" + "smInfo\022\023\n\013abi_version\030\001 \001(\r\"\n\n\010FlowInfo\"" + "\016\n\014ManifestInfo\"2\n\tBuildInfo\022\020\n\010repo_url" + "\030\001 \001(\t\022\023\n\013commit_hash\030\002 \001(\014\"5\n\rEvictionP" + "roof\022$\n\005proof\030\001 \001(\0132\025.tari.rpc.CommitPro" + "of\"\?\n\013CommitProof\022%\n\002v1\030\001 \001(\0132\027.tari.rpc" + ".CommitProofV1H\000B\t\n\007version\"|\n\rCommitPro" + "ofV1\022\017\n\007command\030\001 \001(\014\0229\n\014commit_proof\030\002 " + "\001(\0132#.tari.rpc.SidechainBlockCommitProof" + "\022\037\n\027encoded_inclusion_proof\030\003 \001(\014\"\201\001\n\031Si" + "dechainBlockCommitProof\022.\n\006header\030\001 \001(\0132" + "\036.tari.rpc.SidechainBlockHeader\0224\n\016proof" + "_elements\030\002 \003(\0132\034.tari.rpc.CommitProofEl" + "ement\"\215\001\n\022CommitProofElement\0229\n\022quorum_c" + "ertificate\030\001 \001(\0132\033.tari.rpc.QuorumCertif" + "icateH\000\022+\n\013dummy_chain\030\002 \001(\0132\024.tari.rpc." + "DummyChainH\000B\017\n\rproof_element\"6\n\nDummyCh" + "ain\022(\n\013chain_links\030\001 \003(\0132\023.tari.rpc.Chai" + "nLink\"3\n\tChainLink\022\023\n\013header_hash\030\001 \001(\014\022" + "\021\n\tparent_id\030\002 \001(\014\"\244\002\n\024SidechainBlockHea" + "der\022\017\n\007network\030\001 \001(\r\022\021\n\tparent_id\030\002 \001(\014\022" + "\022\n\njustify_id\030\003 \001(\014\022\016\n\006height\030\004 \001(\004\022\r\n\005e" + "poch\030\005 \001(\004\022)\n\013shard_group\030\006 \001(\0132\024.tari.r" + "pc.ShardGroup\022\023\n\013proposed_by\030\007 \001(\014\022\031\n\021st" + "ate_merkle_root\030\010 \001(\014\022\033\n\023command_merkle_" + "root\030\t \001(\014\022&\n\tsignature\030\013 \001(\0132\023.tari.rpc" + ".Signature\022\025\n\rmetadata_hash\030\n \001(\014\"2\n\nSha" + "rdGroup\022\r\n\005start\030\001 \001(\r\022\025\n\rend_inclusive\030" + "\002 \001(\r\"\037\n\tEvictAtom\022\022\n\npublic_key\030\001 \001(\014\"\231" + "\001\n\021QuorumCertificate\022\023\n\013header_hash\030\001 \001(" + "\014\022\021\n\tparent_id\030\002 \001(\014\0220\n\nsignatures\030\003 \003(\013" + "2\034.tari.rpc.ValidatorSignature\022*\n\010decisi" + "on\030\004 \001(\0162\030.tari.rpc.QuorumDecision\"P\n\022Va" + "lidatorSignature\022\022\n\npublic_key\030\001 \001(\014\022&\n\t" + "signature\030\002 \001(\0132\023.tari.rpc.Signature*(\n\016" + "QuorumDecision\022\n\n\006Accept\020\000\022\n\n\006Reject\020\001b\006" + "proto3" }; -static const ::_pbi::DescriptorTable* const descriptor_table_sidechain_5ftypes_2eproto_deps[1] = - { +static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const + descriptor_table_sidechain_5ftypes_2eproto_deps[1] = { &::descriptor_table_types_2eproto, }; static ::absl::once_flag descriptor_table_sidechain_5ftypes_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_sidechain_5ftypes_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_sidechain_5ftypes_2eproto = { false, false, - 983, + 2646, descriptor_table_protodef_sidechain_5ftypes_2eproto, "sidechain_types.proto", &descriptor_table_sidechain_5ftypes_2eproto_once, descriptor_table_sidechain_5ftypes_2eproto_deps, 1, - 9, + 23, schemas, file_default_instances, TableStruct_sidechain_5ftypes_2eproto::offsets, - file_level_metadata_sidechain_5ftypes_2eproto, file_level_enum_descriptors_sidechain_5ftypes_2eproto, file_level_service_descriptors_sidechain_5ftypes_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_sidechain_5ftypes_2eproto_getter() { - return &descriptor_table_sidechain_5ftypes_2eproto; -} namespace tari { namespace rpc { +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL QuorumDecision_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto); + return file_level_enum_descriptors_sidechain_5ftypes_2eproto[0]; +} +PROTOBUF_CONSTINIT const uint32_t QuorumDecision_internal_data_[] = { + 131072u, 0u, }; // =================================================================== class SideChainFeature::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_._has_bits_); static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _impl_._oneof_case_); + PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _impl_._oneof_case_); }; -void SideChainFeature::set_allocated_validator_node_registration(::tari::rpc::ValidatorNodeRegistration* validator_node_registration) { +void SideChainFeature::set_allocated_validator_node_registration(::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE validator_node_registration) { ::google::protobuf::Arena* message_arena = GetArena(); - clear_side_chain_feature(); + clear_feature(); if (validator_node_registration) { ::google::protobuf::Arena* submessage_arena = validator_node_registration->GetArena(); if (message_arena != submessage_arena) { validator_node_registration = ::google::protobuf::internal::GetOwnedMessage(message_arena, validator_node_registration, submessage_arena); } set_has_validator_node_registration(); - _impl_.side_chain_feature_.validator_node_registration_ = validator_node_registration; + _impl_.feature_.validator_node_registration_ = validator_node_registration; } // @@protoc_insertion_point(field_set_allocated:tari.rpc.SideChainFeature.validator_node_registration) } -void SideChainFeature::set_allocated_template_registration(::tari::rpc::TemplateRegistration* template_registration) { +void SideChainFeature::set_allocated_template_registration(::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE template_registration) { ::google::protobuf::Arena* message_arena = GetArena(); - clear_side_chain_feature(); + clear_feature(); if (template_registration) { ::google::protobuf::Arena* submessage_arena = template_registration->GetArena(); if (message_arena != submessage_arena) { template_registration = ::google::protobuf::internal::GetOwnedMessage(message_arena, template_registration, submessage_arena); } set_has_template_registration(); - _impl_.side_chain_feature_.template_registration_ = template_registration; + _impl_.feature_.template_registration_ = template_registration; } // @@protoc_insertion_point(field_set_allocated:tari.rpc.SideChainFeature.template_registration) } -void SideChainFeature::set_allocated_confidential_output(::tari::rpc::ConfidentialOutputData* confidential_output) { +void SideChainFeature::set_allocated_confidential_output(::tari::rpc::ConfidentialOutputData* PROTOBUF_NULLABLE confidential_output) { ::google::protobuf::Arena* message_arena = GetArena(); - clear_side_chain_feature(); + clear_feature(); if (confidential_output) { ::google::protobuf::Arena* submessage_arena = confidential_output->GetArena(); if (message_arena != submessage_arena) { confidential_output = ::google::protobuf::internal::GetOwnedMessage(message_arena, confidential_output, submessage_arena); } set_has_confidential_output(); - _impl_.side_chain_feature_.confidential_output_ = confidential_output; + _impl_.feature_.confidential_output_ = confidential_output; } // @@protoc_insertion_point(field_set_allocated:tari.rpc.SideChainFeature.confidential_output) } -SideChainFeature::SideChainFeature(::google::protobuf::Arena* arena) +void SideChainFeature::set_allocated_eviction_proof(::tari::rpc::EvictionProof* PROTOBUF_NULLABLE eviction_proof) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_feature(); + if (eviction_proof) { + ::google::protobuf::Arena* submessage_arena = eviction_proof->GetArena(); + if (message_arena != submessage_arena) { + eviction_proof = ::google::protobuf::internal::GetOwnedMessage(message_arena, eviction_proof, submessage_arena); + } + set_has_eviction_proof(); + _impl_.feature_.eviction_proof_ = eviction_proof; + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SideChainFeature.eviction_proof) +} +void SideChainFeature::set_allocated_validator_node_exit(::tari::rpc::ValidatorNodeExit* PROTOBUF_NULLABLE validator_node_exit) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_feature(); + if (validator_node_exit) { + ::google::protobuf::Arena* submessage_arena = validator_node_exit->GetArena(); + if (message_arena != submessage_arena) { + validator_node_exit = ::google::protobuf::internal::GetOwnedMessage(message_arena, validator_node_exit, submessage_arena); + } + set_has_validator_node_exit(); + _impl_.feature_.validator_node_exit_ = validator_node_exit; + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SideChainFeature.validator_node_exit) +} +SideChainFeature::SideChainFeature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SideChainFeature_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.SideChainFeature) } -inline PROTOBUF_NDEBUG_INLINE SideChainFeature::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : side_chain_feature_{}, +PROTOBUF_NDEBUG_INLINE SideChainFeature::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::SideChainFeature& from_msg) + : _has_bits_{from._has_bits_}, _cached_size_{0}, + feature_{}, _oneof_case_{from._oneof_case_[0]} {} SideChainFeature::SideChainFeature( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SideChainFeature& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SideChainFeature_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SideChainFeature* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (side_chain_feature_case()) { - case SIDE_CHAIN_FEATURE_NOT_SET: + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.sidechain_id_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.sidechain_id_) + : nullptr; + switch (feature_case()) { + case FEATURE_NOT_SET: break; case kValidatorNodeRegistration: - _impl_.side_chain_feature_.validator_node_registration_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::ValidatorNodeRegistration>(arena, *from._impl_.side_chain_feature_.validator_node_registration_); + _impl_.feature_.validator_node_registration_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_.validator_node_registration_); break; case kTemplateRegistration: - _impl_.side_chain_feature_.template_registration_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateRegistration>(arena, *from._impl_.side_chain_feature_.template_registration_); + _impl_.feature_.template_registration_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_.template_registration_); break; case kConfidentialOutput: - _impl_.side_chain_feature_.confidential_output_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::ConfidentialOutputData>(arena, *from._impl_.side_chain_feature_.confidential_output_); + _impl_.feature_.confidential_output_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_.confidential_output_); + break; + case kEvictionProof: + _impl_.feature_.eviction_proof_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_.eviction_proof_); + break; + case kValidatorNodeExit: + _impl_.feature_.validator_node_exit_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_.validator_node_exit_); break; } // @@protoc_insertion_point(copy_constructor:tari.rpc.SideChainFeature) } -inline PROTOBUF_NDEBUG_INLINE SideChainFeature::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE SideChainFeature::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : side_chain_feature_{}, - _cached_size_{0}, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + feature_{}, _oneof_case_{} {} -inline void SideChainFeature::SharedCtor(::_pb::Arena* arena) { +inline void SideChainFeature::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.sidechain_id_ = {}; } SideChainFeature::~SideChainFeature() { // @@protoc_insertion_point(destructor:tari.rpc.SideChainFeature) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void SideChainFeature::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_side_chain_feature()) { - clear_side_chain_feature(); +inline void SideChainFeature::SharedDtor(MessageLite& self) { + SideChainFeature& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.sidechain_id_; + if (this_.has_feature()) { + this_.clear_feature(); } - _impl_.~Impl_(); + this_._impl_.~Impl_(); } -void SideChainFeature::clear_side_chain_feature() { +void SideChainFeature::clear_feature() { // @@protoc_insertion_point(one_of_clear_start:tari.rpc.SideChainFeature) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (side_chain_feature_case()) { + ::google::protobuf::internal::TSanWrite(&_impl_); + switch (feature_case()) { case kValidatorNodeRegistration: { if (GetArena() == nullptr) { - delete _impl_.side_chain_feature_.validator_node_registration_; + delete _impl_.feature_.validator_node_registration_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.feature_.validator_node_registration_); } break; } case kTemplateRegistration: { if (GetArena() == nullptr) { - delete _impl_.side_chain_feature_.template_registration_; + delete _impl_.feature_.template_registration_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.feature_.template_registration_); } break; } case kConfidentialOutput: { if (GetArena() == nullptr) { - delete _impl_.side_chain_feature_.confidential_output_; + delete _impl_.feature_.confidential_output_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.feature_.confidential_output_); } break; } - case SIDE_CHAIN_FEATURE_NOT_SET: { + case kEvictionProof: { + if (GetArena() == nullptr) { + delete _impl_.feature_.eviction_proof_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.feature_.eviction_proof_); + } + break; + } + case kValidatorNodeExit: { + if (GetArena() == nullptr) { + delete _impl_.feature_.validator_node_exit_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.feature_.validator_node_exit_); + } + break; + } + case FEATURE_NOT_SET: { break; } } - _impl_._oneof_case_[0] = SIDE_CHAIN_FEATURE_NOT_SET; + _impl_._oneof_case_[0] = FEATURE_NOT_SET; } -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, - }, +inline void* PROTOBUF_NONNULL SideChainFeature::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SideChainFeature(arena); +} +constexpr auto SideChainFeature::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SideChainFeature), + alignof(SideChainFeature)); +} +constexpr auto SideChainFeature::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SideChainFeature_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_side_chain_feature(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SideChainFeature::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SideChainFeature::ByteSizeLong, + &SideChainFeature::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_._cached_size_), + false, + }, + &SideChainFeature::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; } -const char* SideChainFeature::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SideChainFeature_class_data_ = + SideChainFeature::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SideChainFeature::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SideChainFeature_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SideChainFeature_class_data_.tc_table); + return SideChainFeature_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 3, 0, 2> SideChainFeature::_table_ = { +const ::_pbi::TcParseTable<0, 6, 6, 0, 2> +SideChainFeature::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_._has_bits_), 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask + 6, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap + 4294967232, // skipmap offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries + 6, // num_field_entries + 6, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SideChainFeature_default_instance_._instance, + SideChainFeature_class_data_.base(), + nullptr, // post_loop_handler ::_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, {}}, + // .tari.rpc.SideChainId sidechain_id = 6; + {::_pbi::TcParser::FastMtS1, + {50, 0, 5, PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.sidechain_id_)}}, }}, {{ 65535, 65535 }}, {{ // .tari.rpc.ValidatorNodeRegistration validator_node_registration = 1; - {PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.side_chain_feature_.validator_node_registration_), _Internal::kOneofCaseOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.feature_.validator_node_registration_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .tari.rpc.TemplateRegistration template_registration = 2; - {PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.side_chain_feature_.template_registration_), _Internal::kOneofCaseOffset + 0, 1, + {PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.feature_.template_registration_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .tari.rpc.ConfidentialOutputData confidential_output = 3; - {PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.side_chain_feature_.confidential_output_), _Internal::kOneofCaseOffset + 0, 2, + {PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.feature_.confidential_output_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeRegistration>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::TemplateRegistration>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::ConfidentialOutputData>()}, - }}, {{ + // .tari.rpc.EvictionProof eviction_proof = 4; + {PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.feature_.eviction_proof_), _Internal::kOneofCaseOffset + 0, 3, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .tari.rpc.ValidatorNodeExit validator_node_exit = 5; + {PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.feature_.validator_node_exit_), _Internal::kOneofCaseOffset + 0, 4, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .tari.rpc.SideChainId sidechain_id = 6; + {PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.sidechain_id_), _Internal::kHasBitsOffset + 0, 5, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeRegistration>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::TemplateRegistration>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::ConfidentialOutputData>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::EvictionProof>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeExit>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::SideChainId>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void SideChainFeature::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SideChainFeature) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* SideChainFeature::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.sidechain_id_ != nullptr); + _impl_.sidechain_id_->Clear(); + } + clear_feature(); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SideChainFeature::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SideChainFeature& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SideChainFeature::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SideChainFeature& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SideChainFeature) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - switch (side_chain_feature_case()) { + switch (this_.feature_case()) { case kValidatorNodeRegistration: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.side_chain_feature_.validator_node_registration_, _impl_.side_chain_feature_.validator_node_registration_->GetCachedSize(), target, stream); + 1, *this_._impl_.feature_.validator_node_registration_, this_._impl_.feature_.validator_node_registration_->GetCachedSize(), target, + stream); break; } case kTemplateRegistration: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.side_chain_feature_.template_registration_, _impl_.side_chain_feature_.template_registration_->GetCachedSize(), target, stream); + 2, *this_._impl_.feature_.template_registration_, this_._impl_.feature_.template_registration_->GetCachedSize(), target, + stream); break; } case kConfidentialOutput: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.side_chain_feature_.confidential_output_, _impl_.side_chain_feature_.confidential_output_->GetCachedSize(), target, stream); + 3, *this_._impl_.feature_.confidential_output_, this_._impl_.feature_.confidential_output_->GetCachedSize(), target, + stream); + break; + } + case kEvictionProof: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.feature_.eviction_proof_, this_._impl_.feature_.eviction_proof_->GetCachedSize(), target, + stream); + break; + } + case kValidatorNodeExit: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.feature_.validator_node_exit_, this_._impl_.feature_.validator_node_exit_->GetCachedSize(), target, + stream); break; } default: break; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.SideChainId sidechain_id = 6; + if ((cached_has_bits & 0x00000001u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.sidechain_id_, this_._impl_.sidechain_id_->GetCachedSize(), target, + stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SideChainFeature) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SideChainFeature::ByteSizeLong(const MessageLite& base) { + const SideChainFeature& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t SideChainFeature::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SideChainFeature) + const SideChainFeature& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SideChainFeature) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - switch (side_chain_feature_case()) { + { + // .tari.rpc.SideChainId sidechain_id = 6; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.sidechain_id_); + } + } + switch (this_.feature_case()) { // .tari.rpc.ValidatorNodeRegistration validator_node_registration = 1; case kValidatorNodeRegistration: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.side_chain_feature_.validator_node_registration_); + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.feature_.validator_node_registration_); break; } // .tari.rpc.TemplateRegistration template_registration = 2; case kTemplateRegistration: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.side_chain_feature_.template_registration_); + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.feature_.template_registration_); break; } // .tari.rpc.ConfidentialOutputData confidential_output = 3; case kConfidentialOutput: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.side_chain_feature_.confidential_output_); + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.feature_.confidential_output_); break; } - case SIDE_CHAIN_FEATURE_NOT_SET: { + // .tari.rpc.EvictionProof eviction_proof = 4; + case kEvictionProof: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.feature_.eviction_proof_); + break; + } + // .tari.rpc.ValidatorNodeExit validator_node_exit = 5; + case kValidatorNodeExit: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.feature_.validator_node_exit_); + break; + } + case FEATURE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -700,12 +1481,22 @@ void SideChainFeature::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(from._impl_.sidechain_id_ != nullptr); + if (_this->_impl_.sidechain_id_ == nullptr) { + _this->_impl_.sidechain_id_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.sidechain_id_); + } else { + _this->_impl_.sidechain_id_->MergeFrom(*from._impl_.sidechain_id_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; 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->clear_feature(); } _this->_impl_._oneof_case_[0] = oneof_from_case; } @@ -713,32 +1504,45 @@ void SideChainFeature::MergeImpl(::google::protobuf::MessageLite& to_msg, const 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_); + _this->_impl_.feature_.validator_node_registration_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_.validator_node_registration_); } else { - _this->_impl_.side_chain_feature_.validator_node_registration_->MergeFrom(from._internal_validator_node_registration()); + _this->_impl_.feature_.validator_node_registration_->MergeFrom(*from._impl_.feature_.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_); + _this->_impl_.feature_.template_registration_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_.template_registration_); } else { - _this->_impl_.side_chain_feature_.template_registration_->MergeFrom(from._internal_template_registration()); + _this->_impl_.feature_.template_registration_->MergeFrom(*from._impl_.feature_.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_); + _this->_impl_.feature_.confidential_output_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_.confidential_output_); } else { - _this->_impl_.side_chain_feature_.confidential_output_->MergeFrom(from._internal_confidential_output()); + _this->_impl_.feature_.confidential_output_->MergeFrom(*from._impl_.feature_.confidential_output_); } break; } - case SIDE_CHAIN_FEATURE_NOT_SET: + case kEvictionProof: { + if (oneof_needs_init) { + _this->_impl_.feature_.eviction_proof_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_.eviction_proof_); + } else { + _this->_impl_.feature_.eviction_proof_->MergeFrom(*from._impl_.feature_.eviction_proof_); + } + break; + } + case kValidatorNodeExit: { + if (oneof_needs_init) { + _this->_impl_.feature_.validator_node_exit_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.feature_.validator_node_exit_); + } else { + _this->_impl_.feature_.validator_node_exit_->MergeFrom(*from._impl_.feature_.validator_node_exit_); + } + break; + } + case FEATURE_NOT_SET: break; } } @@ -752,128 +1556,141 @@ void SideChainFeature::CopyFrom(const SideChainFeature& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SideChainFeature::IsInitialized() const { - return true; -} -void SideChainFeature::InternalSwap(SideChainFeature* PROTOBUF_RESTRICT other) { - using std::swap; +void SideChainFeature::InternalSwap(SideChainFeature* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.side_chain_feature_, other->_impl_.side_chain_feature_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.sidechain_id_, other->_impl_.sidechain_id_); + swap(_impl_.feature_, other->_impl_.feature_); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== -class ValidatorNodeRegistration::_Internal { +class SideChainId::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(SideChainId, _impl_._has_bits_); }; -void ValidatorNodeRegistration::clear_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.signature_ != nullptr) _impl_.signature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; +void SideChainId::clear_knowledge_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.knowledge_proof_ != nullptr) _impl_.knowledge_proof_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; } -ValidatorNodeRegistration::ValidatorNodeRegistration(::google::protobuf::Arena* arena) +SideChainId::SideChainId(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SideChainId_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.ValidatorNodeRegistration) + // @@protoc_insertion_point(arena_constructor:tari.rpc.SideChainId) } -inline PROTOBUF_NDEBUG_INLINE ValidatorNodeRegistration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE SideChainId::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::SideChainId& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, public_key_(arena, from.public_key_) {} -ValidatorNodeRegistration::ValidatorNodeRegistration( - ::google::protobuf::Arena* arena, - const ValidatorNodeRegistration& from) +SideChainId::SideChainId( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SideChainId& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SideChainId_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { - ValidatorNodeRegistration* const _this = this; +#endif // PROTOBUF_CUSTOM_VTABLE + SideChainId* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.signature_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>( - arena, *from._impl_.signature_) - : nullptr; + _impl_.knowledge_proof_ = ((cached_has_bits & 0x00000002u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.knowledge_proof_) + : nullptr; - // @@protoc_insertion_point(copy_constructor:tari.rpc.ValidatorNodeRegistration) + // @@protoc_insertion_point(copy_constructor:tari.rpc.SideChainId) } -inline PROTOBUF_NDEBUG_INLINE ValidatorNodeRegistration::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE SideChainId::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, public_key_(arena) {} -inline void ValidatorNodeRegistration::SharedCtor(::_pb::Arena* arena) { +inline void SideChainId::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.signature_ = {}; + _impl_.knowledge_proof_ = {}; } -ValidatorNodeRegistration::~ValidatorNodeRegistration() { - // @@protoc_insertion_point(destructor:tari.rpc.ValidatorNodeRegistration) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); +SideChainId::~SideChainId() { + // @@protoc_insertion_point(destructor:tari.rpc.SideChainId) + SharedDtor(*this); } -inline void ValidatorNodeRegistration::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_key_.Destroy(); - delete _impl_.signature_; - _impl_.~Impl_(); +inline void SideChainId::SharedDtor(MessageLite& self) { + SideChainId& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_key_.Destroy(); + delete this_._impl_.knowledge_proof_; + this_._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_; +inline void* PROTOBUF_NONNULL SideChainId::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SideChainId(arena); } -PROTOBUF_NOINLINE void ValidatorNodeRegistration::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.ValidatorNodeRegistration) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_key_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.signature_ != nullptr); - _impl_.signature_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +constexpr auto SideChainId::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SideChainId), + alignof(SideChainId)); +} +constexpr auto SideChainId::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SideChainId_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SideChainId::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SideChainId::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SideChainId::ByteSizeLong, + &SideChainId::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SideChainId, _impl_._cached_size_), + false, + }, + &SideChainId::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; } -const char* ValidatorNodeRegistration::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SideChainId_class_data_ = + SideChainId::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SideChainId::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SideChainId_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SideChainId_class_data_.tc_table); + return SideChainId_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ValidatorNodeRegistration::_table_ = { +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +SideChainId::_table_ = { { - PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(SideChainId, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -882,87 +1699,494 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ValidatorNodeRegistration::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ValidatorNodeRegistration_default_instance_._instance, + SideChainId_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SideChainId>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .tari.rpc.Signature knowledge_proof = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(SideChainId, _impl_.knowledge_proof_)}}, + // bytes public_key = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SideChainId, _impl_.public_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes public_key = 1; + {PROTOBUF_FIELD_OFFSET(SideChainId, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // .tari.rpc.Signature knowledge_proof = 2; + {PROTOBUF_FIELD_OFFSET(SideChainId, _impl_.knowledge_proof_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SideChainId::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SideChainId) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(_impl_.knowledge_proof_ != nullptr); + _impl_.knowledge_proof_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SideChainId::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SideChainId& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SideChainId::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SideChainId& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SideChainId) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bytes public_key = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + } + + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.Signature knowledge_proof = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.knowledge_proof_, this_._impl_.knowledge_proof_->GetCachedSize(), target, + stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SideChainId) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SideChainId::ByteSizeLong(const MessageLite& base) { + const SideChainId& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SideChainId::ByteSizeLong() const { + const SideChainId& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SideChainId) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes public_key = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + } + // .tari.rpc.Signature knowledge_proof = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.knowledge_proof_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void SideChainId::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.SideChainId) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_public_key().empty()) { + _this->_internal_set_public_key(from._internal_public_key()); + } else { + if (_this->_impl_.public_key_.IsDefault()) { + _this->_internal_set_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(from._impl_.knowledge_proof_ != nullptr); + if (_this->_impl_.knowledge_proof_ == nullptr) { + _this->_impl_.knowledge_proof_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.knowledge_proof_); + } else { + _this->_impl_.knowledge_proof_->MergeFrom(*from._impl_.knowledge_proof_); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void SideChainId::CopyFrom(const SideChainId& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SideChainId) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void SideChainId::InternalSwap(SideChainId* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); + swap(_impl_.knowledge_proof_, other->_impl_.knowledge_proof_); +} + +::google::protobuf::Metadata SideChainId::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class ValidatorNodeRegistration::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_._has_bits_); +}; + +void ValidatorNodeRegistration::clear_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.signature_ != nullptr) _impl_.signature_->Clear(); + _impl_._has_bits_[0] &= ~0x00000004u; +} +ValidatorNodeRegistration::ValidatorNodeRegistration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValidatorNodeRegistration_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.ValidatorNodeRegistration) +} +PROTOBUF_NDEBUG_INLINE ValidatorNodeRegistration::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ValidatorNodeRegistration& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + public_key_(arena, from.public_key_), + claim_public_key_(arena, from.claim_public_key_) {} + +ValidatorNodeRegistration::ValidatorNodeRegistration( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ValidatorNodeRegistration& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValidatorNodeRegistration_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ValidatorNodeRegistration* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.signature_ = ((cached_has_bits & 0x00000004u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.signature_) + : nullptr; + _impl_.max_epoch_ = from._impl_.max_epoch_; + + // @@protoc_insertion_point(copy_constructor:tari.rpc.ValidatorNodeRegistration) +} +PROTOBUF_NDEBUG_INLINE ValidatorNodeRegistration::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + public_key_(arena), + claim_public_key_(arena) {} + +inline void ValidatorNodeRegistration::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, signature_), + 0, + offsetof(Impl_, max_epoch_) - + offsetof(Impl_, signature_) + + sizeof(Impl_::max_epoch_)); +} +ValidatorNodeRegistration::~ValidatorNodeRegistration() { + // @@protoc_insertion_point(destructor:tari.rpc.ValidatorNodeRegistration) + SharedDtor(*this); +} +inline void ValidatorNodeRegistration::SharedDtor(MessageLite& self) { + ValidatorNodeRegistration& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_key_.Destroy(); + this_._impl_.claim_public_key_.Destroy(); + delete this_._impl_.signature_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL ValidatorNodeRegistration::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ValidatorNodeRegistration(arena); +} +constexpr auto ValidatorNodeRegistration::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ValidatorNodeRegistration), + alignof(ValidatorNodeRegistration)); +} +constexpr auto ValidatorNodeRegistration::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ValidatorNodeRegistration_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ValidatorNodeRegistration::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ValidatorNodeRegistration::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ValidatorNodeRegistration::ByteSizeLong, + &ValidatorNodeRegistration::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_._cached_size_), + false, + }, + &ValidatorNodeRegistration::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ValidatorNodeRegistration_class_data_ = + ValidatorNodeRegistration::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ValidatorNodeRegistration::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ValidatorNodeRegistration_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ValidatorNodeRegistration_class_data_.tc_table); + return ValidatorNodeRegistration_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +ValidatorNodeRegistration::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + ValidatorNodeRegistration_class_data_.base(), + nullptr, // post_loop_handler ::_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, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.signature_)}}, + // uint64 max_epoch = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValidatorNodeRegistration, _impl_.max_epoch_), 3>(), + {32, 3, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.max_epoch_)}}, // bytes public_key = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.public_key_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.public_key_)}}, + // .tari.rpc.Signature signature = 2; + {::_pbi::TcParser::FastMtS1, + {18, 2, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.signature_)}}, + // bytes claim_public_key = 3; + {::_pbi::TcParser::FastBS1, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.claim_public_key_)}}, }}, {{ 65535, 65535 }}, {{ // bytes public_key = 1; - {PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.Signature signature = 2; - {PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.signature_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.signature_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, - }}, {{ + // bytes claim_public_key = 3; + {PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.claim_public_key_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // uint64 max_epoch = 4; + {PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.max_epoch_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void ValidatorNodeRegistration::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ValidatorNodeRegistration) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* ValidatorNodeRegistration::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.claim_public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + ABSL_DCHECK(_impl_.signature_ != nullptr); + _impl_.signature_->Clear(); + } + } + _impl_.max_epoch_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ValidatorNodeRegistration::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ValidatorNodeRegistration& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ValidatorNodeRegistration::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ValidatorNodeRegistration& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ValidatorNodeRegistration) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - const std::string& _s = this->_internal_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.Signature signature = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.signature_, _impl_.signature_->GetCachedSize(), target, stream); + 2, *this_._impl_.signature_, this_._impl_.signature_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + // bytes claim_public_key = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_claim_public_key().empty()) { + const ::std::string& _s = this_._internal_claim_public_key(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + } + + // uint64 max_epoch = 4; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_max_epoch() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_max_epoch(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ValidatorNodeRegistration) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ValidatorNodeRegistration::ByteSizeLong(const MessageLite& base) { + const ValidatorNodeRegistration& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t ValidatorNodeRegistration::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ValidatorNodeRegistration) + const ValidatorNodeRegistration& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ValidatorNodeRegistration) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + // bytes public_key = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + } + // bytes claim_public_key = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_claim_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_claim_public_key()); + } + } + // .tari.rpc.Signature signature = 2; + if ((cached_has_bits & 0x00000004u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.signature_); + } + // uint64 max_epoch = 4; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_max_epoch() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_max_epoch()); + } + } } - - // .tari.rpc.Signature signature = 2; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.signature_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -972,17 +2196,38 @@ void ValidatorNodeRegistration::MergeImpl(::google::protobuf::MessageLite& to_ms ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_public_key().empty()) { - _this->_internal_set_public_key(from._internal_public_key()); - } 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_); + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_public_key().empty()) { + _this->_internal_set_public_key(from._internal_public_key()); + } else { + if (_this->_impl_.public_key_.IsDefault()) { + _this->_internal_set_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_claim_public_key().empty()) { + _this->_internal_set_claim_public_key(from._internal_claim_public_key()); + } else { + if (_this->_impl_.claim_public_key_.IsDefault()) { + _this->_internal_set_claim_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + ABSL_DCHECK(from._impl_.signature_ != nullptr); + if (_this->_impl_.signature_ == nullptr) { + _this->_impl_.signature_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.signature_); + } else { + _this->_impl_.signature_->MergeFrom(*from._impl_.signature_); + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_max_epoch() != 0) { + _this->_impl_.max_epoch_ = from._impl_.max_epoch_; + } } } _this->_impl_._has_bits_[0] |= cached_has_bits; @@ -996,47 +2241,402 @@ void ValidatorNodeRegistration::CopyFrom(const ValidatorNodeRegistration& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool ValidatorNodeRegistration::IsInitialized() const { - return true; -} -void ValidatorNodeRegistration::InternalSwap(ValidatorNodeRegistration* PROTOBUF_RESTRICT other) { - using std::swap; +void ValidatorNodeRegistration::InternalSwap(ValidatorNodeRegistration* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); - swap(_impl_.signature_, other->_impl_.signature_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.claim_public_key_, &other->_impl_.claim_public_key_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.max_epoch_) + + sizeof(ValidatorNodeRegistration::_impl_.max_epoch_) + - PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.signature_)>( + reinterpret_cast(&_impl_.signature_), + reinterpret_cast(&other->_impl_.signature_)); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class ValidatorNodeExit::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ValidatorNodeExit, _impl_._has_bits_); +}; + +void ValidatorNodeExit::clear_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.signature_ != nullptr) _impl_.signature_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +ValidatorNodeExit::ValidatorNodeExit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValidatorNodeExit_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.ValidatorNodeExit) +} +PROTOBUF_NDEBUG_INLINE ValidatorNodeExit::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ValidatorNodeExit& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + public_key_(arena, from.public_key_) {} + +ValidatorNodeExit::ValidatorNodeExit( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ValidatorNodeExit& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValidatorNodeExit_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ValidatorNodeExit* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.signature_ = ((cached_has_bits & 0x00000002u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.signature_) + : nullptr; + _impl_.max_epoch_ = from._impl_.max_epoch_; + + // @@protoc_insertion_point(copy_constructor:tari.rpc.ValidatorNodeExit) +} +PROTOBUF_NDEBUG_INLINE ValidatorNodeExit::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + public_key_(arena) {} + +inline void ValidatorNodeExit::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, signature_), + 0, + offsetof(Impl_, max_epoch_) - + offsetof(Impl_, signature_) + + sizeof(Impl_::max_epoch_)); +} +ValidatorNodeExit::~ValidatorNodeExit() { + // @@protoc_insertion_point(destructor:tari.rpc.ValidatorNodeExit) + SharedDtor(*this); +} +inline void ValidatorNodeExit::SharedDtor(MessageLite& self) { + ValidatorNodeExit& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_key_.Destroy(); + delete this_._impl_.signature_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL ValidatorNodeExit::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ValidatorNodeExit(arena); +} +constexpr auto ValidatorNodeExit::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ValidatorNodeExit), + alignof(ValidatorNodeExit)); +} +constexpr auto ValidatorNodeExit::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ValidatorNodeExit_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ValidatorNodeExit::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ValidatorNodeExit::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ValidatorNodeExit::ByteSizeLong, + &ValidatorNodeExit::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ValidatorNodeExit, _impl_._cached_size_), + false, + }, + &ValidatorNodeExit::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ValidatorNodeExit_class_data_ = + ValidatorNodeExit::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ValidatorNodeExit::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ValidatorNodeExit_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ValidatorNodeExit_class_data_.tc_table); + return ValidatorNodeExit_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +ValidatorNodeExit::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ValidatorNodeExit, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + ValidatorNodeExit_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeExit>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // bytes public_key = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeExit, _impl_.public_key_)}}, + // .tari.rpc.Signature signature = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeExit, _impl_.signature_)}}, + // uint64 max_epoch = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValidatorNodeExit, _impl_.max_epoch_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeExit, _impl_.max_epoch_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes public_key = 1; + {PROTOBUF_FIELD_OFFSET(ValidatorNodeExit, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // .tari.rpc.Signature signature = 2; + {PROTOBUF_FIELD_OFFSET(ValidatorNodeExit, _impl_.signature_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // uint64 max_epoch = 3; + {PROTOBUF_FIELD_OFFSET(ValidatorNodeExit, _impl_.max_epoch_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void ValidatorNodeExit::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ValidatorNodeExit) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(_impl_.signature_ != nullptr); + _impl_.signature_->Clear(); + } + } + _impl_.max_epoch_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ValidatorNodeExit::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ValidatorNodeExit& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ValidatorNodeExit::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ValidatorNodeExit& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ValidatorNodeExit) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bytes public_key = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + } + + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.Signature signature = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.signature_, this_._impl_.signature_->GetCachedSize(), target, + stream); + } + + // uint64 max_epoch = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_max_epoch() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_max_epoch(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ValidatorNodeExit) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ValidatorNodeExit::ByteSizeLong(const MessageLite& base) { + const ValidatorNodeExit& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ValidatorNodeExit::ByteSizeLong() const { + const ValidatorNodeExit& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ValidatorNodeExit) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // bytes public_key = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + } + // .tari.rpc.Signature signature = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.signature_); + } + // uint64 max_epoch = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_max_epoch() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_max_epoch()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ValidatorNodeExit::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.ValidatorNodeExit) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_public_key().empty()) { + _this->_internal_set_public_key(from._internal_public_key()); + } else { + if (_this->_impl_.public_key_.IsDefault()) { + _this->_internal_set_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(from._impl_.signature_ != nullptr); + if (_this->_impl_.signature_ == nullptr) { + _this->_impl_.signature_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.signature_); + } else { + _this->_impl_.signature_->MergeFrom(*from._impl_.signature_); + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_max_epoch() != 0) { + _this->_impl_.max_epoch_ = from._impl_.max_epoch_; + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ValidatorNodeExit::CopyFrom(const ValidatorNodeExit& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ValidatorNodeExit) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void ValidatorNodeExit::InternalSwap(ValidatorNodeExit* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ValidatorNodeExit, _impl_.max_epoch_) + + sizeof(ValidatorNodeExit::_impl_.max_epoch_) + - PROTOBUF_FIELD_OFFSET(ValidatorNodeExit, _impl_.signature_)>( + reinterpret_cast(&_impl_.signature_), + reinterpret_cast(&other->_impl_.signature_)); +} + +::google::protobuf::Metadata ValidatorNodeExit::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TemplateRegistration::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_._has_bits_); }; void TemplateRegistration::clear_author_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.author_signature_ != nullptr) _impl_.author_signature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000010u; } -TemplateRegistration::TemplateRegistration(::google::protobuf::Arena* arena) +TemplateRegistration::TemplateRegistration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TemplateRegistration_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.TemplateRegistration) } -inline PROTOBUF_NDEBUG_INLINE TemplateRegistration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE TemplateRegistration::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::TemplateRegistration& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, author_public_key_(arena, from.author_public_key_), @@ -1045,38 +2645,42 @@ inline PROTOBUF_NDEBUG_INLINE TemplateRegistration::Impl_::Impl_( binary_url_(arena, from.binary_url_) {} TemplateRegistration::TemplateRegistration( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TemplateRegistration& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TemplateRegistration_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TemplateRegistration* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _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_.author_signature_ = ((cached_has_bits & 0x00000010u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.author_signature_) + : nullptr; + _impl_.template_type_ = ((cached_has_bits & 0x00000020u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.template_type_) + : nullptr; + _impl_.build_info_ = ((cached_has_bits & 0x00000040u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.build_info_) + : nullptr; _impl_.template_version_ = from._impl_.template_version_; // @@protoc_insertion_point(copy_constructor:tari.rpc.TemplateRegistration) } -inline PROTOBUF_NDEBUG_INLINE TemplateRegistration::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE TemplateRegistration::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, author_public_key_(arena), template_name_(arena), binary_sha_(arena), binary_url_(arena) {} -inline void TemplateRegistration::SharedCtor(::_pb::Arena* arena) { +inline void TemplateRegistration::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, author_signature_), @@ -1087,75 +2691,67 @@ inline void TemplateRegistration::SharedCtor(::_pb::Arena* arena) { } TemplateRegistration::~TemplateRegistration() { // @@protoc_insertion_point(destructor:tari.rpc.TemplateRegistration) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void TemplateRegistration::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.author_public_key_.Destroy(); - _impl_.template_name_.Destroy(); - _impl_.binary_sha_.Destroy(); - _impl_.binary_url_.Destroy(); - delete _impl_.author_signature_; - delete _impl_.template_type_; - delete _impl_.build_info_; - _impl_.~Impl_(); +inline void TemplateRegistration::SharedDtor(MessageLite& self) { + TemplateRegistration& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.author_public_key_.Destroy(); + this_._impl_.template_name_.Destroy(); + this_._impl_.binary_sha_.Destroy(); + this_._impl_.binary_url_.Destroy(); + delete this_._impl_.author_signature_; + delete this_._impl_.template_type_; + delete this_._impl_.build_info_; + this_._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, - }, +inline void* PROTOBUF_NONNULL TemplateRegistration::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) TemplateRegistration(arena); +} +constexpr auto TemplateRegistration::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(TemplateRegistration), + alignof(TemplateRegistration)); +} +constexpr auto TemplateRegistration::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_TemplateRegistration_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.author_public_key_.ClearToEmpty(); - _impl_.template_name_.ClearToEmpty(); - _impl_.binary_sha_.ClearToEmpty(); - _impl_.binary_url_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.author_signature_ != nullptr); - _impl_.author_signature_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.template_type_ != nullptr); - _impl_.template_type_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.build_info_ != nullptr); - _impl_.build_info_->Clear(); - } - } - _impl_.template_version_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TemplateRegistration::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TemplateRegistration::ByteSizeLong, + &TemplateRegistration::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_._cached_size_), + false, + }, + &TemplateRegistration::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; } -const char* TemplateRegistration::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull TemplateRegistration_class_data_ = + TemplateRegistration::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +TemplateRegistration::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&TemplateRegistration_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(TemplateRegistration_class_data_.tc_table); + return TemplateRegistration_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 8, 3, 69, 2> TemplateRegistration::_table_ = { +const ::_pbi::TcParseTable<3, 8, 3, 69, 2> +TemplateRegistration::_table_ = { { PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_._has_bits_), 0, // no _extensions_ @@ -1166,7 +2762,8 @@ const ::_pbi::TcParseTable<3, 8, 3, 69, 2> TemplateRegistration::_table_ = { 8, // num_field_entries 3, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TemplateRegistration_default_instance_._instance, + TemplateRegistration_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::TemplateRegistration>(), // to_prefetch @@ -1174,200 +2771,270 @@ const ::_pbi::TcParseTable<3, 8, 3, 69, 2> TemplateRegistration::_table_ = { }, {{ // string binary_url = 8; {::_pbi::TcParser::FastUS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.binary_url_)}}, + {66, 3, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.binary_url_)}}, // bytes author_public_key = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_public_key_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_public_key_)}}, // .tari.rpc.Signature author_signature = 2; {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_signature_)}}, + {18, 4, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_signature_)}}, // string template_name = 3; {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_name_)}}, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_name_)}}, // uint32 template_version = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TemplateRegistration, _impl_.template_version_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_version_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TemplateRegistration, _impl_.template_version_), 7>(), + {32, 7, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_version_)}}, // .tari.rpc.TemplateType template_type = 5; {::_pbi::TcParser::FastMtS1, - {42, 1, 1, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_type_)}}, + {42, 5, 1, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_type_)}}, // .tari.rpc.BuildInfo build_info = 6; {::_pbi::TcParser::FastMtS1, - {50, 2, 2, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.build_info_)}}, + {50, 6, 2, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.build_info_)}}, // bytes binary_sha = 7; {::_pbi::TcParser::FastBS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.binary_sha_)}}, + {58, 2, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.binary_sha_)}}, }}, {{ 65535, 65535 }}, {{ // bytes author_public_key = 1; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.Signature author_signature = 2; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_signature_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_signature_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // string template_name = 3; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_name_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint32 template_version = 4; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_version_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .tari.rpc.TemplateType template_type = 5; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_type_), _Internal::kHasBitsOffset + 1, 1, + {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_type_), _Internal::kHasBitsOffset + 5, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // .tari.rpc.BuildInfo build_info = 6; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.build_info_), _Internal::kHasBitsOffset + 2, 2, + {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.build_info_), _Internal::kHasBitsOffset + 6, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes binary_sha = 7; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.binary_sha_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.binary_sha_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // string binary_url = 8; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.binary_url_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::TemplateType>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::BuildInfo>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.binary_url_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::TemplateType>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::BuildInfo>()}, + }}, + {{ "\35\0\0\15\0\0\0\0\12\0\0\0\0\0\0\0" "tari.rpc.TemplateRegistration" "template_name" "binary_url" }}, }; +PROTOBUF_NOINLINE void TemplateRegistration::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.TemplateRegistration) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* TemplateRegistration::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000007fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.author_public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.template_name_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.binary_sha_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.binary_url_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + ABSL_DCHECK(_impl_.author_signature_ != nullptr); + _impl_.author_signature_->Clear(); + } + if ((cached_has_bits & 0x00000020u) != 0) { + ABSL_DCHECK(_impl_.template_type_ != nullptr); + _impl_.template_type_->Clear(); + } + if ((cached_has_bits & 0x00000040u) != 0) { + ABSL_DCHECK(_impl_.build_info_ != nullptr); + _impl_.build_info_->Clear(); + } + } + _impl_.template_version_ = 0u; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL TemplateRegistration::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const TemplateRegistration& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL TemplateRegistration::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const TemplateRegistration& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TemplateRegistration) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes author_public_key = 1; - if (!this->_internal_author_public_key().empty()) { - const std::string& _s = this->_internal_author_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_author_public_key().empty()) { + const ::std::string& _s = this_._internal_author_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.Signature author_signature = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000010u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.author_signature_, _impl_.author_signature_->GetCachedSize(), target, stream); + 2, *this_._impl_.author_signature_, this_._impl_.author_signature_->GetCachedSize(), target, + stream); } // string template_name = 3; - if (!this->_internal_template_name().empty()) { - const std::string& _s = this->_internal_template_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.TemplateRegistration.template_name"); - target = stream->WriteStringMaybeAliased(3, _s, target); + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_template_name().empty()) { + const ::std::string& _s = this_._internal_template_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.TemplateRegistration.template_name"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } } // uint32 template_version = 4; - if (this->_internal_template_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this->_internal_template_version(), target); + if ((cached_has_bits & 0x00000080u) != 0) { + if (this_._internal_template_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 4, this_._internal_template_version(), target); + } } // .tari.rpc.TemplateType template_type = 5; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000020u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *_impl_.template_type_, _impl_.template_type_->GetCachedSize(), target, stream); + 5, *this_._impl_.template_type_, this_._impl_.template_type_->GetCachedSize(), target, + stream); } // .tari.rpc.BuildInfo build_info = 6; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000040u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.build_info_, _impl_.build_info_->GetCachedSize(), target, stream); + 6, *this_._impl_.build_info_, this_._impl_.build_info_->GetCachedSize(), target, + stream); } // bytes binary_sha = 7; - if (!this->_internal_binary_sha().empty()) { - const std::string& _s = this->_internal_binary_sha(); - target = stream->WriteBytesMaybeAliased(7, _s, target); + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_binary_sha().empty()) { + const ::std::string& _s = this_._internal_binary_sha(); + target = stream->WriteBytesMaybeAliased(7, _s, target); + } } // string binary_url = 8; - if (!this->_internal_binary_url().empty()) { - const std::string& _s = this->_internal_binary_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.TemplateRegistration.binary_url"); - target = stream->WriteStringMaybeAliased(8, _s, target); + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_binary_url().empty()) { + const ::std::string& _s = this_._internal_binary_url(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.TemplateRegistration.binary_url"); + target = stream->WriteStringMaybeAliased(8, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TemplateRegistration) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TemplateRegistration::ByteSizeLong(const MessageLite& base) { + const TemplateRegistration& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t TemplateRegistration::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TemplateRegistration) + const TemplateRegistration& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.TemplateRegistration) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes author_public_key = 1; - if (!this->_internal_author_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_author_public_key()); - } - - // string template_name = 3; - if (!this->_internal_template_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_template_name()); - } - - // bytes binary_sha = 7; - if (!this->_internal_binary_sha().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_binary_sha()); - } - - // string binary_url = 8; - if (!this->_internal_binary_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_binary_url()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + // bytes author_public_key = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_author_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_author_public_key()); + } + } + // string template_name = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_template_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_template_name()); + } + } + // bytes binary_sha = 7; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_binary_sha().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_binary_sha()); + } + } + // string binary_url = 8; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_binary_url().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_binary_url()); + } + } // .tari.rpc.Signature author_signature = 2; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.author_signature_); + if ((cached_has_bits & 0x00000010u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.author_signature_); } - // .tari.rpc.TemplateType template_type = 5; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.template_type_); + if ((cached_has_bits & 0x00000020u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.template_type_); } - // .tari.rpc.BuildInfo build_info = 6; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.build_info_); + if ((cached_has_bits & 0x00000040u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.build_info_); + } + // uint32 template_version = 4; + if ((cached_has_bits & 0x00000080u) != 0) { + if (this_._internal_template_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_template_version()); + } } - } - // uint32 template_version = 4; - if (this->_internal_template_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_template_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1377,50 +3044,73 @@ void TemplateRegistration::MergeImpl(::google::protobuf::MessageLite& to_msg, co ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_author_public_key().empty()) { - _this->_internal_set_author_public_key(from._internal_author_public_key()); - } - if (!from._internal_template_name().empty()) { - _this->_internal_set_template_name(from._internal_template_name()); - } - if (!from._internal_binary_sha().empty()) { - _this->_internal_set_binary_sha(from._internal_binary_sha()); - } - if (!from._internal_binary_url().empty()) { - _this->_internal_set_binary_url(from._internal_binary_url()); - } cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_author_public_key().empty()) { + _this->_internal_set_author_public_key(from._internal_author_public_key()); + } else { + if (_this->_impl_.author_public_key_.IsDefault()) { + _this->_internal_set_author_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_template_name().empty()) { + _this->_internal_set_template_name(from._internal_template_name()); + } else { + if (_this->_impl_.template_name_.IsDefault()) { + _this->_internal_set_template_name(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_binary_sha().empty()) { + _this->_internal_set_binary_sha(from._internal_binary_sha()); + } else { + if (_this->_impl_.binary_sha_.IsDefault()) { + _this->_internal_set_binary_sha(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_binary_url().empty()) { + _this->_internal_set_binary_url(from._internal_binary_url()); + } else { + if (_this->_impl_.binary_url_.IsDefault()) { + _this->_internal_set_binary_url(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { 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_); + _this->_impl_.author_signature_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.author_signature_); } else { _this->_impl_.author_signature_->MergeFrom(*from._impl_.author_signature_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000020u) != 0) { 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_); + _this->_impl_.template_type_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.template_type_); } else { _this->_impl_.template_type_->MergeFrom(*from._impl_.template_type_); } } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000040u) != 0) { 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_); + _this->_impl_.build_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.build_info_); } else { _this->_impl_.build_info_->MergeFrom(*from._impl_.build_info_); } } - } - if (from._internal_template_version() != 0) { - _this->_impl_.template_version_ = from._impl_.template_version_; + if ((cached_has_bits & 0x00000080u) != 0) { + if (from._internal_template_version() != 0) { + _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_); @@ -1433,12 +3123,9 @@ void TemplateRegistration::CopyFrom(const TemplateRegistration& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TemplateRegistration::IsInitialized() const { - return true; -} -void TemplateRegistration::InternalSwap(TemplateRegistration* PROTOBUF_RESTRICT other) { - using std::swap; +void TemplateRegistration::InternalSwap(TemplateRegistration* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1456,95 +3143,119 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ConfidentialOutputData::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ConfidentialOutputData, _impl_._has_bits_); }; -ConfidentialOutputData::ConfidentialOutputData(::google::protobuf::Arena* arena) +ConfidentialOutputData::ConfidentialOutputData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ConfidentialOutputData_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.ConfidentialOutputData) } -inline PROTOBUF_NDEBUG_INLINE ConfidentialOutputData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : claim_public_key_(arena, from.claim_public_key_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ConfidentialOutputData::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ConfidentialOutputData& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + claim_public_key_(arena, from.claim_public_key_) {} ConfidentialOutputData::ConfidentialOutputData( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConfidentialOutputData& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ConfidentialOutputData_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ConfidentialOutputData* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.ConfidentialOutputData) } -inline PROTOBUF_NDEBUG_INLINE ConfidentialOutputData::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE ConfidentialOutputData::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : claim_public_key_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + claim_public_key_(arena) {} -inline void ConfidentialOutputData::SharedCtor(::_pb::Arena* arena) { +inline void ConfidentialOutputData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } ConfidentialOutputData::~ConfidentialOutputData() { // @@protoc_insertion_point(destructor:tari.rpc.ConfidentialOutputData) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void ConfidentialOutputData::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.claim_public_key_.Destroy(); - _impl_.~Impl_(); +inline void ConfidentialOutputData::SharedDtor(MessageLite& self) { + ConfidentialOutputData& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.claim_public_key_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL ConfidentialOutputData::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ConfidentialOutputData(arena); +} +constexpr auto ConfidentialOutputData::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ConfidentialOutputData), + alignof(ConfidentialOutputData)); +} +constexpr auto ConfidentialOutputData::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ConfidentialOutputData_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.claim_public_key_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConfidentialOutputData::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ConfidentialOutputData::ByteSizeLong, + &ConfidentialOutputData::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ConfidentialOutputData, _impl_._cached_size_), + false, + }, + &ConfidentialOutputData::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; } -const char* ConfidentialOutputData::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ConfidentialOutputData_class_data_ = + ConfidentialOutputData::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ConfidentialOutputData::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ConfidentialOutputData_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ConfidentialOutputData_class_data_.tc_table); + return ConfidentialOutputData_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ConfidentialOutputData::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +ConfidentialOutputData::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ConfidentialOutputData, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -1553,7 +3264,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ConfidentialOutputData::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ConfidentialOutputData_default_instance_._instance, + ConfidentialOutputData_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::ConfidentialOutputData>(), // to_prefetch @@ -1561,59 +3273,93 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ConfidentialOutputData::_table_ = { }, {{ // bytes claim_public_key = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ConfidentialOutputData, _impl_.claim_public_key_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ConfidentialOutputData, _impl_.claim_public_key_)}}, }}, {{ 65535, 65535 }}, {{ // bytes claim_public_key = 1; - {PROTOBUF_FIELD_OFFSET(ConfidentialOutputData, _impl_.claim_public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ConfidentialOutputData, _impl_.claim_public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void ConfidentialOutputData::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ConfidentialOutputData) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* ConfidentialOutputData::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.claim_public_key_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ConfidentialOutputData::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ConfidentialOutputData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ConfidentialOutputData::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ConfidentialOutputData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ConfidentialOutputData) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes claim_public_key = 1; - if (!this->_internal_claim_public_key().empty()) { - const std::string& _s = this->_internal_claim_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_claim_public_key().empty()) { + const ::std::string& _s = this_._internal_claim_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ConfidentialOutputData) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConfidentialOutputData::ByteSizeLong(const MessageLite& base) { + const ConfidentialOutputData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t ConfidentialOutputData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ConfidentialOutputData) + const ConfidentialOutputData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ConfidentialOutputData) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes claim_public_key = 1; - if (!this->_internal_claim_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_claim_public_key()); + { + // bytes claim_public_key = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_claim_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_claim_public_key()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1622,9 +3368,17 @@ void ConfidentialOutputData::MergeImpl(::google::protobuf::MessageLite& to_msg, ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_claim_public_key().empty()) { - _this->_internal_set_claim_public_key(from._internal_claim_public_key()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_claim_public_key().empty()) { + _this->_internal_set_claim_public_key(from._internal_claim_public_key()); + } else { + if (_this->_impl_.claim_public_key_.IsDefault()) { + _this->_internal_set_claim_public_key(""); + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1635,32 +3389,28 @@ void ConfidentialOutputData::CopyFrom(const ConfidentialOutputData& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ConfidentialOutputData::IsInitialized() const { - return true; -} -void ConfidentialOutputData::InternalSwap(ConfidentialOutputData* PROTOBUF_RESTRICT other) { - using std::swap; +void ConfidentialOutputData::InternalSwap(ConfidentialOutputData* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.claim_public_key_, &other->_impl_.claim_public_key_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TemplateType::_Internal { public: static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _impl_._oneof_case_); + PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _impl_._oneof_case_); }; -void TemplateType::set_allocated_wasm(::tari::rpc::WasmInfo* wasm) { +void TemplateType::set_allocated_wasm(::tari::rpc::WasmInfo* PROTOBUF_NULLABLE wasm) { ::google::protobuf::Arena* message_arena = GetArena(); clear_template_type(); if (wasm) { @@ -1673,7 +3423,7 @@ void TemplateType::set_allocated_wasm(::tari::rpc::WasmInfo* wasm) { } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateType.wasm) } -void TemplateType::set_allocated_flow(::tari::rpc::FlowInfo* flow) { +void TemplateType::set_allocated_flow(::tari::rpc::FlowInfo* PROTOBUF_NULLABLE flow) { ::google::protobuf::Arena* message_arena = GetArena(); clear_template_type(); if (flow) { @@ -1686,7 +3436,7 @@ void TemplateType::set_allocated_flow(::tari::rpc::FlowInfo* flow) { } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateType.flow) } -void TemplateType::set_allocated_manifest(::tari::rpc::ManifestInfo* manifest) { +void TemplateType::set_allocated_manifest(::tari::rpc::ManifestInfo* PROTOBUF_NULLABLE manifest) { ::google::protobuf::Arena* message_arena = GetArena(); clear_template_type(); if (manifest) { @@ -1699,85 +3449,101 @@ void TemplateType::set_allocated_manifest(::tari::rpc::ManifestInfo* manifest) { } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateType.manifest) } -TemplateType::TemplateType(::google::protobuf::Arena* arena) +TemplateType::TemplateType(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TemplateType_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.TemplateType) } -inline PROTOBUF_NDEBUG_INLINE TemplateType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE TemplateType::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::TemplateType& from_msg) : template_type_{}, _cached_size_{0}, _oneof_case_{from._oneof_case_[0]} {} TemplateType::TemplateType( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TemplateType& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TemplateType_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TemplateType* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); switch (template_type_case()) { case TEMPLATE_TYPE_NOT_SET: break; case kWasm: - _impl_.template_type_.wasm_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::WasmInfo>(arena, *from._impl_.template_type_.wasm_); + _impl_.template_type_.wasm_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.template_type_.wasm_); break; case kFlow: - _impl_.template_type_.flow_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::FlowInfo>(arena, *from._impl_.template_type_.flow_); + _impl_.template_type_.flow_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.template_type_.flow_); break; case kManifest: - _impl_.template_type_.manifest_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::ManifestInfo>(arena, *from._impl_.template_type_.manifest_); + _impl_.template_type_.manifest_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.template_type_.manifest_); break; } // @@protoc_insertion_point(copy_constructor:tari.rpc.TemplateType) } -inline PROTOBUF_NDEBUG_INLINE TemplateType::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE TemplateType::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : template_type_{}, _cached_size_{0}, _oneof_case_{} {} -inline void TemplateType::SharedCtor(::_pb::Arena* arena) { +inline void TemplateType::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } TemplateType::~TemplateType() { // @@protoc_insertion_point(destructor:tari.rpc.TemplateType) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void TemplateType::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_template_type()) { - clear_template_type(); +inline void TemplateType::SharedDtor(MessageLite& self) { + TemplateType& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + if (this_.has_template_type()) { + this_.clear_template_type(); } - _impl_.~Impl_(); + this_._impl_.~Impl_(); } void TemplateType::clear_template_type() { // @@protoc_insertion_point(one_of_clear_start:tari.rpc.TemplateType) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); switch (template_type_case()) { case kWasm: { if (GetArena() == nullptr) { delete _impl_.template_type_.wasm_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.template_type_.wasm_); } break; } case kFlow: { if (GetArena() == nullptr) { delete _impl_.template_type_.flow_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.template_type_.flow_); } break; } case kManifest: { if (GetArena() == nullptr) { delete _impl_.template_type_.manifest_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.template_type_.manifest_); } break; } @@ -1789,40 +3555,51 @@ 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, - }, +inline void* PROTOBUF_NONNULL TemplateType::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) TemplateType(arena); +} +constexpr auto TemplateType::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TemplateType), + alignof(TemplateType)); +} +constexpr auto TemplateType::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_TemplateType_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_template_type(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TemplateType::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TemplateType::ByteSizeLong, + &TemplateType::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TemplateType, _impl_._cached_size_), + false, + }, + &TemplateType::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; } -const char* TemplateType::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull TemplateType_class_data_ = + TemplateType::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +TemplateType::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&TemplateType_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(TemplateType_class_data_.tc_table); + return TemplateType_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 3, 0, 2> TemplateType::_table_ = { +const ::_pbi::TcParseTable<0, 3, 3, 0, 2> +TemplateType::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -1833,7 +3610,8 @@ const ::_pbi::TcParseTable<0, 3, 3, 0, 2> TemplateType::_table_ = { 3, // num_field_entries 3, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TemplateType_default_instance_._instance, + TemplateType_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::TemplateType>(), // to_prefetch @@ -1848,88 +3626,117 @@ const ::_pbi::TcParseTable<0, 3, 3, 0, 2> TemplateType::_table_ = { (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .tari.rpc.FlowInfo flow = 2; {PROTOBUF_FIELD_OFFSET(TemplateType, _impl_.template_type_.flow_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .tari.rpc.ManifestInfo manifest = 3; {PROTOBUF_FIELD_OFFSET(TemplateType, _impl_.template_type_.manifest_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::WasmInfo>()}, - {::_pbi::FieldAuxDefaultMessage{}, &::tari::rpc::_FlowInfo_default_instance_}, - {::_pbi::FieldAuxDefaultMessage{}, &::tari::rpc::_ManifestInfo_default_instance_}, - }}, {{ + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::WasmInfo>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::FlowInfo>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::ManifestInfo>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void TemplateType::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.TemplateType) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* TemplateType::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + clear_template_type(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL TemplateType::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const TemplateType& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL TemplateType::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const TemplateType& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TemplateType) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - switch (template_type_case()) { + switch (this_.template_type_case()) { case kWasm: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.template_type_.wasm_, _impl_.template_type_.wasm_->GetCachedSize(), target, stream); + 1, *this_._impl_.template_type_.wasm_, this_._impl_.template_type_.wasm_->GetCachedSize(), target, + stream); break; } case kFlow: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.template_type_.flow_, _impl_.template_type_.flow_->GetCachedSize(), target, stream); + 2, *this_._impl_.template_type_.flow_, this_._impl_.template_type_.flow_->GetCachedSize(), target, + stream); break; } case kManifest: { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.template_type_.manifest_, _impl_.template_type_.manifest_->GetCachedSize(), target, stream); + 3, *this_._impl_.template_type_.manifest_, this_._impl_.template_type_.manifest_->GetCachedSize(), target, + stream); break; } default: break; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TemplateType) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TemplateType::ByteSizeLong(const MessageLite& base) { + const TemplateType& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t TemplateType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TemplateType) + const TemplateType& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.TemplateType) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - switch (template_type_case()) { + switch (this_.template_type_case()) { // .tari.rpc.WasmInfo wasm = 1; case kWasm: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.template_type_.wasm_); + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.template_type_.wasm_); break; } // .tari.rpc.FlowInfo flow = 2; case kFlow: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.template_type_.flow_); + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.template_type_.flow_); break; } // .tari.rpc.ManifestInfo manifest = 3; case kManifest: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.template_type_.manifest_); + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.template_type_.manifest_); break; } case TEMPLATE_TYPE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1952,28 +3759,25 @@ void TemplateType::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::go 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_); + _this->_impl_.template_type_.wasm_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.template_type_.wasm_); } else { - _this->_impl_.template_type_.wasm_->MergeFrom(from._internal_wasm()); + _this->_impl_.template_type_.wasm_->MergeFrom(*from._impl_.template_type_.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_); + _this->_impl_.template_type_.flow_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.template_type_.flow_); } else { - _this->_impl_.template_type_.flow_->MergeFrom(from._internal_flow()); + _this->_impl_.template_type_.flow_->MergeFrom(*from._impl_.template_type_.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_); + _this->_impl_.template_type_.manifest_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.template_type_.manifest_); } else { - _this->_impl_.template_type_.manifest_->MergeFrom(from._internal_manifest()); + _this->_impl_.template_type_.manifest_->MergeFrom(*from._impl_.template_type_.manifest_); } break; } @@ -1991,93 +3795,114 @@ void TemplateType::CopyFrom(const TemplateType& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TemplateType::IsInitialized() const { - return true; -} -void TemplateType::InternalSwap(TemplateType* PROTOBUF_RESTRICT other) { - using std::swap; +void TemplateType::InternalSwap(TemplateType* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.template_type_, other->_impl_.template_type_); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class WasmInfo::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(WasmInfo, _impl_._has_bits_); }; -WasmInfo::WasmInfo(::google::protobuf::Arena* arena) +WasmInfo::WasmInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, WasmInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.WasmInfo) } WasmInfo::WasmInfo( - ::google::protobuf::Arena* arena, const WasmInfo& from) - : WasmInfo(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const WasmInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, WasmInfo_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE WasmInfo::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE WasmInfo::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void WasmInfo::SharedCtor(::_pb::Arena* arena) { +inline void WasmInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.abi_version_ = {}; } WasmInfo::~WasmInfo() { // @@protoc_insertion_point(destructor:tari.rpc.WasmInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void WasmInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void WasmInfo::SharedDtor(MessageLite& self) { + WasmInfo& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL WasmInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) WasmInfo(arena); +} +constexpr auto WasmInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(WasmInfo), + alignof(WasmInfo)); +} +constexpr auto WasmInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_WasmInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.abi_version_ = 0u; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &WasmInfo::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &WasmInfo::ByteSizeLong, + &WasmInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(WasmInfo, _impl_._cached_size_), + false, + }, + &WasmInfo::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; } -const char* WasmInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull WasmInfo_class_data_ = + WasmInfo::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +WasmInfo::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&WasmInfo_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(WasmInfo_class_data_.tc_table); + return WasmInfo_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> WasmInfo::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +WasmInfo::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(WasmInfo, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -2086,68 +3911,100 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> WasmInfo::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_WasmInfo_default_instance_._instance, + WasmInfo_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(WasmInfo, _impl_.abi_version_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WasmInfo, _impl_.abi_version_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(WasmInfo, _impl_.abi_version_)}}, }}, {{ 65535, 65535 }}, {{ // uint32 abi_version = 1; - {PROTOBUF_FIELD_OFFSET(WasmInfo, _impl_.abi_version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(WasmInfo, _impl_.abi_version_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void WasmInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.WasmInfo) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* WasmInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.abi_version_ = 0u; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL WasmInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const WasmInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL WasmInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const WasmInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.WasmInfo) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint32 abi_version = 1; - if (this->_internal_abi_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_abi_version(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_abi_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_abi_version(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.WasmInfo) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t WasmInfo::ByteSizeLong(const MessageLite& base) { + const WasmInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t WasmInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.WasmInfo) + const WasmInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.WasmInfo) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint32 abi_version = 1; - if (this->_internal_abi_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_abi_version()); + { + // uint32 abi_version = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_abi_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_abi_version()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2156,9 +4013,13 @@ void WasmInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_abi_version() != 0) { - _this->_impl_.abi_version_ = from._impl_.abi_version_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_abi_version() != 0) { + _this->_impl_.abi_version_ = from._impl_.abi_version_; + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2169,20 +4030,16 @@ void WasmInfo::CopyFrom(const WasmInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool WasmInfo::IsInitialized() const { - return true; -} -void WasmInfo::InternalSwap(WasmInfo* PROTOBUF_RESTRICT other) { - using std::swap; +void WasmInfo::InternalSwap(WasmInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.abi_version_, other->_impl_.abi_version_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.abi_version_, other->_impl_.abi_version_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2190,14 +4047,22 @@ class FlowInfo::_Internal { public: }; -FlowInfo::FlowInfo(::google::protobuf::Arena* arena) +FlowInfo::FlowInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, FlowInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:tari.rpc.FlowInfo) } FlowInfo::FlowInfo( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FlowInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, FlowInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE FlowInfo* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -2206,7 +4071,75 @@ FlowInfo::FlowInfo( // @@protoc_insertion_point(copy_constructor:tari.rpc.FlowInfo) } +inline void* PROTOBUF_NONNULL FlowInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) FlowInfo(arena); +} +constexpr auto FlowInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FlowInfo), + alignof(FlowInfo)); +} +constexpr auto FlowInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_FlowInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FlowInfo::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FlowInfo::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &FlowInfo::ByteSizeLong, + &FlowInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FlowInfo, _impl_._cached_size_), + false, + }, + &FlowInfo::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull FlowInfo_class_data_ = + FlowInfo::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +FlowInfo::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&FlowInfo_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(FlowInfo_class_data_.tc_table); + return FlowInfo_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +FlowInfo::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + FlowInfo_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::FlowInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; @@ -2215,9 +4148,7 @@ 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 ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2225,14 +4156,22 @@ class ManifestInfo::_Internal { public: }; -ManifestInfo::ManifestInfo(::google::protobuf::Arena* arena) +ManifestInfo::ManifestInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, ManifestInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:tari.rpc.ManifestInfo) } ManifestInfo::ManifestInfo( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ManifestInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, ManifestInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ManifestInfo* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -2241,7 +4180,75 @@ ManifestInfo::ManifestInfo( // @@protoc_insertion_point(copy_constructor:tari.rpc.ManifestInfo) } +inline void* PROTOBUF_NONNULL ManifestInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ManifestInfo(arena); +} +constexpr auto ManifestInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ManifestInfo), + alignof(ManifestInfo)); +} +constexpr auto ManifestInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ManifestInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ManifestInfo::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ManifestInfo::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ManifestInfo::ByteSizeLong, + &ManifestInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ManifestInfo, _impl_._cached_size_), + false, + }, + &ManifestInfo::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ManifestInfo_class_data_ = + ManifestInfo::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ManifestInfo::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ManifestInfo_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ManifestInfo_class_data_.tc_table); + return ManifestInfo_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +ManifestInfo::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + ManifestInfo_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ManifestInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; @@ -2250,99 +4257,122 @@ 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 ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class BuildInfo::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_._has_bits_); }; -BuildInfo::BuildInfo(::google::protobuf::Arena* arena) +BuildInfo::BuildInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BuildInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.BuildInfo) } -inline PROTOBUF_NDEBUG_INLINE BuildInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : repo_url_(arena, from.repo_url_), - commit_hash_(arena, from.commit_hash_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE BuildInfo::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::BuildInfo& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + repo_url_(arena, from.repo_url_), + commit_hash_(arena, from.commit_hash_) {} BuildInfo::BuildInfo( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BuildInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BuildInfo_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE BuildInfo* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.BuildInfo) } -inline PROTOBUF_NDEBUG_INLINE BuildInfo::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE BuildInfo::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : repo_url_(arena), - commit_hash_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + repo_url_(arena), + commit_hash_(arena) {} -inline void BuildInfo::SharedCtor(::_pb::Arena* arena) { +inline void BuildInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } BuildInfo::~BuildInfo() { // @@protoc_insertion_point(destructor:tari.rpc.BuildInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void BuildInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.repo_url_.Destroy(); - _impl_.commit_hash_.Destroy(); - _impl_.~Impl_(); +inline void BuildInfo::SharedDtor(MessageLite& self) { + BuildInfo& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.repo_url_.Destroy(); + this_._impl_.commit_hash_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL BuildInfo::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BuildInfo(arena); +} +constexpr auto BuildInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BuildInfo), + alignof(BuildInfo)); +} +constexpr auto BuildInfo::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_BuildInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.repo_url_.ClearToEmpty(); - _impl_.commit_hash_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BuildInfo::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &BuildInfo::ByteSizeLong, + &BuildInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_._cached_size_), + false, + }, + &BuildInfo::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; } -const char* BuildInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull BuildInfo_class_data_ = + BuildInfo::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BuildInfo::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&BuildInfo_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(BuildInfo_class_data_.tc_table); + return BuildInfo_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 35, 2> BuildInfo::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 35, 2> +BuildInfo::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -2351,7 +4381,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 35, 2> BuildInfo::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_BuildInfo_default_instance_._instance, + BuildInfo_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::BuildInfo>(), // to_prefetch @@ -2359,19 +4390,19 @@ const ::_pbi::TcParseTable<1, 2, 0, 35, 2> BuildInfo::_table_ = { }, {{ // bytes commit_hash = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_.commit_hash_)}}, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_.commit_hash_)}}, // string repo_url = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_.repo_url_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_.repo_url_)}}, }}, {{ 65535, 65535 }}, {{ // string repo_url = 1; - {PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_.repo_url_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_.repo_url_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bytes commit_hash = 2; - {PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_.commit_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_.commit_hash_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -2380,61 +4411,104 @@ const ::_pbi::TcParseTable<1, 2, 0, 35, 2> BuildInfo::_table_ = { "repo_url" }}, }; +PROTOBUF_NOINLINE void BuildInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.BuildInfo) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* BuildInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.repo_url_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.commit_hash_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BuildInfo::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BuildInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BuildInfo::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BuildInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BuildInfo) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string repo_url = 1; - if (!this->_internal_repo_url().empty()) { - const std::string& _s = this->_internal_repo_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.BuildInfo.repo_url"); - target = stream->WriteStringMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_repo_url().empty()) { + const ::std::string& _s = this_._internal_repo_url(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.BuildInfo.repo_url"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } } // bytes commit_hash = 2; - if (!this->_internal_commit_hash().empty()) { - const std::string& _s = this->_internal_commit_hash(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_commit_hash().empty()) { + const ::std::string& _s = this_._internal_commit_hash(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BuildInfo) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BuildInfo::ByteSizeLong(const MessageLite& base) { + const BuildInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t BuildInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BuildInfo) + const BuildInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.BuildInfo) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // string repo_url = 1; - if (!this->_internal_repo_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_repo_url()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // string repo_url = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_repo_url().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_repo_url()); + } + } + // bytes commit_hash = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_commit_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_commit_hash()); + } + } } - - // bytes commit_hash = 2; - if (!this->_internal_commit_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_commit_hash()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2443,12 +4517,28 @@ void BuildInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::googl ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_repo_url().empty()) { - _this->_internal_set_repo_url(from._internal_repo_url()); - } - if (!from._internal_commit_hash().empty()) { - _this->_internal_set_commit_hash(from._internal_commit_hash()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_repo_url().empty()) { + _this->_internal_set_repo_url(from._internal_repo_url()); + } else { + if (_this->_impl_.repo_url_.IsDefault()) { + _this->_internal_set_repo_url(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_commit_hash().empty()) { + _this->_internal_set_commit_hash(from._internal_commit_hash()); + } else { + if (_this->_impl_.commit_hash_.IsDefault()) { + _this->_internal_set_commit_hash(""); + } + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2459,23 +4549,3997 @@ void BuildInfo::CopyFrom(const BuildInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool BuildInfo::IsInitialized() const { - return true; -} -void BuildInfo::InternalSwap(BuildInfo* PROTOBUF_RESTRICT other) { - using std::swap; +void BuildInfo::InternalSwap(BuildInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.repo_url_, &other->_impl_.repo_url_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.commit_hash_, &other->_impl_.commit_hash_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class EvictionProof::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EvictionProof, _impl_._has_bits_); +}; + +EvictionProof::EvictionProof(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, EvictionProof_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.EvictionProof) +} +PROTOBUF_NDEBUG_INLINE EvictionProof::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::EvictionProof& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +EvictionProof::EvictionProof( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const EvictionProof& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, EvictionProof_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EvictionProof* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.proof_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.proof_) + : nullptr; + + // @@protoc_insertion_point(copy_constructor:tari.rpc.EvictionProof) +} +PROTOBUF_NDEBUG_INLINE EvictionProof::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void EvictionProof::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.proof_ = {}; +} +EvictionProof::~EvictionProof() { + // @@protoc_insertion_point(destructor:tari.rpc.EvictionProof) + SharedDtor(*this); +} +inline void EvictionProof::SharedDtor(MessageLite& self) { + EvictionProof& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.proof_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL EvictionProof::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) EvictionProof(arena); +} +constexpr auto EvictionProof::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(EvictionProof), + alignof(EvictionProof)); +} +constexpr auto EvictionProof::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_EvictionProof_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EvictionProof::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EvictionProof::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &EvictionProof::ByteSizeLong, + &EvictionProof::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EvictionProof, _impl_._cached_size_), + false, + }, + &EvictionProof::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull EvictionProof_class_data_ = + EvictionProof::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +EvictionProof::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&EvictionProof_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(EvictionProof_class_data_.tc_table); + return EvictionProof_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +EvictionProof::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EvictionProof, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + EvictionProof_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::EvictionProof>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .tari.rpc.CommitProof proof = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(EvictionProof, _impl_.proof_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .tari.rpc.CommitProof proof = 1; + {PROTOBUF_FIELD_OFFSET(EvictionProof, _impl_.proof_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::CommitProof>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void EvictionProof::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.EvictionProof) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.proof_ != nullptr); + _impl_.proof_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL EvictionProof::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const EvictionProof& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL EvictionProof::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const EvictionProof& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.EvictionProof) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.CommitProof proof = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.proof_, this_._impl_.proof_->GetCachedSize(), target, + stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.EvictionProof) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t EvictionProof::ByteSizeLong(const MessageLite& base) { + const EvictionProof& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t EvictionProof::ByteSizeLong() const { + const EvictionProof& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.EvictionProof) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .tari.rpc.CommitProof proof = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.proof_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void EvictionProof::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.EvictionProof) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(from._impl_.proof_ != nullptr); + if (_this->_impl_.proof_ == nullptr) { + _this->_impl_.proof_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.proof_); + } else { + _this->_impl_.proof_->MergeFrom(*from._impl_.proof_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void EvictionProof::CopyFrom(const EvictionProof& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.EvictionProof) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void EvictionProof::InternalSwap(EvictionProof* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.proof_, other->_impl_.proof_); +} + +::google::protobuf::Metadata EvictionProof::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class CommitProof::_Internal { + public: + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitProof, _impl_._oneof_case_); +}; + +void CommitProof::set_allocated_v1(::tari::rpc::CommitProofV1* PROTOBUF_NULLABLE v1) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_version(); + if (v1) { + ::google::protobuf::Arena* submessage_arena = v1->GetArena(); + if (message_arena != submessage_arena) { + v1 = ::google::protobuf::internal::GetOwnedMessage(message_arena, v1, submessage_arena); + } + set_has_v1(); + _impl_.version_.v1_ = v1; + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.CommitProof.v1) +} +CommitProof::CommitProof(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, CommitProof_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.CommitProof) +} +PROTOBUF_NDEBUG_INLINE CommitProof::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::CommitProof& from_msg) + : version_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +CommitProof::CommitProof( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const CommitProof& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, CommitProof_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + CommitProof* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + switch (version_case()) { + case VERSION_NOT_SET: + break; + case kV1: + _impl_.version_.v1_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.version_.v1_); + break; + } + + // @@protoc_insertion_point(copy_constructor:tari.rpc.CommitProof) +} +PROTOBUF_NDEBUG_INLINE CommitProof::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : version_{}, + _cached_size_{0}, + _oneof_case_{} {} + +inline void CommitProof::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +CommitProof::~CommitProof() { + // @@protoc_insertion_point(destructor:tari.rpc.CommitProof) + SharedDtor(*this); +} +inline void CommitProof::SharedDtor(MessageLite& self) { + CommitProof& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + if (this_.has_version()) { + this_.clear_version(); + } + this_._impl_.~Impl_(); +} + +void CommitProof::clear_version() { +// @@protoc_insertion_point(one_of_clear_start:tari.rpc.CommitProof) + ::google::protobuf::internal::TSanWrite(&_impl_); + switch (version_case()) { + case kV1: { + if (GetArena() == nullptr) { + delete _impl_.version_.v1_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.version_.v1_); + } + break; + } + case VERSION_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = VERSION_NOT_SET; +} + + +inline void* PROTOBUF_NONNULL CommitProof::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) CommitProof(arena); +} +constexpr auto CommitProof::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CommitProof), + alignof(CommitProof)); +} +constexpr auto CommitProof::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_CommitProof_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CommitProof::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CommitProof::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CommitProof::ByteSizeLong, + &CommitProof::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CommitProof, _impl_._cached_size_), + false, + }, + &CommitProof::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull CommitProof_class_data_ = + CommitProof::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +CommitProof::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&CommitProof_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(CommitProof_class_data_.tc_table); + return CommitProof_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +CommitProof::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + CommitProof_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::CommitProof>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // .tari.rpc.CommitProofV1 v1 = 1; + {PROTOBUF_FIELD_OFFSET(CommitProof, _impl_.version_.v1_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::CommitProofV1>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void CommitProof::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.CommitProof) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_version(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL CommitProof::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const CommitProof& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL CommitProof::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const CommitProof& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.CommitProof) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // .tari.rpc.CommitProofV1 v1 = 1; + if (this_.version_case() == kV1) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.version_.v1_, this_._impl_.version_.v1_->GetCachedSize(), target, + stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.CommitProof) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CommitProof::ByteSizeLong(const MessageLite& base) { + const CommitProof& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CommitProof::ByteSizeLong() const { + const CommitProof& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.CommitProof) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + switch (this_.version_case()) { + // .tari.rpc.CommitProofV1 v1 = 1; + case kV1: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.version_.v1_); + break; + } + case VERSION_NOT_SET: { + break; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void CommitProof::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.CommitProof) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + 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_version(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; + } + + switch (oneof_from_case) { + case kV1: { + if (oneof_needs_init) { + _this->_impl_.version_.v1_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.version_.v1_); + } else { + _this->_impl_.version_.v1_->MergeFrom(*from._impl_.version_.v1_); + } + break; + } + case VERSION_NOT_SET: + break; + } + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CommitProof::CopyFrom(const CommitProof& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.CommitProof) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void CommitProof::InternalSwap(CommitProof* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.version_, other->_impl_.version_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::google::protobuf::Metadata CommitProof::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class CommitProofV1::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CommitProofV1, _impl_._has_bits_); +}; + +CommitProofV1::CommitProofV1(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, CommitProofV1_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.CommitProofV1) +} +PROTOBUF_NDEBUG_INLINE CommitProofV1::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::CommitProofV1& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + command_(arena, from.command_), + encoded_inclusion_proof_(arena, from.encoded_inclusion_proof_) {} + +CommitProofV1::CommitProofV1( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const CommitProofV1& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, CommitProofV1_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + CommitProofV1* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.commit_proof_ = ((cached_has_bits & 0x00000004u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.commit_proof_) + : nullptr; + + // @@protoc_insertion_point(copy_constructor:tari.rpc.CommitProofV1) +} +PROTOBUF_NDEBUG_INLINE CommitProofV1::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + command_(arena), + encoded_inclusion_proof_(arena) {} + +inline void CommitProofV1::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.commit_proof_ = {}; +} +CommitProofV1::~CommitProofV1() { + // @@protoc_insertion_point(destructor:tari.rpc.CommitProofV1) + SharedDtor(*this); +} +inline void CommitProofV1::SharedDtor(MessageLite& self) { + CommitProofV1& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.command_.Destroy(); + this_._impl_.encoded_inclusion_proof_.Destroy(); + delete this_._impl_.commit_proof_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL CommitProofV1::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) CommitProofV1(arena); +} +constexpr auto CommitProofV1::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CommitProofV1), + alignof(CommitProofV1)); +} +constexpr auto CommitProofV1::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_CommitProofV1_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CommitProofV1::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CommitProofV1::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CommitProofV1::ByteSizeLong, + &CommitProofV1::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CommitProofV1, _impl_._cached_size_), + false, + }, + &CommitProofV1::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull CommitProofV1_class_data_ = + CommitProofV1::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +CommitProofV1::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&CommitProofV1_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(CommitProofV1_class_data_.tc_table); + return CommitProofV1_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +CommitProofV1::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CommitProofV1, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + CommitProofV1_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::CommitProofV1>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // bytes command = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CommitProofV1, _impl_.command_)}}, + // .tari.rpc.SidechainBlockCommitProof commit_proof = 2; + {::_pbi::TcParser::FastMtS1, + {18, 2, 0, PROTOBUF_FIELD_OFFSET(CommitProofV1, _impl_.commit_proof_)}}, + // bytes encoded_inclusion_proof = 3; + {::_pbi::TcParser::FastBS1, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(CommitProofV1, _impl_.encoded_inclusion_proof_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes command = 1; + {PROTOBUF_FIELD_OFFSET(CommitProofV1, _impl_.command_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // .tari.rpc.SidechainBlockCommitProof commit_proof = 2; + {PROTOBUF_FIELD_OFFSET(CommitProofV1, _impl_.commit_proof_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // bytes encoded_inclusion_proof = 3; + {PROTOBUF_FIELD_OFFSET(CommitProofV1, _impl_.encoded_inclusion_proof_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::SidechainBlockCommitProof>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void CommitProofV1::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.CommitProofV1) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.command_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.encoded_inclusion_proof_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + ABSL_DCHECK(_impl_.commit_proof_ != nullptr); + _impl_.commit_proof_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL CommitProofV1::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const CommitProofV1& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL CommitProofV1::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const CommitProofV1& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.CommitProofV1) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bytes command = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_command().empty()) { + const ::std::string& _s = this_._internal_command(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + } + + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.SidechainBlockCommitProof commit_proof = 2; + if ((cached_has_bits & 0x00000004u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.commit_proof_, this_._impl_.commit_proof_->GetCachedSize(), target, + stream); + } + + // bytes encoded_inclusion_proof = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_encoded_inclusion_proof().empty()) { + const ::std::string& _s = this_._internal_encoded_inclusion_proof(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.CommitProofV1) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CommitProofV1::ByteSizeLong(const MessageLite& base) { + const CommitProofV1& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CommitProofV1::ByteSizeLong() const { + const CommitProofV1& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.CommitProofV1) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // bytes command = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_command().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_command()); + } + } + // bytes encoded_inclusion_proof = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_encoded_inclusion_proof().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_encoded_inclusion_proof()); + } + } + // .tari.rpc.SidechainBlockCommitProof commit_proof = 2; + if ((cached_has_bits & 0x00000004u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.commit_proof_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void CommitProofV1::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.CommitProofV1) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_command().empty()) { + _this->_internal_set_command(from._internal_command()); + } else { + if (_this->_impl_.command_.IsDefault()) { + _this->_internal_set_command(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_encoded_inclusion_proof().empty()) { + _this->_internal_set_encoded_inclusion_proof(from._internal_encoded_inclusion_proof()); + } else { + if (_this->_impl_.encoded_inclusion_proof_.IsDefault()) { + _this->_internal_set_encoded_inclusion_proof(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + ABSL_DCHECK(from._impl_.commit_proof_ != nullptr); + if (_this->_impl_.commit_proof_ == nullptr) { + _this->_impl_.commit_proof_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.commit_proof_); + } else { + _this->_impl_.commit_proof_->MergeFrom(*from._impl_.commit_proof_); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CommitProofV1::CopyFrom(const CommitProofV1& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.CommitProofV1) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void CommitProofV1::InternalSwap(CommitProofV1* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.command_, &other->_impl_.command_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encoded_inclusion_proof_, &other->_impl_.encoded_inclusion_proof_, arena); + swap(_impl_.commit_proof_, other->_impl_.commit_proof_); +} + +::google::protobuf::Metadata CommitProofV1::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class SidechainBlockCommitProof::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SidechainBlockCommitProof, _impl_._has_bits_); +}; + +SidechainBlockCommitProof::SidechainBlockCommitProof(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SidechainBlockCommitProof_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.SidechainBlockCommitProof) +} +PROTOBUF_NDEBUG_INLINE SidechainBlockCommitProof::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::SidechainBlockCommitProof& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + proof_elements_{visibility, arena, from.proof_elements_} {} + +SidechainBlockCommitProof::SidechainBlockCommitProof( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SidechainBlockCommitProof& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SidechainBlockCommitProof_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SidechainBlockCommitProof* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.header_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.header_) + : nullptr; + + // @@protoc_insertion_point(copy_constructor:tari.rpc.SidechainBlockCommitProof) +} +PROTOBUF_NDEBUG_INLINE SidechainBlockCommitProof::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + proof_elements_{visibility, arena} {} + +inline void SidechainBlockCommitProof::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.header_ = {}; +} +SidechainBlockCommitProof::~SidechainBlockCommitProof() { + // @@protoc_insertion_point(destructor:tari.rpc.SidechainBlockCommitProof) + SharedDtor(*this); +} +inline void SidechainBlockCommitProof::SharedDtor(MessageLite& self) { + SidechainBlockCommitProof& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.header_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL SidechainBlockCommitProof::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SidechainBlockCommitProof(arena); +} +constexpr auto SidechainBlockCommitProof::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SidechainBlockCommitProof, _impl_.proof_elements_) + + decltype(SidechainBlockCommitProof::_impl_.proof_elements_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SidechainBlockCommitProof), alignof(SidechainBlockCommitProof), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SidechainBlockCommitProof::PlacementNew_, + sizeof(SidechainBlockCommitProof), + alignof(SidechainBlockCommitProof)); + } +} +constexpr auto SidechainBlockCommitProof::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SidechainBlockCommitProof_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SidechainBlockCommitProof::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SidechainBlockCommitProof::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SidechainBlockCommitProof::ByteSizeLong, + &SidechainBlockCommitProof::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SidechainBlockCommitProof, _impl_._cached_size_), + false, + }, + &SidechainBlockCommitProof::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SidechainBlockCommitProof_class_data_ = + SidechainBlockCommitProof::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SidechainBlockCommitProof::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SidechainBlockCommitProof_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SidechainBlockCommitProof_class_data_.tc_table); + return SidechainBlockCommitProof_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +SidechainBlockCommitProof::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SidechainBlockCommitProof, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SidechainBlockCommitProof_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SidechainBlockCommitProof>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .tari.rpc.CommitProofElement proof_elements = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 1, PROTOBUF_FIELD_OFFSET(SidechainBlockCommitProof, _impl_.proof_elements_)}}, + // .tari.rpc.SidechainBlockHeader header = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SidechainBlockCommitProof, _impl_.header_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .tari.rpc.SidechainBlockHeader header = 1; + {PROTOBUF_FIELD_OFFSET(SidechainBlockCommitProof, _impl_.header_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .tari.rpc.CommitProofElement proof_elements = 2; + {PROTOBUF_FIELD_OFFSET(SidechainBlockCommitProof, _impl_.proof_elements_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::SidechainBlockHeader>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::CommitProofElement>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SidechainBlockCommitProof::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SidechainBlockCommitProof) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.proof_elements_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.header_ != nullptr); + _impl_.header_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SidechainBlockCommitProof::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SidechainBlockCommitProof& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SidechainBlockCommitProof::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SidechainBlockCommitProof& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SidechainBlockCommitProof) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.SidechainBlockHeader header = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.header_, this_._impl_.header_->GetCachedSize(), target, + stream); + } + + // repeated .tari.rpc.CommitProofElement proof_elements = 2; + for (unsigned i = 0, n = static_cast( + this_._internal_proof_elements_size()); + i < n; i++) { + const auto& repfield = this_._internal_proof_elements().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SidechainBlockCommitProof) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SidechainBlockCommitProof::ByteSizeLong(const MessageLite& base) { + const SidechainBlockCommitProof& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SidechainBlockCommitProof::ByteSizeLong() const { + const SidechainBlockCommitProof& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SidechainBlockCommitProof) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .tari.rpc.CommitProofElement proof_elements = 2; + { + total_size += 1UL * this_._internal_proof_elements_size(); + for (const auto& msg : this_._internal_proof_elements()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + { + // .tari.rpc.SidechainBlockHeader header = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.header_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void SidechainBlockCommitProof::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.SidechainBlockCommitProof) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_proof_elements()->MergeFrom( + from._internal_proof_elements()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(from._impl_.header_ != nullptr); + if (_this->_impl_.header_ == nullptr) { + _this->_impl_.header_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.header_); + } else { + _this->_impl_.header_->MergeFrom(*from._impl_.header_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void SidechainBlockCommitProof::CopyFrom(const SidechainBlockCommitProof& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SidechainBlockCommitProof) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void SidechainBlockCommitProof::InternalSwap(SidechainBlockCommitProof* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.proof_elements_.InternalSwap(&other->_impl_.proof_elements_); + swap(_impl_.header_, other->_impl_.header_); +} + +::google::protobuf::Metadata SidechainBlockCommitProof::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class CommitProofElement::_Internal { + public: + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitProofElement, _impl_._oneof_case_); +}; + +void CommitProofElement::set_allocated_quorum_certificate(::tari::rpc::QuorumCertificate* PROTOBUF_NULLABLE quorum_certificate) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_proof_element(); + if (quorum_certificate) { + ::google::protobuf::Arena* submessage_arena = quorum_certificate->GetArena(); + if (message_arena != submessage_arena) { + quorum_certificate = ::google::protobuf::internal::GetOwnedMessage(message_arena, quorum_certificate, submessage_arena); + } + set_has_quorum_certificate(); + _impl_.proof_element_.quorum_certificate_ = quorum_certificate; + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.CommitProofElement.quorum_certificate) +} +void CommitProofElement::set_allocated_dummy_chain(::tari::rpc::DummyChain* PROTOBUF_NULLABLE dummy_chain) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_proof_element(); + if (dummy_chain) { + ::google::protobuf::Arena* submessage_arena = dummy_chain->GetArena(); + if (message_arena != submessage_arena) { + dummy_chain = ::google::protobuf::internal::GetOwnedMessage(message_arena, dummy_chain, submessage_arena); + } + set_has_dummy_chain(); + _impl_.proof_element_.dummy_chain_ = dummy_chain; + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.CommitProofElement.dummy_chain) +} +CommitProofElement::CommitProofElement(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, CommitProofElement_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.CommitProofElement) +} +PROTOBUF_NDEBUG_INLINE CommitProofElement::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::CommitProofElement& from_msg) + : proof_element_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +CommitProofElement::CommitProofElement( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const CommitProofElement& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, CommitProofElement_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + CommitProofElement* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + switch (proof_element_case()) { + case PROOF_ELEMENT_NOT_SET: + break; + case kQuorumCertificate: + _impl_.proof_element_.quorum_certificate_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.proof_element_.quorum_certificate_); + break; + case kDummyChain: + _impl_.proof_element_.dummy_chain_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.proof_element_.dummy_chain_); + break; + } + + // @@protoc_insertion_point(copy_constructor:tari.rpc.CommitProofElement) +} +PROTOBUF_NDEBUG_INLINE CommitProofElement::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : proof_element_{}, + _cached_size_{0}, + _oneof_case_{} {} + +inline void CommitProofElement::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +CommitProofElement::~CommitProofElement() { + // @@protoc_insertion_point(destructor:tari.rpc.CommitProofElement) + SharedDtor(*this); +} +inline void CommitProofElement::SharedDtor(MessageLite& self) { + CommitProofElement& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + if (this_.has_proof_element()) { + this_.clear_proof_element(); + } + this_._impl_.~Impl_(); +} + +void CommitProofElement::clear_proof_element() { +// @@protoc_insertion_point(one_of_clear_start:tari.rpc.CommitProofElement) + ::google::protobuf::internal::TSanWrite(&_impl_); + switch (proof_element_case()) { + case kQuorumCertificate: { + if (GetArena() == nullptr) { + delete _impl_.proof_element_.quorum_certificate_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.proof_element_.quorum_certificate_); + } + break; + } + case kDummyChain: { + if (GetArena() == nullptr) { + delete _impl_.proof_element_.dummy_chain_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.proof_element_.dummy_chain_); + } + break; + } + case PROOF_ELEMENT_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = PROOF_ELEMENT_NOT_SET; +} + + +inline void* PROTOBUF_NONNULL CommitProofElement::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) CommitProofElement(arena); +} +constexpr auto CommitProofElement::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CommitProofElement), + alignof(CommitProofElement)); +} +constexpr auto CommitProofElement::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_CommitProofElement_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CommitProofElement::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CommitProofElement::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CommitProofElement::ByteSizeLong, + &CommitProofElement::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CommitProofElement, _impl_._cached_size_), + false, + }, + &CommitProofElement::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull CommitProofElement_class_data_ = + CommitProofElement::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +CommitProofElement::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&CommitProofElement_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(CommitProofElement_class_data_.tc_table); + return CommitProofElement_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 2, 2, 0, 2> +CommitProofElement::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + CommitProofElement_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::CommitProofElement>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // .tari.rpc.QuorumCertificate quorum_certificate = 1; + {PROTOBUF_FIELD_OFFSET(CommitProofElement, _impl_.proof_element_.quorum_certificate_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .tari.rpc.DummyChain dummy_chain = 2; + {PROTOBUF_FIELD_OFFSET(CommitProofElement, _impl_.proof_element_.dummy_chain_), _Internal::kOneofCaseOffset + 0, 1, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::QuorumCertificate>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::DummyChain>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void CommitProofElement::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.CommitProofElement) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_proof_element(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL CommitProofElement::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const CommitProofElement& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL CommitProofElement::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const CommitProofElement& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.CommitProofElement) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + switch (this_.proof_element_case()) { + case kQuorumCertificate: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.proof_element_.quorum_certificate_, this_._impl_.proof_element_.quorum_certificate_->GetCachedSize(), target, + stream); + break; + } + case kDummyChain: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.proof_element_.dummy_chain_, this_._impl_.proof_element_.dummy_chain_->GetCachedSize(), target, + stream); + break; + } + default: + break; + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.CommitProofElement) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CommitProofElement::ByteSizeLong(const MessageLite& base) { + const CommitProofElement& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CommitProofElement::ByteSizeLong() const { + const CommitProofElement& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.CommitProofElement) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + switch (this_.proof_element_case()) { + // .tari.rpc.QuorumCertificate quorum_certificate = 1; + case kQuorumCertificate: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.proof_element_.quorum_certificate_); + break; + } + // .tari.rpc.DummyChain dummy_chain = 2; + case kDummyChain: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.proof_element_.dummy_chain_); + break; + } + case PROOF_ELEMENT_NOT_SET: { + break; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void CommitProofElement::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.CommitProofElement) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + 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_proof_element(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; + } + + switch (oneof_from_case) { + case kQuorumCertificate: { + if (oneof_needs_init) { + _this->_impl_.proof_element_.quorum_certificate_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.proof_element_.quorum_certificate_); + } else { + _this->_impl_.proof_element_.quorum_certificate_->MergeFrom(*from._impl_.proof_element_.quorum_certificate_); + } + break; + } + case kDummyChain: { + if (oneof_needs_init) { + _this->_impl_.proof_element_.dummy_chain_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.proof_element_.dummy_chain_); + } else { + _this->_impl_.proof_element_.dummy_chain_->MergeFrom(*from._impl_.proof_element_.dummy_chain_); + } + break; + } + case PROOF_ELEMENT_NOT_SET: + break; + } + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CommitProofElement::CopyFrom(const CommitProofElement& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.CommitProofElement) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void CommitProofElement::InternalSwap(CommitProofElement* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.proof_element_, other->_impl_.proof_element_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::google::protobuf::Metadata CommitProofElement::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class DummyChain::_Internal { + public: +}; + +DummyChain::DummyChain(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, DummyChain_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.DummyChain) +} +PROTOBUF_NDEBUG_INLINE DummyChain::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::DummyChain& from_msg) + : chain_links_{visibility, arena, from.chain_links_}, + _cached_size_{0} {} + +DummyChain::DummyChain( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const DummyChain& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, DummyChain_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + DummyChain* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:tari.rpc.DummyChain) +} +PROTOBUF_NDEBUG_INLINE DummyChain::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : chain_links_{visibility, arena}, + _cached_size_{0} {} + +inline void DummyChain::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +DummyChain::~DummyChain() { + // @@protoc_insertion_point(destructor:tari.rpc.DummyChain) + SharedDtor(*this); +} +inline void DummyChain::SharedDtor(MessageLite& self) { + DummyChain& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL DummyChain::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) DummyChain(arena); +} +constexpr auto DummyChain::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(DummyChain, _impl_.chain_links_) + + decltype(DummyChain::_impl_.chain_links_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(DummyChain), alignof(DummyChain), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&DummyChain::PlacementNew_, + sizeof(DummyChain), + alignof(DummyChain)); + } +} +constexpr auto DummyChain::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_DummyChain_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DummyChain::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DummyChain::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &DummyChain::ByteSizeLong, + &DummyChain::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DummyChain, _impl_._cached_size_), + false, + }, + &DummyChain::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull DummyChain_class_data_ = + DummyChain::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +DummyChain::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&DummyChain_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(DummyChain_class_data_.tc_table); + return DummyChain_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> +DummyChain::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + DummyChain_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::DummyChain>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .tari.rpc.ChainLink chain_links = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(DummyChain, _impl_.chain_links_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .tari.rpc.ChainLink chain_links = 1; + {PROTOBUF_FIELD_OFFSET(DummyChain, _impl_.chain_links_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::ChainLink>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void DummyChain::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.DummyChain) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.chain_links_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL DummyChain::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const DummyChain& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL DummyChain::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const DummyChain& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.DummyChain) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .tari.rpc.ChainLink chain_links = 1; + for (unsigned i = 0, n = static_cast( + this_._internal_chain_links_size()); + i < n; i++) { + const auto& repfield = this_._internal_chain_links().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.DummyChain) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DummyChain::ByteSizeLong(const MessageLite& base) { + const DummyChain& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DummyChain::ByteSizeLong() const { + const DummyChain& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.DummyChain) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .tari.rpc.ChainLink chain_links = 1; + { + total_size += 1UL * this_._internal_chain_links_size(); + for (const auto& msg : this_._internal_chain_links()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void DummyChain::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.DummyChain) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_chain_links()->MergeFrom( + from._internal_chain_links()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void DummyChain::CopyFrom(const DummyChain& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.DummyChain) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void DummyChain::InternalSwap(DummyChain* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.chain_links_.InternalSwap(&other->_impl_.chain_links_); +} + +::google::protobuf::Metadata DummyChain::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class ChainLink::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ChainLink, _impl_._has_bits_); +}; + +ChainLink::ChainLink(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ChainLink_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.ChainLink) +} +PROTOBUF_NDEBUG_INLINE ChainLink::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ChainLink& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + header_hash_(arena, from.header_hash_), + parent_id_(arena, from.parent_id_) {} + +ChainLink::ChainLink( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ChainLink& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ChainLink_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ChainLink* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:tari.rpc.ChainLink) +} +PROTOBUF_NDEBUG_INLINE ChainLink::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + header_hash_(arena), + parent_id_(arena) {} + +inline void ChainLink::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +ChainLink::~ChainLink() { + // @@protoc_insertion_point(destructor:tari.rpc.ChainLink) + SharedDtor(*this); +} +inline void ChainLink::SharedDtor(MessageLite& self) { + ChainLink& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.header_hash_.Destroy(); + this_._impl_.parent_id_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL ChainLink::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ChainLink(arena); +} +constexpr auto ChainLink::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ChainLink), + alignof(ChainLink)); +} +constexpr auto ChainLink::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ChainLink_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ChainLink::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ChainLink::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ChainLink::ByteSizeLong, + &ChainLink::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ChainLink, _impl_._cached_size_), + false, + }, + &ChainLink::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ChainLink_class_data_ = + ChainLink::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ChainLink::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ChainLink_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ChainLink_class_data_.tc_table); + return ChainLink_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +ChainLink::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ChainLink, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + ChainLink_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ChainLink>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // bytes parent_id = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(ChainLink, _impl_.parent_id_)}}, + // bytes header_hash = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ChainLink, _impl_.header_hash_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes header_hash = 1; + {PROTOBUF_FIELD_OFFSET(ChainLink, _impl_.header_hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes parent_id = 2; + {PROTOBUF_FIELD_OFFSET(ChainLink, _impl_.parent_id_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void ChainLink::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ChainLink) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.header_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.parent_id_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ChainLink::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ChainLink& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ChainLink::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ChainLink& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ChainLink) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bytes header_hash = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_header_hash().empty()) { + const ::std::string& _s = this_._internal_header_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + } + + // bytes parent_id = 2; + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_parent_id().empty()) { + const ::std::string& _s = this_._internal_parent_id(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ChainLink) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ChainLink::ByteSizeLong(const MessageLite& base) { + const ChainLink& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ChainLink::ByteSizeLong() const { + const ChainLink& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ChainLink) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes header_hash = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_header_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_header_hash()); + } + } + // bytes parent_id = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_parent_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_parent_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ChainLink::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.ChainLink) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_header_hash().empty()) { + _this->_internal_set_header_hash(from._internal_header_hash()); + } else { + if (_this->_impl_.header_hash_.IsDefault()) { + _this->_internal_set_header_hash(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_parent_id().empty()) { + _this->_internal_set_parent_id(from._internal_parent_id()); + } else { + if (_this->_impl_.parent_id_.IsDefault()) { + _this->_internal_set_parent_id(""); + } + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ChainLink::CopyFrom(const ChainLink& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ChainLink) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void ChainLink::InternalSwap(ChainLink* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.header_hash_, &other->_impl_.header_hash_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_id_, &other->_impl_.parent_id_, arena); +} + +::google::protobuf::Metadata ChainLink::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class SidechainBlockHeader::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_._has_bits_); +}; + +void SidechainBlockHeader::clear_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.signature_ != nullptr) _impl_.signature_->Clear(); + _impl_._has_bits_[0] &= ~0x00000080u; +} +SidechainBlockHeader::SidechainBlockHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SidechainBlockHeader_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.SidechainBlockHeader) +} +PROTOBUF_NDEBUG_INLINE SidechainBlockHeader::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::SidechainBlockHeader& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + parent_id_(arena, from.parent_id_), + justify_id_(arena, from.justify_id_), + proposed_by_(arena, from.proposed_by_), + state_merkle_root_(arena, from.state_merkle_root_), + command_merkle_root_(arena, from.command_merkle_root_), + metadata_hash_(arena, from.metadata_hash_) {} + +SidechainBlockHeader::SidechainBlockHeader( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SidechainBlockHeader& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, SidechainBlockHeader_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SidechainBlockHeader* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.shard_group_ = ((cached_has_bits & 0x00000040u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.shard_group_) + : nullptr; + _impl_.signature_ = ((cached_has_bits & 0x00000080u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.signature_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, height_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, height_), + offsetof(Impl_, network_) - + offsetof(Impl_, height_) + + sizeof(Impl_::network_)); + + // @@protoc_insertion_point(copy_constructor:tari.rpc.SidechainBlockHeader) +} +PROTOBUF_NDEBUG_INLINE SidechainBlockHeader::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + parent_id_(arena), + justify_id_(arena), + proposed_by_(arena), + state_merkle_root_(arena), + command_merkle_root_(arena), + metadata_hash_(arena) {} + +inline void SidechainBlockHeader::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, shard_group_), + 0, + offsetof(Impl_, network_) - + offsetof(Impl_, shard_group_) + + sizeof(Impl_::network_)); +} +SidechainBlockHeader::~SidechainBlockHeader() { + // @@protoc_insertion_point(destructor:tari.rpc.SidechainBlockHeader) + SharedDtor(*this); +} +inline void SidechainBlockHeader::SharedDtor(MessageLite& self) { + SidechainBlockHeader& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.parent_id_.Destroy(); + this_._impl_.justify_id_.Destroy(); + this_._impl_.proposed_by_.Destroy(); + this_._impl_.state_merkle_root_.Destroy(); + this_._impl_.command_merkle_root_.Destroy(); + this_._impl_.metadata_hash_.Destroy(); + delete this_._impl_.shard_group_; + delete this_._impl_.signature_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL SidechainBlockHeader::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SidechainBlockHeader(arena); +} +constexpr auto SidechainBlockHeader::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SidechainBlockHeader), + alignof(SidechainBlockHeader)); +} +constexpr auto SidechainBlockHeader::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SidechainBlockHeader_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SidechainBlockHeader::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SidechainBlockHeader::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SidechainBlockHeader::ByteSizeLong, + &SidechainBlockHeader::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_._cached_size_), + false, + }, + &SidechainBlockHeader::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull SidechainBlockHeader_class_data_ = + SidechainBlockHeader::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SidechainBlockHeader::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SidechainBlockHeader_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(SidechainBlockHeader_class_data_.tc_table); + return SidechainBlockHeader_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 11, 2, 0, 2> +SidechainBlockHeader::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_._has_bits_), + 0, // no _extensions_ + 11, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294965248, // skipmap + offsetof(decltype(_table_), field_entries), + 11, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SidechainBlockHeader_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::SidechainBlockHeader>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // uint32 network = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SidechainBlockHeader, _impl_.network_), 10>(), + {8, 10, 0, PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.network_)}}, + // bytes parent_id = 2; + {::_pbi::TcParser::FastBS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.parent_id_)}}, + // bytes justify_id = 3; + {::_pbi::TcParser::FastBS1, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.justify_id_)}}, + // uint64 height = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SidechainBlockHeader, _impl_.height_), 8>(), + {32, 8, 0, PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.height_)}}, + // uint64 epoch = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SidechainBlockHeader, _impl_.epoch_), 9>(), + {40, 9, 0, PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.epoch_)}}, + // .tari.rpc.ShardGroup shard_group = 6; + {::_pbi::TcParser::FastMtS1, + {50, 6, 0, PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.shard_group_)}}, + // bytes proposed_by = 7; + {::_pbi::TcParser::FastBS1, + {58, 2, 0, PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.proposed_by_)}}, + // bytes state_merkle_root = 8; + {::_pbi::TcParser::FastBS1, + {66, 3, 0, PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.state_merkle_root_)}}, + // bytes command_merkle_root = 9; + {::_pbi::TcParser::FastBS1, + {74, 4, 0, PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.command_merkle_root_)}}, + // bytes metadata_hash = 10; + {::_pbi::TcParser::FastBS1, + {82, 5, 0, PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.metadata_hash_)}}, + // .tari.rpc.Signature signature = 11; + {::_pbi::TcParser::FastMtS1, + {90, 7, 1, PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.signature_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // uint32 network = 1; + {PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.network_), _Internal::kHasBitsOffset + 10, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // bytes parent_id = 2; + {PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.parent_id_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes justify_id = 3; + {PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.justify_id_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // uint64 height = 4; + {PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.height_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 epoch = 5; + {PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.epoch_), _Internal::kHasBitsOffset + 9, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // .tari.rpc.ShardGroup shard_group = 6; + {PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.shard_group_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // bytes proposed_by = 7; + {PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.proposed_by_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes state_merkle_root = 8; + {PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.state_merkle_root_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes command_merkle_root = 9; + {PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.command_merkle_root_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes metadata_hash = 10; + {PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.metadata_hash_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // .tari.rpc.Signature signature = 11; + {PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.signature_), _Internal::kHasBitsOffset + 7, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::ShardGroup>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SidechainBlockHeader::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.SidechainBlockHeader) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.parent_id_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.justify_id_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.proposed_by_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.state_merkle_root_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + _impl_.command_merkle_root_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000020u) != 0) { + _impl_.metadata_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000040u) != 0) { + ABSL_DCHECK(_impl_.shard_group_ != nullptr); + _impl_.shard_group_->Clear(); + } + if ((cached_has_bits & 0x00000080u) != 0) { + ABSL_DCHECK(_impl_.signature_ != nullptr); + _impl_.signature_->Clear(); + } + } + if ((cached_has_bits & 0x00000700u) != 0) { + ::memset(&_impl_.height_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.network_) - + reinterpret_cast(&_impl_.height_)) + sizeof(_impl_.network_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SidechainBlockHeader::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SidechainBlockHeader& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SidechainBlockHeader::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SidechainBlockHeader& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SidechainBlockHeader) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // uint32 network = 1; + if ((this_._impl_._has_bits_[0] & 0x00000400u) != 0) { + if (this_._internal_network() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_network(), target); + } + } + + // bytes parent_id = 2; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_parent_id().empty()) { + const ::std::string& _s = this_._internal_parent_id(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + } + + // bytes justify_id = 3; + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_justify_id().empty()) { + const ::std::string& _s = this_._internal_justify_id(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + } + + // uint64 height = 4; + if ((this_._impl_._has_bits_[0] & 0x00000100u) != 0) { + if (this_._internal_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_height(), target); + } + } + + // uint64 epoch = 5; + if ((this_._impl_._has_bits_[0] & 0x00000200u) != 0) { + if (this_._internal_epoch() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 5, this_._internal_epoch(), target); + } + } + + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.ShardGroup shard_group = 6; + if ((cached_has_bits & 0x00000040u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.shard_group_, this_._impl_.shard_group_->GetCachedSize(), target, + stream); + } + + // bytes proposed_by = 7; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_proposed_by().empty()) { + const ::std::string& _s = this_._internal_proposed_by(); + target = stream->WriteBytesMaybeAliased(7, _s, target); + } + } + + // bytes state_merkle_root = 8; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_state_merkle_root().empty()) { + const ::std::string& _s = this_._internal_state_merkle_root(); + target = stream->WriteBytesMaybeAliased(8, _s, target); + } + } + + // bytes command_merkle_root = 9; + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_command_merkle_root().empty()) { + const ::std::string& _s = this_._internal_command_merkle_root(); + target = stream->WriteBytesMaybeAliased(9, _s, target); + } + } + + // bytes metadata_hash = 10; + if ((cached_has_bits & 0x00000020u) != 0) { + if (!this_._internal_metadata_hash().empty()) { + const ::std::string& _s = this_._internal_metadata_hash(); + target = stream->WriteBytesMaybeAliased(10, _s, target); + } + } + + // .tari.rpc.Signature signature = 11; + if ((cached_has_bits & 0x00000080u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, *this_._impl_.signature_, this_._impl_.signature_->GetCachedSize(), target, + stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SidechainBlockHeader) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SidechainBlockHeader::ByteSizeLong(const MessageLite& base) { + const SidechainBlockHeader& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SidechainBlockHeader::ByteSizeLong() const { + const SidechainBlockHeader& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.SidechainBlockHeader) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + // bytes parent_id = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_parent_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_parent_id()); + } + } + // bytes justify_id = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_justify_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_justify_id()); + } + } + // bytes proposed_by = 7; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_proposed_by().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_proposed_by()); + } + } + // bytes state_merkle_root = 8; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_state_merkle_root().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_state_merkle_root()); + } + } + // bytes command_merkle_root = 9; + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_command_merkle_root().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_command_merkle_root()); + } + } + // bytes metadata_hash = 10; + if ((cached_has_bits & 0x00000020u) != 0) { + if (!this_._internal_metadata_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_metadata_hash()); + } + } + // .tari.rpc.ShardGroup shard_group = 6; + if ((cached_has_bits & 0x00000040u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.shard_group_); + } + // .tari.rpc.Signature signature = 11; + if ((cached_has_bits & 0x00000080u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.signature_); + } + } + if ((cached_has_bits & 0x00000700u) != 0) { + // uint64 height = 4; + if ((cached_has_bits & 0x00000100u) != 0) { + if (this_._internal_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_height()); + } + } + // uint64 epoch = 5; + if ((cached_has_bits & 0x00000200u) != 0) { + if (this_._internal_epoch() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_epoch()); + } + } + // uint32 network = 1; + if ((cached_has_bits & 0x00000400u) != 0) { + if (this_._internal_network() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_network()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void SidechainBlockHeader::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.SidechainBlockHeader) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_parent_id().empty()) { + _this->_internal_set_parent_id(from._internal_parent_id()); + } else { + if (_this->_impl_.parent_id_.IsDefault()) { + _this->_internal_set_parent_id(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_justify_id().empty()) { + _this->_internal_set_justify_id(from._internal_justify_id()); + } else { + if (_this->_impl_.justify_id_.IsDefault()) { + _this->_internal_set_justify_id(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_proposed_by().empty()) { + _this->_internal_set_proposed_by(from._internal_proposed_by()); + } else { + if (_this->_impl_.proposed_by_.IsDefault()) { + _this->_internal_set_proposed_by(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_state_merkle_root().empty()) { + _this->_internal_set_state_merkle_root(from._internal_state_merkle_root()); + } else { + if (_this->_impl_.state_merkle_root_.IsDefault()) { + _this->_internal_set_state_merkle_root(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (!from._internal_command_merkle_root().empty()) { + _this->_internal_set_command_merkle_root(from._internal_command_merkle_root()); + } else { + if (_this->_impl_.command_merkle_root_.IsDefault()) { + _this->_internal_set_command_merkle_root(""); + } + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (!from._internal_metadata_hash().empty()) { + _this->_internal_set_metadata_hash(from._internal_metadata_hash()); + } else { + if (_this->_impl_.metadata_hash_.IsDefault()) { + _this->_internal_set_metadata_hash(""); + } + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + ABSL_DCHECK(from._impl_.shard_group_ != nullptr); + if (_this->_impl_.shard_group_ == nullptr) { + _this->_impl_.shard_group_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.shard_group_); + } else { + _this->_impl_.shard_group_->MergeFrom(*from._impl_.shard_group_); + } + } + if ((cached_has_bits & 0x00000080u) != 0) { + ABSL_DCHECK(from._impl_.signature_ != nullptr); + if (_this->_impl_.signature_ == nullptr) { + _this->_impl_.signature_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.signature_); + } else { + _this->_impl_.signature_->MergeFrom(*from._impl_.signature_); + } + } + } + if ((cached_has_bits & 0x00000700u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { + if (from._internal_height() != 0) { + _this->_impl_.height_ = from._impl_.height_; + } + } + if ((cached_has_bits & 0x00000200u) != 0) { + if (from._internal_epoch() != 0) { + _this->_impl_.epoch_ = from._impl_.epoch_; + } + } + if ((cached_has_bits & 0x00000400u) != 0) { + if (from._internal_network() != 0) { + _this->_impl_.network_ = from._impl_.network_; + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void SidechainBlockHeader::CopyFrom(const SidechainBlockHeader& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SidechainBlockHeader) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void SidechainBlockHeader::InternalSwap(SidechainBlockHeader* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_id_, &other->_impl_.parent_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.justify_id_, &other->_impl_.justify_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.proposed_by_, &other->_impl_.proposed_by_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.state_merkle_root_, &other->_impl_.state_merkle_root_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.command_merkle_root_, &other->_impl_.command_merkle_root_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.metadata_hash_, &other->_impl_.metadata_hash_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.network_) + + sizeof(SidechainBlockHeader::_impl_.network_) + - PROTOBUF_FIELD_OFFSET(SidechainBlockHeader, _impl_.shard_group_)>( + reinterpret_cast(&_impl_.shard_group_), + reinterpret_cast(&other->_impl_.shard_group_)); +} + +::google::protobuf::Metadata SidechainBlockHeader::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class ShardGroup::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShardGroup, _impl_._has_bits_); +}; + +ShardGroup::ShardGroup(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ShardGroup_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.ShardGroup) +} +ShardGroup::ShardGroup( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShardGroup& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ShardGroup_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} +PROTOBUF_NDEBUG_INLINE ShardGroup::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void ShardGroup::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, start_), + 0, + offsetof(Impl_, end_inclusive_) - + offsetof(Impl_, start_) + + sizeof(Impl_::end_inclusive_)); +} +ShardGroup::~ShardGroup() { + // @@protoc_insertion_point(destructor:tari.rpc.ShardGroup) + SharedDtor(*this); +} +inline void ShardGroup::SharedDtor(MessageLite& self) { + ShardGroup& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL ShardGroup::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ShardGroup(arena); +} +constexpr auto ShardGroup::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShardGroup), + alignof(ShardGroup)); +} +constexpr auto ShardGroup::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShardGroup_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShardGroup::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShardGroup::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShardGroup::ByteSizeLong, + &ShardGroup::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShardGroup, _impl_._cached_size_), + false, + }, + &ShardGroup::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShardGroup_class_data_ = + ShardGroup::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShardGroup::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShardGroup_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShardGroup_class_data_.tc_table); + return ShardGroup_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +ShardGroup::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ShardGroup, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + ShardGroup_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ShardGroup>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // uint32 end_inclusive = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShardGroup, _impl_.end_inclusive_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(ShardGroup, _impl_.end_inclusive_)}}, + // uint32 start = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShardGroup, _impl_.start_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(ShardGroup, _impl_.start_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // uint32 start = 1; + {PROTOBUF_FIELD_OFFSET(ShardGroup, _impl_.start_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // uint32 end_inclusive = 2; + {PROTOBUF_FIELD_OFFSET(ShardGroup, _impl_.end_inclusive_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void ShardGroup::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ShardGroup) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + ::memset(&_impl_.start_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.end_inclusive_) - + reinterpret_cast(&_impl_.start_)) + sizeof(_impl_.end_inclusive_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ShardGroup::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShardGroup& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ShardGroup::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShardGroup& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ShardGroup) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // uint32 start = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_start() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_start(), target); + } + } + + // uint32 end_inclusive = 2; + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_end_inclusive() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_end_inclusive(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ShardGroup) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ShardGroup::ByteSizeLong(const MessageLite& base) { + const ShardGroup& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShardGroup::ByteSizeLong() const { + const ShardGroup& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ShardGroup) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // uint32 start = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_start() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_start()); + } + } + // uint32 end_inclusive = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_end_inclusive() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_end_inclusive()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ShardGroup::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.ShardGroup) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_start() != 0) { + _this->_impl_.start_ = from._impl_.start_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_end_inclusive() != 0) { + _this->_impl_.end_inclusive_ = from._impl_.end_inclusive_; + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ShardGroup::CopyFrom(const ShardGroup& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ShardGroup) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void ShardGroup::InternalSwap(ShardGroup* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ShardGroup, _impl_.end_inclusive_) + + sizeof(ShardGroup::_impl_.end_inclusive_) + - PROTOBUF_FIELD_OFFSET(ShardGroup, _impl_.start_)>( + reinterpret_cast(&_impl_.start_), + reinterpret_cast(&other->_impl_.start_)); +} + +::google::protobuf::Metadata ShardGroup::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class EvictAtom::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EvictAtom, _impl_._has_bits_); +}; + +EvictAtom::EvictAtom(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, EvictAtom_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.EvictAtom) +} +PROTOBUF_NDEBUG_INLINE EvictAtom::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::EvictAtom& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + public_key_(arena, from.public_key_) {} + +EvictAtom::EvictAtom( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const EvictAtom& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, EvictAtom_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EvictAtom* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:tari.rpc.EvictAtom) +} +PROTOBUF_NDEBUG_INLINE EvictAtom::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + public_key_(arena) {} + +inline void EvictAtom::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +EvictAtom::~EvictAtom() { + // @@protoc_insertion_point(destructor:tari.rpc.EvictAtom) + SharedDtor(*this); +} +inline void EvictAtom::SharedDtor(MessageLite& self) { + EvictAtom& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_key_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL EvictAtom::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) EvictAtom(arena); +} +constexpr auto EvictAtom::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EvictAtom), + alignof(EvictAtom)); +} +constexpr auto EvictAtom::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_EvictAtom_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EvictAtom::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EvictAtom::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &EvictAtom::ByteSizeLong, + &EvictAtom::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EvictAtom, _impl_._cached_size_), + false, + }, + &EvictAtom::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull EvictAtom_class_data_ = + EvictAtom::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +EvictAtom::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&EvictAtom_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(EvictAtom_class_data_.tc_table); + return EvictAtom_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +EvictAtom::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EvictAtom, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + EvictAtom_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::EvictAtom>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // bytes public_key = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(EvictAtom, _impl_.public_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes public_key = 1; + {PROTOBUF_FIELD_OFFSET(EvictAtom, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void EvictAtom::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.EvictAtom) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL EvictAtom::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const EvictAtom& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL EvictAtom::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const EvictAtom& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.EvictAtom) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bytes public_key = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.EvictAtom) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t EvictAtom::ByteSizeLong(const MessageLite& base) { + const EvictAtom& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t EvictAtom::ByteSizeLong() const { + const EvictAtom& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.EvictAtom) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // bytes public_key = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void EvictAtom::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.EvictAtom) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_public_key().empty()) { + _this->_internal_set_public_key(from._internal_public_key()); + } else { + if (_this->_impl_.public_key_.IsDefault()) { + _this->_internal_set_public_key(""); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void EvictAtom::CopyFrom(const EvictAtom& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.EvictAtom) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void EvictAtom::InternalSwap(EvictAtom* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); +} + +::google::protobuf::Metadata EvictAtom::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class QuorumCertificate::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(QuorumCertificate, _impl_._has_bits_); +}; + +QuorumCertificate::QuorumCertificate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, QuorumCertificate_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.QuorumCertificate) +} +PROTOBUF_NDEBUG_INLINE QuorumCertificate::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::QuorumCertificate& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + signatures_{visibility, arena, from.signatures_}, + header_hash_(arena, from.header_hash_), + parent_id_(arena, from.parent_id_) {} + +QuorumCertificate::QuorumCertificate( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const QuorumCertificate& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, QuorumCertificate_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + QuorumCertificate* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.decision_ = from._impl_.decision_; + + // @@protoc_insertion_point(copy_constructor:tari.rpc.QuorumCertificate) +} +PROTOBUF_NDEBUG_INLINE QuorumCertificate::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + signatures_{visibility, arena}, + header_hash_(arena), + parent_id_(arena) {} + +inline void QuorumCertificate::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.decision_ = {}; +} +QuorumCertificate::~QuorumCertificate() { + // @@protoc_insertion_point(destructor:tari.rpc.QuorumCertificate) + SharedDtor(*this); +} +inline void QuorumCertificate::SharedDtor(MessageLite& self) { + QuorumCertificate& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.header_hash_.Destroy(); + this_._impl_.parent_id_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL QuorumCertificate::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) QuorumCertificate(arena); +} +constexpr auto QuorumCertificate::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(QuorumCertificate, _impl_.signatures_) + + decltype(QuorumCertificate::_impl_.signatures_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(QuorumCertificate), alignof(QuorumCertificate), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&QuorumCertificate::PlacementNew_, + sizeof(QuorumCertificate), + alignof(QuorumCertificate)); + } +} +constexpr auto QuorumCertificate::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_QuorumCertificate_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &QuorumCertificate::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &QuorumCertificate::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &QuorumCertificate::ByteSizeLong, + &QuorumCertificate::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(QuorumCertificate, _impl_._cached_size_), + false, + }, + &QuorumCertificate::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull QuorumCertificate_class_data_ = + QuorumCertificate::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +QuorumCertificate::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&QuorumCertificate_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(QuorumCertificate_class_data_.tc_table); + return QuorumCertificate_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> +QuorumCertificate::_table_ = { + { + PROTOBUF_FIELD_OFFSET(QuorumCertificate, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + QuorumCertificate_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::QuorumCertificate>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .tari.rpc.QuorumDecision decision = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(QuorumCertificate, _impl_.decision_), 2>(), + {32, 2, 0, PROTOBUF_FIELD_OFFSET(QuorumCertificate, _impl_.decision_)}}, + // bytes header_hash = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(QuorumCertificate, _impl_.header_hash_)}}, + // bytes parent_id = 2; + {::_pbi::TcParser::FastBS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(QuorumCertificate, _impl_.parent_id_)}}, + // repeated .tari.rpc.ValidatorSignature signatures = 3; + {::_pbi::TcParser::FastMtR1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(QuorumCertificate, _impl_.signatures_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes header_hash = 1; + {PROTOBUF_FIELD_OFFSET(QuorumCertificate, _impl_.header_hash_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes parent_id = 2; + {PROTOBUF_FIELD_OFFSET(QuorumCertificate, _impl_.parent_id_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // repeated .tari.rpc.ValidatorSignature signatures = 3; + {PROTOBUF_FIELD_OFFSET(QuorumCertificate, _impl_.signatures_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // .tari.rpc.QuorumDecision decision = 4; + {PROTOBUF_FIELD_OFFSET(QuorumCertificate, _impl_.decision_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::ValidatorSignature>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void QuorumCertificate::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.QuorumCertificate) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.signatures_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.header_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.parent_id_.ClearNonDefaultToEmpty(); + } + } + _impl_.decision_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL QuorumCertificate::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const QuorumCertificate& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL QuorumCertificate::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const QuorumCertificate& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.QuorumCertificate) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bytes header_hash = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_header_hash().empty()) { + const ::std::string& _s = this_._internal_header_hash(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + } + + // bytes parent_id = 2; + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_parent_id().empty()) { + const ::std::string& _s = this_._internal_parent_id(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + } + + // repeated .tari.rpc.ValidatorSignature signatures = 3; + 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( + 3, repfield, repfield.GetCachedSize(), + target, stream); + } + + // .tari.rpc.QuorumDecision decision = 4; + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_decision() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_decision(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.QuorumCertificate) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t QuorumCertificate::ByteSizeLong(const MessageLite& base) { + const QuorumCertificate& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t QuorumCertificate::ByteSizeLong() const { + const QuorumCertificate& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.QuorumCertificate) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .tari.rpc.ValidatorSignature signatures = 3; + { + total_size += 1UL * this_._internal_signatures_size(); + for (const auto& msg : this_._internal_signatures()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // bytes header_hash = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_header_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_header_hash()); + } + } + // bytes parent_id = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_parent_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_parent_id()); + } + } + // .tari.rpc.QuorumDecision decision = 4; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_decision() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_decision()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void QuorumCertificate::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.QuorumCertificate) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_signatures()->MergeFrom( + from._internal_signatures()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_header_hash().empty()) { + _this->_internal_set_header_hash(from._internal_header_hash()); + } else { + if (_this->_impl_.header_hash_.IsDefault()) { + _this->_internal_set_header_hash(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_parent_id().empty()) { + _this->_internal_set_parent_id(from._internal_parent_id()); + } else { + if (_this->_impl_.parent_id_.IsDefault()) { + _this->_internal_set_parent_id(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_decision() != 0) { + _this->_impl_.decision_ = from._impl_.decision_; + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void QuorumCertificate::CopyFrom(const QuorumCertificate& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.QuorumCertificate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void QuorumCertificate::InternalSwap(QuorumCertificate* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.signatures_.InternalSwap(&other->_impl_.signatures_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.header_hash_, &other->_impl_.header_hash_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_id_, &other->_impl_.parent_id_, arena); + swap(_impl_.decision_, other->_impl_.decision_); +} + +::google::protobuf::Metadata QuorumCertificate::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class ValidatorSignature::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ValidatorSignature, _impl_._has_bits_); +}; + +void ValidatorSignature::clear_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.signature_ != nullptr) _impl_.signature_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +ValidatorSignature::ValidatorSignature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValidatorSignature_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:tari.rpc.ValidatorSignature) +} +PROTOBUF_NDEBUG_INLINE ValidatorSignature::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ValidatorSignature& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + public_key_(arena, from.public_key_) {} + +ValidatorSignature::ValidatorSignature( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ValidatorSignature& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ValidatorSignature_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ValidatorSignature* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.signature_ = ((cached_has_bits & 0x00000002u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.signature_) + : nullptr; + + // @@protoc_insertion_point(copy_constructor:tari.rpc.ValidatorSignature) +} +PROTOBUF_NDEBUG_INLINE ValidatorSignature::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + public_key_(arena) {} + +inline void ValidatorSignature::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.signature_ = {}; +} +ValidatorSignature::~ValidatorSignature() { + // @@protoc_insertion_point(destructor:tari.rpc.ValidatorSignature) + SharedDtor(*this); +} +inline void ValidatorSignature::SharedDtor(MessageLite& self) { + ValidatorSignature& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_key_.Destroy(); + delete this_._impl_.signature_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL ValidatorSignature::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ValidatorSignature(arena); +} +constexpr auto ValidatorSignature::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ValidatorSignature), + alignof(ValidatorSignature)); +} +constexpr auto ValidatorSignature::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ValidatorSignature_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ValidatorSignature::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ValidatorSignature::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ValidatorSignature::ByteSizeLong, + &ValidatorSignature::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ValidatorSignature, _impl_._cached_size_), + false, + }, + &ValidatorSignature::kDescriptorMethods, + &descriptor_table_sidechain_5ftypes_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ValidatorSignature_class_data_ = + ValidatorSignature::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ValidatorSignature::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ValidatorSignature_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ValidatorSignature_class_data_.tc_table); + return ValidatorSignature_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +ValidatorSignature::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ValidatorSignature, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + ValidatorSignature_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ValidatorSignature>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .tari.rpc.Signature signature = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(ValidatorSignature, _impl_.signature_)}}, + // bytes public_key = 1; + {::_pbi::TcParser::FastBS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ValidatorSignature, _impl_.public_key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes public_key = 1; + {PROTOBUF_FIELD_OFFSET(ValidatorSignature, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // .tari.rpc.Signature signature = 2; + {PROTOBUF_FIELD_OFFSET(ValidatorSignature, _impl_.signature_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void ValidatorSignature::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ValidatorSignature) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(_impl_.signature_ != nullptr); + _impl_.signature_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ValidatorSignature::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ValidatorSignature& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ValidatorSignature::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ValidatorSignature& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ValidatorSignature) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bytes public_key = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + const ::std::string& _s = this_._internal_public_key(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + } + + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.Signature signature = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.signature_, this_._impl_.signature_->GetCachedSize(), target, + stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ValidatorSignature) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ValidatorSignature::ByteSizeLong(const MessageLite& base) { + const ValidatorSignature& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ValidatorSignature::ByteSizeLong() const { + const ValidatorSignature& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ValidatorSignature) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes public_key = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_key()); + } + } + // .tari.rpc.Signature signature = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.signature_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ValidatorSignature::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.ValidatorSignature) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_public_key().empty()) { + _this->_internal_set_public_key(from._internal_public_key()); + } else { + if (_this->_impl_.public_key_.IsDefault()) { + _this->_internal_set_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(from._impl_.signature_ != nullptr); + if (_this->_impl_.signature_ == nullptr) { + _this->_impl_.signature_ = ::google::protobuf::Message::CopyConstruct(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_); +} + +void ValidatorSignature::CopyFrom(const ValidatorSignature& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ValidatorSignature) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void ValidatorSignature::InternalSwap(ValidatorSignature* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); + swap(_impl_.signature_, other->_impl_.signature_); +} + +::google::protobuf::Metadata ValidatorSignature::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -2485,8 +8549,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{}); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ [[maybe_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 c7e4121..87aaed2 100644 --- a/external/src/Tari/proto/gRPC/sidechain_types.pb.h +++ b/external/src/Tari/proto/gRPC/sidechain_types.pb.h @@ -1,22 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: sidechain_types.proto -// Protobuf C++ Version: 5.26.1 +// Protobuf C++ Version: 6.31.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_sidechain_5ftypes_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_sidechain_5ftypes_2eproto_2epb_2eh +#ifndef sidechain_5ftypes_2eproto_2epb_2eh +#define sidechain_5ftypes_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026001 +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6031001 #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" #include "google/protobuf/arenastring.h" @@ -26,8 +26,10 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_reflection.h" #include "google/protobuf/unknown_field_set.h" #include "types.pb.h" // @@protoc_insertion_point(includes) @@ -40,7 +42,8 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal } // namespace protobuf } // namespace google @@ -49,46 +52,153 @@ class AnyMetadata; struct TableStruct_sidechain_5ftypes_2eproto { static const ::uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_sidechain_5ftypes_2eproto; +extern "C" { +extern const ::google::protobuf::internal::DescriptorTable descriptor_table_sidechain_5ftypes_2eproto; +} // extern "C" namespace tari { namespace rpc { +enum QuorumDecision : int; +extern const uint32_t QuorumDecision_internal_data_[]; class BuildInfo; struct BuildInfoDefaultTypeInternal; extern BuildInfoDefaultTypeInternal _BuildInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull BuildInfo_class_data_; +class ChainLink; +struct ChainLinkDefaultTypeInternal; +extern ChainLinkDefaultTypeInternal _ChainLink_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ChainLink_class_data_; +class CommitProof; +struct CommitProofDefaultTypeInternal; +extern CommitProofDefaultTypeInternal _CommitProof_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull CommitProof_class_data_; +class CommitProofElement; +struct CommitProofElementDefaultTypeInternal; +extern CommitProofElementDefaultTypeInternal _CommitProofElement_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull CommitProofElement_class_data_; +class CommitProofV1; +struct CommitProofV1DefaultTypeInternal; +extern CommitProofV1DefaultTypeInternal _CommitProofV1_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull CommitProofV1_class_data_; class ConfidentialOutputData; struct ConfidentialOutputDataDefaultTypeInternal; extern ConfidentialOutputDataDefaultTypeInternal _ConfidentialOutputData_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ConfidentialOutputData_class_data_; +class DummyChain; +struct DummyChainDefaultTypeInternal; +extern DummyChainDefaultTypeInternal _DummyChain_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull DummyChain_class_data_; +class EvictAtom; +struct EvictAtomDefaultTypeInternal; +extern EvictAtomDefaultTypeInternal _EvictAtom_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull EvictAtom_class_data_; +class EvictionProof; +struct EvictionProofDefaultTypeInternal; +extern EvictionProofDefaultTypeInternal _EvictionProof_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull EvictionProof_class_data_; class FlowInfo; struct FlowInfoDefaultTypeInternal; extern FlowInfoDefaultTypeInternal _FlowInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull FlowInfo_class_data_; class ManifestInfo; struct ManifestInfoDefaultTypeInternal; extern ManifestInfoDefaultTypeInternal _ManifestInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ManifestInfo_class_data_; +class QuorumCertificate; +struct QuorumCertificateDefaultTypeInternal; +extern QuorumCertificateDefaultTypeInternal _QuorumCertificate_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull QuorumCertificate_class_data_; +class ShardGroup; +struct ShardGroupDefaultTypeInternal; +extern ShardGroupDefaultTypeInternal _ShardGroup_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShardGroup_class_data_; class SideChainFeature; struct SideChainFeatureDefaultTypeInternal; extern SideChainFeatureDefaultTypeInternal _SideChainFeature_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SideChainFeature_class_data_; +class SideChainId; +struct SideChainIdDefaultTypeInternal; +extern SideChainIdDefaultTypeInternal _SideChainId_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SideChainId_class_data_; +class SidechainBlockCommitProof; +struct SidechainBlockCommitProofDefaultTypeInternal; +extern SidechainBlockCommitProofDefaultTypeInternal _SidechainBlockCommitProof_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SidechainBlockCommitProof_class_data_; +class SidechainBlockHeader; +struct SidechainBlockHeaderDefaultTypeInternal; +extern SidechainBlockHeaderDefaultTypeInternal _SidechainBlockHeader_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull SidechainBlockHeader_class_data_; class TemplateRegistration; struct TemplateRegistrationDefaultTypeInternal; extern TemplateRegistrationDefaultTypeInternal _TemplateRegistration_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull TemplateRegistration_class_data_; class TemplateType; struct TemplateTypeDefaultTypeInternal; extern TemplateTypeDefaultTypeInternal _TemplateType_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull TemplateType_class_data_; +class ValidatorNodeExit; +struct ValidatorNodeExitDefaultTypeInternal; +extern ValidatorNodeExitDefaultTypeInternal _ValidatorNodeExit_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ValidatorNodeExit_class_data_; class ValidatorNodeRegistration; struct ValidatorNodeRegistrationDefaultTypeInternal; extern ValidatorNodeRegistrationDefaultTypeInternal _ValidatorNodeRegistration_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ValidatorNodeRegistration_class_data_; +class ValidatorSignature; +struct ValidatorSignatureDefaultTypeInternal; +extern ValidatorSignatureDefaultTypeInternal _ValidatorSignature_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ValidatorSignature_class_data_; class WasmInfo; struct WasmInfoDefaultTypeInternal; extern WasmInfoDefaultTypeInternal _WasmInfo_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull WasmInfo_class_data_; } // namespace rpc } // namespace tari namespace google { namespace protobuf { +template <> +internal::EnumTraitsT<::tari::rpc::QuorumDecision_internal_data_> + internal::EnumTraitsImpl::value<::tari::rpc::QuorumDecision>; } // namespace protobuf } // namespace google namespace tari { namespace rpc { +enum QuorumDecision : int { + Accept = 0, + Reject = 1, + QuorumDecision_INT_MIN_SENTINEL_DO_NOT_USE_ = + ::std::numeric_limits<::int32_t>::min(), + QuorumDecision_INT_MAX_SENTINEL_DO_NOT_USE_ = + ::std::numeric_limits<::int32_t>::max(), +}; + +extern const uint32_t QuorumDecision_internal_data_[]; +inline constexpr QuorumDecision QuorumDecision_MIN = + static_cast(0); +inline constexpr QuorumDecision QuorumDecision_MAX = + static_cast(1); +inline bool QuorumDecision_IsValid(int value) { + return 0 <= value && value <= 1; +} +inline constexpr int QuorumDecision_ARRAYSIZE = 1 + 1; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL QuorumDecision_descriptor(); +template +const ::std::string& QuorumDecision_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to QuorumDecision_Name()."); + return QuorumDecision_Name(static_cast(value)); +} +template <> +inline const ::std::string& QuorumDecision_Name(QuorumDecision value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool QuorumDecision_Parse( + ::absl::string_view name, QuorumDecision* PROTOBUF_NONNULL value) { + return ::google::protobuf::internal::ParseNamedEnum(QuorumDecision_descriptor(), name, + value); +} // =================================================================== @@ -99,25 +209,28 @@ class WasmInfo final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.WasmInfo) */ { public: inline WasmInfo() : WasmInfo(nullptr) {} - ~WasmInfo() override; + ~WasmInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(WasmInfo* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(WasmInfo)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR WasmInfo( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : WasmInfo(nullptr, ::std::move(from)) {} inline WasmInfo& operator=(const WasmInfo& from) { CopyFrom(from); return *this; } inline WasmInfo& operator=(WasmInfo&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -129,42 +242,35 @@ class WasmInfo final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const WasmInfo& default_instance() { - return *internal_default_instance(); - } - static inline const WasmInfo* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_WasmInfo_default_instance_); } - static constexpr int kIndexInFileMessages = 5; + static constexpr int kIndexInFileMessages = 7; friend void swap(WasmInfo& a, WasmInfo& b) { a.Swap(&b); } - inline void Swap(WasmInfo* other) { + inline void Swap(WasmInfo* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(WasmInfo* other) { + void UnsafeArenaSwap(WasmInfo* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -172,7 +278,7 @@ class WasmInfo final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - WasmInfo* New(::google::protobuf::Arena* arena = nullptr) const final { + WasmInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -181,41 +287,63 @@ class WasmInfo final : public ::google::protobuf::Message void MergeFrom(const WasmInfo& from) { WasmInfo::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(WasmInfo* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(WasmInfo* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.WasmInfo"; } protected: - explicit WasmInfo(::google::protobuf::Arena* arena); - WasmInfo(::google::protobuf::Arena* arena, const WasmInfo& from); - WasmInfo(::google::protobuf::Arena* arena, WasmInfo&& from) noexcept + explicit WasmInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + WasmInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const WasmInfo& from); + WasmInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, WasmInfo&& from) noexcept : WasmInfo(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -236,10 +364,11 @@ class WasmInfo final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -247,43 +376,52 @@ class WasmInfo final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const WasmInfo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint32_t abi_version_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull WasmInfo_class_data_; // ------------------------------------------------------------------- -class ManifestInfo final : public ::google::protobuf::internal::ZeroFieldsBase -/* @@protoc_insertion_point(class_definition:tari.rpc.ManifestInfo) */ { +class ShardGroup final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ShardGroup) */ { public: - inline ManifestInfo() : ManifestInfo(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ManifestInfo( - ::google::protobuf::internal::ConstantInitialized); + inline ShardGroup() : ShardGroup(nullptr) {} + ~ShardGroup() PROTOBUF_FINAL; - inline ManifestInfo(const ManifestInfo& from) : ManifestInfo(nullptr, from) {} - inline ManifestInfo(ManifestInfo&& from) noexcept - : ManifestInfo(nullptr, std::move(from)) {} - inline ManifestInfo& operator=(const ManifestInfo& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ShardGroup* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ShardGroup)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ShardGroup(::google::protobuf::internal::ConstantInitialized); + + inline ShardGroup(const ShardGroup& from) : ShardGroup(nullptr, from) {} + inline ShardGroup(ShardGroup&& from) noexcept + : ShardGroup(nullptr, ::std::move(from)) {} + inline ShardGroup& operator=(const ShardGroup& from) { CopyFrom(from); return *this; } - inline ManifestInfo& operator=(ManifestInfo&& from) noexcept { + inline ShardGroup& operator=(ShardGroup&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -295,42 +433,35 @@ class ManifestInfo final : public ::google::protobuf::internal::ZeroFieldsBase ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const ManifestInfo& default_instance() { - return *internal_default_instance(); + static const ShardGroup& default_instance() { + return *reinterpret_cast( + &_ShardGroup_default_instance_); } - 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); } - inline void Swap(ManifestInfo* other) { + static constexpr int kIndexInFileMessages = 19; + friend void swap(ShardGroup& a, ShardGroup& b) { a.Swap(&b); } + inline void Swap(ShardGroup* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ManifestInfo* other) { + void UnsafeArenaSwap(ShardGroup* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -338,7 +469,209 @@ class ManifestInfo final : public ::google::protobuf::internal::ZeroFieldsBase // implements Message ---------------------------------------------- - ManifestInfo* New(::google::protobuf::Arena* arena = nullptr) const final { + ShardGroup* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ShardGroup& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ShardGroup& from) { ShardGroup::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ShardGroup* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.ShardGroup"; } + + protected: + explicit ShardGroup(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShardGroup(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShardGroup& from); + ShardGroup( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShardGroup&& from) noexcept + : ShardGroup(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kStartFieldNumber = 1, + kEndInclusiveFieldNumber = 2, + }; + // uint32 start = 1; + void clear_start() ; + ::uint32_t start() const; + void set_start(::uint32_t value); + + private: + ::uint32_t _internal_start() const; + void _internal_set_start(::uint32_t value); + + public: + // uint32 end_inclusive = 2; + void clear_end_inclusive() ; + ::uint32_t end_inclusive() const; + void set_end_inclusive(::uint32_t value); + + private: + ::uint32_t _internal_end_inclusive() const; + void _internal_set_end_inclusive(::uint32_t value); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.ShardGroup) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShardGroup& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t start_; + ::uint32_t end_inclusive_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull ShardGroup_class_data_; +// ------------------------------------------------------------------- + +class ManifestInfo final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:tari.rpc.ManifestInfo) */ { + public: + inline ManifestInfo() : ManifestInfo(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ManifestInfo* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ManifestInfo)); + } +#endif + + 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; + } + inline ManifestInfo& operator=(ManifestInfo&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ManifestInfo& default_instance() { + return *reinterpret_cast( + &_ManifestInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = 9; + friend void swap(ManifestInfo& a, ManifestInfo& b) { a.Swap(&b); } + inline void Swap(ManifestInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ManifestInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ManifestInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; @@ -351,26 +684,44 @@ class ManifestInfo final : public ::google::protobuf::internal::ZeroFieldsBase } public: + bool IsInitialized() const { + return true; + } private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.ManifestInfo"; } protected: - explicit ManifestInfo(::google::protobuf::Arena* arena); - ManifestInfo(::google::protobuf::Arena* arena, const ManifestInfo& from); - ManifestInfo(::google::protobuf::Arena* arena, ManifestInfo&& from) noexcept + explicit ManifestInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ManifestInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ManifestInfo& from); + ManifestInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ManifestInfo&& from) noexcept : ManifestInfo(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // @@protoc_insertion_point(class_scope:tari.rpc.ManifestInfo) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -378,40 +729,47 @@ class ManifestInfo final : public ::google::protobuf::internal::ZeroFieldsBase 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ManifestInfo& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ManifestInfo_class_data_; // ------------------------------------------------------------------- class FlowInfo final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:tari.rpc.FlowInfo) */ { public: inline FlowInfo() : FlowInfo(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(FlowInfo* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(FlowInfo)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR FlowInfo( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : FlowInfo(nullptr, ::std::move(from)) {} inline FlowInfo& operator=(const FlowInfo& from) { CopyFrom(from); return *this; } inline FlowInfo& operator=(FlowInfo&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -423,42 +781,35 @@ class FlowInfo final : public ::google::protobuf::internal::ZeroFieldsBase ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const FlowInfo& default_instance() { - return *internal_default_instance(); - } - static inline const FlowInfo* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_FlowInfo_default_instance_); } - static constexpr int kIndexInFileMessages = 6; + static constexpr int kIndexInFileMessages = 8; friend void swap(FlowInfo& a, FlowInfo& b) { a.Swap(&b); } - inline void Swap(FlowInfo* other) { + inline void Swap(FlowInfo* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlowInfo* other) { + void UnsafeArenaSwap(FlowInfo* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -466,7 +817,7 @@ class FlowInfo final : public ::google::protobuf::internal::ZeroFieldsBase // implements Message ---------------------------------------------- - FlowInfo* New(::google::protobuf::Arena* arena = nullptr) const final { + FlowInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; @@ -479,26 +830,44 @@ class FlowInfo final : public ::google::protobuf::internal::ZeroFieldsBase } public: + bool IsInitialized() const { + return true; + } private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.FlowInfo"; } protected: - explicit FlowInfo(::google::protobuf::Arena* arena); - FlowInfo(::google::protobuf::Arena* arena, const FlowInfo& from); - FlowInfo(::google::protobuf::Arena* arena, FlowInfo&& from) noexcept + explicit FlowInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + FlowInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FlowInfo& from); + FlowInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, FlowInfo&& from) noexcept : FlowInfo(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // @@protoc_insertion_point(class_scope:tari.rpc.FlowInfo) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -506,41 +875,48 @@ class FlowInfo final : public ::google::protobuf::internal::ZeroFieldsBase 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const FlowInfo& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull FlowInfo_class_data_; // ------------------------------------------------------------------- -class ConfidentialOutputData final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ConfidentialOutputData) */ { +class EvictAtom final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.EvictAtom) */ { public: - inline ConfidentialOutputData() : ConfidentialOutputData(nullptr) {} - ~ConfidentialOutputData() override; - template - explicit PROTOBUF_CONSTEXPR ConfidentialOutputData( - ::google::protobuf::internal::ConstantInitialized); + inline EvictAtom() : EvictAtom(nullptr) {} + ~EvictAtom() PROTOBUF_FINAL; - inline ConfidentialOutputData(const ConfidentialOutputData& from) : ConfidentialOutputData(nullptr, from) {} - inline ConfidentialOutputData(ConfidentialOutputData&& from) noexcept - : ConfidentialOutputData(nullptr, std::move(from)) {} - inline ConfidentialOutputData& operator=(const ConfidentialOutputData& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EvictAtom* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EvictAtom)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR EvictAtom(::google::protobuf::internal::ConstantInitialized); + + inline EvictAtom(const EvictAtom& from) : EvictAtom(nullptr, from) {} + inline EvictAtom(EvictAtom&& from) noexcept + : EvictAtom(nullptr, ::std::move(from)) {} + inline EvictAtom& operator=(const EvictAtom& from) { CopyFrom(from); return *this; } - inline ConfidentialOutputData& operator=(ConfidentialOutputData&& from) noexcept { + inline EvictAtom& operator=(EvictAtom&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -552,42 +928,35 @@ class ConfidentialOutputData final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const ConfidentialOutputData& default_instance() { - return *internal_default_instance(); + static const EvictAtom& default_instance() { + return *reinterpret_cast( + &_EvictAtom_default_instance_); } - 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); } - inline void Swap(ConfidentialOutputData* other) { + static constexpr int kIndexInFileMessages = 20; + friend void swap(EvictAtom& a, EvictAtom& b) { a.Swap(&b); } + inline void Swap(EvictAtom* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConfidentialOutputData* other) { + void UnsafeArenaSwap(EvictAtom* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -595,7 +964,203 @@ class ConfidentialOutputData final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ConfidentialOutputData* New(::google::protobuf::Arena* arena = nullptr) const final { + EvictAtom* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const EvictAtom& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const EvictAtom& from) { EvictAtom::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(EvictAtom* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.EvictAtom"; } + + protected: + explicit EvictAtom(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + EvictAtom(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const EvictAtom& from); + EvictAtom( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, EvictAtom&& from) noexcept + : EvictAtom(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPublicKeyFieldNumber = 1, + }; + // bytes public_key = 1; + void clear_public_key() ; + const ::std::string& public_key() const; + template + void set_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.EvictAtom) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const EvictAtom& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull EvictAtom_class_data_; +// ------------------------------------------------------------------- + +class ConfidentialOutputData final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ConfidentialOutputData) */ { + public: + inline ConfidentialOutputData() : ConfidentialOutputData(nullptr) {} + ~ConfidentialOutputData() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConfidentialOutputData* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConfidentialOutputData)); + } +#endif + + 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; + } + inline ConfidentialOutputData& operator=(ConfidentialOutputData&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ConfidentialOutputData& default_instance() { + return *reinterpret_cast( + &_ConfidentialOutputData_default_instance_); + } + static constexpr int kIndexInFileMessages = 5; + friend void swap(ConfidentialOutputData& a, ConfidentialOutputData& b) { a.Swap(&b); } + inline void Swap(ConfidentialOutputData* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ConfidentialOutputData* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConfidentialOutputData* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -604,41 +1169,63 @@ class ConfidentialOutputData final : public ::google::protobuf::Message void MergeFrom(const ConfidentialOutputData& from) { ConfidentialOutputData::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ConfidentialOutputData* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConfidentialOutputData* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.ConfidentialOutputData"; } protected: - explicit ConfidentialOutputData(::google::protobuf::Arena* arena); - ConfidentialOutputData(::google::protobuf::Arena* arena, const ConfidentialOutputData& from); - ConfidentialOutputData(::google::protobuf::Arena* arena, ConfidentialOutputData&& from) noexcept + explicit ConfidentialOutputData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConfidentialOutputData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConfidentialOutputData& from); + ConfidentialOutputData( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConfidentialOutputData&& from) noexcept : ConfidentialOutputData(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -647,28 +1234,28 @@ class ConfidentialOutputData final : public ::google::protobuf::Message }; // bytes claim_public_key = 1; void clear_claim_public_key() ; - const std::string& claim_public_key() const; - template + const ::std::string& claim_public_key() const; + template void set_claim_public_key(Arg_&& arg, Args_... args); - std::string* mutable_claim_public_key(); - PROTOBUF_NODISCARD std::string* release_claim_public_key(); - void set_allocated_claim_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_claim_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_claim_public_key(); + void set_allocated_claim_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_claim_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_claim_public_key( - const std::string& value); - std::string* _internal_mutable_claim_public_key(); + const ::std::string& _internal_claim_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_claim_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_claim_public_key(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -676,44 +1263,52 @@ class ConfidentialOutputData final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConfidentialOutputData& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::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; }; + +extern const ::google::protobuf::internal::ClassDataFull ConfidentialOutputData_class_data_; // ------------------------------------------------------------------- -class BuildInfo final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.BuildInfo) */ { +class ChainLink final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ChainLink) */ { public: - inline BuildInfo() : BuildInfo(nullptr) {} - ~BuildInfo() override; - template - explicit PROTOBUF_CONSTEXPR BuildInfo( - ::google::protobuf::internal::ConstantInitialized); + inline ChainLink() : ChainLink(nullptr) {} + ~ChainLink() PROTOBUF_FINAL; - inline BuildInfo(const BuildInfo& from) : BuildInfo(nullptr, from) {} - inline BuildInfo(BuildInfo&& from) noexcept - : BuildInfo(nullptr, std::move(from)) {} - inline BuildInfo& operator=(const BuildInfo& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ChainLink* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ChainLink)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ChainLink(::google::protobuf::internal::ConstantInitialized); + + inline ChainLink(const ChainLink& from) : ChainLink(nullptr, from) {} + inline ChainLink(ChainLink&& from) noexcept + : ChainLink(nullptr, ::std::move(from)) {} + inline ChainLink& operator=(const ChainLink& from) { CopyFrom(from); return *this; } - inline BuildInfo& operator=(BuildInfo&& from) noexcept { + inline ChainLink& operator=(ChainLink&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -725,42 +1320,35 @@ class BuildInfo final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const BuildInfo& default_instance() { - return *internal_default_instance(); + static const ChainLink& default_instance() { + return *reinterpret_cast( + &_ChainLink_default_instance_); } - 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); } - inline void Swap(BuildInfo* other) { + static constexpr int kIndexInFileMessages = 17; + friend void swap(ChainLink& a, ChainLink& b) { a.Swap(&b); } + inline void Swap(ChainLink* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BuildInfo* other) { + void UnsafeArenaSwap(ChainLink* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -768,7 +1356,220 @@ class BuildInfo final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - BuildInfo* New(::google::protobuf::Arena* arena = nullptr) const final { + ChainLink* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ChainLink& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ChainLink& from) { ChainLink::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ChainLink* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.ChainLink"; } + + protected: + explicit ChainLink(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ChainLink(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChainLink& from); + ChainLink( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ChainLink&& from) noexcept + : ChainLink(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kHeaderHashFieldNumber = 1, + kParentIdFieldNumber = 2, + }; + // bytes header_hash = 1; + void clear_header_hash() ; + const ::std::string& header_hash() const; + template + void set_header_hash(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_header_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_header_hash(); + void set_allocated_header_hash(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_header_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_header_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_header_hash(); + + public: + // bytes parent_id = 2; + void clear_parent_id() ; + const ::std::string& parent_id() const; + template + void set_parent_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_parent_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_parent_id(); + void set_allocated_parent_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_parent_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_parent_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_parent_id(); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.ChainLink) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ChainLink& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr header_hash_; + ::google::protobuf::internal::ArenaStringPtr parent_id_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull ChainLink_class_data_; +// ------------------------------------------------------------------- + +class BuildInfo final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.BuildInfo) */ { + public: + inline BuildInfo() : BuildInfo(nullptr) {} + ~BuildInfo() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BuildInfo* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BuildInfo)); + } +#endif + + 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; + } + inline BuildInfo& operator=(BuildInfo&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const BuildInfo& default_instance() { + return *reinterpret_cast( + &_BuildInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = 10; + friend void swap(BuildInfo& a, BuildInfo& b) { a.Swap(&b); } + inline void Swap(BuildInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BuildInfo* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BuildInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -777,41 +1578,63 @@ class BuildInfo final : public ::google::protobuf::Message void MergeFrom(const BuildInfo& from) { BuildInfo::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BuildInfo* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BuildInfo* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.BuildInfo"; } protected: - explicit BuildInfo(::google::protobuf::Arena* arena); - BuildInfo(::google::protobuf::Arena* arena, const BuildInfo& from); - BuildInfo(::google::protobuf::Arena* arena, BuildInfo&& from) noexcept + explicit BuildInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BuildInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BuildInfo& from); + BuildInfo( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BuildInfo&& from) noexcept : BuildInfo(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -821,44 +1644,43 @@ class BuildInfo final : public ::google::protobuf::Message }; // string repo_url = 1; void clear_repo_url() ; - const std::string& repo_url() const; - template + const ::std::string& repo_url() const; + template void set_repo_url(Arg_&& arg, Args_... args); - std::string* mutable_repo_url(); - PROTOBUF_NODISCARD std::string* release_repo_url(); - void set_allocated_repo_url(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_repo_url(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_repo_url(); + void set_allocated_repo_url(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_repo_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_repo_url( - const std::string& value); - std::string* _internal_mutable_repo_url(); + const ::std::string& _internal_repo_url() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_repo_url(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_repo_url(); public: // bytes commit_hash = 2; void clear_commit_hash() ; - const std::string& commit_hash() const; - template + const ::std::string& commit_hash() const; + template void set_commit_hash(Arg_&& arg, Args_... args); - std::string* mutable_commit_hash(); - PROTOBUF_NODISCARD std::string* release_commit_hash(); - void set_allocated_commit_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_commit_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_commit_hash(); + void set_allocated_commit_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_commit_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_commit_hash( - const std::string& value); - std::string* _internal_mutable_commit_hash(); + const ::std::string& _internal_commit_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_commit_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_commit_hash(); public: // @@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, - 35, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 35, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -866,45 +1688,53 @@ class BuildInfo final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BuildInfo& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr repo_url_; ::google::protobuf::internal::ArenaStringPtr commit_hash_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull BuildInfo_class_data_; // ------------------------------------------------------------------- -class ValidatorNodeRegistration final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ValidatorNodeRegistration) */ { +class ValidatorSignature final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ValidatorSignature) */ { public: - inline ValidatorNodeRegistration() : ValidatorNodeRegistration(nullptr) {} - ~ValidatorNodeRegistration() override; - template - explicit PROTOBUF_CONSTEXPR ValidatorNodeRegistration( - ::google::protobuf::internal::ConstantInitialized); + inline ValidatorSignature() : ValidatorSignature(nullptr) {} + ~ValidatorSignature() PROTOBUF_FINAL; - inline ValidatorNodeRegistration(const ValidatorNodeRegistration& from) : ValidatorNodeRegistration(nullptr, from) {} - inline ValidatorNodeRegistration(ValidatorNodeRegistration&& from) noexcept - : ValidatorNodeRegistration(nullptr, std::move(from)) {} - inline ValidatorNodeRegistration& operator=(const ValidatorNodeRegistration& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ValidatorSignature* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ValidatorSignature)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ValidatorSignature(::google::protobuf::internal::ConstantInitialized); + + inline ValidatorSignature(const ValidatorSignature& from) : ValidatorSignature(nullptr, from) {} + inline ValidatorSignature(ValidatorSignature&& from) noexcept + : ValidatorSignature(nullptr, ::std::move(from)) {} + inline ValidatorSignature& operator=(const ValidatorSignature& from) { CopyFrom(from); return *this; } - inline ValidatorNodeRegistration& operator=(ValidatorNodeRegistration&& from) noexcept { + inline ValidatorSignature& operator=(ValidatorSignature&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -916,42 +1746,35 @@ class ValidatorNodeRegistration final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const ValidatorNodeRegistration& default_instance() { - return *internal_default_instance(); + static const ValidatorSignature& default_instance() { + return *reinterpret_cast( + &_ValidatorSignature_default_instance_); } - 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); } - inline void Swap(ValidatorNodeRegistration* other) { + static constexpr int kIndexInFileMessages = 22; + friend void swap(ValidatorSignature& a, ValidatorSignature& b) { a.Swap(&b); } + inline void Swap(ValidatorSignature* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ValidatorNodeRegistration* other) { + void UnsafeArenaSwap(ValidatorSignature* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -959,50 +1782,72 @@ class ValidatorNodeRegistration final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ValidatorNodeRegistration* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); + ValidatorSignature* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ValidatorNodeRegistration& from); + void CopyFrom(const ValidatorSignature& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ValidatorNodeRegistration& from) { ValidatorNodeRegistration::MergeImpl(*this, from); } + void MergeFrom(const ValidatorSignature& from) { ValidatorSignature::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ValidatorNodeRegistration* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ValidatorSignature* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.ValidatorNodeRegistration"; } + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.ValidatorSignature"; } protected: - explicit ValidatorNodeRegistration(::google::protobuf::Arena* arena); - ValidatorNodeRegistration(::google::protobuf::Arena* arena, const ValidatorNodeRegistration& from); - ValidatorNodeRegistration(::google::protobuf::Arena* arena, ValidatorNodeRegistration&& from) noexcept - : ValidatorNodeRegistration(arena) { + explicit ValidatorSignature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ValidatorSignature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ValidatorSignature& from); + ValidatorSignature( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ValidatorSignature&& from) noexcept + : ValidatorSignature(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1012,43 +1857,43 @@ class ValidatorNodeRegistration final : public ::google::protobuf::Message }; // bytes public_key = 1; void clear_public_key() ; - const std::string& public_key() const; - template + const ::std::string& public_key() const; + template void set_public_key(Arg_&& arg, Args_... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key( - const std::string& value); - std::string* _internal_mutable_public_key(); + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); public: // .tari.rpc.Signature signature = 2; bool has_signature() const; void clear_signature() ; const ::tari::rpc::Signature& signature() const; - PROTOBUF_NODISCARD ::tari::rpc::Signature* release_signature(); - ::tari::rpc::Signature* mutable_signature(); - void set_allocated_signature(::tari::rpc::Signature* value); - void unsafe_arena_set_allocated_signature(::tari::rpc::Signature* value); - ::tari::rpc::Signature* unsafe_arena_release_signature(); + [[nodiscard]] ::tari::rpc::Signature* PROTOBUF_NULLABLE release_signature(); + ::tari::rpc::Signature* PROTOBUF_NONNULL mutable_signature(); + void set_allocated_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + ::tari::rpc::Signature* PROTOBUF_NULLABLE unsafe_arena_release_signature(); private: const ::tari::rpc::Signature& _internal_signature() const; - ::tari::rpc::Signature* _internal_mutable_signature(); + ::tari::rpc::Signature* PROTOBUF_NONNULL _internal_mutable_signature(); public: - // @@protoc_insertion_point(class_scope:tari.rpc.ValidatorNodeRegistration) + // @@protoc_insertion_point(class_scope:tari.rpc.ValidatorSignature) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1056,46 +1901,53 @@ class ValidatorNodeRegistration final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ValidatorSignature& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr public_key_; - ::tari::rpc::Signature* signature_; + ::tari::rpc::Signature* PROTOBUF_NULLABLE signature_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ValidatorSignature_class_data_; // ------------------------------------------------------------------- -class TemplateType final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.TemplateType) */ { +class ValidatorNodeRegistration final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ValidatorNodeRegistration) */ { public: - inline TemplateType() : TemplateType(nullptr) {} - ~TemplateType() override; - template - explicit PROTOBUF_CONSTEXPR TemplateType( - ::google::protobuf::internal::ConstantInitialized); + inline ValidatorNodeRegistration() : ValidatorNodeRegistration(nullptr) {} + ~ValidatorNodeRegistration() PROTOBUF_FINAL; - inline TemplateType(const TemplateType& from) : TemplateType(nullptr, from) {} - inline TemplateType(TemplateType&& from) noexcept - : TemplateType(nullptr, std::move(from)) {} - inline TemplateType& operator=(const TemplateType& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ValidatorNodeRegistration* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ValidatorNodeRegistration)); + } +#endif + + 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; } - inline TemplateType& operator=(TemplateType&& from) noexcept { + inline ValidatorNodeRegistration& operator=(ValidatorNodeRegistration&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1107,48 +1959,35 @@ class TemplateType final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const TemplateType& default_instance() { - return *internal_default_instance(); + static const ValidatorNodeRegistration& default_instance() { + return *reinterpret_cast( + &_ValidatorNodeRegistration_default_instance_); } - enum TemplateTypeCase { - kWasm = 1, - kFlow = 2, - 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); } - inline void Swap(TemplateType* other) { + static constexpr int kIndexInFileMessages = 2; + friend void swap(ValidatorNodeRegistration& a, ValidatorNodeRegistration& b) { a.Swap(&b); } + inline void Swap(ValidatorNodeRegistration* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TemplateType* other) { + void UnsafeArenaSwap(ValidatorNodeRegistration* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1156,7 +1995,480 @@ class TemplateType final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - TemplateType* New(::google::protobuf::Arena* arena = nullptr) const final { + ValidatorNodeRegistration* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + 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); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ValidatorNodeRegistration* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.ValidatorNodeRegistration"; } + + protected: + explicit ValidatorNodeRegistration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ValidatorNodeRegistration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ValidatorNodeRegistration& from); + ValidatorNodeRegistration( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ValidatorNodeRegistration&& from) noexcept + : ValidatorNodeRegistration(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPublicKeyFieldNumber = 1, + kClaimPublicKeyFieldNumber = 3, + kSignatureFieldNumber = 2, + kMaxEpochFieldNumber = 4, + }; + // bytes public_key = 1; + void clear_public_key() ; + const ::std::string& public_key() const; + template + void set_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); + + public: + // bytes claim_public_key = 3; + void clear_claim_public_key() ; + const ::std::string& claim_public_key() const; + template + void set_claim_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_claim_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_claim_public_key(); + void set_allocated_claim_public_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_claim_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_claim_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_claim_public_key(); + + public: + // .tari.rpc.Signature signature = 2; + bool has_signature() const; + void clear_signature() ; + const ::tari::rpc::Signature& signature() const; + [[nodiscard]] ::tari::rpc::Signature* PROTOBUF_NULLABLE release_signature(); + ::tari::rpc::Signature* PROTOBUF_NONNULL mutable_signature(); + void set_allocated_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + ::tari::rpc::Signature* PROTOBUF_NULLABLE unsafe_arena_release_signature(); + + private: + const ::tari::rpc::Signature& _internal_signature() const; + ::tari::rpc::Signature* PROTOBUF_NONNULL _internal_mutable_signature(); + + public: + // uint64 max_epoch = 4; + void clear_max_epoch() ; + ::uint64_t max_epoch() const; + void set_max_epoch(::uint64_t value); + + private: + ::uint64_t _internal_max_epoch() const; + void _internal_set_max_epoch(::uint64_t value); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.ValidatorNodeRegistration) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ValidatorNodeRegistration& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr claim_public_key_; + ::tari::rpc::Signature* PROTOBUF_NULLABLE signature_; + ::uint64_t max_epoch_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull ValidatorNodeRegistration_class_data_; +// ------------------------------------------------------------------- + +class ValidatorNodeExit final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.ValidatorNodeExit) */ { + public: + inline ValidatorNodeExit() : ValidatorNodeExit(nullptr) {} + ~ValidatorNodeExit() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ValidatorNodeExit* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ValidatorNodeExit)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR ValidatorNodeExit(::google::protobuf::internal::ConstantInitialized); + + inline ValidatorNodeExit(const ValidatorNodeExit& from) : ValidatorNodeExit(nullptr, from) {} + inline ValidatorNodeExit(ValidatorNodeExit&& from) noexcept + : ValidatorNodeExit(nullptr, ::std::move(from)) {} + inline ValidatorNodeExit& operator=(const ValidatorNodeExit& from) { + CopyFrom(from); + return *this; + } + inline ValidatorNodeExit& operator=(ValidatorNodeExit&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ValidatorNodeExit& default_instance() { + return *reinterpret_cast( + &_ValidatorNodeExit_default_instance_); + } + static constexpr int kIndexInFileMessages = 3; + friend void swap(ValidatorNodeExit& a, ValidatorNodeExit& b) { a.Swap(&b); } + inline void Swap(ValidatorNodeExit* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ValidatorNodeExit* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ValidatorNodeExit* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ValidatorNodeExit& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ValidatorNodeExit& from) { ValidatorNodeExit::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ValidatorNodeExit* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.ValidatorNodeExit"; } + + protected: + explicit ValidatorNodeExit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ValidatorNodeExit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ValidatorNodeExit& from); + ValidatorNodeExit( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ValidatorNodeExit&& from) noexcept + : ValidatorNodeExit(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPublicKeyFieldNumber = 1, + kSignatureFieldNumber = 2, + kMaxEpochFieldNumber = 3, + }; + // bytes public_key = 1; + void clear_public_key() ; + const ::std::string& public_key() const; + template + void set_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); + + public: + // .tari.rpc.Signature signature = 2; + bool has_signature() const; + void clear_signature() ; + const ::tari::rpc::Signature& signature() const; + [[nodiscard]] ::tari::rpc::Signature* PROTOBUF_NULLABLE release_signature(); + ::tari::rpc::Signature* PROTOBUF_NONNULL mutable_signature(); + void set_allocated_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + ::tari::rpc::Signature* PROTOBUF_NULLABLE unsafe_arena_release_signature(); + + private: + const ::tari::rpc::Signature& _internal_signature() const; + ::tari::rpc::Signature* PROTOBUF_NONNULL _internal_mutable_signature(); + + public: + // uint64 max_epoch = 3; + void clear_max_epoch() ; + ::uint64_t max_epoch() const; + void set_max_epoch(::uint64_t value); + + private: + ::uint64_t _internal_max_epoch() const; + void _internal_set_max_epoch(::uint64_t value); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.ValidatorNodeExit) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ValidatorNodeExit& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::tari::rpc::Signature* PROTOBUF_NULLABLE signature_; + ::uint64_t max_epoch_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull ValidatorNodeExit_class_data_; +// ------------------------------------------------------------------- + +class TemplateType final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.TemplateType) */ { + public: + inline TemplateType() : TemplateType(nullptr) {} + ~TemplateType() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TemplateType* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TemplateType)); + } +#endif + + 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; + } + inline TemplateType& operator=(TemplateType&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const TemplateType& default_instance() { + return *reinterpret_cast( + &_TemplateType_default_instance_); + } + enum TemplateTypeCase { + kWasm = 1, + kFlow = 2, + kManifest = 3, + TEMPLATE_TYPE_NOT_SET = 0, + }; + static constexpr int kIndexInFileMessages = 6; + friend void swap(TemplateType& a, TemplateType& b) { a.Swap(&b); } + inline void Swap(TemplateType* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TemplateType* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TemplateType* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1165,41 +2477,63 @@ class TemplateType final : public ::google::protobuf::Message void MergeFrom(const TemplateType& from) { TemplateType::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TemplateType* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TemplateType* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.TemplateType"; } protected: - explicit TemplateType(::google::protobuf::Arena* arena); - TemplateType(::google::protobuf::Arena* arena, const TemplateType& from); - TemplateType(::google::protobuf::Arena* arena, TemplateType&& from) noexcept + explicit TemplateType(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + TemplateType(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TemplateType& from); + TemplateType( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, TemplateType&& from) noexcept : TemplateType(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1216,15 +2550,15 @@ class TemplateType final : public ::google::protobuf::Message public: void clear_wasm() ; const ::tari::rpc::WasmInfo& wasm() const; - PROTOBUF_NODISCARD ::tari::rpc::WasmInfo* release_wasm(); - ::tari::rpc::WasmInfo* mutable_wasm(); - void set_allocated_wasm(::tari::rpc::WasmInfo* value); - void unsafe_arena_set_allocated_wasm(::tari::rpc::WasmInfo* value); - ::tari::rpc::WasmInfo* unsafe_arena_release_wasm(); + [[nodiscard]] ::tari::rpc::WasmInfo* PROTOBUF_NULLABLE release_wasm(); + ::tari::rpc::WasmInfo* PROTOBUF_NONNULL mutable_wasm(); + void set_allocated_wasm(::tari::rpc::WasmInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_wasm(::tari::rpc::WasmInfo* PROTOBUF_NULLABLE value); + ::tari::rpc::WasmInfo* PROTOBUF_NULLABLE unsafe_arena_release_wasm(); private: const ::tari::rpc::WasmInfo& _internal_wasm() const; - ::tari::rpc::WasmInfo* _internal_mutable_wasm(); + ::tari::rpc::WasmInfo* PROTOBUF_NONNULL _internal_mutable_wasm(); public: // .tari.rpc.FlowInfo flow = 2; @@ -1235,15 +2569,15 @@ class TemplateType final : public ::google::protobuf::Message public: void clear_flow() ; const ::tari::rpc::FlowInfo& flow() const; - PROTOBUF_NODISCARD ::tari::rpc::FlowInfo* release_flow(); - ::tari::rpc::FlowInfo* mutable_flow(); - void set_allocated_flow(::tari::rpc::FlowInfo* value); - void unsafe_arena_set_allocated_flow(::tari::rpc::FlowInfo* value); - ::tari::rpc::FlowInfo* unsafe_arena_release_flow(); + [[nodiscard]] ::tari::rpc::FlowInfo* PROTOBUF_NULLABLE release_flow(); + ::tari::rpc::FlowInfo* PROTOBUF_NONNULL mutable_flow(); + void set_allocated_flow(::tari::rpc::FlowInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_flow(::tari::rpc::FlowInfo* PROTOBUF_NULLABLE value); + ::tari::rpc::FlowInfo* PROTOBUF_NULLABLE unsafe_arena_release_flow(); private: const ::tari::rpc::FlowInfo& _internal_flow() const; - ::tari::rpc::FlowInfo* _internal_mutable_flow(); + ::tari::rpc::FlowInfo* PROTOBUF_NONNULL _internal_mutable_flow(); public: // .tari.rpc.ManifestInfo manifest = 3; @@ -1254,15 +2588,15 @@ class TemplateType final : public ::google::protobuf::Message public: void clear_manifest() ; const ::tari::rpc::ManifestInfo& manifest() const; - PROTOBUF_NODISCARD ::tari::rpc::ManifestInfo* release_manifest(); - ::tari::rpc::ManifestInfo* mutable_manifest(); - void set_allocated_manifest(::tari::rpc::ManifestInfo* value); - void unsafe_arena_set_allocated_manifest(::tari::rpc::ManifestInfo* value); - ::tari::rpc::ManifestInfo* unsafe_arena_release_manifest(); + [[nodiscard]] ::tari::rpc::ManifestInfo* PROTOBUF_NULLABLE release_manifest(); + ::tari::rpc::ManifestInfo* PROTOBUF_NONNULL mutable_manifest(); + void set_allocated_manifest(::tari::rpc::ManifestInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_manifest(::tari::rpc::ManifestInfo* PROTOBUF_NULLABLE value); + ::tari::rpc::ManifestInfo* PROTOBUF_NULLABLE unsafe_arena_release_manifest(); private: const ::tari::rpc::ManifestInfo& _internal_manifest() const; - ::tari::rpc::ManifestInfo* _internal_mutable_manifest(); + ::tari::rpc::ManifestInfo* PROTOBUF_NONNULL _internal_mutable_manifest(); public: void clear_template_type(); @@ -1276,10 +2610,11 @@ class TemplateType final : public ::google::protobuf::Message 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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 3, + 3, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1287,51 +2622,58 @@ class TemplateType final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const TemplateType& from_msg); union TemplateTypeUnion { constexpr TemplateTypeUnion() : _constinit_{} {} ::google::protobuf::internal::ConstantInitialized _constinit_; - ::tari::rpc::WasmInfo* wasm_; - ::tari::rpc::FlowInfo* flow_; - ::tari::rpc::ManifestInfo* manifest_; + ::google::protobuf::Message* PROTOBUF_NULLABLE wasm_; + ::google::protobuf::Message* PROTOBUF_NULLABLE flow_; + ::google::protobuf::Message* PROTOBUF_NULLABLE manifest_; } template_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint32_t _oneof_case_[1]; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull TemplateType_class_data_; // ------------------------------------------------------------------- -class TemplateRegistration final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.TemplateRegistration) */ { +class SidechainBlockHeader final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SidechainBlockHeader) */ { public: - inline TemplateRegistration() : TemplateRegistration(nullptr) {} - ~TemplateRegistration() override; - template - explicit PROTOBUF_CONSTEXPR TemplateRegistration( - ::google::protobuf::internal::ConstantInitialized); + inline SidechainBlockHeader() : SidechainBlockHeader(nullptr) {} + ~SidechainBlockHeader() PROTOBUF_FINAL; - inline TemplateRegistration(const TemplateRegistration& from) : TemplateRegistration(nullptr, from) {} - inline TemplateRegistration(TemplateRegistration&& from) noexcept - : TemplateRegistration(nullptr, std::move(from)) {} - inline TemplateRegistration& operator=(const TemplateRegistration& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SidechainBlockHeader* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SidechainBlockHeader)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SidechainBlockHeader(::google::protobuf::internal::ConstantInitialized); + + inline SidechainBlockHeader(const SidechainBlockHeader& from) : SidechainBlockHeader(nullptr, from) {} + inline SidechainBlockHeader(SidechainBlockHeader&& from) noexcept + : SidechainBlockHeader(nullptr, ::std::move(from)) {} + inline SidechainBlockHeader& operator=(const SidechainBlockHeader& from) { CopyFrom(from); return *this; } - inline TemplateRegistration& operator=(TemplateRegistration&& from) noexcept { + inline SidechainBlockHeader& operator=(SidechainBlockHeader&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1343,42 +2685,35 @@ class TemplateRegistration final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const TemplateRegistration& default_instance() { - return *internal_default_instance(); + static const SidechainBlockHeader& default_instance() { + return *reinterpret_cast( + &_SidechainBlockHeader_default_instance_); } - 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); } - inline void Swap(TemplateRegistration* other) { + static constexpr int kIndexInFileMessages = 18; + friend void swap(SidechainBlockHeader& a, SidechainBlockHeader& b) { a.Swap(&b); } + inline void Swap(SidechainBlockHeader* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TemplateRegistration* other) { + void UnsafeArenaSwap(SidechainBlockHeader* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1386,7 +2721,768 @@ class TemplateRegistration final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - TemplateRegistration* New(::google::protobuf::Arena* arena = nullptr) const final { + SidechainBlockHeader* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SidechainBlockHeader& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SidechainBlockHeader& from) { SidechainBlockHeader::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SidechainBlockHeader* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.SidechainBlockHeader"; } + + protected: + explicit SidechainBlockHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SidechainBlockHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SidechainBlockHeader& from); + SidechainBlockHeader( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SidechainBlockHeader&& from) noexcept + : SidechainBlockHeader(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kParentIdFieldNumber = 2, + kJustifyIdFieldNumber = 3, + kProposedByFieldNumber = 7, + kStateMerkleRootFieldNumber = 8, + kCommandMerkleRootFieldNumber = 9, + kMetadataHashFieldNumber = 10, + kShardGroupFieldNumber = 6, + kSignatureFieldNumber = 11, + kHeightFieldNumber = 4, + kEpochFieldNumber = 5, + kNetworkFieldNumber = 1, + }; + // bytes parent_id = 2; + void clear_parent_id() ; + const ::std::string& parent_id() const; + template + void set_parent_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_parent_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_parent_id(); + void set_allocated_parent_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_parent_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_parent_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_parent_id(); + + public: + // bytes justify_id = 3; + void clear_justify_id() ; + const ::std::string& justify_id() const; + template + void set_justify_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_justify_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_justify_id(); + void set_allocated_justify_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_justify_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_justify_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_justify_id(); + + public: + // bytes proposed_by = 7; + void clear_proposed_by() ; + const ::std::string& proposed_by() const; + template + void set_proposed_by(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_proposed_by(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_proposed_by(); + void set_allocated_proposed_by(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_proposed_by() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_proposed_by(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_proposed_by(); + + public: + // bytes state_merkle_root = 8; + void clear_state_merkle_root() ; + const ::std::string& state_merkle_root() const; + template + void set_state_merkle_root(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_state_merkle_root(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_state_merkle_root(); + void set_allocated_state_merkle_root(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_state_merkle_root() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_state_merkle_root(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_state_merkle_root(); + + public: + // bytes command_merkle_root = 9; + void clear_command_merkle_root() ; + const ::std::string& command_merkle_root() const; + template + void set_command_merkle_root(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_command_merkle_root(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_command_merkle_root(); + void set_allocated_command_merkle_root(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_command_merkle_root() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_command_merkle_root(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_command_merkle_root(); + + public: + // bytes metadata_hash = 10; + void clear_metadata_hash() ; + const ::std::string& metadata_hash() const; + template + void set_metadata_hash(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_metadata_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_metadata_hash(); + void set_allocated_metadata_hash(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_metadata_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_metadata_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_metadata_hash(); + + public: + // .tari.rpc.ShardGroup shard_group = 6; + bool has_shard_group() const; + void clear_shard_group() ; + const ::tari::rpc::ShardGroup& shard_group() const; + [[nodiscard]] ::tari::rpc::ShardGroup* PROTOBUF_NULLABLE release_shard_group(); + ::tari::rpc::ShardGroup* PROTOBUF_NONNULL mutable_shard_group(); + void set_allocated_shard_group(::tari::rpc::ShardGroup* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_shard_group(::tari::rpc::ShardGroup* PROTOBUF_NULLABLE value); + ::tari::rpc::ShardGroup* PROTOBUF_NULLABLE unsafe_arena_release_shard_group(); + + private: + const ::tari::rpc::ShardGroup& _internal_shard_group() const; + ::tari::rpc::ShardGroup* PROTOBUF_NONNULL _internal_mutable_shard_group(); + + public: + // .tari.rpc.Signature signature = 11; + bool has_signature() const; + void clear_signature() ; + const ::tari::rpc::Signature& signature() const; + [[nodiscard]] ::tari::rpc::Signature* PROTOBUF_NULLABLE release_signature(); + ::tari::rpc::Signature* PROTOBUF_NONNULL mutable_signature(); + void set_allocated_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + ::tari::rpc::Signature* PROTOBUF_NULLABLE unsafe_arena_release_signature(); + + private: + const ::tari::rpc::Signature& _internal_signature() const; + ::tari::rpc::Signature* PROTOBUF_NONNULL _internal_mutable_signature(); + + public: + // uint64 height = 4; + void clear_height() ; + ::uint64_t height() const; + void set_height(::uint64_t value); + + private: + ::uint64_t _internal_height() const; + void _internal_set_height(::uint64_t value); + + public: + // uint64 epoch = 5; + void clear_epoch() ; + ::uint64_t epoch() const; + void set_epoch(::uint64_t value); + + private: + ::uint64_t _internal_epoch() const; + void _internal_set_epoch(::uint64_t value); + + public: + // uint32 network = 1; + void clear_network() ; + ::uint32_t network() const; + void set_network(::uint32_t value); + + private: + ::uint32_t _internal_network() const; + void _internal_set_network(::uint32_t value); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.SidechainBlockHeader) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 11, + 2, 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SidechainBlockHeader& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr parent_id_; + ::google::protobuf::internal::ArenaStringPtr justify_id_; + ::google::protobuf::internal::ArenaStringPtr proposed_by_; + ::google::protobuf::internal::ArenaStringPtr state_merkle_root_; + ::google::protobuf::internal::ArenaStringPtr command_merkle_root_; + ::google::protobuf::internal::ArenaStringPtr metadata_hash_; + ::tari::rpc::ShardGroup* PROTOBUF_NULLABLE shard_group_; + ::tari::rpc::Signature* PROTOBUF_NULLABLE signature_; + ::uint64_t height_; + ::uint64_t epoch_; + ::uint32_t network_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull SidechainBlockHeader_class_data_; +// ------------------------------------------------------------------- + +class SideChainId final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SideChainId) */ { + public: + inline SideChainId() : SideChainId(nullptr) {} + ~SideChainId() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SideChainId* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SideChainId)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SideChainId(::google::protobuf::internal::ConstantInitialized); + + inline SideChainId(const SideChainId& from) : SideChainId(nullptr, from) {} + inline SideChainId(SideChainId&& from) noexcept + : SideChainId(nullptr, ::std::move(from)) {} + inline SideChainId& operator=(const SideChainId& from) { + CopyFrom(from); + return *this; + } + inline SideChainId& operator=(SideChainId&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SideChainId& default_instance() { + return *reinterpret_cast( + &_SideChainId_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(SideChainId& a, SideChainId& b) { a.Swap(&b); } + inline void Swap(SideChainId* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SideChainId* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SideChainId* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SideChainId& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SideChainId& from) { SideChainId::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SideChainId* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.SideChainId"; } + + protected: + explicit SideChainId(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SideChainId(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SideChainId& from); + SideChainId( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SideChainId&& from) noexcept + : SideChainId(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kPublicKeyFieldNumber = 1, + kKnowledgeProofFieldNumber = 2, + }; + // bytes public_key = 1; + void clear_public_key() ; + const ::std::string& public_key() const; + template + void set_public_key(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); + void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); + + public: + // .tari.rpc.Signature knowledge_proof = 2; + bool has_knowledge_proof() const; + void clear_knowledge_proof() ; + const ::tari::rpc::Signature& knowledge_proof() const; + [[nodiscard]] ::tari::rpc::Signature* PROTOBUF_NULLABLE release_knowledge_proof(); + ::tari::rpc::Signature* PROTOBUF_NONNULL mutable_knowledge_proof(); + void set_allocated_knowledge_proof(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_knowledge_proof(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + ::tari::rpc::Signature* PROTOBUF_NULLABLE unsafe_arena_release_knowledge_proof(); + + private: + const ::tari::rpc::Signature& _internal_knowledge_proof() const; + ::tari::rpc::Signature* PROTOBUF_NONNULL _internal_mutable_knowledge_proof(); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.SideChainId) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SideChainId& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::tari::rpc::Signature* PROTOBUF_NULLABLE knowledge_proof_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull SideChainId_class_data_; +// ------------------------------------------------------------------- + +class DummyChain final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.DummyChain) */ { + public: + inline DummyChain() : DummyChain(nullptr) {} + ~DummyChain() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DummyChain* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DummyChain)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR DummyChain(::google::protobuf::internal::ConstantInitialized); + + inline DummyChain(const DummyChain& from) : DummyChain(nullptr, from) {} + inline DummyChain(DummyChain&& from) noexcept + : DummyChain(nullptr, ::std::move(from)) {} + inline DummyChain& operator=(const DummyChain& from) { + CopyFrom(from); + return *this; + } + inline DummyChain& operator=(DummyChain&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DummyChain& default_instance() { + return *reinterpret_cast( + &_DummyChain_default_instance_); + } + static constexpr int kIndexInFileMessages = 16; + friend void swap(DummyChain& a, DummyChain& b) { a.Swap(&b); } + inline void Swap(DummyChain* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DummyChain* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DummyChain* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const DummyChain& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const DummyChain& from) { DummyChain::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DummyChain* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.DummyChain"; } + + protected: + explicit DummyChain(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + DummyChain(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DummyChain& from); + DummyChain( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DummyChain&& from) noexcept + : DummyChain(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kChainLinksFieldNumber = 1, + }; + // repeated .tari.rpc.ChainLink chain_links = 1; + int chain_links_size() const; + private: + int _internal_chain_links_size() const; + + public: + void clear_chain_links() ; + ::tari::rpc::ChainLink* PROTOBUF_NONNULL mutable_chain_links(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::ChainLink>* PROTOBUF_NONNULL mutable_chain_links(); + + private: + const ::google::protobuf::RepeatedPtrField<::tari::rpc::ChainLink>& _internal_chain_links() const; + ::google::protobuf::RepeatedPtrField<::tari::rpc::ChainLink>* PROTOBUF_NONNULL _internal_mutable_chain_links(); + public: + const ::tari::rpc::ChainLink& chain_links(int index) const; + ::tari::rpc::ChainLink* PROTOBUF_NONNULL add_chain_links(); + const ::google::protobuf::RepeatedPtrField<::tari::rpc::ChainLink>& chain_links() const; + // @@protoc_insertion_point(class_scope:tari.rpc.DummyChain) + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const DummyChain& from_msg); + ::google::protobuf::RepeatedPtrField< ::tari::rpc::ChainLink > chain_links_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull DummyChain_class_data_; +// ------------------------------------------------------------------- + +class TemplateRegistration final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.TemplateRegistration) */ { + public: + inline TemplateRegistration() : TemplateRegistration(nullptr) {} + ~TemplateRegistration() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TemplateRegistration* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TemplateRegistration)); + } +#endif + + 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; + } + inline TemplateRegistration& operator=(TemplateRegistration&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const TemplateRegistration& default_instance() { + return *reinterpret_cast( + &_TemplateRegistration_default_instance_); + } + static constexpr int kIndexInFileMessages = 4; + friend void swap(TemplateRegistration& a, TemplateRegistration& b) { a.Swap(&b); } + inline void Swap(TemplateRegistration* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TemplateRegistration* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TemplateRegistration* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1395,41 +3491,63 @@ class TemplateRegistration final : public ::google::protobuf::Message void MergeFrom(const TemplateRegistration& from) { TemplateRegistration::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TemplateRegistration* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TemplateRegistration* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.TemplateRegistration"; } protected: - explicit TemplateRegistration(::google::protobuf::Arena* arena); - TemplateRegistration(::google::protobuf::Arena* arena, const TemplateRegistration& from); - TemplateRegistration(::google::protobuf::Arena* arena, TemplateRegistration&& from) noexcept + explicit TemplateRegistration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + TemplateRegistration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TemplateRegistration& from); + TemplateRegistration( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, TemplateRegistration&& from) noexcept : TemplateRegistration(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1445,111 +3563,107 @@ class TemplateRegistration final : public ::google::protobuf::Message }; // bytes author_public_key = 1; void clear_author_public_key() ; - const std::string& author_public_key() const; - template + const ::std::string& author_public_key() const; + template void set_author_public_key(Arg_&& arg, Args_... args); - std::string* mutable_author_public_key(); - PROTOBUF_NODISCARD std::string* release_author_public_key(); - void set_allocated_author_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_author_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_author_public_key(); + void set_allocated_author_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_author_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_author_public_key( - const std::string& value); - std::string* _internal_mutable_author_public_key(); + const ::std::string& _internal_author_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_author_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_author_public_key(); public: // string template_name = 3; void clear_template_name() ; - const std::string& template_name() const; - template + const ::std::string& template_name() const; + template void set_template_name(Arg_&& arg, Args_... args); - std::string* mutable_template_name(); - PROTOBUF_NODISCARD std::string* release_template_name(); - void set_allocated_template_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_template_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_template_name(); + void set_allocated_template_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_template_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_template_name( - const std::string& value); - std::string* _internal_mutable_template_name(); + const ::std::string& _internal_template_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_template_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_template_name(); public: // bytes binary_sha = 7; void clear_binary_sha() ; - const std::string& binary_sha() const; - template + const ::std::string& binary_sha() const; + template void set_binary_sha(Arg_&& arg, Args_... args); - std::string* mutable_binary_sha(); - PROTOBUF_NODISCARD std::string* release_binary_sha(); - void set_allocated_binary_sha(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_binary_sha(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_binary_sha(); + void set_allocated_binary_sha(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_binary_sha() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary_sha( - const std::string& value); - std::string* _internal_mutable_binary_sha(); + const ::std::string& _internal_binary_sha() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_binary_sha(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_binary_sha(); public: // string binary_url = 8; void clear_binary_url() ; - const std::string& binary_url() const; - template + const ::std::string& binary_url() const; + template void set_binary_url(Arg_&& arg, Args_... args); - std::string* mutable_binary_url(); - PROTOBUF_NODISCARD std::string* release_binary_url(); - void set_allocated_binary_url(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_binary_url(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_binary_url(); + void set_allocated_binary_url(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_binary_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary_url( - const std::string& value); - std::string* _internal_mutable_binary_url(); + const ::std::string& _internal_binary_url() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_binary_url(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_binary_url(); public: // .tari.rpc.Signature author_signature = 2; bool has_author_signature() const; void clear_author_signature() ; const ::tari::rpc::Signature& author_signature() const; - PROTOBUF_NODISCARD ::tari::rpc::Signature* release_author_signature(); - ::tari::rpc::Signature* mutable_author_signature(); - void set_allocated_author_signature(::tari::rpc::Signature* value); - void unsafe_arena_set_allocated_author_signature(::tari::rpc::Signature* value); - ::tari::rpc::Signature* unsafe_arena_release_author_signature(); + [[nodiscard]] ::tari::rpc::Signature* PROTOBUF_NULLABLE release_author_signature(); + ::tari::rpc::Signature* PROTOBUF_NONNULL mutable_author_signature(); + void set_allocated_author_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_author_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + ::tari::rpc::Signature* PROTOBUF_NULLABLE unsafe_arena_release_author_signature(); private: const ::tari::rpc::Signature& _internal_author_signature() const; - ::tari::rpc::Signature* _internal_mutable_author_signature(); + ::tari::rpc::Signature* PROTOBUF_NONNULL _internal_mutable_author_signature(); public: // .tari.rpc.TemplateType template_type = 5; bool has_template_type() const; void clear_template_type() ; const ::tari::rpc::TemplateType& template_type() const; - PROTOBUF_NODISCARD ::tari::rpc::TemplateType* release_template_type(); - ::tari::rpc::TemplateType* mutable_template_type(); - void set_allocated_template_type(::tari::rpc::TemplateType* value); - void unsafe_arena_set_allocated_template_type(::tari::rpc::TemplateType* value); - ::tari::rpc::TemplateType* unsafe_arena_release_template_type(); + [[nodiscard]] ::tari::rpc::TemplateType* PROTOBUF_NULLABLE release_template_type(); + ::tari::rpc::TemplateType* PROTOBUF_NONNULL mutable_template_type(); + void set_allocated_template_type(::tari::rpc::TemplateType* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_template_type(::tari::rpc::TemplateType* PROTOBUF_NULLABLE value); + ::tari::rpc::TemplateType* PROTOBUF_NULLABLE unsafe_arena_release_template_type(); private: const ::tari::rpc::TemplateType& _internal_template_type() const; - ::tari::rpc::TemplateType* _internal_mutable_template_type(); + ::tari::rpc::TemplateType* PROTOBUF_NONNULL _internal_mutable_template_type(); public: // .tari.rpc.BuildInfo build_info = 6; bool has_build_info() const; void clear_build_info() ; const ::tari::rpc::BuildInfo& build_info() const; - PROTOBUF_NODISCARD ::tari::rpc::BuildInfo* release_build_info(); - ::tari::rpc::BuildInfo* mutable_build_info(); - void set_allocated_build_info(::tari::rpc::BuildInfo* value); - void unsafe_arena_set_allocated_build_info(::tari::rpc::BuildInfo* value); - ::tari::rpc::BuildInfo* unsafe_arena_release_build_info(); + [[nodiscard]] ::tari::rpc::BuildInfo* PROTOBUF_NULLABLE release_build_info(); + ::tari::rpc::BuildInfo* PROTOBUF_NONNULL mutable_build_info(); + void set_allocated_build_info(::tari::rpc::BuildInfo* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_build_info(::tari::rpc::BuildInfo* PROTOBUF_NULLABLE value); + ::tari::rpc::BuildInfo* PROTOBUF_NULLABLE unsafe_arena_release_build_info(); private: const ::tari::rpc::BuildInfo& _internal_build_info() const; - ::tari::rpc::BuildInfo* _internal_mutable_build_info(); + ::tari::rpc::BuildInfo* PROTOBUF_NONNULL _internal_mutable_build_info(); public: // uint32 template_version = 4; @@ -1566,10 +3680,11 @@ class TemplateRegistration final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 8, 3, - 69, 2> + static const ::google::protobuf::internal::TcParseTable<3, 8, + 3, 69, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1577,52 +3692,59 @@ class TemplateRegistration final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const TemplateRegistration& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr author_public_key_; ::google::protobuf::internal::ArenaStringPtr template_name_; ::google::protobuf::internal::ArenaStringPtr binary_sha_; ::google::protobuf::internal::ArenaStringPtr binary_url_; - ::tari::rpc::Signature* author_signature_; - ::tari::rpc::TemplateType* template_type_; - ::tari::rpc::BuildInfo* build_info_; + ::tari::rpc::Signature* PROTOBUF_NULLABLE author_signature_; + ::tari::rpc::TemplateType* PROTOBUF_NULLABLE template_type_; + ::tari::rpc::BuildInfo* PROTOBUF_NULLABLE build_info_; ::uint32_t template_version_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sidechain_5ftypes_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull TemplateRegistration_class_data_; // ------------------------------------------------------------------- -class SideChainFeature final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.SideChainFeature) */ { +class QuorumCertificate final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.QuorumCertificate) */ { public: - inline SideChainFeature() : SideChainFeature(nullptr) {} - ~SideChainFeature() override; - template - explicit PROTOBUF_CONSTEXPR SideChainFeature( - ::google::protobuf::internal::ConstantInitialized); + inline QuorumCertificate() : QuorumCertificate(nullptr) {} + ~QuorumCertificate() PROTOBUF_FINAL; - inline SideChainFeature(const SideChainFeature& from) : SideChainFeature(nullptr, from) {} - inline SideChainFeature(SideChainFeature&& from) noexcept - : SideChainFeature(nullptr, std::move(from)) {} - inline SideChainFeature& operator=(const SideChainFeature& from) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(QuorumCertificate* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(QuorumCertificate)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR QuorumCertificate(::google::protobuf::internal::ConstantInitialized); + + inline QuorumCertificate(const QuorumCertificate& from) : QuorumCertificate(nullptr, from) {} + inline QuorumCertificate(QuorumCertificate&& from) noexcept + : QuorumCertificate(nullptr, ::std::move(from)) {} + inline QuorumCertificate& operator=(const QuorumCertificate& from) { CopyFrom(from); return *this; } - inline SideChainFeature& operator=(SideChainFeature&& from) noexcept { + inline QuorumCertificate& operator=(QuorumCertificate&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1634,48 +3756,35 @@ class SideChainFeature final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const SideChainFeature& default_instance() { - return *internal_default_instance(); + static const QuorumCertificate& default_instance() { + return *reinterpret_cast( + &_QuorumCertificate_default_instance_); } - enum SideChainFeatureCase { - kValidatorNodeRegistration = 1, - kTemplateRegistration = 2, - 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); } - inline void Swap(SideChainFeature* other) { + static constexpr int kIndexInFileMessages = 21; + friend void swap(QuorumCertificate& a, QuorumCertificate& b) { a.Swap(&b); } + inline void Swap(QuorumCertificate* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SideChainFeature* other) { + void UnsafeArenaSwap(QuorumCertificate* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1683,7 +3792,1349 @@ class SideChainFeature final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - SideChainFeature* New(::google::protobuf::Arena* arena = nullptr) const final { + QuorumCertificate* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const QuorumCertificate& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const QuorumCertificate& from) { QuorumCertificate::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(QuorumCertificate* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.QuorumCertificate"; } + + protected: + explicit QuorumCertificate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + QuorumCertificate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const QuorumCertificate& from); + QuorumCertificate( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, QuorumCertificate&& from) noexcept + : QuorumCertificate(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSignaturesFieldNumber = 3, + kHeaderHashFieldNumber = 1, + kParentIdFieldNumber = 2, + kDecisionFieldNumber = 4, + }; + // repeated .tari.rpc.ValidatorSignature signatures = 3; + int signatures_size() const; + private: + int _internal_signatures_size() const; + + public: + void clear_signatures() ; + ::tari::rpc::ValidatorSignature* PROTOBUF_NONNULL mutable_signatures(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorSignature>* PROTOBUF_NONNULL mutable_signatures(); + + private: + const ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorSignature>& _internal_signatures() const; + ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorSignature>* PROTOBUF_NONNULL _internal_mutable_signatures(); + public: + const ::tari::rpc::ValidatorSignature& signatures(int index) const; + ::tari::rpc::ValidatorSignature* PROTOBUF_NONNULL add_signatures(); + const ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorSignature>& signatures() const; + // bytes header_hash = 1; + void clear_header_hash() ; + const ::std::string& header_hash() const; + template + void set_header_hash(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_header_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_header_hash(); + void set_allocated_header_hash(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_header_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_header_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_header_hash(); + + public: + // bytes parent_id = 2; + void clear_parent_id() ; + const ::std::string& parent_id() const; + template + void set_parent_id(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_parent_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_parent_id(); + void set_allocated_parent_id(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_parent_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_parent_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_parent_id(); + + public: + // .tari.rpc.QuorumDecision decision = 4; + void clear_decision() ; + ::tari::rpc::QuorumDecision decision() const; + void set_decision(::tari::rpc::QuorumDecision value); + + private: + ::tari::rpc::QuorumDecision _internal_decision() const; + void _internal_set_decision(::tari::rpc::QuorumDecision value); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.QuorumCertificate) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const QuorumCertificate& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::tari::rpc::ValidatorSignature > signatures_; + ::google::protobuf::internal::ArenaStringPtr header_hash_; + ::google::protobuf::internal::ArenaStringPtr parent_id_; + int decision_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull QuorumCertificate_class_data_; +// ------------------------------------------------------------------- + +class CommitProofElement final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.CommitProofElement) */ { + public: + inline CommitProofElement() : CommitProofElement(nullptr) {} + ~CommitProofElement() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CommitProofElement* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CommitProofElement)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR CommitProofElement(::google::protobuf::internal::ConstantInitialized); + + inline CommitProofElement(const CommitProofElement& from) : CommitProofElement(nullptr, from) {} + inline CommitProofElement(CommitProofElement&& from) noexcept + : CommitProofElement(nullptr, ::std::move(from)) {} + inline CommitProofElement& operator=(const CommitProofElement& from) { + CopyFrom(from); + return *this; + } + inline CommitProofElement& operator=(CommitProofElement&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CommitProofElement& default_instance() { + return *reinterpret_cast( + &_CommitProofElement_default_instance_); + } + enum ProofElementCase { + kQuorumCertificate = 1, + kDummyChain = 2, + PROOF_ELEMENT_NOT_SET = 0, + }; + static constexpr int kIndexInFileMessages = 15; + friend void swap(CommitProofElement& a, CommitProofElement& b) { a.Swap(&b); } + inline void Swap(CommitProofElement* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CommitProofElement* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CommitProofElement* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CommitProofElement& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CommitProofElement& from) { CommitProofElement::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CommitProofElement* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.CommitProofElement"; } + + protected: + explicit CommitProofElement(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + CommitProofElement(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CommitProofElement& from); + CommitProofElement( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CommitProofElement&& from) noexcept + : CommitProofElement(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kQuorumCertificateFieldNumber = 1, + kDummyChainFieldNumber = 2, + }; + // .tari.rpc.QuorumCertificate quorum_certificate = 1; + bool has_quorum_certificate() const; + private: + bool _internal_has_quorum_certificate() const; + + public: + void clear_quorum_certificate() ; + const ::tari::rpc::QuorumCertificate& quorum_certificate() const; + [[nodiscard]] ::tari::rpc::QuorumCertificate* PROTOBUF_NULLABLE release_quorum_certificate(); + ::tari::rpc::QuorumCertificate* PROTOBUF_NONNULL mutable_quorum_certificate(); + void set_allocated_quorum_certificate(::tari::rpc::QuorumCertificate* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_quorum_certificate(::tari::rpc::QuorumCertificate* PROTOBUF_NULLABLE value); + ::tari::rpc::QuorumCertificate* PROTOBUF_NULLABLE unsafe_arena_release_quorum_certificate(); + + private: + const ::tari::rpc::QuorumCertificate& _internal_quorum_certificate() const; + ::tari::rpc::QuorumCertificate* PROTOBUF_NONNULL _internal_mutable_quorum_certificate(); + + public: + // .tari.rpc.DummyChain dummy_chain = 2; + bool has_dummy_chain() const; + private: + bool _internal_has_dummy_chain() const; + + public: + void clear_dummy_chain() ; + const ::tari::rpc::DummyChain& dummy_chain() const; + [[nodiscard]] ::tari::rpc::DummyChain* PROTOBUF_NULLABLE release_dummy_chain(); + ::tari::rpc::DummyChain* PROTOBUF_NONNULL mutable_dummy_chain(); + void set_allocated_dummy_chain(::tari::rpc::DummyChain* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_dummy_chain(::tari::rpc::DummyChain* PROTOBUF_NULLABLE value); + ::tari::rpc::DummyChain* PROTOBUF_NULLABLE unsafe_arena_release_dummy_chain(); + + private: + const ::tari::rpc::DummyChain& _internal_dummy_chain() const; + ::tari::rpc::DummyChain* PROTOBUF_NONNULL _internal_mutable_dummy_chain(); + + public: + void clear_proof_element(); + ProofElementCase proof_element_case() const; + // @@protoc_insertion_point(class_scope:tari.rpc.CommitProofElement) + private: + class _Internal; + void set_has_quorum_certificate(); + void set_has_dummy_chain(); + inline bool has_proof_element() const; + inline void clear_has_proof_element(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 2, + 2, 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const CommitProofElement& from_msg); + union ProofElementUnion { + constexpr ProofElementUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::tari::rpc::QuorumCertificate* PROTOBUF_NULLABLE quorum_certificate_; + ::tari::rpc::DummyChain* PROTOBUF_NULLABLE dummy_chain_; + } proof_element_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull CommitProofElement_class_data_; +// ------------------------------------------------------------------- + +class SidechainBlockCommitProof final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SidechainBlockCommitProof) */ { + public: + inline SidechainBlockCommitProof() : SidechainBlockCommitProof(nullptr) {} + ~SidechainBlockCommitProof() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SidechainBlockCommitProof* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SidechainBlockCommitProof)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR SidechainBlockCommitProof(::google::protobuf::internal::ConstantInitialized); + + inline SidechainBlockCommitProof(const SidechainBlockCommitProof& from) : SidechainBlockCommitProof(nullptr, from) {} + inline SidechainBlockCommitProof(SidechainBlockCommitProof&& from) noexcept + : SidechainBlockCommitProof(nullptr, ::std::move(from)) {} + inline SidechainBlockCommitProof& operator=(const SidechainBlockCommitProof& from) { + CopyFrom(from); + return *this; + } + inline SidechainBlockCommitProof& operator=(SidechainBlockCommitProof&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SidechainBlockCommitProof& default_instance() { + return *reinterpret_cast( + &_SidechainBlockCommitProof_default_instance_); + } + static constexpr int kIndexInFileMessages = 14; + friend void swap(SidechainBlockCommitProof& a, SidechainBlockCommitProof& b) { a.Swap(&b); } + inline void Swap(SidechainBlockCommitProof* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SidechainBlockCommitProof* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SidechainBlockCommitProof* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SidechainBlockCommitProof& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SidechainBlockCommitProof& from) { SidechainBlockCommitProof::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SidechainBlockCommitProof* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.SidechainBlockCommitProof"; } + + protected: + explicit SidechainBlockCommitProof(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SidechainBlockCommitProof(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SidechainBlockCommitProof& from); + SidechainBlockCommitProof( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SidechainBlockCommitProof&& from) noexcept + : SidechainBlockCommitProof(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kProofElementsFieldNumber = 2, + kHeaderFieldNumber = 1, + }; + // repeated .tari.rpc.CommitProofElement proof_elements = 2; + int proof_elements_size() const; + private: + int _internal_proof_elements_size() const; + + public: + void clear_proof_elements() ; + ::tari::rpc::CommitProofElement* PROTOBUF_NONNULL mutable_proof_elements(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::CommitProofElement>* PROTOBUF_NONNULL mutable_proof_elements(); + + private: + const ::google::protobuf::RepeatedPtrField<::tari::rpc::CommitProofElement>& _internal_proof_elements() const; + ::google::protobuf::RepeatedPtrField<::tari::rpc::CommitProofElement>* PROTOBUF_NONNULL _internal_mutable_proof_elements(); + public: + const ::tari::rpc::CommitProofElement& proof_elements(int index) const; + ::tari::rpc::CommitProofElement* PROTOBUF_NONNULL add_proof_elements(); + const ::google::protobuf::RepeatedPtrField<::tari::rpc::CommitProofElement>& proof_elements() const; + // .tari.rpc.SidechainBlockHeader header = 1; + bool has_header() const; + void clear_header() ; + const ::tari::rpc::SidechainBlockHeader& header() const; + [[nodiscard]] ::tari::rpc::SidechainBlockHeader* PROTOBUF_NULLABLE release_header(); + ::tari::rpc::SidechainBlockHeader* PROTOBUF_NONNULL mutable_header(); + void set_allocated_header(::tari::rpc::SidechainBlockHeader* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_header(::tari::rpc::SidechainBlockHeader* PROTOBUF_NULLABLE value); + ::tari::rpc::SidechainBlockHeader* PROTOBUF_NULLABLE unsafe_arena_release_header(); + + private: + const ::tari::rpc::SidechainBlockHeader& _internal_header() const; + ::tari::rpc::SidechainBlockHeader* PROTOBUF_NONNULL _internal_mutable_header(); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.SidechainBlockCommitProof) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SidechainBlockCommitProof& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::tari::rpc::CommitProofElement > proof_elements_; + ::tari::rpc::SidechainBlockHeader* PROTOBUF_NULLABLE header_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull SidechainBlockCommitProof_class_data_; +// ------------------------------------------------------------------- + +class CommitProofV1 final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.CommitProofV1) */ { + public: + inline CommitProofV1() : CommitProofV1(nullptr) {} + ~CommitProofV1() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CommitProofV1* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CommitProofV1)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR CommitProofV1(::google::protobuf::internal::ConstantInitialized); + + inline CommitProofV1(const CommitProofV1& from) : CommitProofV1(nullptr, from) {} + inline CommitProofV1(CommitProofV1&& from) noexcept + : CommitProofV1(nullptr, ::std::move(from)) {} + inline CommitProofV1& operator=(const CommitProofV1& from) { + CopyFrom(from); + return *this; + } + inline CommitProofV1& operator=(CommitProofV1&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CommitProofV1& default_instance() { + return *reinterpret_cast( + &_CommitProofV1_default_instance_); + } + static constexpr int kIndexInFileMessages = 13; + friend void swap(CommitProofV1& a, CommitProofV1& b) { a.Swap(&b); } + inline void Swap(CommitProofV1* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CommitProofV1* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CommitProofV1* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CommitProofV1& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CommitProofV1& from) { CommitProofV1::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CommitProofV1* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.CommitProofV1"; } + + protected: + explicit CommitProofV1(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + CommitProofV1(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CommitProofV1& from); + CommitProofV1( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CommitProofV1&& from) noexcept + : CommitProofV1(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kCommandFieldNumber = 1, + kEncodedInclusionProofFieldNumber = 3, + kCommitProofFieldNumber = 2, + }; + // bytes command = 1; + void clear_command() ; + const ::std::string& command() const; + template + void set_command(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_command(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_command(); + void set_allocated_command(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_command() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_command(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_command(); + + public: + // bytes encoded_inclusion_proof = 3; + void clear_encoded_inclusion_proof() ; + const ::std::string& encoded_inclusion_proof() const; + template + void set_encoded_inclusion_proof(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_encoded_inclusion_proof(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_encoded_inclusion_proof(); + void set_allocated_encoded_inclusion_proof(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_encoded_inclusion_proof() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_encoded_inclusion_proof(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_encoded_inclusion_proof(); + + public: + // .tari.rpc.SidechainBlockCommitProof commit_proof = 2; + bool has_commit_proof() const; + void clear_commit_proof() ; + const ::tari::rpc::SidechainBlockCommitProof& commit_proof() const; + [[nodiscard]] ::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NULLABLE release_commit_proof(); + ::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NONNULL mutable_commit_proof(); + void set_allocated_commit_proof(::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_commit_proof(::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NULLABLE value); + ::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NULLABLE unsafe_arena_release_commit_proof(); + + private: + const ::tari::rpc::SidechainBlockCommitProof& _internal_commit_proof() const; + ::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NONNULL _internal_mutable_commit_proof(); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.CommitProofV1) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const CommitProofV1& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr command_; + ::google::protobuf::internal::ArenaStringPtr encoded_inclusion_proof_; + ::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NULLABLE commit_proof_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull CommitProofV1_class_data_; +// ------------------------------------------------------------------- + +class CommitProof final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.CommitProof) */ { + public: + inline CommitProof() : CommitProof(nullptr) {} + ~CommitProof() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CommitProof* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CommitProof)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR CommitProof(::google::protobuf::internal::ConstantInitialized); + + inline CommitProof(const CommitProof& from) : CommitProof(nullptr, from) {} + inline CommitProof(CommitProof&& from) noexcept + : CommitProof(nullptr, ::std::move(from)) {} + inline CommitProof& operator=(const CommitProof& from) { + CopyFrom(from); + return *this; + } + inline CommitProof& operator=(CommitProof&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CommitProof& default_instance() { + return *reinterpret_cast( + &_CommitProof_default_instance_); + } + enum VersionCase { + kV1 = 1, + VERSION_NOT_SET = 0, + }; + static constexpr int kIndexInFileMessages = 12; + friend void swap(CommitProof& a, CommitProof& b) { a.Swap(&b); } + inline void Swap(CommitProof* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CommitProof* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CommitProof* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CommitProof& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CommitProof& from) { CommitProof::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CommitProof* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.CommitProof"; } + + protected: + explicit CommitProof(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + CommitProof(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CommitProof& from); + CommitProof( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CommitProof&& from) noexcept + : CommitProof(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kV1FieldNumber = 1, + }; + // .tari.rpc.CommitProofV1 v1 = 1; + bool has_v1() const; + private: + bool _internal_has_v1() const; + + public: + void clear_v1() ; + const ::tari::rpc::CommitProofV1& v1() const; + [[nodiscard]] ::tari::rpc::CommitProofV1* PROTOBUF_NULLABLE release_v1(); + ::tari::rpc::CommitProofV1* PROTOBUF_NONNULL mutable_v1(); + void set_allocated_v1(::tari::rpc::CommitProofV1* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_v1(::tari::rpc::CommitProofV1* PROTOBUF_NULLABLE value); + ::tari::rpc::CommitProofV1* PROTOBUF_NULLABLE unsafe_arena_release_v1(); + + private: + const ::tari::rpc::CommitProofV1& _internal_v1() const; + ::tari::rpc::CommitProofV1* PROTOBUF_NONNULL _internal_mutable_v1(); + + public: + void clear_version(); + VersionCase version_case() const; + // @@protoc_insertion_point(class_scope:tari.rpc.CommitProof) + private: + class _Internal; + void set_has_v1(); + inline bool has_version() const; + inline void clear_has_version(); + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const CommitProof& from_msg); + union VersionUnion { + constexpr VersionUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::tari::rpc::CommitProofV1* PROTOBUF_NULLABLE v1_; + } version_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull CommitProof_class_data_; +// ------------------------------------------------------------------- + +class EvictionProof final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.EvictionProof) */ { + public: + inline EvictionProof() : EvictionProof(nullptr) {} + ~EvictionProof() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EvictionProof* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EvictionProof)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR EvictionProof(::google::protobuf::internal::ConstantInitialized); + + inline EvictionProof(const EvictionProof& from) : EvictionProof(nullptr, from) {} + inline EvictionProof(EvictionProof&& from) noexcept + : EvictionProof(nullptr, ::std::move(from)) {} + inline EvictionProof& operator=(const EvictionProof& from) { + CopyFrom(from); + return *this; + } + inline EvictionProof& operator=(EvictionProof&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const EvictionProof& default_instance() { + return *reinterpret_cast( + &_EvictionProof_default_instance_); + } + static constexpr int kIndexInFileMessages = 11; + friend void swap(EvictionProof& a, EvictionProof& b) { a.Swap(&b); } + inline void Swap(EvictionProof* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EvictionProof* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EvictionProof* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const EvictionProof& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const EvictionProof& from) { EvictionProof::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(EvictionProof* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "tari.rpc.EvictionProof"; } + + protected: + explicit EvictionProof(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + EvictionProof(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const EvictionProof& from); + EvictionProof( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, EvictionProof&& from) noexcept + : EvictionProof(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kProofFieldNumber = 1, + }; + // .tari.rpc.CommitProof proof = 1; + bool has_proof() const; + void clear_proof() ; + const ::tari::rpc::CommitProof& proof() const; + [[nodiscard]] ::tari::rpc::CommitProof* PROTOBUF_NULLABLE release_proof(); + ::tari::rpc::CommitProof* PROTOBUF_NONNULL mutable_proof(); + void set_allocated_proof(::tari::rpc::CommitProof* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_proof(::tari::rpc::CommitProof* PROTOBUF_NULLABLE value); + ::tari::rpc::CommitProof* PROTOBUF_NULLABLE unsafe_arena_release_proof(); + + private: + const ::tari::rpc::CommitProof& _internal_proof() const; + ::tari::rpc::CommitProof* PROTOBUF_NONNULL _internal_mutable_proof(); + + public: + // @@protoc_insertion_point(class_scope:tari.rpc.EvictionProof) + 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const EvictionProof& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::CommitProof* PROTOBUF_NULLABLE proof_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_sidechain_5ftypes_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull EvictionProof_class_data_; +// ------------------------------------------------------------------- + +class SideChainFeature final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:tari.rpc.SideChainFeature) */ { + public: + inline SideChainFeature() : SideChainFeature(nullptr) {} + ~SideChainFeature() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SideChainFeature* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SideChainFeature)); + } +#endif + + 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; + } + inline SideChainFeature& operator=(SideChainFeature&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + 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* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SideChainFeature& default_instance() { + return *reinterpret_cast( + &_SideChainFeature_default_instance_); + } + enum FeatureCase { + kValidatorNodeRegistration = 1, + kTemplateRegistration = 2, + kConfidentialOutput = 3, + kEvictionProof = 4, + kValidatorNodeExit = 5, + FEATURE_NOT_SET = 0, + }; + static constexpr int kIndexInFileMessages = 0; + friend void swap(SideChainFeature& a, SideChainFeature& b) { a.Swap(&b); } + inline void Swap(SideChainFeature* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SideChainFeature* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SideChainFeature* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1692,49 +5143,89 @@ class SideChainFeature final : public ::google::protobuf::Message void MergeFrom(const SideChainFeature& from) { SideChainFeature::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SideChainFeature* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SideChainFeature* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.SideChainFeature"; } protected: - explicit SideChainFeature(::google::protobuf::Arena* arena); - SideChainFeature(::google::protobuf::Arena* arena, const SideChainFeature& from); - SideChainFeature(::google::protobuf::Arena* arena, SideChainFeature&& from) noexcept + explicit SideChainFeature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SideChainFeature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SideChainFeature& from); + SideChainFeature( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SideChainFeature&& from) noexcept : SideChainFeature(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { + kSidechainIdFieldNumber = 6, kValidatorNodeRegistrationFieldNumber = 1, kTemplateRegistrationFieldNumber = 2, kConfidentialOutputFieldNumber = 3, + kEvictionProofFieldNumber = 4, + kValidatorNodeExitFieldNumber = 5, }; + // .tari.rpc.SideChainId sidechain_id = 6; + bool has_sidechain_id() const; + void clear_sidechain_id() ; + const ::tari::rpc::SideChainId& sidechain_id() const; + [[nodiscard]] ::tari::rpc::SideChainId* PROTOBUF_NULLABLE release_sidechain_id(); + ::tari::rpc::SideChainId* PROTOBUF_NONNULL mutable_sidechain_id(); + void set_allocated_sidechain_id(::tari::rpc::SideChainId* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_sidechain_id(::tari::rpc::SideChainId* PROTOBUF_NULLABLE value); + ::tari::rpc::SideChainId* PROTOBUF_NULLABLE unsafe_arena_release_sidechain_id(); + + private: + const ::tari::rpc::SideChainId& _internal_sidechain_id() const; + ::tari::rpc::SideChainId* PROTOBUF_NONNULL _internal_mutable_sidechain_id(); + + public: // .tari.rpc.ValidatorNodeRegistration validator_node_registration = 1; bool has_validator_node_registration() const; private: @@ -1743,15 +5234,15 @@ class SideChainFeature final : public ::google::protobuf::Message public: void clear_validator_node_registration() ; const ::tari::rpc::ValidatorNodeRegistration& validator_node_registration() const; - PROTOBUF_NODISCARD ::tari::rpc::ValidatorNodeRegistration* release_validator_node_registration(); - ::tari::rpc::ValidatorNodeRegistration* mutable_validator_node_registration(); - void set_allocated_validator_node_registration(::tari::rpc::ValidatorNodeRegistration* value); - void unsafe_arena_set_allocated_validator_node_registration(::tari::rpc::ValidatorNodeRegistration* value); - ::tari::rpc::ValidatorNodeRegistration* unsafe_arena_release_validator_node_registration(); + [[nodiscard]] ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE release_validator_node_registration(); + ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NONNULL mutable_validator_node_registration(); + void set_allocated_validator_node_registration(::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_validator_node_registration(::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE value); + ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE unsafe_arena_release_validator_node_registration(); private: const ::tari::rpc::ValidatorNodeRegistration& _internal_validator_node_registration() const; - ::tari::rpc::ValidatorNodeRegistration* _internal_mutable_validator_node_registration(); + ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NONNULL _internal_mutable_validator_node_registration(); public: // .tari.rpc.TemplateRegistration template_registration = 2; @@ -1762,15 +5253,15 @@ class SideChainFeature final : public ::google::protobuf::Message public: void clear_template_registration() ; const ::tari::rpc::TemplateRegistration& template_registration() const; - PROTOBUF_NODISCARD ::tari::rpc::TemplateRegistration* release_template_registration(); - ::tari::rpc::TemplateRegistration* mutable_template_registration(); - void set_allocated_template_registration(::tari::rpc::TemplateRegistration* value); - void unsafe_arena_set_allocated_template_registration(::tari::rpc::TemplateRegistration* value); - ::tari::rpc::TemplateRegistration* unsafe_arena_release_template_registration(); + [[nodiscard]] ::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE release_template_registration(); + ::tari::rpc::TemplateRegistration* PROTOBUF_NONNULL mutable_template_registration(); + void set_allocated_template_registration(::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_template_registration(::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE value); + ::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE unsafe_arena_release_template_registration(); private: const ::tari::rpc::TemplateRegistration& _internal_template_registration() const; - ::tari::rpc::TemplateRegistration* _internal_mutable_template_registration(); + ::tari::rpc::TemplateRegistration* PROTOBUF_NONNULL _internal_mutable_template_registration(); public: // .tari.rpc.ConfidentialOutputData confidential_output = 3; @@ -1781,32 +5272,73 @@ class SideChainFeature final : public ::google::protobuf::Message public: void clear_confidential_output() ; const ::tari::rpc::ConfidentialOutputData& confidential_output() const; - PROTOBUF_NODISCARD ::tari::rpc::ConfidentialOutputData* release_confidential_output(); - ::tari::rpc::ConfidentialOutputData* mutable_confidential_output(); - void set_allocated_confidential_output(::tari::rpc::ConfidentialOutputData* value); - void unsafe_arena_set_allocated_confidential_output(::tari::rpc::ConfidentialOutputData* value); - ::tari::rpc::ConfidentialOutputData* unsafe_arena_release_confidential_output(); + [[nodiscard]] ::tari::rpc::ConfidentialOutputData* PROTOBUF_NULLABLE release_confidential_output(); + ::tari::rpc::ConfidentialOutputData* PROTOBUF_NONNULL mutable_confidential_output(); + void set_allocated_confidential_output(::tari::rpc::ConfidentialOutputData* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_confidential_output(::tari::rpc::ConfidentialOutputData* PROTOBUF_NULLABLE value); + ::tari::rpc::ConfidentialOutputData* PROTOBUF_NULLABLE unsafe_arena_release_confidential_output(); private: const ::tari::rpc::ConfidentialOutputData& _internal_confidential_output() const; - ::tari::rpc::ConfidentialOutputData* _internal_mutable_confidential_output(); + ::tari::rpc::ConfidentialOutputData* PROTOBUF_NONNULL _internal_mutable_confidential_output(); public: - void clear_side_chain_feature(); - SideChainFeatureCase side_chain_feature_case() const; + // .tari.rpc.EvictionProof eviction_proof = 4; + bool has_eviction_proof() const; + private: + bool _internal_has_eviction_proof() const; + + public: + void clear_eviction_proof() ; + const ::tari::rpc::EvictionProof& eviction_proof() const; + [[nodiscard]] ::tari::rpc::EvictionProof* PROTOBUF_NULLABLE release_eviction_proof(); + ::tari::rpc::EvictionProof* PROTOBUF_NONNULL mutable_eviction_proof(); + void set_allocated_eviction_proof(::tari::rpc::EvictionProof* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_eviction_proof(::tari::rpc::EvictionProof* PROTOBUF_NULLABLE value); + ::tari::rpc::EvictionProof* PROTOBUF_NULLABLE unsafe_arena_release_eviction_proof(); + + private: + const ::tari::rpc::EvictionProof& _internal_eviction_proof() const; + ::tari::rpc::EvictionProof* PROTOBUF_NONNULL _internal_mutable_eviction_proof(); + + public: + // .tari.rpc.ValidatorNodeExit validator_node_exit = 5; + bool has_validator_node_exit() const; + private: + bool _internal_has_validator_node_exit() const; + + public: + void clear_validator_node_exit() ; + const ::tari::rpc::ValidatorNodeExit& validator_node_exit() const; + [[nodiscard]] ::tari::rpc::ValidatorNodeExit* PROTOBUF_NULLABLE release_validator_node_exit(); + ::tari::rpc::ValidatorNodeExit* PROTOBUF_NONNULL mutable_validator_node_exit(); + void set_allocated_validator_node_exit(::tari::rpc::ValidatorNodeExit* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_validator_node_exit(::tari::rpc::ValidatorNodeExit* PROTOBUF_NULLABLE value); + ::tari::rpc::ValidatorNodeExit* PROTOBUF_NULLABLE unsafe_arena_release_validator_node_exit(); + + private: + const ::tari::rpc::ValidatorNodeExit& _internal_validator_node_exit() const; + ::tari::rpc::ValidatorNodeExit* PROTOBUF_NONNULL _internal_mutable_validator_node_exit(); + + public: + void clear_feature(); + FeatureCase feature_case() const; // @@protoc_insertion_point(class_scope:tari.rpc.SideChainFeature) private: class _Internal; 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(); + void set_has_eviction_proof(); + void set_has_validator_node_exit(); + inline bool has_feature() const; + inline void clear_has_feature(); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 3, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 6, + 6, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1814,20 +5346,26 @@ class SideChainFeature final : public ::google::protobuf::Message 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); - union SideChainFeatureUnion { - constexpr SideChainFeatureUnion() : _constinit_{} {} + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SideChainFeature& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::SideChainId* PROTOBUF_NULLABLE sidechain_id_; + union FeatureUnion { + constexpr FeatureUnion() : _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_; + ::google::protobuf::Message* PROTOBUF_NULLABLE validator_node_registration_; + ::google::protobuf::Message* PROTOBUF_NULLABLE template_registration_; + ::google::protobuf::Message* PROTOBUF_NULLABLE confidential_output_; + ::google::protobuf::Message* PROTOBUF_NULLABLE eviction_proof_; + ::google::protobuf::Message* PROTOBUF_NULLABLE validator_node_exit_; + } feature_; ::uint32_t _oneof_case_[1]; PROTOBUF_TSAN_DECLARE_MEMBER }; @@ -1835,6 +5373,8 @@ class SideChainFeature final : public ::google::protobuf::Message friend struct ::TableStruct_sidechain_5ftypes_2eproto; }; +extern const ::google::protobuf::internal::ClassDataFull SideChainFeature_class_data_; + // =================================================================== @@ -1853,76 +5393,80 @@ class SideChainFeature final : public ::google::protobuf::Message // .tari.rpc.ValidatorNodeRegistration validator_node_registration = 1; inline bool SideChainFeature::has_validator_node_registration() const { - return side_chain_feature_case() == kValidatorNodeRegistration; + return feature_case() == kValidatorNodeRegistration; } inline bool SideChainFeature::_internal_has_validator_node_registration() const { - return side_chain_feature_case() == kValidatorNodeRegistration; + return feature_case() == kValidatorNodeRegistration; } inline void SideChainFeature::set_has_validator_node_registration() { _impl_._oneof_case_[0] = kValidatorNodeRegistration; } inline void SideChainFeature::clear_validator_node_registration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (side_chain_feature_case() == kValidatorNodeRegistration) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (feature_case() == kValidatorNodeRegistration) { if (GetArena() == nullptr) { - delete _impl_.side_chain_feature_.validator_node_registration_; + delete _impl_.feature_.validator_node_registration_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.feature_.validator_node_registration_); } - clear_has_side_chain_feature(); + clear_has_feature(); } } -inline ::tari::rpc::ValidatorNodeRegistration* SideChainFeature::release_validator_node_registration() { +inline ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE SideChainFeature::release_validator_node_registration() { // @@protoc_insertion_point(field_release:tari.rpc.SideChainFeature.validator_node_registration) - if (side_chain_feature_case() == kValidatorNodeRegistration) { - clear_has_side_chain_feature(); - auto* temp = _impl_.side_chain_feature_.validator_node_registration_; + if (feature_case() == kValidatorNodeRegistration) { + clear_has_feature(); + auto* temp = reinterpret_cast<::tari::rpc::ValidatorNodeRegistration*>(_impl_.feature_.validator_node_registration_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - _impl_.side_chain_feature_.validator_node_registration_ = nullptr; + _impl_.feature_.validator_node_registration_ = nullptr; return temp; } else { return nullptr; } } inline const ::tari::rpc::ValidatorNodeRegistration& SideChainFeature::_internal_validator_node_registration() const { - return side_chain_feature_case() == kValidatorNodeRegistration ? *_impl_.side_chain_feature_.validator_node_registration_ : reinterpret_cast<::tari::rpc::ValidatorNodeRegistration&>(::tari::rpc::_ValidatorNodeRegistration_default_instance_); + return feature_case() == kValidatorNodeRegistration ? *reinterpret_cast<::tari::rpc::ValidatorNodeRegistration*>(_impl_.feature_.validator_node_registration_) : reinterpret_cast<::tari::rpc::ValidatorNodeRegistration&>(::tari::rpc::_ValidatorNodeRegistration_default_instance_); } inline const ::tari::rpc::ValidatorNodeRegistration& SideChainFeature::validator_node_registration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.SideChainFeature.validator_node_registration) return _internal_validator_node_registration(); } -inline ::tari::rpc::ValidatorNodeRegistration* SideChainFeature::unsafe_arena_release_validator_node_registration() { +inline ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE SideChainFeature::unsafe_arena_release_validator_node_registration() { // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.SideChainFeature.validator_node_registration) - if (side_chain_feature_case() == kValidatorNodeRegistration) { - clear_has_side_chain_feature(); - auto* temp = _impl_.side_chain_feature_.validator_node_registration_; - _impl_.side_chain_feature_.validator_node_registration_ = nullptr; + if (feature_case() == kValidatorNodeRegistration) { + clear_has_feature(); + auto* temp = reinterpret_cast<::tari::rpc::ValidatorNodeRegistration*>(_impl_.feature_.validator_node_registration_); + _impl_.feature_.validator_node_registration_ = nullptr; return temp; } else { return nullptr; } } -inline void SideChainFeature::unsafe_arena_set_allocated_validator_node_registration(::tari::rpc::ValidatorNodeRegistration* value) { +inline void SideChainFeature::unsafe_arena_set_allocated_validator_node_registration( + ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. - clear_side_chain_feature(); + clear_feature(); if (value) { set_has_validator_node_registration(); - _impl_.side_chain_feature_.validator_node_registration_ = value; + _impl_.feature_.validator_node_registration_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SideChainFeature.validator_node_registration) } -inline ::tari::rpc::ValidatorNodeRegistration* SideChainFeature::_internal_mutable_validator_node_registration() { - if (side_chain_feature_case() != kValidatorNodeRegistration) { - clear_side_chain_feature(); +inline ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NONNULL SideChainFeature::_internal_mutable_validator_node_registration() { + if (feature_case() != kValidatorNodeRegistration) { + clear_feature(); set_has_validator_node_registration(); - _impl_.side_chain_feature_.validator_node_registration_ = - ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ValidatorNodeRegistration>(GetArena()); + _impl_.feature_.validator_node_registration_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ValidatorNodeRegistration>(GetArena())); } - return _impl_.side_chain_feature_.validator_node_registration_; + return reinterpret_cast<::tari::rpc::ValidatorNodeRegistration*>(_impl_.feature_.validator_node_registration_); } -inline ::tari::rpc::ValidatorNodeRegistration* SideChainFeature::mutable_validator_node_registration() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::tari::rpc::ValidatorNodeRegistration* PROTOBUF_NONNULL SideChainFeature::mutable_validator_node_registration() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::tari::rpc::ValidatorNodeRegistration* _msg = _internal_mutable_validator_node_registration(); // @@protoc_insertion_point(field_mutable:tari.rpc.SideChainFeature.validator_node_registration) return _msg; @@ -1930,76 +5474,80 @@ inline ::tari::rpc::ValidatorNodeRegistration* SideChainFeature::mutable_validat // .tari.rpc.TemplateRegistration template_registration = 2; inline bool SideChainFeature::has_template_registration() const { - return side_chain_feature_case() == kTemplateRegistration; + return feature_case() == kTemplateRegistration; } inline bool SideChainFeature::_internal_has_template_registration() const { - return side_chain_feature_case() == kTemplateRegistration; + return feature_case() == kTemplateRegistration; } inline void SideChainFeature::set_has_template_registration() { _impl_._oneof_case_[0] = kTemplateRegistration; } inline void SideChainFeature::clear_template_registration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (side_chain_feature_case() == kTemplateRegistration) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (feature_case() == kTemplateRegistration) { if (GetArena() == nullptr) { - delete _impl_.side_chain_feature_.template_registration_; + delete _impl_.feature_.template_registration_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.feature_.template_registration_); } - clear_has_side_chain_feature(); + clear_has_feature(); } } -inline ::tari::rpc::TemplateRegistration* SideChainFeature::release_template_registration() { +inline ::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE SideChainFeature::release_template_registration() { // @@protoc_insertion_point(field_release:tari.rpc.SideChainFeature.template_registration) - if (side_chain_feature_case() == kTemplateRegistration) { - clear_has_side_chain_feature(); - auto* temp = _impl_.side_chain_feature_.template_registration_; + if (feature_case() == kTemplateRegistration) { + clear_has_feature(); + auto* temp = reinterpret_cast<::tari::rpc::TemplateRegistration*>(_impl_.feature_.template_registration_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - _impl_.side_chain_feature_.template_registration_ = nullptr; + _impl_.feature_.template_registration_ = nullptr; return temp; } else { return nullptr; } } inline const ::tari::rpc::TemplateRegistration& SideChainFeature::_internal_template_registration() const { - return side_chain_feature_case() == kTemplateRegistration ? *_impl_.side_chain_feature_.template_registration_ : reinterpret_cast<::tari::rpc::TemplateRegistration&>(::tari::rpc::_TemplateRegistration_default_instance_); + return feature_case() == kTemplateRegistration ? *reinterpret_cast<::tari::rpc::TemplateRegistration*>(_impl_.feature_.template_registration_) : reinterpret_cast<::tari::rpc::TemplateRegistration&>(::tari::rpc::_TemplateRegistration_default_instance_); } inline const ::tari::rpc::TemplateRegistration& SideChainFeature::template_registration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.SideChainFeature.template_registration) return _internal_template_registration(); } -inline ::tari::rpc::TemplateRegistration* SideChainFeature::unsafe_arena_release_template_registration() { +inline ::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE SideChainFeature::unsafe_arena_release_template_registration() { // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.SideChainFeature.template_registration) - if (side_chain_feature_case() == kTemplateRegistration) { - clear_has_side_chain_feature(); - auto* temp = _impl_.side_chain_feature_.template_registration_; - _impl_.side_chain_feature_.template_registration_ = nullptr; + if (feature_case() == kTemplateRegistration) { + clear_has_feature(); + auto* temp = reinterpret_cast<::tari::rpc::TemplateRegistration*>(_impl_.feature_.template_registration_); + _impl_.feature_.template_registration_ = nullptr; return temp; } else { return nullptr; } } -inline void SideChainFeature::unsafe_arena_set_allocated_template_registration(::tari::rpc::TemplateRegistration* value) { +inline void SideChainFeature::unsafe_arena_set_allocated_template_registration( + ::tari::rpc::TemplateRegistration* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. - clear_side_chain_feature(); + clear_feature(); if (value) { set_has_template_registration(); - _impl_.side_chain_feature_.template_registration_ = value; + _impl_.feature_.template_registration_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SideChainFeature.template_registration) } -inline ::tari::rpc::TemplateRegistration* SideChainFeature::_internal_mutable_template_registration() { - if (side_chain_feature_case() != kTemplateRegistration) { - clear_side_chain_feature(); +inline ::tari::rpc::TemplateRegistration* PROTOBUF_NONNULL SideChainFeature::_internal_mutable_template_registration() { + if (feature_case() != kTemplateRegistration) { + clear_feature(); set_has_template_registration(); - _impl_.side_chain_feature_.template_registration_ = - ::google::protobuf::Message::DefaultConstruct<::tari::rpc::TemplateRegistration>(GetArena()); + _impl_.feature_.template_registration_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::TemplateRegistration>(GetArena())); } - return _impl_.side_chain_feature_.template_registration_; + return reinterpret_cast<::tari::rpc::TemplateRegistration*>(_impl_.feature_.template_registration_); } -inline ::tari::rpc::TemplateRegistration* SideChainFeature::mutable_template_registration() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::tari::rpc::TemplateRegistration* PROTOBUF_NONNULL SideChainFeature::mutable_template_registration() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::tari::rpc::TemplateRegistration* _msg = _internal_mutable_template_registration(); // @@protoc_insertion_point(field_mutable:tari.rpc.SideChainFeature.template_registration) return _msg; @@ -2007,223 +5555,333 @@ inline ::tari::rpc::TemplateRegistration* SideChainFeature::mutable_template_reg // .tari.rpc.ConfidentialOutputData confidential_output = 3; inline bool SideChainFeature::has_confidential_output() const { - return side_chain_feature_case() == kConfidentialOutput; + return feature_case() == kConfidentialOutput; } inline bool SideChainFeature::_internal_has_confidential_output() const { - return side_chain_feature_case() == kConfidentialOutput; + return feature_case() == kConfidentialOutput; } inline void SideChainFeature::set_has_confidential_output() { _impl_._oneof_case_[0] = kConfidentialOutput; } inline void SideChainFeature::clear_confidential_output() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (side_chain_feature_case() == kConfidentialOutput) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (feature_case() == kConfidentialOutput) { if (GetArena() == nullptr) { - delete _impl_.side_chain_feature_.confidential_output_; + delete _impl_.feature_.confidential_output_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.feature_.confidential_output_); } - clear_has_side_chain_feature(); + clear_has_feature(); } } -inline ::tari::rpc::ConfidentialOutputData* SideChainFeature::release_confidential_output() { +inline ::tari::rpc::ConfidentialOutputData* PROTOBUF_NULLABLE SideChainFeature::release_confidential_output() { // @@protoc_insertion_point(field_release:tari.rpc.SideChainFeature.confidential_output) - if (side_chain_feature_case() == kConfidentialOutput) { - clear_has_side_chain_feature(); - auto* temp = _impl_.side_chain_feature_.confidential_output_; + if (feature_case() == kConfidentialOutput) { + clear_has_feature(); + auto* temp = reinterpret_cast<::tari::rpc::ConfidentialOutputData*>(_impl_.feature_.confidential_output_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } - _impl_.side_chain_feature_.confidential_output_ = nullptr; + _impl_.feature_.confidential_output_ = nullptr; return temp; } else { return nullptr; } } inline const ::tari::rpc::ConfidentialOutputData& SideChainFeature::_internal_confidential_output() const { - return side_chain_feature_case() == kConfidentialOutput ? *_impl_.side_chain_feature_.confidential_output_ : reinterpret_cast<::tari::rpc::ConfidentialOutputData&>(::tari::rpc::_ConfidentialOutputData_default_instance_); + return feature_case() == kConfidentialOutput ? *reinterpret_cast<::tari::rpc::ConfidentialOutputData*>(_impl_.feature_.confidential_output_) : reinterpret_cast<::tari::rpc::ConfidentialOutputData&>(::tari::rpc::_ConfidentialOutputData_default_instance_); } inline const ::tari::rpc::ConfidentialOutputData& SideChainFeature::confidential_output() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.SideChainFeature.confidential_output) return _internal_confidential_output(); } -inline ::tari::rpc::ConfidentialOutputData* SideChainFeature::unsafe_arena_release_confidential_output() { +inline ::tari::rpc::ConfidentialOutputData* PROTOBUF_NULLABLE SideChainFeature::unsafe_arena_release_confidential_output() { // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.SideChainFeature.confidential_output) - if (side_chain_feature_case() == kConfidentialOutput) { - clear_has_side_chain_feature(); - auto* temp = _impl_.side_chain_feature_.confidential_output_; - _impl_.side_chain_feature_.confidential_output_ = nullptr; + if (feature_case() == kConfidentialOutput) { + clear_has_feature(); + auto* temp = reinterpret_cast<::tari::rpc::ConfidentialOutputData*>(_impl_.feature_.confidential_output_); + _impl_.feature_.confidential_output_ = nullptr; return temp; } else { return nullptr; } } -inline void SideChainFeature::unsafe_arena_set_allocated_confidential_output(::tari::rpc::ConfidentialOutputData* value) { +inline void SideChainFeature::unsafe_arena_set_allocated_confidential_output( + ::tari::rpc::ConfidentialOutputData* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. - clear_side_chain_feature(); + clear_feature(); if (value) { set_has_confidential_output(); - _impl_.side_chain_feature_.confidential_output_ = value; + _impl_.feature_.confidential_output_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SideChainFeature.confidential_output) } -inline ::tari::rpc::ConfidentialOutputData* SideChainFeature::_internal_mutable_confidential_output() { - if (side_chain_feature_case() != kConfidentialOutput) { - clear_side_chain_feature(); +inline ::tari::rpc::ConfidentialOutputData* PROTOBUF_NONNULL SideChainFeature::_internal_mutable_confidential_output() { + if (feature_case() != kConfidentialOutput) { + clear_feature(); set_has_confidential_output(); - _impl_.side_chain_feature_.confidential_output_ = - ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ConfidentialOutputData>(GetArena()); + _impl_.feature_.confidential_output_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ConfidentialOutputData>(GetArena())); } - return _impl_.side_chain_feature_.confidential_output_; + return reinterpret_cast<::tari::rpc::ConfidentialOutputData*>(_impl_.feature_.confidential_output_); } -inline ::tari::rpc::ConfidentialOutputData* SideChainFeature::mutable_confidential_output() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::tari::rpc::ConfidentialOutputData* PROTOBUF_NONNULL SideChainFeature::mutable_confidential_output() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::tari::rpc::ConfidentialOutputData* _msg = _internal_mutable_confidential_output(); // @@protoc_insertion_point(field_mutable:tari.rpc.SideChainFeature.confidential_output) return _msg; } -inline bool SideChainFeature::has_side_chain_feature() const { - return side_chain_feature_case() != SIDE_CHAIN_FEATURE_NOT_SET; +// .tari.rpc.EvictionProof eviction_proof = 4; +inline bool SideChainFeature::has_eviction_proof() const { + return feature_case() == kEvictionProof; } -inline void SideChainFeature::clear_has_side_chain_feature() { - _impl_._oneof_case_[0] = SIDE_CHAIN_FEATURE_NOT_SET; +inline bool SideChainFeature::_internal_has_eviction_proof() const { + return feature_case() == kEvictionProof; } -inline SideChainFeature::SideChainFeatureCase SideChainFeature::side_chain_feature_case() const { - return SideChainFeature::SideChainFeatureCase(_impl_._oneof_case_[0]); +inline void SideChainFeature::set_has_eviction_proof() { + _impl_._oneof_case_[0] = kEvictionProof; } -// ------------------------------------------------------------------- - -// ValidatorNodeRegistration - -// bytes public_key = 1; -inline void ValidatorNodeRegistration::clear_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.ClearToEmpty(); +inline void SideChainFeature::clear_eviction_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (feature_case() == kEvictionProof) { + if (GetArena() == nullptr) { + delete _impl_.feature_.eviction_proof_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.feature_.eviction_proof_); + } + clear_has_feature(); + } } -inline const std::string& ValidatorNodeRegistration::public_key() const +inline ::tari::rpc::EvictionProof* PROTOBUF_NULLABLE SideChainFeature::release_eviction_proof() { + // @@protoc_insertion_point(field_release:tari.rpc.SideChainFeature.eviction_proof) + if (feature_case() == kEvictionProof) { + clear_has_feature(); + auto* temp = reinterpret_cast<::tari::rpc::EvictionProof*>(_impl_.feature_.eviction_proof_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.feature_.eviction_proof_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::tari::rpc::EvictionProof& SideChainFeature::_internal_eviction_proof() const { + return feature_case() == kEvictionProof ? *reinterpret_cast<::tari::rpc::EvictionProof*>(_impl_.feature_.eviction_proof_) : reinterpret_cast<::tari::rpc::EvictionProof&>(::tari::rpc::_EvictionProof_default_instance_); +} +inline const ::tari::rpc::EvictionProof& SideChainFeature::eviction_proof() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SideChainFeature.eviction_proof) + return _internal_eviction_proof(); +} +inline ::tari::rpc::EvictionProof* PROTOBUF_NULLABLE SideChainFeature::unsafe_arena_release_eviction_proof() { + // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.SideChainFeature.eviction_proof) + if (feature_case() == kEvictionProof) { + clear_has_feature(); + auto* temp = reinterpret_cast<::tari::rpc::EvictionProof*>(_impl_.feature_.eviction_proof_); + _impl_.feature_.eviction_proof_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void SideChainFeature::unsafe_arena_set_allocated_eviction_proof( + ::tari::rpc::EvictionProof* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_feature(); + if (value) { + set_has_eviction_proof(); + _impl_.feature_.eviction_proof_ = reinterpret_cast<::google::protobuf::Message*>(value); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SideChainFeature.eviction_proof) +} +inline ::tari::rpc::EvictionProof* PROTOBUF_NONNULL SideChainFeature::_internal_mutable_eviction_proof() { + if (feature_case() != kEvictionProof) { + clear_feature(); + set_has_eviction_proof(); + _impl_.feature_.eviction_proof_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::EvictionProof>(GetArena())); + } + return reinterpret_cast<::tari::rpc::EvictionProof*>(_impl_.feature_.eviction_proof_); +} +inline ::tari::rpc::EvictionProof* PROTOBUF_NONNULL SideChainFeature::mutable_eviction_proof() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeRegistration.public_key) - return _internal_public_key(); -} -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) -} -inline std::string* ValidatorNodeRegistration::mutable_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeRegistration.public_key) - return _s; -} -inline const std::string& ValidatorNodeRegistration::_internal_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_key_.Get(); -} -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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeRegistration.public_key) - return _impl_.public_key_.Release(); -} -inline void ValidatorNodeRegistration::set_allocated_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeRegistration.public_key) + ::tari::rpc::EvictionProof* _msg = _internal_mutable_eviction_proof(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SideChainFeature.eviction_proof) + return _msg; } -// .tari.rpc.Signature signature = 2; -inline bool ValidatorNodeRegistration::has_signature() const { +// .tari.rpc.ValidatorNodeExit validator_node_exit = 5; +inline bool SideChainFeature::has_validator_node_exit() const { + return feature_case() == kValidatorNodeExit; +} +inline bool SideChainFeature::_internal_has_validator_node_exit() const { + return feature_case() == kValidatorNodeExit; +} +inline void SideChainFeature::set_has_validator_node_exit() { + _impl_._oneof_case_[0] = kValidatorNodeExit; +} +inline void SideChainFeature::clear_validator_node_exit() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (feature_case() == kValidatorNodeExit) { + if (GetArena() == nullptr) { + delete _impl_.feature_.validator_node_exit_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.feature_.validator_node_exit_); + } + clear_has_feature(); + } +} +inline ::tari::rpc::ValidatorNodeExit* PROTOBUF_NULLABLE SideChainFeature::release_validator_node_exit() { + // @@protoc_insertion_point(field_release:tari.rpc.SideChainFeature.validator_node_exit) + if (feature_case() == kValidatorNodeExit) { + clear_has_feature(); + auto* temp = reinterpret_cast<::tari::rpc::ValidatorNodeExit*>(_impl_.feature_.validator_node_exit_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.feature_.validator_node_exit_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::tari::rpc::ValidatorNodeExit& SideChainFeature::_internal_validator_node_exit() const { + return feature_case() == kValidatorNodeExit ? *reinterpret_cast<::tari::rpc::ValidatorNodeExit*>(_impl_.feature_.validator_node_exit_) : reinterpret_cast<::tari::rpc::ValidatorNodeExit&>(::tari::rpc::_ValidatorNodeExit_default_instance_); +} +inline const ::tari::rpc::ValidatorNodeExit& SideChainFeature::validator_node_exit() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SideChainFeature.validator_node_exit) + return _internal_validator_node_exit(); +} +inline ::tari::rpc::ValidatorNodeExit* PROTOBUF_NULLABLE SideChainFeature::unsafe_arena_release_validator_node_exit() { + // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.SideChainFeature.validator_node_exit) + if (feature_case() == kValidatorNodeExit) { + clear_has_feature(); + auto* temp = reinterpret_cast<::tari::rpc::ValidatorNodeExit*>(_impl_.feature_.validator_node_exit_); + _impl_.feature_.validator_node_exit_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void SideChainFeature::unsafe_arena_set_allocated_validator_node_exit( + ::tari::rpc::ValidatorNodeExit* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_feature(); + if (value) { + set_has_validator_node_exit(); + _impl_.feature_.validator_node_exit_ = reinterpret_cast<::google::protobuf::Message*>(value); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SideChainFeature.validator_node_exit) +} +inline ::tari::rpc::ValidatorNodeExit* PROTOBUF_NONNULL SideChainFeature::_internal_mutable_validator_node_exit() { + if (feature_case() != kValidatorNodeExit) { + clear_feature(); + set_has_validator_node_exit(); + _impl_.feature_.validator_node_exit_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ValidatorNodeExit>(GetArena())); + } + return reinterpret_cast<::tari::rpc::ValidatorNodeExit*>(_impl_.feature_.validator_node_exit_); +} +inline ::tari::rpc::ValidatorNodeExit* PROTOBUF_NONNULL SideChainFeature::mutable_validator_node_exit() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::tari::rpc::ValidatorNodeExit* _msg = _internal_mutable_validator_node_exit(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SideChainFeature.validator_node_exit) + return _msg; +} + +// .tari.rpc.SideChainId sidechain_id = 6; +inline bool SideChainFeature::has_sidechain_id() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.signature_ != nullptr); + PROTOBUF_ASSUME(!value || _impl_.sidechain_id_ != nullptr); return value; } -inline const ::tari::rpc::Signature& ValidatorNodeRegistration::_internal_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Signature* p = _impl_.signature_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); +inline void SideChainFeature::clear_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.sidechain_id_ != nullptr) _impl_.sidechain_id_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const ::tari::rpc::Signature& ValidatorNodeRegistration::signature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeRegistration.signature) - return _internal_signature(); +inline const ::tari::rpc::SideChainId& SideChainFeature::_internal_sidechain_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::tari::rpc::SideChainId* p = _impl_.sidechain_id_; + return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_SideChainId_default_instance_); } -inline void ValidatorNodeRegistration::unsafe_arena_set_allocated_signature(::tari::rpc::Signature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline const ::tari::rpc::SideChainId& SideChainFeature::sidechain_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SideChainFeature.sidechain_id) + return _internal_sidechain_id(); +} +inline void SideChainFeature::unsafe_arena_set_allocated_sidechain_id( + ::tari::rpc::SideChainId* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.signature_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sidechain_id_); } - _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); + _impl_.sidechain_id_ = reinterpret_cast<::tari::rpc::SideChainId*>(value); if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ValidatorNodeRegistration.signature) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SideChainFeature.sidechain_id) } -inline ::tari::rpc::Signature* ValidatorNodeRegistration::release_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::SideChainId* PROTOBUF_NULLABLE SideChainFeature::release_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Signature* released = _impl_.signature_; - _impl_.signature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + ::tari::rpc::SideChainId* released = _impl_.sidechain_id_; + _impl_.sidechain_id_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Signature* ValidatorNodeRegistration::unsafe_arena_release_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeRegistration.signature) +inline ::tari::rpc::SideChainId* PROTOBUF_NULLABLE SideChainFeature::unsafe_arena_release_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.SideChainFeature.sidechain_id) _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Signature* temp = _impl_.signature_; - _impl_.signature_ = nullptr; + ::tari::rpc::SideChainId* temp = _impl_.sidechain_id_; + _impl_.sidechain_id_ = nullptr; return temp; } -inline ::tari::rpc::Signature* ValidatorNodeRegistration::_internal_mutable_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.signature_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Signature>(GetArena()); - _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(p); +inline ::tari::rpc::SideChainId* PROTOBUF_NONNULL SideChainFeature::_internal_mutable_sidechain_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.sidechain_id_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::SideChainId>(GetArena()); + _impl_.sidechain_id_ = reinterpret_cast<::tari::rpc::SideChainId*>(p); } - return _impl_.signature_; + return _impl_.sidechain_id_; } -inline ::tari::rpc::Signature* ValidatorNodeRegistration::mutable_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::tari::rpc::SideChainId* PROTOBUF_NONNULL SideChainFeature::mutable_sidechain_id() + 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) + ::tari::rpc::SideChainId* _msg = _internal_mutable_sidechain_id(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SideChainFeature.sidechain_id) return _msg; } -inline void ValidatorNodeRegistration::set_allocated_signature(::tari::rpc::Signature* value) { +inline void SideChainFeature::set_allocated_sidechain_id(::tari::rpc::SideChainId* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.signature_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sidechain_id_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2232,72 +5890,695 @@ inline void ValidatorNodeRegistration::set_allocated_signature(::tari::rpc::Sign _impl_._has_bits_[0] &= ~0x00000001u; } + _impl_.sidechain_id_ = reinterpret_cast<::tari::rpc::SideChainId*>(value); + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SideChainFeature.sidechain_id) +} + +inline bool SideChainFeature::has_feature() const { + return feature_case() != FEATURE_NOT_SET; +} +inline void SideChainFeature::clear_has_feature() { + _impl_._oneof_case_[0] = FEATURE_NOT_SET; +} +inline SideChainFeature::FeatureCase SideChainFeature::feature_case() const { + return SideChainFeature::FeatureCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// SideChainId + +// bytes public_key = 1; +inline void SideChainId::clear_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& SideChainId::public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SideChainId.public_key) + return _internal_public_key(); +} +template +PROTOBUF_ALWAYS_INLINE void SideChainId::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.SideChainId.public_key) +} +inline ::std::string* PROTOBUF_NONNULL SideChainId::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_key(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SideChainId.public_key) + return _s; +} +inline const ::std::string& SideChainId::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_key_.Get(); +} +inline void SideChainId::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.public_key_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SideChainId::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.public_key_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SideChainId::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.SideChainId.public_key) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; +} +inline void SideChainId::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SideChainId.public_key) +} + +// .tari.rpc.Signature knowledge_proof = 2; +inline bool SideChainId::has_knowledge_proof() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.knowledge_proof_ != nullptr); + return value; +} +inline const ::tari::rpc::Signature& SideChainId::_internal_knowledge_proof() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::tari::rpc::Signature* p = _impl_.knowledge_proof_; + return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); +} +inline const ::tari::rpc::Signature& SideChainId::knowledge_proof() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SideChainId.knowledge_proof) + return _internal_knowledge_proof(); +} +inline void SideChainId::unsafe_arena_set_allocated_knowledge_proof( + ::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.knowledge_proof_); + } + _impl_.knowledge_proof_ = reinterpret_cast<::tari::rpc::Signature*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SideChainId.knowledge_proof) +} +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE SideChainId::release_knowledge_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::tari::rpc::Signature* released = _impl_.knowledge_proof_; + _impl_.knowledge_proof_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE SideChainId::unsafe_arena_release_knowledge_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.SideChainId.knowledge_proof) + + _impl_._has_bits_[0] &= ~0x00000002u; + ::tari::rpc::Signature* temp = _impl_.knowledge_proof_; + _impl_.knowledge_proof_ = nullptr; + return temp; +} +inline ::tari::rpc::Signature* PROTOBUF_NONNULL SideChainId::_internal_mutable_knowledge_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.knowledge_proof_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Signature>(GetArena()); + _impl_.knowledge_proof_ = reinterpret_cast<::tari::rpc::Signature*>(p); + } + return _impl_.knowledge_proof_; +} +inline ::tari::rpc::Signature* PROTOBUF_NONNULL SideChainId::mutable_knowledge_proof() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; + ::tari::rpc::Signature* _msg = _internal_mutable_knowledge_proof(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SideChainId.knowledge_proof) + return _msg; +} +inline void SideChainId::set_allocated_knowledge_proof(::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.knowledge_proof_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + + _impl_.knowledge_proof_ = reinterpret_cast<::tari::rpc::Signature*>(value); + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SideChainId.knowledge_proof) +} + +// ------------------------------------------------------------------- + +// ValidatorNodeRegistration + +// bytes public_key = 1; +inline void ValidatorNodeRegistration::clear_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& ValidatorNodeRegistration::public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeRegistration.public_key) + return _internal_public_key(); +} +template +PROTOBUF_ALWAYS_INLINE void ValidatorNodeRegistration::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.ValidatorNodeRegistration.public_key) +} +inline ::std::string* PROTOBUF_NONNULL ValidatorNodeRegistration::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_key(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeRegistration.public_key) + return _s; +} +inline const ::std::string& ValidatorNodeRegistration::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_key_.Get(); +} +inline void ValidatorNodeRegistration::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.public_key_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL ValidatorNodeRegistration::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.public_key_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE ValidatorNodeRegistration::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeRegistration.public_key) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; +} +inline void ValidatorNodeRegistration::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeRegistration.public_key) +} + +// .tari.rpc.Signature signature = 2; +inline bool ValidatorNodeRegistration::has_signature() const { + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || _impl_.signature_ != nullptr); + return value; +} +inline const ::tari::rpc::Signature& ValidatorNodeRegistration::_internal_signature() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::tari::rpc::Signature* p = _impl_.signature_; + return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); +} +inline const ::tari::rpc::Signature& ValidatorNodeRegistration::signature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeRegistration.signature) + return _internal_signature(); +} +inline void ValidatorNodeRegistration::unsafe_arena_set_allocated_signature( + ::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.signature_); + } + _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ValidatorNodeRegistration.signature) +} +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE ValidatorNodeRegistration::release_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000004u; + ::tari::rpc::Signature* released = _impl_.signature_; + _impl_.signature_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE ValidatorNodeRegistration::unsafe_arena_release_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeRegistration.signature) + + _impl_._has_bits_[0] &= ~0x00000004u; + ::tari::rpc::Signature* temp = _impl_.signature_; + _impl_.signature_ = nullptr; + return temp; +} +inline ::tari::rpc::Signature* PROTOBUF_NONNULL ValidatorNodeRegistration::_internal_mutable_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.signature_ == nullptr) { + 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* PROTOBUF_NONNULL ValidatorNodeRegistration::mutable_signature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; + ::tari::rpc::Signature* _msg = _internal_mutable_signature(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeRegistration.signature) + return _msg; +} +inline void ValidatorNodeRegistration::set_allocated_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.signature_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeRegistration.signature) } +// bytes claim_public_key = 3; +inline void ValidatorNodeRegistration::clear_claim_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.claim_public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::std::string& ValidatorNodeRegistration::claim_public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeRegistration.claim_public_key) + return _internal_claim_public_key(); +} +template +PROTOBUF_ALWAYS_INLINE void ValidatorNodeRegistration::set_claim_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.claim_public_key_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.ValidatorNodeRegistration.claim_public_key) +} +inline ::std::string* PROTOBUF_NONNULL ValidatorNodeRegistration::mutable_claim_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_claim_public_key(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeRegistration.claim_public_key) + return _s; +} +inline const ::std::string& ValidatorNodeRegistration::_internal_claim_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.claim_public_key_.Get(); +} +inline void ValidatorNodeRegistration::_internal_set_claim_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.claim_public_key_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL ValidatorNodeRegistration::_internal_mutable_claim_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + return _impl_.claim_public_key_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE ValidatorNodeRegistration::release_claim_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeRegistration.claim_public_key) + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.claim_public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.claim_public_key_.Set("", GetArena()); + } + return released; +} +inline void ValidatorNodeRegistration::set_allocated_claim_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + _impl_.claim_public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.claim_public_key_.IsDefault()) { + _impl_.claim_public_key_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeRegistration.claim_public_key) +} + +// uint64 max_epoch = 4; +inline void ValidatorNodeRegistration::clear_max_epoch() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.max_epoch_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000008u; +} +inline ::uint64_t ValidatorNodeRegistration::max_epoch() const { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeRegistration.max_epoch) + return _internal_max_epoch(); +} +inline void ValidatorNodeRegistration::set_max_epoch(::uint64_t value) { + _internal_set_max_epoch(value); + _impl_._has_bits_[0] |= 0x00000008u; + // @@protoc_insertion_point(field_set:tari.rpc.ValidatorNodeRegistration.max_epoch) +} +inline ::uint64_t ValidatorNodeRegistration::_internal_max_epoch() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.max_epoch_; +} +inline void ValidatorNodeRegistration::_internal_set_max_epoch(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.max_epoch_ = value; +} + +// ------------------------------------------------------------------- + +// ValidatorNodeExit + +// bytes public_key = 1; +inline void ValidatorNodeExit::clear_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& ValidatorNodeExit::public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeExit.public_key) + return _internal_public_key(); +} +template +PROTOBUF_ALWAYS_INLINE void ValidatorNodeExit::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.ValidatorNodeExit.public_key) +} +inline ::std::string* PROTOBUF_NONNULL ValidatorNodeExit::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_key(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeExit.public_key) + return _s; +} +inline const ::std::string& ValidatorNodeExit::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_key_.Get(); +} +inline void ValidatorNodeExit::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.public_key_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL ValidatorNodeExit::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.public_key_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE ValidatorNodeExit::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeExit.public_key) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; +} +inline void ValidatorNodeExit::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeExit.public_key) +} + +// .tari.rpc.Signature signature = 2; +inline bool ValidatorNodeExit::has_signature() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.signature_ != nullptr); + return value; +} +inline const ::tari::rpc::Signature& ValidatorNodeExit::_internal_signature() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::tari::rpc::Signature* p = _impl_.signature_; + return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); +} +inline const ::tari::rpc::Signature& ValidatorNodeExit::signature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeExit.signature) + return _internal_signature(); +} +inline void ValidatorNodeExit::unsafe_arena_set_allocated_signature( + ::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.signature_); + } + _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ValidatorNodeExit.signature) +} +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE ValidatorNodeExit::release_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::tari::rpc::Signature* released = _impl_.signature_; + _impl_.signature_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE ValidatorNodeExit::unsafe_arena_release_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeExit.signature) + + _impl_._has_bits_[0] &= ~0x00000002u; + ::tari::rpc::Signature* temp = _impl_.signature_; + _impl_.signature_ = nullptr; + return temp; +} +inline ::tari::rpc::Signature* PROTOBUF_NONNULL ValidatorNodeExit::_internal_mutable_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.signature_ == nullptr) { + 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* PROTOBUF_NONNULL ValidatorNodeExit::mutable_signature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; + ::tari::rpc::Signature* _msg = _internal_mutable_signature(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeExit.signature) + return _msg; +} +inline void ValidatorNodeExit::set_allocated_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.signature_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + + _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeExit.signature) +} + +// uint64 max_epoch = 3; +inline void ValidatorNodeExit::clear_max_epoch() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.max_epoch_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline ::uint64_t ValidatorNodeExit::max_epoch() const { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeExit.max_epoch) + return _internal_max_epoch(); +} +inline void ValidatorNodeExit::set_max_epoch(::uint64_t value) { + _internal_set_max_epoch(value); + _impl_._has_bits_[0] |= 0x00000004u; + // @@protoc_insertion_point(field_set:tari.rpc.ValidatorNodeExit.max_epoch) +} +inline ::uint64_t ValidatorNodeExit::_internal_max_epoch() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.max_epoch_; +} +inline void ValidatorNodeExit::_internal_set_max_epoch(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.max_epoch_ = value; +} + // ------------------------------------------------------------------- // TemplateRegistration // bytes author_public_key = 1; inline void TemplateRegistration::clear_author_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.author_public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& TemplateRegistration::author_public_key() const +inline const ::std::string& TemplateRegistration::author_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.author_public_key) return _internal_author_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_author_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_author_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.author_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.author_public_key) } -inline std::string* TemplateRegistration::mutable_author_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_author_public_key(); +inline ::std::string* PROTOBUF_NONNULL TemplateRegistration::mutable_author_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_author_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.author_public_key) return _s; } -inline const std::string& TemplateRegistration::_internal_author_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TemplateRegistration::_internal_author_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.author_public_key_.Get(); } -inline void TemplateRegistration::_internal_set_author_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TemplateRegistration::_internal_set_author_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.author_public_key_.Set(value, GetArena()); } -inline std::string* TemplateRegistration::_internal_mutable_author_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TemplateRegistration::_internal_mutable_author_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.author_public_key_.Mutable( GetArena()); } -inline std::string* TemplateRegistration::release_author_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TemplateRegistration::release_author_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.author_public_key) - return _impl_.author_public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.author_public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.author_public_key_.Set("", GetArena()); + } + return released; } -inline void TemplateRegistration::set_allocated_author_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TemplateRegistration::set_allocated_author_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.author_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.author_public_key_.IsDefault()) { - _impl_.author_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.author_public_key_.IsDefault()) { + _impl_.author_public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateRegistration.author_public_key) } // .tari.rpc.Signature author_signature = 2; inline bool TemplateRegistration::has_author_signature() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; PROTOBUF_ASSUME(!value || _impl_.author_signature_ != nullptr); return value; } inline const ::tari::rpc::Signature& TemplateRegistration::_internal_author_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Signature* p = _impl_.author_signature_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); } @@ -2305,76 +6586,78 @@ inline const ::tari::rpc::Signature& TemplateRegistration::author_signature() co // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.author_signature) return _internal_author_signature(); } -inline void TemplateRegistration::unsafe_arena_set_allocated_author_signature(::tari::rpc::Signature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TemplateRegistration::unsafe_arena_set_allocated_author_signature( + ::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.author_signature_); } _impl_.author_signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000010u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000010u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TemplateRegistration.author_signature) } -inline ::tari::rpc::Signature* TemplateRegistration::release_author_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE TemplateRegistration::release_author_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000010u; ::tari::rpc::Signature* released = _impl_.author_signature_; _impl_.author_signature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Signature* TemplateRegistration::unsafe_arena_release_author_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE TemplateRegistration::unsafe_arena_release_author_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.author_signature) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000010u; ::tari::rpc::Signature* temp = _impl_.author_signature_; _impl_.author_signature_ = nullptr; return temp; } -inline ::tari::rpc::Signature* TemplateRegistration::_internal_mutable_author_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Signature* PROTOBUF_NONNULL TemplateRegistration::_internal_mutable_author_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.author_signature_ == nullptr) { 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; +inline ::tari::rpc::Signature* PROTOBUF_NONNULL TemplateRegistration::mutable_author_signature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000010u; ::tari::rpc::Signature* _msg = _internal_mutable_author_signature(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.author_signature) return _msg; } -inline void TemplateRegistration::set_allocated_author_signature(::tari::rpc::Signature* value) { +inline void TemplateRegistration::set_allocated_author_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.author_signature_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000010u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000010u; } _impl_.author_signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); @@ -2383,58 +6666,74 @@ inline void TemplateRegistration::set_allocated_author_signature(::tari::rpc::Si // string template_name = 3; inline void TemplateRegistration::clear_template_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.template_name_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& TemplateRegistration::template_name() const +inline const ::std::string& TemplateRegistration::template_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.template_name) return _internal_template_name(); } template -inline PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_template_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_template_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.template_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.template_name) } -inline std::string* TemplateRegistration::mutable_template_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_template_name(); +inline ::std::string* PROTOBUF_NONNULL TemplateRegistration::mutable_template_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_template_name(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.template_name) return _s; } -inline const std::string& TemplateRegistration::_internal_template_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TemplateRegistration::_internal_template_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.template_name_.Get(); } -inline void TemplateRegistration::_internal_set_template_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TemplateRegistration::_internal_set_template_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.template_name_.Set(value, GetArena()); } -inline std::string* TemplateRegistration::_internal_mutable_template_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TemplateRegistration::_internal_mutable_template_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.template_name_.Mutable( GetArena()); } -inline std::string* TemplateRegistration::release_template_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TemplateRegistration::release_template_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.template_name) - return _impl_.template_name_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.template_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.template_name_.Set("", GetArena()); + } + return released; } -inline void TemplateRegistration::set_allocated_template_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TemplateRegistration::set_allocated_template_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.template_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.template_name_.IsDefault()) { - _impl_.template_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.template_name_.IsDefault()) { + _impl_.template_name_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateRegistration.template_name) } // uint32 template_version = 4; inline void TemplateRegistration::clear_template_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.template_version_ = 0u; + _impl_._has_bits_[0] &= ~0x00000080u; } inline ::uint32_t TemplateRegistration::template_version() const { // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.template_version) @@ -2442,30 +6741,31 @@ inline ::uint32_t TemplateRegistration::template_version() const { } inline void TemplateRegistration::set_template_version(::uint32_t value) { _internal_set_template_version(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.template_version) } inline ::uint32_t TemplateRegistration::_internal_template_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.template_version_; } inline void TemplateRegistration::_internal_set_template_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.template_version_ = value; } // .tari.rpc.TemplateType template_type = 5; inline bool TemplateRegistration::has_template_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; PROTOBUF_ASSUME(!value || _impl_.template_type_ != nullptr); return value; } inline void TemplateRegistration::clear_template_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.template_type_ != nullptr) _impl_.template_type_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000020u; } inline const ::tari::rpc::TemplateType& TemplateRegistration::_internal_template_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::TemplateType* p = _impl_.template_type_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_TemplateType_default_instance_); } @@ -2473,76 +6773,78 @@ inline const ::tari::rpc::TemplateType& TemplateRegistration::template_type() co // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.template_type) return _internal_template_type(); } -inline void TemplateRegistration::unsafe_arena_set_allocated_template_type(::tari::rpc::TemplateType* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TemplateRegistration::unsafe_arena_set_allocated_template_type( + ::tari::rpc::TemplateType* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.template_type_); } _impl_.template_type_ = reinterpret_cast<::tari::rpc::TemplateType*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + _impl_._has_bits_[0] |= 0x00000020u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000020u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TemplateRegistration.template_type) } -inline ::tari::rpc::TemplateType* TemplateRegistration::release_template_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TemplateType* PROTOBUF_NULLABLE TemplateRegistration::release_template_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000020u; ::tari::rpc::TemplateType* released = _impl_.template_type_; _impl_.template_type_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::TemplateType* TemplateRegistration::unsafe_arena_release_template_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TemplateType* PROTOBUF_NULLABLE TemplateRegistration::unsafe_arena_release_template_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.template_type) - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000020u; ::tari::rpc::TemplateType* temp = _impl_.template_type_; _impl_.template_type_ = nullptr; return temp; } -inline ::tari::rpc::TemplateType* TemplateRegistration::_internal_mutable_template_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TemplateType* PROTOBUF_NONNULL TemplateRegistration::_internal_mutable_template_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.template_type_ == nullptr) { 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; +inline ::tari::rpc::TemplateType* PROTOBUF_NONNULL TemplateRegistration::mutable_template_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000020u; ::tari::rpc::TemplateType* _msg = _internal_mutable_template_type(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.template_type) return _msg; } -inline void TemplateRegistration::set_allocated_template_type(::tari::rpc::TemplateType* value) { +inline void TemplateRegistration::set_allocated_template_type(::tari::rpc::TemplateType* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.template_type_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.template_type_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + _impl_._has_bits_[0] |= 0x00000020u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000020u; } _impl_.template_type_ = reinterpret_cast<::tari::rpc::TemplateType*>(value); @@ -2551,17 +6853,17 @@ inline void TemplateRegistration::set_allocated_template_type(::tari::rpc::Templ // .tari.rpc.BuildInfo build_info = 6; inline bool TemplateRegistration::has_build_info() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; PROTOBUF_ASSUME(!value || _impl_.build_info_ != nullptr); return value; } inline void TemplateRegistration::clear_build_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.build_info_ != nullptr) _impl_.build_info_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000040u; } inline const ::tari::rpc::BuildInfo& TemplateRegistration::_internal_build_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::BuildInfo* p = _impl_.build_info_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_BuildInfo_default_instance_); } @@ -2569,76 +6871,78 @@ inline const ::tari::rpc::BuildInfo& TemplateRegistration::build_info() const AB // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.build_info) return _internal_build_info(); } -inline void TemplateRegistration::unsafe_arena_set_allocated_build_info(::tari::rpc::BuildInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TemplateRegistration::unsafe_arena_set_allocated_build_info( + ::tari::rpc::BuildInfo* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.build_info_); } _impl_.build_info_ = reinterpret_cast<::tari::rpc::BuildInfo*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + _impl_._has_bits_[0] |= 0x00000040u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000040u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TemplateRegistration.build_info) } -inline ::tari::rpc::BuildInfo* TemplateRegistration::release_build_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::BuildInfo* PROTOBUF_NULLABLE TemplateRegistration::release_build_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000040u; ::tari::rpc::BuildInfo* released = _impl_.build_info_; _impl_.build_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::BuildInfo* TemplateRegistration::unsafe_arena_release_build_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::BuildInfo* PROTOBUF_NULLABLE TemplateRegistration::unsafe_arena_release_build_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.build_info) - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000040u; ::tari::rpc::BuildInfo* temp = _impl_.build_info_; _impl_.build_info_ = nullptr; return temp; } -inline ::tari::rpc::BuildInfo* TemplateRegistration::_internal_mutable_build_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::BuildInfo* PROTOBUF_NONNULL TemplateRegistration::_internal_mutable_build_info() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.build_info_ == nullptr) { 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; +inline ::tari::rpc::BuildInfo* PROTOBUF_NONNULL TemplateRegistration::mutable_build_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000040u; ::tari::rpc::BuildInfo* _msg = _internal_mutable_build_info(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.build_info) return _msg; } -inline void TemplateRegistration::set_allocated_build_info(::tari::rpc::BuildInfo* value) { +inline void TemplateRegistration::set_allocated_build_info(::tari::rpc::BuildInfo* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.build_info_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.build_info_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + _impl_._has_bits_[0] |= 0x00000040u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000040u; } _impl_.build_info_ = reinterpret_cast<::tari::rpc::BuildInfo*>(value); @@ -2647,101 +6951,131 @@ inline void TemplateRegistration::set_allocated_build_info(::tari::rpc::BuildInf // bytes binary_sha = 7; inline void TemplateRegistration::clear_binary_sha() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.binary_sha_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& TemplateRegistration::binary_sha() const +inline const ::std::string& TemplateRegistration::binary_sha() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.binary_sha) return _internal_binary_sha(); } template -inline PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_binary_sha(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_binary_sha(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.binary_sha_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.binary_sha) } -inline std::string* TemplateRegistration::mutable_binary_sha() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_binary_sha(); +inline ::std::string* PROTOBUF_NONNULL TemplateRegistration::mutable_binary_sha() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_binary_sha(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.binary_sha) return _s; } -inline const std::string& TemplateRegistration::_internal_binary_sha() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TemplateRegistration::_internal_binary_sha() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.binary_sha_.Get(); } -inline void TemplateRegistration::_internal_set_binary_sha(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TemplateRegistration::_internal_set_binary_sha(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.binary_sha_.Set(value, GetArena()); } -inline std::string* TemplateRegistration::_internal_mutable_binary_sha() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TemplateRegistration::_internal_mutable_binary_sha() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.binary_sha_.Mutable( GetArena()); } -inline std::string* TemplateRegistration::release_binary_sha() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TemplateRegistration::release_binary_sha() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.binary_sha) - return _impl_.binary_sha_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.binary_sha_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.binary_sha_.Set("", GetArena()); + } + return released; } -inline void TemplateRegistration::set_allocated_binary_sha(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TemplateRegistration::set_allocated_binary_sha(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.binary_sha_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.binary_sha_.IsDefault()) { - _impl_.binary_sha_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.binary_sha_.IsDefault()) { + _impl_.binary_sha_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateRegistration.binary_sha) } // string binary_url = 8; inline void TemplateRegistration::clear_binary_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.binary_url_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& TemplateRegistration::binary_url() const +inline const ::std::string& TemplateRegistration::binary_url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.binary_url) return _internal_binary_url(); } template -inline PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_binary_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_binary_url(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.binary_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.binary_url) } -inline std::string* TemplateRegistration::mutable_binary_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_binary_url(); +inline ::std::string* PROTOBUF_NONNULL TemplateRegistration::mutable_binary_url() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_binary_url(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.binary_url) return _s; } -inline const std::string& TemplateRegistration::_internal_binary_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TemplateRegistration::_internal_binary_url() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.binary_url_.Get(); } -inline void TemplateRegistration::_internal_set_binary_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TemplateRegistration::_internal_set_binary_url(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.binary_url_.Set(value, GetArena()); } -inline std::string* TemplateRegistration::_internal_mutable_binary_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TemplateRegistration::_internal_mutable_binary_url() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.binary_url_.Mutable( GetArena()); } -inline std::string* TemplateRegistration::release_binary_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TemplateRegistration::release_binary_url() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.binary_url) - return _impl_.binary_url_.Release(); + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.binary_url_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.binary_url_.Set("", GetArena()); + } + return released; } -inline void TemplateRegistration::set_allocated_binary_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TemplateRegistration::set_allocated_binary_url(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } _impl_.binary_url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.binary_url_.IsDefault()) { - _impl_.binary_url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.binary_url_.IsDefault()) { + _impl_.binary_url_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateRegistration.binary_url) } @@ -2751,51 +7085,66 @@ inline void TemplateRegistration::set_allocated_binary_url(std::string* value) { // bytes claim_public_key = 1; inline void ConfidentialOutputData::clear_claim_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.claim_public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& ConfidentialOutputData::claim_public_key() const +inline const ::std::string& ConfidentialOutputData::claim_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.ConfidentialOutputData.claim_public_key) return _internal_claim_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void ConfidentialOutputData::set_claim_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void ConfidentialOutputData::set_claim_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.claim_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ConfidentialOutputData.claim_public_key) } -inline std::string* ConfidentialOutputData::mutable_claim_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_claim_public_key(); +inline ::std::string* PROTOBUF_NONNULL ConfidentialOutputData::mutable_claim_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_claim_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.ConfidentialOutputData.claim_public_key) return _s; } -inline const std::string& ConfidentialOutputData::_internal_claim_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& ConfidentialOutputData::_internal_claim_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.claim_public_key_.Get(); } -inline void ConfidentialOutputData::_internal_set_claim_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ConfidentialOutputData::_internal_set_claim_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.claim_public_key_.Set(value, GetArena()); } -inline std::string* ConfidentialOutputData::_internal_mutable_claim_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL ConfidentialOutputData::_internal_mutable_claim_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.claim_public_key_.Mutable( GetArena()); } -inline std::string* ConfidentialOutputData::release_claim_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE ConfidentialOutputData::release_claim_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ConfidentialOutputData.claim_public_key) - return _impl_.claim_public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.claim_public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.claim_public_key_.Set("", GetArena()); + } + return released; } -inline void ConfidentialOutputData::set_allocated_claim_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ConfidentialOutputData::set_allocated_claim_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.claim_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.claim_public_key_.IsDefault()) { - _impl_.claim_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.claim_public_key_.IsDefault()) { + _impl_.claim_public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.ConfidentialOutputData.claim_public_key) } @@ -2814,19 +7163,21 @@ inline void TemplateType::set_has_wasm() { _impl_._oneof_case_[0] = kWasm; } inline void TemplateType::clear_wasm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (template_type_case() == kWasm) { if (GetArena() == nullptr) { delete _impl_.template_type_.wasm_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.template_type_.wasm_); } clear_has_template_type(); } } -inline ::tari::rpc::WasmInfo* TemplateType::release_wasm() { +inline ::tari::rpc::WasmInfo* PROTOBUF_NULLABLE TemplateType::release_wasm() { // @@protoc_insertion_point(field_release:tari.rpc.TemplateType.wasm) if (template_type_case() == kWasm) { clear_has_template_type(); - auto* temp = _impl_.template_type_.wasm_; + auto* temp = reinterpret_cast<::tari::rpc::WasmInfo*>(_impl_.template_type_.wasm_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -2837,44 +7188,46 @@ inline ::tari::rpc::WasmInfo* TemplateType::release_wasm() { } } inline const ::tari::rpc::WasmInfo& TemplateType::_internal_wasm() const { - return template_type_case() == kWasm ? *_impl_.template_type_.wasm_ : reinterpret_cast<::tari::rpc::WasmInfo&>(::tari::rpc::_WasmInfo_default_instance_); + return template_type_case() == kWasm ? *reinterpret_cast<::tari::rpc::WasmInfo*>(_impl_.template_type_.wasm_) : reinterpret_cast<::tari::rpc::WasmInfo&>(::tari::rpc::_WasmInfo_default_instance_); } inline const ::tari::rpc::WasmInfo& TemplateType::wasm() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TemplateType.wasm) return _internal_wasm(); } -inline ::tari::rpc::WasmInfo* TemplateType::unsafe_arena_release_wasm() { +inline ::tari::rpc::WasmInfo* PROTOBUF_NULLABLE TemplateType::unsafe_arena_release_wasm() { // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.TemplateType.wasm) if (template_type_case() == kWasm) { clear_has_template_type(); - auto* temp = _impl_.template_type_.wasm_; + auto* temp = reinterpret_cast<::tari::rpc::WasmInfo*>(_impl_.template_type_.wasm_); _impl_.template_type_.wasm_ = nullptr; return temp; } else { return nullptr; } } -inline void TemplateType::unsafe_arena_set_allocated_wasm(::tari::rpc::WasmInfo* value) { +inline void TemplateType::unsafe_arena_set_allocated_wasm( + ::tari::rpc::WasmInfo* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_template_type(); if (value) { set_has_wasm(); - _impl_.template_type_.wasm_ = value; + _impl_.template_type_.wasm_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TemplateType.wasm) } -inline ::tari::rpc::WasmInfo* TemplateType::_internal_mutable_wasm() { +inline ::tari::rpc::WasmInfo* PROTOBUF_NONNULL TemplateType::_internal_mutable_wasm() { if (template_type_case() != kWasm) { clear_template_type(); set_has_wasm(); - _impl_.template_type_.wasm_ = - ::google::protobuf::Message::DefaultConstruct<::tari::rpc::WasmInfo>(GetArena()); + _impl_.template_type_.wasm_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::WasmInfo>(GetArena())); } - return _impl_.template_type_.wasm_; + return reinterpret_cast<::tari::rpc::WasmInfo*>(_impl_.template_type_.wasm_); } -inline ::tari::rpc::WasmInfo* TemplateType::mutable_wasm() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::tari::rpc::WasmInfo* PROTOBUF_NONNULL TemplateType::mutable_wasm() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::tari::rpc::WasmInfo* _msg = _internal_mutable_wasm(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateType.wasm) return _msg; @@ -2891,19 +7244,21 @@ inline void TemplateType::set_has_flow() { _impl_._oneof_case_[0] = kFlow; } inline void TemplateType::clear_flow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (template_type_case() == kFlow) { if (GetArena() == nullptr) { delete _impl_.template_type_.flow_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.template_type_.flow_); } clear_has_template_type(); } } -inline ::tari::rpc::FlowInfo* TemplateType::release_flow() { +inline ::tari::rpc::FlowInfo* PROTOBUF_NULLABLE TemplateType::release_flow() { // @@protoc_insertion_point(field_release:tari.rpc.TemplateType.flow) if (template_type_case() == kFlow) { clear_has_template_type(); - auto* temp = _impl_.template_type_.flow_; + auto* temp = reinterpret_cast<::tari::rpc::FlowInfo*>(_impl_.template_type_.flow_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -2914,44 +7269,46 @@ inline ::tari::rpc::FlowInfo* TemplateType::release_flow() { } } inline const ::tari::rpc::FlowInfo& TemplateType::_internal_flow() const { - return template_type_case() == kFlow ? *_impl_.template_type_.flow_ : reinterpret_cast<::tari::rpc::FlowInfo&>(::tari::rpc::_FlowInfo_default_instance_); + return template_type_case() == kFlow ? *reinterpret_cast<::tari::rpc::FlowInfo*>(_impl_.template_type_.flow_) : reinterpret_cast<::tari::rpc::FlowInfo&>(::tari::rpc::_FlowInfo_default_instance_); } inline const ::tari::rpc::FlowInfo& TemplateType::flow() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TemplateType.flow) return _internal_flow(); } -inline ::tari::rpc::FlowInfo* TemplateType::unsafe_arena_release_flow() { +inline ::tari::rpc::FlowInfo* PROTOBUF_NULLABLE TemplateType::unsafe_arena_release_flow() { // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.TemplateType.flow) if (template_type_case() == kFlow) { clear_has_template_type(); - auto* temp = _impl_.template_type_.flow_; + auto* temp = reinterpret_cast<::tari::rpc::FlowInfo*>(_impl_.template_type_.flow_); _impl_.template_type_.flow_ = nullptr; return temp; } else { return nullptr; } } -inline void TemplateType::unsafe_arena_set_allocated_flow(::tari::rpc::FlowInfo* value) { +inline void TemplateType::unsafe_arena_set_allocated_flow( + ::tari::rpc::FlowInfo* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_template_type(); if (value) { set_has_flow(); - _impl_.template_type_.flow_ = value; + _impl_.template_type_.flow_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TemplateType.flow) } -inline ::tari::rpc::FlowInfo* TemplateType::_internal_mutable_flow() { +inline ::tari::rpc::FlowInfo* PROTOBUF_NONNULL TemplateType::_internal_mutable_flow() { if (template_type_case() != kFlow) { clear_template_type(); set_has_flow(); - _impl_.template_type_.flow_ = - ::google::protobuf::Message::DefaultConstruct<::tari::rpc::FlowInfo>(GetArena()); + _impl_.template_type_.flow_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::FlowInfo>(GetArena())); } - return _impl_.template_type_.flow_; + return reinterpret_cast<::tari::rpc::FlowInfo*>(_impl_.template_type_.flow_); } -inline ::tari::rpc::FlowInfo* TemplateType::mutable_flow() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::tari::rpc::FlowInfo* PROTOBUF_NONNULL TemplateType::mutable_flow() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::tari::rpc::FlowInfo* _msg = _internal_mutable_flow(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateType.flow) return _msg; @@ -2968,19 +7325,21 @@ inline void TemplateType::set_has_manifest() { _impl_._oneof_case_[0] = kManifest; } inline void TemplateType::clear_manifest() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (template_type_case() == kManifest) { if (GetArena() == nullptr) { delete _impl_.template_type_.manifest_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.template_type_.manifest_); } clear_has_template_type(); } } -inline ::tari::rpc::ManifestInfo* TemplateType::release_manifest() { +inline ::tari::rpc::ManifestInfo* PROTOBUF_NULLABLE TemplateType::release_manifest() { // @@protoc_insertion_point(field_release:tari.rpc.TemplateType.manifest) if (template_type_case() == kManifest) { clear_has_template_type(); - auto* temp = _impl_.template_type_.manifest_; + auto* temp = reinterpret_cast<::tari::rpc::ManifestInfo*>(_impl_.template_type_.manifest_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -2991,44 +7350,46 @@ inline ::tari::rpc::ManifestInfo* TemplateType::release_manifest() { } } inline const ::tari::rpc::ManifestInfo& TemplateType::_internal_manifest() const { - return template_type_case() == kManifest ? *_impl_.template_type_.manifest_ : reinterpret_cast<::tari::rpc::ManifestInfo&>(::tari::rpc::_ManifestInfo_default_instance_); + return template_type_case() == kManifest ? *reinterpret_cast<::tari::rpc::ManifestInfo*>(_impl_.template_type_.manifest_) : reinterpret_cast<::tari::rpc::ManifestInfo&>(::tari::rpc::_ManifestInfo_default_instance_); } inline const ::tari::rpc::ManifestInfo& TemplateType::manifest() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TemplateType.manifest) return _internal_manifest(); } -inline ::tari::rpc::ManifestInfo* TemplateType::unsafe_arena_release_manifest() { +inline ::tari::rpc::ManifestInfo* PROTOBUF_NULLABLE TemplateType::unsafe_arena_release_manifest() { // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.TemplateType.manifest) if (template_type_case() == kManifest) { clear_has_template_type(); - auto* temp = _impl_.template_type_.manifest_; + auto* temp = reinterpret_cast<::tari::rpc::ManifestInfo*>(_impl_.template_type_.manifest_); _impl_.template_type_.manifest_ = nullptr; return temp; } else { return nullptr; } } -inline void TemplateType::unsafe_arena_set_allocated_manifest(::tari::rpc::ManifestInfo* value) { +inline void TemplateType::unsafe_arena_set_allocated_manifest( + ::tari::rpc::ManifestInfo* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_template_type(); if (value) { set_has_manifest(); - _impl_.template_type_.manifest_ = value; + _impl_.template_type_.manifest_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TemplateType.manifest) } -inline ::tari::rpc::ManifestInfo* TemplateType::_internal_mutable_manifest() { +inline ::tari::rpc::ManifestInfo* PROTOBUF_NONNULL TemplateType::_internal_mutable_manifest() { if (template_type_case() != kManifest) { clear_template_type(); set_has_manifest(); - _impl_.template_type_.manifest_ = - ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ManifestInfo>(GetArena()); + _impl_.template_type_.manifest_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ManifestInfo>(GetArena())); } - return _impl_.template_type_.manifest_; + return reinterpret_cast<::tari::rpc::ManifestInfo*>(_impl_.template_type_.manifest_); } -inline ::tari::rpc::ManifestInfo* TemplateType::mutable_manifest() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::tari::rpc::ManifestInfo* PROTOBUF_NONNULL TemplateType::mutable_manifest() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::tari::rpc::ManifestInfo* _msg = _internal_mutable_manifest(); // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateType.manifest) return _msg; @@ -3049,8 +7410,9 @@ inline TemplateType::TemplateTypeCase TemplateType::template_type_case() const { // uint32 abi_version = 1; inline void WasmInfo::clear_abi_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.abi_version_ = 0u; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint32_t WasmInfo::abi_version() const { // @@protoc_insertion_point(field_get:tari.rpc.WasmInfo.abi_version) @@ -3058,14 +7420,15 @@ inline ::uint32_t WasmInfo::abi_version() const { } inline void WasmInfo::set_abi_version(::uint32_t value) { _internal_set_abi_version(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.WasmInfo.abi_version) } inline ::uint32_t WasmInfo::_internal_abi_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.abi_version_; } inline void WasmInfo::_internal_set_abi_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.abi_version_ = value; } @@ -3083,104 +7446,2225 @@ inline void WasmInfo::_internal_set_abi_version(::uint32_t value) { // string repo_url = 1; inline void BuildInfo::clear_repo_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.repo_url_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& BuildInfo::repo_url() const +inline const ::std::string& BuildInfo::repo_url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BuildInfo.repo_url) return _internal_repo_url(); } template -inline PROTOBUF_ALWAYS_INLINE void BuildInfo::set_repo_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BuildInfo::set_repo_url(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.repo_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BuildInfo.repo_url) } -inline std::string* BuildInfo::mutable_repo_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_repo_url(); +inline ::std::string* PROTOBUF_NONNULL BuildInfo::mutable_repo_url() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_repo_url(); // @@protoc_insertion_point(field_mutable:tari.rpc.BuildInfo.repo_url) return _s; } -inline const std::string& BuildInfo::_internal_repo_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BuildInfo::_internal_repo_url() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.repo_url_.Get(); } -inline void BuildInfo::_internal_set_repo_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BuildInfo::_internal_set_repo_url(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.repo_url_.Set(value, GetArena()); } -inline std::string* BuildInfo::_internal_mutable_repo_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BuildInfo::_internal_mutable_repo_url() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.repo_url_.Mutable( GetArena()); } -inline std::string* BuildInfo::release_repo_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BuildInfo::release_repo_url() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BuildInfo.repo_url) - return _impl_.repo_url_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.repo_url_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.repo_url_.Set("", GetArena()); + } + return released; } -inline void BuildInfo::set_allocated_repo_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BuildInfo::set_allocated_repo_url(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.repo_url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.repo_url_.IsDefault()) { - _impl_.repo_url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.repo_url_.IsDefault()) { + _impl_.repo_url_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BuildInfo.repo_url) } // bytes commit_hash = 2; inline void BuildInfo::clear_commit_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.commit_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& BuildInfo::commit_hash() const +inline const ::std::string& BuildInfo::commit_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.BuildInfo.commit_hash) return _internal_commit_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void BuildInfo::set_commit_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void BuildInfo::set_commit_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.commit_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.BuildInfo.commit_hash) } -inline std::string* BuildInfo::mutable_commit_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_commit_hash(); +inline ::std::string* PROTOBUF_NONNULL BuildInfo::mutable_commit_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_commit_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.BuildInfo.commit_hash) return _s; } -inline const std::string& BuildInfo::_internal_commit_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& BuildInfo::_internal_commit_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.commit_hash_.Get(); } -inline void BuildInfo::_internal_set_commit_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BuildInfo::_internal_set_commit_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.commit_hash_.Set(value, GetArena()); } -inline std::string* BuildInfo::_internal_mutable_commit_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL BuildInfo::_internal_mutable_commit_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.commit_hash_.Mutable( GetArena()); } -inline std::string* BuildInfo::release_commit_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE BuildInfo::release_commit_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.BuildInfo.commit_hash) - return _impl_.commit_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.commit_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.commit_hash_.Set("", GetArena()); + } + return released; } -inline void BuildInfo::set_allocated_commit_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void BuildInfo::set_allocated_commit_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.commit_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.commit_hash_.IsDefault()) { - _impl_.commit_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.commit_hash_.IsDefault()) { + _impl_.commit_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.BuildInfo.commit_hash) } +// ------------------------------------------------------------------- + +// EvictionProof + +// .tari.rpc.CommitProof proof = 1; +inline bool EvictionProof::has_proof() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.proof_ != nullptr); + return value; +} +inline void EvictionProof::clear_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.proof_ != nullptr) _impl_.proof_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::tari::rpc::CommitProof& EvictionProof::_internal_proof() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::tari::rpc::CommitProof* p = _impl_.proof_; + return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_CommitProof_default_instance_); +} +inline const ::tari::rpc::CommitProof& EvictionProof::proof() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.EvictionProof.proof) + return _internal_proof(); +} +inline void EvictionProof::unsafe_arena_set_allocated_proof( + ::tari::rpc::CommitProof* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.proof_); + } + _impl_.proof_ = reinterpret_cast<::tari::rpc::CommitProof*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.EvictionProof.proof) +} +inline ::tari::rpc::CommitProof* PROTOBUF_NULLABLE EvictionProof::release_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::tari::rpc::CommitProof* released = _impl_.proof_; + _impl_.proof_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::tari::rpc::CommitProof* PROTOBUF_NULLABLE EvictionProof::unsafe_arena_release_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.EvictionProof.proof) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::tari::rpc::CommitProof* temp = _impl_.proof_; + _impl_.proof_ = nullptr; + return temp; +} +inline ::tari::rpc::CommitProof* PROTOBUF_NONNULL EvictionProof::_internal_mutable_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.proof_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::CommitProof>(GetArena()); + _impl_.proof_ = reinterpret_cast<::tari::rpc::CommitProof*>(p); + } + return _impl_.proof_; +} +inline ::tari::rpc::CommitProof* PROTOBUF_NONNULL EvictionProof::mutable_proof() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; + ::tari::rpc::CommitProof* _msg = _internal_mutable_proof(); + // @@protoc_insertion_point(field_mutable:tari.rpc.EvictionProof.proof) + return _msg; +} +inline void EvictionProof::set_allocated_proof(::tari::rpc::CommitProof* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.proof_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.proof_ = reinterpret_cast<::tari::rpc::CommitProof*>(value); + // @@protoc_insertion_point(field_set_allocated:tari.rpc.EvictionProof.proof) +} + +// ------------------------------------------------------------------- + +// CommitProof + +// .tari.rpc.CommitProofV1 v1 = 1; +inline bool CommitProof::has_v1() const { + return version_case() == kV1; +} +inline bool CommitProof::_internal_has_v1() const { + return version_case() == kV1; +} +inline void CommitProof::set_has_v1() { + _impl_._oneof_case_[0] = kV1; +} +inline void CommitProof::clear_v1() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (version_case() == kV1) { + if (GetArena() == nullptr) { + delete _impl_.version_.v1_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.version_.v1_); + } + clear_has_version(); + } +} +inline ::tari::rpc::CommitProofV1* PROTOBUF_NULLABLE CommitProof::release_v1() { + // @@protoc_insertion_point(field_release:tari.rpc.CommitProof.v1) + if (version_case() == kV1) { + clear_has_version(); + auto* temp = _impl_.version_.v1_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.version_.v1_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::tari::rpc::CommitProofV1& CommitProof::_internal_v1() const { + return version_case() == kV1 ? *_impl_.version_.v1_ : reinterpret_cast<::tari::rpc::CommitProofV1&>(::tari::rpc::_CommitProofV1_default_instance_); +} +inline const ::tari::rpc::CommitProofV1& CommitProof::v1() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.CommitProof.v1) + return _internal_v1(); +} +inline ::tari::rpc::CommitProofV1* PROTOBUF_NULLABLE CommitProof::unsafe_arena_release_v1() { + // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.CommitProof.v1) + if (version_case() == kV1) { + clear_has_version(); + auto* temp = _impl_.version_.v1_; + _impl_.version_.v1_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void CommitProof::unsafe_arena_set_allocated_v1( + ::tari::rpc::CommitProofV1* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_version(); + if (value) { + set_has_v1(); + _impl_.version_.v1_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.CommitProof.v1) +} +inline ::tari::rpc::CommitProofV1* PROTOBUF_NONNULL CommitProof::_internal_mutable_v1() { + if (version_case() != kV1) { + clear_version(); + set_has_v1(); + _impl_.version_.v1_ = + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::CommitProofV1>(GetArena()); + } + return _impl_.version_.v1_; +} +inline ::tari::rpc::CommitProofV1* PROTOBUF_NONNULL CommitProof::mutable_v1() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::tari::rpc::CommitProofV1* _msg = _internal_mutable_v1(); + // @@protoc_insertion_point(field_mutable:tari.rpc.CommitProof.v1) + return _msg; +} + +inline bool CommitProof::has_version() const { + return version_case() != VERSION_NOT_SET; +} +inline void CommitProof::clear_has_version() { + _impl_._oneof_case_[0] = VERSION_NOT_SET; +} +inline CommitProof::VersionCase CommitProof::version_case() const { + return CommitProof::VersionCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// CommitProofV1 + +// bytes command = 1; +inline void CommitProofV1::clear_command() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.command_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& CommitProofV1::command() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.CommitProofV1.command) + return _internal_command(); +} +template +PROTOBUF_ALWAYS_INLINE void CommitProofV1::set_command(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.command_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.CommitProofV1.command) +} +inline ::std::string* PROTOBUF_NONNULL CommitProofV1::mutable_command() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_command(); + // @@protoc_insertion_point(field_mutable:tari.rpc.CommitProofV1.command) + return _s; +} +inline const ::std::string& CommitProofV1::_internal_command() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.command_.Get(); +} +inline void CommitProofV1::_internal_set_command(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.command_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL CommitProofV1::_internal_mutable_command() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.command_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE CommitProofV1::release_command() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.CommitProofV1.command) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.command_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.command_.Set("", GetArena()); + } + return released; +} +inline void CommitProofV1::set_allocated_command(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.command_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.command_.IsDefault()) { + _impl_.command_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.CommitProofV1.command) +} + +// .tari.rpc.SidechainBlockCommitProof commit_proof = 2; +inline bool CommitProofV1::has_commit_proof() const { + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || _impl_.commit_proof_ != nullptr); + return value; +} +inline void CommitProofV1::clear_commit_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.commit_proof_ != nullptr) _impl_.commit_proof_->Clear(); + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline const ::tari::rpc::SidechainBlockCommitProof& CommitProofV1::_internal_commit_proof() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::tari::rpc::SidechainBlockCommitProof* p = _impl_.commit_proof_; + return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_SidechainBlockCommitProof_default_instance_); +} +inline const ::tari::rpc::SidechainBlockCommitProof& CommitProofV1::commit_proof() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.CommitProofV1.commit_proof) + return _internal_commit_proof(); +} +inline void CommitProofV1::unsafe_arena_set_allocated_commit_proof( + ::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.commit_proof_); + } + _impl_.commit_proof_ = reinterpret_cast<::tari::rpc::SidechainBlockCommitProof*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.CommitProofV1.commit_proof) +} +inline ::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NULLABLE CommitProofV1::release_commit_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000004u; + ::tari::rpc::SidechainBlockCommitProof* released = _impl_.commit_proof_; + _impl_.commit_proof_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NULLABLE CommitProofV1::unsafe_arena_release_commit_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.CommitProofV1.commit_proof) + + _impl_._has_bits_[0] &= ~0x00000004u; + ::tari::rpc::SidechainBlockCommitProof* temp = _impl_.commit_proof_; + _impl_.commit_proof_ = nullptr; + return temp; +} +inline ::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NONNULL CommitProofV1::_internal_mutable_commit_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.commit_proof_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::SidechainBlockCommitProof>(GetArena()); + _impl_.commit_proof_ = reinterpret_cast<::tari::rpc::SidechainBlockCommitProof*>(p); + } + return _impl_.commit_proof_; +} +inline ::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NONNULL CommitProofV1::mutable_commit_proof() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; + ::tari::rpc::SidechainBlockCommitProof* _msg = _internal_mutable_commit_proof(); + // @@protoc_insertion_point(field_mutable:tari.rpc.CommitProofV1.commit_proof) + return _msg; +} +inline void CommitProofV1::set_allocated_commit_proof(::tari::rpc::SidechainBlockCommitProof* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.commit_proof_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + + _impl_.commit_proof_ = reinterpret_cast<::tari::rpc::SidechainBlockCommitProof*>(value); + // @@protoc_insertion_point(field_set_allocated:tari.rpc.CommitProofV1.commit_proof) +} + +// bytes encoded_inclusion_proof = 3; +inline void CommitProofV1::clear_encoded_inclusion_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.encoded_inclusion_proof_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::std::string& CommitProofV1::encoded_inclusion_proof() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.CommitProofV1.encoded_inclusion_proof) + return _internal_encoded_inclusion_proof(); +} +template +PROTOBUF_ALWAYS_INLINE void CommitProofV1::set_encoded_inclusion_proof(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.encoded_inclusion_proof_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.CommitProofV1.encoded_inclusion_proof) +} +inline ::std::string* PROTOBUF_NONNULL CommitProofV1::mutable_encoded_inclusion_proof() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_encoded_inclusion_proof(); + // @@protoc_insertion_point(field_mutable:tari.rpc.CommitProofV1.encoded_inclusion_proof) + return _s; +} +inline const ::std::string& CommitProofV1::_internal_encoded_inclusion_proof() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.encoded_inclusion_proof_.Get(); +} +inline void CommitProofV1::_internal_set_encoded_inclusion_proof(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.encoded_inclusion_proof_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL CommitProofV1::_internal_mutable_encoded_inclusion_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + return _impl_.encoded_inclusion_proof_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE CommitProofV1::release_encoded_inclusion_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.CommitProofV1.encoded_inclusion_proof) + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.encoded_inclusion_proof_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.encoded_inclusion_proof_.Set("", GetArena()); + } + return released; +} +inline void CommitProofV1::set_allocated_encoded_inclusion_proof(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + _impl_.encoded_inclusion_proof_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.encoded_inclusion_proof_.IsDefault()) { + _impl_.encoded_inclusion_proof_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.CommitProofV1.encoded_inclusion_proof) +} + +// ------------------------------------------------------------------- + +// SidechainBlockCommitProof + +// .tari.rpc.SidechainBlockHeader header = 1; +inline bool SidechainBlockCommitProof::has_header() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.header_ != nullptr); + return value; +} +inline void SidechainBlockCommitProof::clear_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.header_ != nullptr) _impl_.header_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::tari::rpc::SidechainBlockHeader& SidechainBlockCommitProof::_internal_header() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::tari::rpc::SidechainBlockHeader* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_SidechainBlockHeader_default_instance_); +} +inline const ::tari::rpc::SidechainBlockHeader& SidechainBlockCommitProof::header() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockCommitProof.header) + return _internal_header(); +} +inline void SidechainBlockCommitProof::unsafe_arena_set_allocated_header( + ::tari::rpc::SidechainBlockHeader* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); + } + _impl_.header_ = reinterpret_cast<::tari::rpc::SidechainBlockHeader*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SidechainBlockCommitProof.header) +} +inline ::tari::rpc::SidechainBlockHeader* PROTOBUF_NULLABLE SidechainBlockCommitProof::release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::tari::rpc::SidechainBlockHeader* released = _impl_.header_; + _impl_.header_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::tari::rpc::SidechainBlockHeader* PROTOBUF_NULLABLE SidechainBlockCommitProof::unsafe_arena_release_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.SidechainBlockCommitProof.header) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::tari::rpc::SidechainBlockHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::tari::rpc::SidechainBlockHeader* PROTOBUF_NONNULL SidechainBlockCommitProof::_internal_mutable_header() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.header_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::SidechainBlockHeader>(GetArena()); + _impl_.header_ = reinterpret_cast<::tari::rpc::SidechainBlockHeader*>(p); + } + return _impl_.header_; +} +inline ::tari::rpc::SidechainBlockHeader* PROTOBUF_NONNULL SidechainBlockCommitProof::mutable_header() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; + ::tari::rpc::SidechainBlockHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SidechainBlockCommitProof.header) + return _msg; +} +inline void SidechainBlockCommitProof::set_allocated_header(::tari::rpc::SidechainBlockHeader* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.header_ = reinterpret_cast<::tari::rpc::SidechainBlockHeader*>(value); + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SidechainBlockCommitProof.header) +} + +// repeated .tari.rpc.CommitProofElement proof_elements = 2; +inline int SidechainBlockCommitProof::_internal_proof_elements_size() const { + return _internal_proof_elements().size(); +} +inline int SidechainBlockCommitProof::proof_elements_size() const { + return _internal_proof_elements_size(); +} +inline void SidechainBlockCommitProof::clear_proof_elements() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.proof_elements_.Clear(); +} +inline ::tari::rpc::CommitProofElement* PROTOBUF_NONNULL SidechainBlockCommitProof::mutable_proof_elements(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:tari.rpc.SidechainBlockCommitProof.proof_elements) + return _internal_mutable_proof_elements()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::CommitProofElement>* PROTOBUF_NONNULL SidechainBlockCommitProof::mutable_proof_elements() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:tari.rpc.SidechainBlockCommitProof.proof_elements) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_proof_elements(); +} +inline const ::tari::rpc::CommitProofElement& SidechainBlockCommitProof::proof_elements(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockCommitProof.proof_elements) + return _internal_proof_elements().Get(index); +} +inline ::tari::rpc::CommitProofElement* PROTOBUF_NONNULL SidechainBlockCommitProof::add_proof_elements() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::tari::rpc::CommitProofElement* _add = _internal_mutable_proof_elements()->Add(); + // @@protoc_insertion_point(field_add:tari.rpc.SidechainBlockCommitProof.proof_elements) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::CommitProofElement>& SidechainBlockCommitProof::proof_elements() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:tari.rpc.SidechainBlockCommitProof.proof_elements) + return _internal_proof_elements(); +} +inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::CommitProofElement>& +SidechainBlockCommitProof::_internal_proof_elements() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.proof_elements_; +} +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::CommitProofElement>* PROTOBUF_NONNULL +SidechainBlockCommitProof::_internal_mutable_proof_elements() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.proof_elements_; +} + +// ------------------------------------------------------------------- + +// CommitProofElement + +// .tari.rpc.QuorumCertificate quorum_certificate = 1; +inline bool CommitProofElement::has_quorum_certificate() const { + return proof_element_case() == kQuorumCertificate; +} +inline bool CommitProofElement::_internal_has_quorum_certificate() const { + return proof_element_case() == kQuorumCertificate; +} +inline void CommitProofElement::set_has_quorum_certificate() { + _impl_._oneof_case_[0] = kQuorumCertificate; +} +inline void CommitProofElement::clear_quorum_certificate() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (proof_element_case() == kQuorumCertificate) { + if (GetArena() == nullptr) { + delete _impl_.proof_element_.quorum_certificate_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.proof_element_.quorum_certificate_); + } + clear_has_proof_element(); + } +} +inline ::tari::rpc::QuorumCertificate* PROTOBUF_NULLABLE CommitProofElement::release_quorum_certificate() { + // @@protoc_insertion_point(field_release:tari.rpc.CommitProofElement.quorum_certificate) + if (proof_element_case() == kQuorumCertificate) { + clear_has_proof_element(); + auto* temp = _impl_.proof_element_.quorum_certificate_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.proof_element_.quorum_certificate_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::tari::rpc::QuorumCertificate& CommitProofElement::_internal_quorum_certificate() const { + return proof_element_case() == kQuorumCertificate ? *_impl_.proof_element_.quorum_certificate_ : reinterpret_cast<::tari::rpc::QuorumCertificate&>(::tari::rpc::_QuorumCertificate_default_instance_); +} +inline const ::tari::rpc::QuorumCertificate& CommitProofElement::quorum_certificate() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.CommitProofElement.quorum_certificate) + return _internal_quorum_certificate(); +} +inline ::tari::rpc::QuorumCertificate* PROTOBUF_NULLABLE CommitProofElement::unsafe_arena_release_quorum_certificate() { + // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.CommitProofElement.quorum_certificate) + if (proof_element_case() == kQuorumCertificate) { + clear_has_proof_element(); + auto* temp = _impl_.proof_element_.quorum_certificate_; + _impl_.proof_element_.quorum_certificate_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void CommitProofElement::unsafe_arena_set_allocated_quorum_certificate( + ::tari::rpc::QuorumCertificate* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_proof_element(); + if (value) { + set_has_quorum_certificate(); + _impl_.proof_element_.quorum_certificate_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.CommitProofElement.quorum_certificate) +} +inline ::tari::rpc::QuorumCertificate* PROTOBUF_NONNULL CommitProofElement::_internal_mutable_quorum_certificate() { + if (proof_element_case() != kQuorumCertificate) { + clear_proof_element(); + set_has_quorum_certificate(); + _impl_.proof_element_.quorum_certificate_ = + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::QuorumCertificate>(GetArena()); + } + return _impl_.proof_element_.quorum_certificate_; +} +inline ::tari::rpc::QuorumCertificate* PROTOBUF_NONNULL CommitProofElement::mutable_quorum_certificate() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::tari::rpc::QuorumCertificate* _msg = _internal_mutable_quorum_certificate(); + // @@protoc_insertion_point(field_mutable:tari.rpc.CommitProofElement.quorum_certificate) + return _msg; +} + +// .tari.rpc.DummyChain dummy_chain = 2; +inline bool CommitProofElement::has_dummy_chain() const { + return proof_element_case() == kDummyChain; +} +inline bool CommitProofElement::_internal_has_dummy_chain() const { + return proof_element_case() == kDummyChain; +} +inline void CommitProofElement::set_has_dummy_chain() { + _impl_._oneof_case_[0] = kDummyChain; +} +inline void CommitProofElement::clear_dummy_chain() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (proof_element_case() == kDummyChain) { + if (GetArena() == nullptr) { + delete _impl_.proof_element_.dummy_chain_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.proof_element_.dummy_chain_); + } + clear_has_proof_element(); + } +} +inline ::tari::rpc::DummyChain* PROTOBUF_NULLABLE CommitProofElement::release_dummy_chain() { + // @@protoc_insertion_point(field_release:tari.rpc.CommitProofElement.dummy_chain) + if (proof_element_case() == kDummyChain) { + clear_has_proof_element(); + auto* temp = _impl_.proof_element_.dummy_chain_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.proof_element_.dummy_chain_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::tari::rpc::DummyChain& CommitProofElement::_internal_dummy_chain() const { + return proof_element_case() == kDummyChain ? *_impl_.proof_element_.dummy_chain_ : reinterpret_cast<::tari::rpc::DummyChain&>(::tari::rpc::_DummyChain_default_instance_); +} +inline const ::tari::rpc::DummyChain& CommitProofElement::dummy_chain() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.CommitProofElement.dummy_chain) + return _internal_dummy_chain(); +} +inline ::tari::rpc::DummyChain* PROTOBUF_NULLABLE CommitProofElement::unsafe_arena_release_dummy_chain() { + // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.CommitProofElement.dummy_chain) + if (proof_element_case() == kDummyChain) { + clear_has_proof_element(); + auto* temp = _impl_.proof_element_.dummy_chain_; + _impl_.proof_element_.dummy_chain_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void CommitProofElement::unsafe_arena_set_allocated_dummy_chain( + ::tari::rpc::DummyChain* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_proof_element(); + if (value) { + set_has_dummy_chain(); + _impl_.proof_element_.dummy_chain_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.CommitProofElement.dummy_chain) +} +inline ::tari::rpc::DummyChain* PROTOBUF_NONNULL CommitProofElement::_internal_mutable_dummy_chain() { + if (proof_element_case() != kDummyChain) { + clear_proof_element(); + set_has_dummy_chain(); + _impl_.proof_element_.dummy_chain_ = + ::google::protobuf::Message::DefaultConstruct<::tari::rpc::DummyChain>(GetArena()); + } + return _impl_.proof_element_.dummy_chain_; +} +inline ::tari::rpc::DummyChain* PROTOBUF_NONNULL CommitProofElement::mutable_dummy_chain() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::tari::rpc::DummyChain* _msg = _internal_mutable_dummy_chain(); + // @@protoc_insertion_point(field_mutable:tari.rpc.CommitProofElement.dummy_chain) + return _msg; +} + +inline bool CommitProofElement::has_proof_element() const { + return proof_element_case() != PROOF_ELEMENT_NOT_SET; +} +inline void CommitProofElement::clear_has_proof_element() { + _impl_._oneof_case_[0] = PROOF_ELEMENT_NOT_SET; +} +inline CommitProofElement::ProofElementCase CommitProofElement::proof_element_case() const { + return CommitProofElement::ProofElementCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// DummyChain + +// repeated .tari.rpc.ChainLink chain_links = 1; +inline int DummyChain::_internal_chain_links_size() const { + return _internal_chain_links().size(); +} +inline int DummyChain::chain_links_size() const { + return _internal_chain_links_size(); +} +inline void DummyChain::clear_chain_links() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.chain_links_.Clear(); +} +inline ::tari::rpc::ChainLink* PROTOBUF_NONNULL DummyChain::mutable_chain_links(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:tari.rpc.DummyChain.chain_links) + return _internal_mutable_chain_links()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::ChainLink>* PROTOBUF_NONNULL DummyChain::mutable_chain_links() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:tari.rpc.DummyChain.chain_links) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_chain_links(); +} +inline const ::tari::rpc::ChainLink& DummyChain::chain_links(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.DummyChain.chain_links) + return _internal_chain_links().Get(index); +} +inline ::tari::rpc::ChainLink* PROTOBUF_NONNULL DummyChain::add_chain_links() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::tari::rpc::ChainLink* _add = _internal_mutable_chain_links()->Add(); + // @@protoc_insertion_point(field_add:tari.rpc.DummyChain.chain_links) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::ChainLink>& DummyChain::chain_links() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:tari.rpc.DummyChain.chain_links) + return _internal_chain_links(); +} +inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::ChainLink>& +DummyChain::_internal_chain_links() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.chain_links_; +} +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::ChainLink>* PROTOBUF_NONNULL +DummyChain::_internal_mutable_chain_links() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.chain_links_; +} + +// ------------------------------------------------------------------- + +// ChainLink + +// bytes header_hash = 1; +inline void ChainLink::clear_header_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.header_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& ChainLink::header_hash() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ChainLink.header_hash) + return _internal_header_hash(); +} +template +PROTOBUF_ALWAYS_INLINE void ChainLink::set_header_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.header_hash_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.ChainLink.header_hash) +} +inline ::std::string* PROTOBUF_NONNULL ChainLink::mutable_header_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_header_hash(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ChainLink.header_hash) + return _s; +} +inline const ::std::string& ChainLink::_internal_header_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.header_hash_.Get(); +} +inline void ChainLink::_internal_set_header_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.header_hash_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL ChainLink::_internal_mutable_header_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.header_hash_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE ChainLink::release_header_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.ChainLink.header_hash) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.header_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.header_hash_.Set("", GetArena()); + } + return released; +} +inline void ChainLink::set_allocated_header_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.header_hash_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.header_hash_.IsDefault()) { + _impl_.header_hash_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ChainLink.header_hash) +} + +// bytes parent_id = 2; +inline void ChainLink::clear_parent_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.parent_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::std::string& ChainLink::parent_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ChainLink.parent_id) + return _internal_parent_id(); +} +template +PROTOBUF_ALWAYS_INLINE void ChainLink::set_parent_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.parent_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.ChainLink.parent_id) +} +inline ::std::string* PROTOBUF_NONNULL ChainLink::mutable_parent_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_parent_id(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ChainLink.parent_id) + return _s; +} +inline const ::std::string& ChainLink::_internal_parent_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.parent_id_.Get(); +} +inline void ChainLink::_internal_set_parent_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.parent_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL ChainLink::_internal_mutable_parent_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + return _impl_.parent_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE ChainLink::release_parent_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.ChainLink.parent_id) + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.parent_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.parent_id_.Set("", GetArena()); + } + return released; +} +inline void ChainLink::set_allocated_parent_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + _impl_.parent_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.parent_id_.IsDefault()) { + _impl_.parent_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ChainLink.parent_id) +} + +// ------------------------------------------------------------------- + +// SidechainBlockHeader + +// uint32 network = 1; +inline void SidechainBlockHeader::clear_network() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.network_ = 0u; + _impl_._has_bits_[0] &= ~0x00000400u; +} +inline ::uint32_t SidechainBlockHeader::network() const { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockHeader.network) + return _internal_network(); +} +inline void SidechainBlockHeader::set_network(::uint32_t value) { + _internal_set_network(value); + _impl_._has_bits_[0] |= 0x00000400u; + // @@protoc_insertion_point(field_set:tari.rpc.SidechainBlockHeader.network) +} +inline ::uint32_t SidechainBlockHeader::_internal_network() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.network_; +} +inline void SidechainBlockHeader::_internal_set_network(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.network_ = value; +} + +// bytes parent_id = 2; +inline void SidechainBlockHeader::clear_parent_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.parent_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& SidechainBlockHeader::parent_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockHeader.parent_id) + return _internal_parent_id(); +} +template +PROTOBUF_ALWAYS_INLINE void SidechainBlockHeader::set_parent_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.parent_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.SidechainBlockHeader.parent_id) +} +inline ::std::string* PROTOBUF_NONNULL SidechainBlockHeader::mutable_parent_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_parent_id(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SidechainBlockHeader.parent_id) + return _s; +} +inline const ::std::string& SidechainBlockHeader::_internal_parent_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.parent_id_.Get(); +} +inline void SidechainBlockHeader::_internal_set_parent_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.parent_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SidechainBlockHeader::_internal_mutable_parent_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.parent_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SidechainBlockHeader::release_parent_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.SidechainBlockHeader.parent_id) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.parent_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.parent_id_.Set("", GetArena()); + } + return released; +} +inline void SidechainBlockHeader::set_allocated_parent_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.parent_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.parent_id_.IsDefault()) { + _impl_.parent_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SidechainBlockHeader.parent_id) +} + +// bytes justify_id = 3; +inline void SidechainBlockHeader::clear_justify_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.justify_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::std::string& SidechainBlockHeader::justify_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockHeader.justify_id) + return _internal_justify_id(); +} +template +PROTOBUF_ALWAYS_INLINE void SidechainBlockHeader::set_justify_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.justify_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.SidechainBlockHeader.justify_id) +} +inline ::std::string* PROTOBUF_NONNULL SidechainBlockHeader::mutable_justify_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_justify_id(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SidechainBlockHeader.justify_id) + return _s; +} +inline const ::std::string& SidechainBlockHeader::_internal_justify_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.justify_id_.Get(); +} +inline void SidechainBlockHeader::_internal_set_justify_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.justify_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SidechainBlockHeader::_internal_mutable_justify_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + return _impl_.justify_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SidechainBlockHeader::release_justify_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.SidechainBlockHeader.justify_id) + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.justify_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.justify_id_.Set("", GetArena()); + } + return released; +} +inline void SidechainBlockHeader::set_allocated_justify_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + _impl_.justify_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.justify_id_.IsDefault()) { + _impl_.justify_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SidechainBlockHeader.justify_id) +} + +// uint64 height = 4; +inline void SidechainBlockHeader::clear_height() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000100u; +} +inline ::uint64_t SidechainBlockHeader::height() const { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockHeader.height) + return _internal_height(); +} +inline void SidechainBlockHeader::set_height(::uint64_t value) { + _internal_set_height(value); + _impl_._has_bits_[0] |= 0x00000100u; + // @@protoc_insertion_point(field_set:tari.rpc.SidechainBlockHeader.height) +} +inline ::uint64_t SidechainBlockHeader::_internal_height() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.height_; +} +inline void SidechainBlockHeader::_internal_set_height(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.height_ = value; +} + +// uint64 epoch = 5; +inline void SidechainBlockHeader::clear_epoch() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.epoch_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000200u; +} +inline ::uint64_t SidechainBlockHeader::epoch() const { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockHeader.epoch) + return _internal_epoch(); +} +inline void SidechainBlockHeader::set_epoch(::uint64_t value) { + _internal_set_epoch(value); + _impl_._has_bits_[0] |= 0x00000200u; + // @@protoc_insertion_point(field_set:tari.rpc.SidechainBlockHeader.epoch) +} +inline ::uint64_t SidechainBlockHeader::_internal_epoch() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.epoch_; +} +inline void SidechainBlockHeader::_internal_set_epoch(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.epoch_ = value; +} + +// .tari.rpc.ShardGroup shard_group = 6; +inline bool SidechainBlockHeader::has_shard_group() const { + bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; + PROTOBUF_ASSUME(!value || _impl_.shard_group_ != nullptr); + return value; +} +inline void SidechainBlockHeader::clear_shard_group() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.shard_group_ != nullptr) _impl_.shard_group_->Clear(); + _impl_._has_bits_[0] &= ~0x00000040u; +} +inline const ::tari::rpc::ShardGroup& SidechainBlockHeader::_internal_shard_group() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::tari::rpc::ShardGroup* p = _impl_.shard_group_; + return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ShardGroup_default_instance_); +} +inline const ::tari::rpc::ShardGroup& SidechainBlockHeader::shard_group() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockHeader.shard_group) + return _internal_shard_group(); +} +inline void SidechainBlockHeader::unsafe_arena_set_allocated_shard_group( + ::tari::rpc::ShardGroup* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.shard_group_); + } + _impl_.shard_group_ = reinterpret_cast<::tari::rpc::ShardGroup*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000040u; + } else { + _impl_._has_bits_[0] &= ~0x00000040u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SidechainBlockHeader.shard_group) +} +inline ::tari::rpc::ShardGroup* PROTOBUF_NULLABLE SidechainBlockHeader::release_shard_group() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000040u; + ::tari::rpc::ShardGroup* released = _impl_.shard_group_; + _impl_.shard_group_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::tari::rpc::ShardGroup* PROTOBUF_NULLABLE SidechainBlockHeader::unsafe_arena_release_shard_group() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.SidechainBlockHeader.shard_group) + + _impl_._has_bits_[0] &= ~0x00000040u; + ::tari::rpc::ShardGroup* temp = _impl_.shard_group_; + _impl_.shard_group_ = nullptr; + return temp; +} +inline ::tari::rpc::ShardGroup* PROTOBUF_NONNULL SidechainBlockHeader::_internal_mutable_shard_group() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.shard_group_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ShardGroup>(GetArena()); + _impl_.shard_group_ = reinterpret_cast<::tari::rpc::ShardGroup*>(p); + } + return _impl_.shard_group_; +} +inline ::tari::rpc::ShardGroup* PROTOBUF_NONNULL SidechainBlockHeader::mutable_shard_group() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000040u; + ::tari::rpc::ShardGroup* _msg = _internal_mutable_shard_group(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SidechainBlockHeader.shard_group) + return _msg; +} +inline void SidechainBlockHeader::set_allocated_shard_group(::tari::rpc::ShardGroup* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.shard_group_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000040u; + } else { + _impl_._has_bits_[0] &= ~0x00000040u; + } + + _impl_.shard_group_ = reinterpret_cast<::tari::rpc::ShardGroup*>(value); + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SidechainBlockHeader.shard_group) +} + +// bytes proposed_by = 7; +inline void SidechainBlockHeader::clear_proposed_by() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.proposed_by_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline const ::std::string& SidechainBlockHeader::proposed_by() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockHeader.proposed_by) + return _internal_proposed_by(); +} +template +PROTOBUF_ALWAYS_INLINE void SidechainBlockHeader::set_proposed_by(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.proposed_by_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.SidechainBlockHeader.proposed_by) +} +inline ::std::string* PROTOBUF_NONNULL SidechainBlockHeader::mutable_proposed_by() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_proposed_by(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SidechainBlockHeader.proposed_by) + return _s; +} +inline const ::std::string& SidechainBlockHeader::_internal_proposed_by() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.proposed_by_.Get(); +} +inline void SidechainBlockHeader::_internal_set_proposed_by(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.proposed_by_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SidechainBlockHeader::_internal_mutable_proposed_by() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + return _impl_.proposed_by_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SidechainBlockHeader::release_proposed_by() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.SidechainBlockHeader.proposed_by) + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.proposed_by_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.proposed_by_.Set("", GetArena()); + } + return released; +} +inline void SidechainBlockHeader::set_allocated_proposed_by(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + _impl_.proposed_by_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.proposed_by_.IsDefault()) { + _impl_.proposed_by_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SidechainBlockHeader.proposed_by) +} + +// bytes state_merkle_root = 8; +inline void SidechainBlockHeader::clear_state_merkle_root() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.state_merkle_root_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; +} +inline const ::std::string& SidechainBlockHeader::state_merkle_root() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockHeader.state_merkle_root) + return _internal_state_merkle_root(); +} +template +PROTOBUF_ALWAYS_INLINE void SidechainBlockHeader::set_state_merkle_root(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; + _impl_.state_merkle_root_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.SidechainBlockHeader.state_merkle_root) +} +inline ::std::string* PROTOBUF_NONNULL SidechainBlockHeader::mutable_state_merkle_root() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_state_merkle_root(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SidechainBlockHeader.state_merkle_root) + return _s; +} +inline const ::std::string& SidechainBlockHeader::_internal_state_merkle_root() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.state_merkle_root_.Get(); +} +inline void SidechainBlockHeader::_internal_set_state_merkle_root(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; + _impl_.state_merkle_root_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SidechainBlockHeader::_internal_mutable_state_merkle_root() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; + return _impl_.state_merkle_root_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SidechainBlockHeader::release_state_merkle_root() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.SidechainBlockHeader.state_merkle_root) + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.state_merkle_root_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.state_merkle_root_.Set("", GetArena()); + } + return released; +} +inline void SidechainBlockHeader::set_allocated_state_merkle_root(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } + _impl_.state_merkle_root_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.state_merkle_root_.IsDefault()) { + _impl_.state_merkle_root_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SidechainBlockHeader.state_merkle_root) +} + +// bytes command_merkle_root = 9; +inline void SidechainBlockHeader::clear_command_merkle_root() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.command_merkle_root_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000010u; +} +inline const ::std::string& SidechainBlockHeader::command_merkle_root() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockHeader.command_merkle_root) + return _internal_command_merkle_root(); +} +template +PROTOBUF_ALWAYS_INLINE void SidechainBlockHeader::set_command_merkle_root(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; + _impl_.command_merkle_root_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.SidechainBlockHeader.command_merkle_root) +} +inline ::std::string* PROTOBUF_NONNULL SidechainBlockHeader::mutable_command_merkle_root() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_command_merkle_root(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SidechainBlockHeader.command_merkle_root) + return _s; +} +inline const ::std::string& SidechainBlockHeader::_internal_command_merkle_root() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.command_merkle_root_.Get(); +} +inline void SidechainBlockHeader::_internal_set_command_merkle_root(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; + _impl_.command_merkle_root_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SidechainBlockHeader::_internal_mutable_command_merkle_root() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; + return _impl_.command_merkle_root_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SidechainBlockHeader::release_command_merkle_root() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.SidechainBlockHeader.command_merkle_root) + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000010u; + auto* released = _impl_.command_merkle_root_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.command_merkle_root_.Set("", GetArena()); + } + return released; +} +inline void SidechainBlockHeader::set_allocated_command_merkle_root(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000010u; + } else { + _impl_._has_bits_[0] &= ~0x00000010u; + } + _impl_.command_merkle_root_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.command_merkle_root_.IsDefault()) { + _impl_.command_merkle_root_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SidechainBlockHeader.command_merkle_root) +} + +// .tari.rpc.Signature signature = 11; +inline bool SidechainBlockHeader::has_signature() const { + bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; + PROTOBUF_ASSUME(!value || _impl_.signature_ != nullptr); + return value; +} +inline const ::tari::rpc::Signature& SidechainBlockHeader::_internal_signature() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::tari::rpc::Signature* p = _impl_.signature_; + return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); +} +inline const ::tari::rpc::Signature& SidechainBlockHeader::signature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockHeader.signature) + return _internal_signature(); +} +inline void SidechainBlockHeader::unsafe_arena_set_allocated_signature( + ::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.signature_); + } + _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000080u; + } else { + _impl_._has_bits_[0] &= ~0x00000080u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SidechainBlockHeader.signature) +} +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE SidechainBlockHeader::release_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000080u; + ::tari::rpc::Signature* released = _impl_.signature_; + _impl_.signature_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE SidechainBlockHeader::unsafe_arena_release_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.SidechainBlockHeader.signature) + + _impl_._has_bits_[0] &= ~0x00000080u; + ::tari::rpc::Signature* temp = _impl_.signature_; + _impl_.signature_ = nullptr; + return temp; +} +inline ::tari::rpc::Signature* PROTOBUF_NONNULL SidechainBlockHeader::_internal_mutable_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.signature_ == nullptr) { + 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* PROTOBUF_NONNULL SidechainBlockHeader::mutable_signature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000080u; + ::tari::rpc::Signature* _msg = _internal_mutable_signature(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SidechainBlockHeader.signature) + return _msg; +} +inline void SidechainBlockHeader::set_allocated_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.signature_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000080u; + } else { + _impl_._has_bits_[0] &= ~0x00000080u; + } + + _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SidechainBlockHeader.signature) +} + +// bytes metadata_hash = 10; +inline void SidechainBlockHeader::clear_metadata_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.metadata_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000020u; +} +inline const ::std::string& SidechainBlockHeader::metadata_hash() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.SidechainBlockHeader.metadata_hash) + return _internal_metadata_hash(); +} +template +PROTOBUF_ALWAYS_INLINE void SidechainBlockHeader::set_metadata_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; + _impl_.metadata_hash_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.SidechainBlockHeader.metadata_hash) +} +inline ::std::string* PROTOBUF_NONNULL SidechainBlockHeader::mutable_metadata_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_metadata_hash(); + // @@protoc_insertion_point(field_mutable:tari.rpc.SidechainBlockHeader.metadata_hash) + return _s; +} +inline const ::std::string& SidechainBlockHeader::_internal_metadata_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.metadata_hash_.Get(); +} +inline void SidechainBlockHeader::_internal_set_metadata_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; + _impl_.metadata_hash_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL SidechainBlockHeader::_internal_mutable_metadata_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; + return _impl_.metadata_hash_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE SidechainBlockHeader::release_metadata_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.SidechainBlockHeader.metadata_hash) + if ((_impl_._has_bits_[0] & 0x00000020u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000020u; + auto* released = _impl_.metadata_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.metadata_hash_.Set("", GetArena()); + } + return released; +} +inline void SidechainBlockHeader::set_allocated_metadata_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000020u; + } else { + _impl_._has_bits_[0] &= ~0x00000020u; + } + _impl_.metadata_hash_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.metadata_hash_.IsDefault()) { + _impl_.metadata_hash_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.SidechainBlockHeader.metadata_hash) +} + +// ------------------------------------------------------------------- + +// ShardGroup + +// uint32 start = 1; +inline void ShardGroup::clear_start() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.start_ = 0u; + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline ::uint32_t ShardGroup::start() const { + // @@protoc_insertion_point(field_get:tari.rpc.ShardGroup.start) + return _internal_start(); +} +inline void ShardGroup::set_start(::uint32_t value) { + _internal_set_start(value); + _impl_._has_bits_[0] |= 0x00000001u; + // @@protoc_insertion_point(field_set:tari.rpc.ShardGroup.start) +} +inline ::uint32_t ShardGroup::_internal_start() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.start_; +} +inline void ShardGroup::_internal_set_start(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.start_ = value; +} + +// uint32 end_inclusive = 2; +inline void ShardGroup::clear_end_inclusive() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.end_inclusive_ = 0u; + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline ::uint32_t ShardGroup::end_inclusive() const { + // @@protoc_insertion_point(field_get:tari.rpc.ShardGroup.end_inclusive) + return _internal_end_inclusive(); +} +inline void ShardGroup::set_end_inclusive(::uint32_t value) { + _internal_set_end_inclusive(value); + _impl_._has_bits_[0] |= 0x00000002u; + // @@protoc_insertion_point(field_set:tari.rpc.ShardGroup.end_inclusive) +} +inline ::uint32_t ShardGroup::_internal_end_inclusive() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.end_inclusive_; +} +inline void ShardGroup::_internal_set_end_inclusive(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.end_inclusive_ = value; +} + +// ------------------------------------------------------------------- + +// EvictAtom + +// bytes public_key = 1; +inline void EvictAtom::clear_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& EvictAtom::public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.EvictAtom.public_key) + return _internal_public_key(); +} +template +PROTOBUF_ALWAYS_INLINE void EvictAtom::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.EvictAtom.public_key) +} +inline ::std::string* PROTOBUF_NONNULL EvictAtom::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_key(); + // @@protoc_insertion_point(field_mutable:tari.rpc.EvictAtom.public_key) + return _s; +} +inline const ::std::string& EvictAtom::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_key_.Get(); +} +inline void EvictAtom::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.public_key_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL EvictAtom::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.public_key_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE EvictAtom::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.EvictAtom.public_key) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; +} +inline void EvictAtom::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.EvictAtom.public_key) +} + +// ------------------------------------------------------------------- + +// QuorumCertificate + +// bytes header_hash = 1; +inline void QuorumCertificate::clear_header_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.header_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& QuorumCertificate::header_hash() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.QuorumCertificate.header_hash) + return _internal_header_hash(); +} +template +PROTOBUF_ALWAYS_INLINE void QuorumCertificate::set_header_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.header_hash_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.QuorumCertificate.header_hash) +} +inline ::std::string* PROTOBUF_NONNULL QuorumCertificate::mutable_header_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_header_hash(); + // @@protoc_insertion_point(field_mutable:tari.rpc.QuorumCertificate.header_hash) + return _s; +} +inline const ::std::string& QuorumCertificate::_internal_header_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.header_hash_.Get(); +} +inline void QuorumCertificate::_internal_set_header_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.header_hash_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL QuorumCertificate::_internal_mutable_header_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.header_hash_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE QuorumCertificate::release_header_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.QuorumCertificate.header_hash) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.header_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.header_hash_.Set("", GetArena()); + } + return released; +} +inline void QuorumCertificate::set_allocated_header_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.header_hash_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.header_hash_.IsDefault()) { + _impl_.header_hash_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.QuorumCertificate.header_hash) +} + +// bytes parent_id = 2; +inline void QuorumCertificate::clear_parent_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.parent_id_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::std::string& QuorumCertificate::parent_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.QuorumCertificate.parent_id) + return _internal_parent_id(); +} +template +PROTOBUF_ALWAYS_INLINE void QuorumCertificate::set_parent_id(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.parent_id_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.QuorumCertificate.parent_id) +} +inline ::std::string* PROTOBUF_NONNULL QuorumCertificate::mutable_parent_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_parent_id(); + // @@protoc_insertion_point(field_mutable:tari.rpc.QuorumCertificate.parent_id) + return _s; +} +inline const ::std::string& QuorumCertificate::_internal_parent_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.parent_id_.Get(); +} +inline void QuorumCertificate::_internal_set_parent_id(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.parent_id_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL QuorumCertificate::_internal_mutable_parent_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + return _impl_.parent_id_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE QuorumCertificate::release_parent_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.QuorumCertificate.parent_id) + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.parent_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.parent_id_.Set("", GetArena()); + } + return released; +} +inline void QuorumCertificate::set_allocated_parent_id(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + _impl_.parent_id_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.parent_id_.IsDefault()) { + _impl_.parent_id_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.QuorumCertificate.parent_id) +} + +// repeated .tari.rpc.ValidatorSignature signatures = 3; +inline int QuorumCertificate::_internal_signatures_size() const { + return _internal_signatures().size(); +} +inline int QuorumCertificate::signatures_size() const { + return _internal_signatures_size(); +} +inline void QuorumCertificate::clear_signatures() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.signatures_.Clear(); +} +inline ::tari::rpc::ValidatorSignature* PROTOBUF_NONNULL QuorumCertificate::mutable_signatures(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:tari.rpc.QuorumCertificate.signatures) + return _internal_mutable_signatures()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorSignature>* PROTOBUF_NONNULL QuorumCertificate::mutable_signatures() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:tari.rpc.QuorumCertificate.signatures) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_signatures(); +} +inline const ::tari::rpc::ValidatorSignature& QuorumCertificate::signatures(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.QuorumCertificate.signatures) + return _internal_signatures().Get(index); +} +inline ::tari::rpc::ValidatorSignature* PROTOBUF_NONNULL QuorumCertificate::add_signatures() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::tari::rpc::ValidatorSignature* _add = _internal_mutable_signatures()->Add(); + // @@protoc_insertion_point(field_add:tari.rpc.QuorumCertificate.signatures) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorSignature>& QuorumCertificate::signatures() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:tari.rpc.QuorumCertificate.signatures) + return _internal_signatures(); +} +inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorSignature>& +QuorumCertificate::_internal_signatures() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.signatures_; +} +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::ValidatorSignature>* PROTOBUF_NONNULL +QuorumCertificate::_internal_mutable_signatures() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.signatures_; +} + +// .tari.rpc.QuorumDecision decision = 4; +inline void QuorumCertificate::clear_decision() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.decision_ = 0; + _impl_._has_bits_[0] &= ~0x00000004u; +} +inline ::tari::rpc::QuorumDecision QuorumCertificate::decision() const { + // @@protoc_insertion_point(field_get:tari.rpc.QuorumCertificate.decision) + return _internal_decision(); +} +inline void QuorumCertificate::set_decision(::tari::rpc::QuorumDecision value) { + _internal_set_decision(value); + _impl_._has_bits_[0] |= 0x00000004u; + // @@protoc_insertion_point(field_set:tari.rpc.QuorumCertificate.decision) +} +inline ::tari::rpc::QuorumDecision QuorumCertificate::_internal_decision() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::tari::rpc::QuorumDecision>(_impl_.decision_); +} +inline void QuorumCertificate::_internal_set_decision(::tari::rpc::QuorumDecision value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.decision_ = value; +} + +// ------------------------------------------------------------------- + +// ValidatorSignature + +// bytes public_key = 1; +inline void ValidatorSignature::clear_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::std::string& ValidatorSignature::public_key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorSignature.public_key) + return _internal_public_key(); +} +template +PROTOBUF_ALWAYS_INLINE void ValidatorSignature::set_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.ValidatorSignature.public_key) +} +inline ::std::string* PROTOBUF_NONNULL ValidatorSignature::mutable_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_key(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorSignature.public_key) + return _s; +} +inline const ::std::string& ValidatorSignature::_internal_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.public_key_.Get(); +} +inline void ValidatorSignature::_internal_set_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.public_key_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL ValidatorSignature::_internal_mutable_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.public_key_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE ValidatorSignature::release_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.ValidatorSignature.public_key) + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_key_.Set("", GetArena()); + } + return released; +} +inline void ValidatorSignature::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.public_key_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { + _impl_.public_key_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorSignature.public_key) +} + +// .tari.rpc.Signature signature = 2; +inline bool ValidatorSignature::has_signature() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.signature_ != nullptr); + return value; +} +inline const ::tari::rpc::Signature& ValidatorSignature::_internal_signature() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::tari::rpc::Signature* p = _impl_.signature_; + return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); +} +inline const ::tari::rpc::Signature& ValidatorSignature::signature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.ValidatorSignature.signature) + return _internal_signature(); +} +inline void ValidatorSignature::unsafe_arena_set_allocated_signature( + ::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.signature_); + } + _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ValidatorSignature.signature) +} +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE ValidatorSignature::release_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::tari::rpc::Signature* released = _impl_.signature_; + _impl_.signature_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; +} +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE ValidatorSignature::unsafe_arena_release_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.ValidatorSignature.signature) + + _impl_._has_bits_[0] &= ~0x00000002u; + ::tari::rpc::Signature* temp = _impl_.signature_; + _impl_.signature_ = nullptr; + return temp; +} +inline ::tari::rpc::Signature* PROTOBUF_NONNULL ValidatorSignature::_internal_mutable_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.signature_ == nullptr) { + 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* PROTOBUF_NONNULL ValidatorSignature::mutable_signature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; + ::tari::rpc::Signature* _msg = _internal_mutable_signature(); + // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorSignature.signature) + return _msg; +} +inline void ValidatorSignature::set_allocated_signature(::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.signature_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + + _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); + // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorSignature.signature) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -3190,8 +9674,21 @@ inline void BuildInfo::set_allocated_commit_hash(std::string* value) { } // namespace tari +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::tari::rpc::QuorumDecision> : std::true_type {}; +template <> +inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::tari::rpc::QuorumDecision>() { + return ::tari::rpc::QuorumDecision_descriptor(); +} + +} // namespace protobuf +} // namespace google + // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_sidechain_5ftypes_2eproto_2epb_2eh +#endif // sidechain_5ftypes_2eproto_2epb_2eh diff --git a/external/src/Tari/proto/gRPC/sidechain_types.proto b/external/src/Tari/proto/gRPC/sidechain_types.proto index 184a321..0799239 100644 --- a/external/src/Tari/proto/gRPC/sidechain_types.proto +++ b/external/src/Tari/proto/gRPC/sidechain_types.proto @@ -26,43 +26,59 @@ package tari.rpc; import "types.proto"; message SideChainFeature { - oneof side_chain_feature { - ValidatorNodeRegistration validator_node_registration = 1; - TemplateRegistration template_registration = 2; - ConfidentialOutputData confidential_output = 3; - } + oneof feature { + ValidatorNodeRegistration validator_node_registration = 1; + TemplateRegistration template_registration = 2; + ConfidentialOutputData confidential_output = 3; + EvictionProof eviction_proof = 4; + ValidatorNodeExit validator_node_exit = 5; + } + SideChainId sidechain_id = 6; +} + +message SideChainId { + bytes public_key = 1; + Signature knowledge_proof = 2; } message ValidatorNodeRegistration { - bytes public_key = 1; - Signature signature = 2; + bytes public_key = 1; + Signature signature = 2; + bytes claim_public_key = 3; + uint64 max_epoch = 4; +} + +message ValidatorNodeExit { + bytes public_key = 1; + Signature signature = 2; + uint64 max_epoch = 3; } message TemplateRegistration { - bytes author_public_key = 1; - Signature author_signature = 2; - string template_name = 3; - uint32 template_version = 4; - TemplateType template_type = 5; - BuildInfo build_info = 6; - bytes binary_sha = 7; - string binary_url = 8; + bytes author_public_key = 1; + Signature author_signature = 2; + string template_name = 3; + uint32 template_version = 4; + TemplateType template_type = 5; + BuildInfo build_info = 6; + bytes binary_sha = 7; + string binary_url = 8; } message ConfidentialOutputData { - bytes claim_public_key = 1; + bytes claim_public_key = 1; } message TemplateType { - oneof template_type { - WasmInfo wasm = 1; - FlowInfo flow = 2; - ManifestInfo manifest = 3; - } + oneof template_type { + WasmInfo wasm = 1; + FlowInfo flow = 2; + ManifestInfo manifest = 3; + } } message WasmInfo { - uint32 abi_version = 1; + uint32 abi_version = 1; } message FlowInfo { @@ -72,6 +88,85 @@ message ManifestInfo { } message BuildInfo { - string repo_url = 1; - bytes commit_hash = 2; + string repo_url = 1; + bytes commit_hash = 2; } + + +message EvictionProof { + CommitProof proof = 1; +} + +message CommitProof { + oneof version { + CommitProofV1 v1 = 1; + } +} + +message CommitProofV1 { + bytes command = 1; + SidechainBlockCommitProof commit_proof = 2; + bytes encoded_inclusion_proof = 3; +} + +message SidechainBlockCommitProof { + SidechainBlockHeader header = 1; + repeated CommitProofElement proof_elements = 2; +} + +message CommitProofElement { + oneof proof_element { + QuorumCertificate quorum_certificate = 1; + DummyChain dummy_chain = 2; + } +} + +message DummyChain { + repeated ChainLink chain_links = 1; +} + +message ChainLink { + bytes header_hash = 1; + bytes parent_id = 2; +} + +message SidechainBlockHeader { + uint32 network = 1; + bytes parent_id = 2; + bytes justify_id = 3; + uint64 height = 4; + uint64 epoch = 5; + ShardGroup shard_group = 6; + bytes proposed_by = 7; + bytes state_merkle_root = 8; + bytes command_merkle_root = 9; + Signature signature = 11; + bytes metadata_hash = 10; +} + +message ShardGroup { + uint32 start = 1; + uint32 end_inclusive = 2; +} + +message EvictAtom { + bytes public_key = 1; +} + +message QuorumCertificate { + bytes header_hash = 1; + bytes parent_id = 2; + repeated ValidatorSignature signatures = 3; + QuorumDecision decision = 4; +} + +enum QuorumDecision { + Accept = 0; + Reject = 1; +} + +message ValidatorSignature { + bytes public_key = 1; + Signature signature = 2; +} + diff --git a/external/src/Tari/proto/gRPC/transaction.grpc.pb.cc b/external/src/Tari/proto/gRPC/transaction.grpc.pb.cc index e709a2f..41c9a18 100644 --- a/external/src/Tari/proto/gRPC/transaction.grpc.pb.cc +++ b/external/src/Tari/proto/gRPC/transaction.grpc.pb.cc @@ -19,9 +19,11 @@ #include #include #include +#include namespace tari { namespace rpc { } // namespace tari } // namespace rpc +#include diff --git a/external/src/Tari/proto/gRPC/transaction.grpc.pb.h b/external/src/Tari/proto/gRPC/transaction.grpc.pb.h index f8c3c6d..60c579b 100644 --- a/external/src/Tari/proto/gRPC/transaction.grpc.pb.h +++ b/external/src/Tari/proto/gRPC/transaction.grpc.pb.h @@ -46,6 +46,7 @@ #include #include #include +#include namespace tari { namespace rpc { @@ -54,4 +55,5 @@ namespace rpc { } // namespace tari +#include #endif // GRPC_transaction_2eproto__INCLUDED diff --git a/external/src/Tari/proto/gRPC/transaction.pb.cc b/external/src/Tari/proto/gRPC/transaction.pb.cc index d6a1938..fafa03e 100644 --- a/external/src/Tari/proto/gRPC/transaction.pb.cc +++ b/external/src/Tari/proto/gRPC/transaction.pb.cc @@ -1,18 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: transaction.proto -// Protobuf C++ Version: 5.26.1 +// Protobuf C++ Version: 6.31.1 #include "transaction.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -44,7 +47,13 @@ inline constexpr TransactionKernel::Impl_::Impl_( template PROTOBUF_CONSTEXPR TransactionKernel::TransactionKernel(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(TransactionKernel_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TransactionKernelDefaultTypeInternal { PROTOBUF_CONSTEXPR TransactionKernelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransactionKernelDefaultTypeInternal() {} @@ -70,7 +79,13 @@ inline constexpr OutputFeatures::Impl_::Impl_( template PROTOBUF_CONSTEXPR OutputFeatures::OutputFeatures(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(OutputFeatures_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct OutputFeaturesDefaultTypeInternal { PROTOBUF_CONSTEXPR OutputFeaturesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~OutputFeaturesDefaultTypeInternal() {} @@ -115,7 +130,13 @@ inline constexpr UnblindedOutput::Impl_::Impl_( template PROTOBUF_CONSTEXPR UnblindedOutput::UnblindedOutput(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(UnblindedOutput_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct UnblindedOutputDefaultTypeInternal { PROTOBUF_CONSTEXPR UnblindedOutputDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~UnblindedOutputDefaultTypeInternal() {} @@ -148,6 +169,9 @@ inline constexpr TransactionOutput::Impl_::Impl_( encrypted_data_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + payment_reference_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), features_{nullptr}, range_proof_{nullptr}, metadata_signature_{nullptr}, @@ -156,7 +180,13 @@ inline constexpr TransactionOutput::Impl_::Impl_( template PROTOBUF_CONSTEXPR TransactionOutput::TransactionOutput(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(TransactionOutput_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TransactionOutputDefaultTypeInternal { PROTOBUF_CONSTEXPR TransactionOutputDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransactionOutputDefaultTypeInternal() {} @@ -206,7 +236,13 @@ inline constexpr TransactionInput::Impl_::Impl_( template PROTOBUF_CONSTEXPR TransactionInput::TransactionInput(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(TransactionInput_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TransactionInputDefaultTypeInternal { PROTOBUF_CONSTEXPR TransactionInputDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransactionInputDefaultTypeInternal() {} @@ -227,7 +263,13 @@ inline constexpr AggregateBody::Impl_::Impl_( template PROTOBUF_CONSTEXPR AggregateBody::AggregateBody(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(AggregateBody_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct AggregateBodyDefaultTypeInternal { PROTOBUF_CONSTEXPR AggregateBodyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AggregateBodyDefaultTypeInternal() {} @@ -252,7 +294,13 @@ inline constexpr Transaction::Impl_::Impl_( template PROTOBUF_CONSTEXPR Transaction::Transaction(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(Transaction_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TransactionDefaultTypeInternal { PROTOBUF_CONSTEXPR TransactionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransactionDefaultTypeInternal() {} @@ -265,22 +313,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransactionDefaultTypeInternal _Transaction_default_instance_; } // namespace rpc } // namespace tari -static ::_pb::Metadata file_level_metadata_transaction_2eproto[7]; -static constexpr const ::_pb::EnumDescriptor** +static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_transaction_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** +static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_transaction_2eproto = nullptr; const ::uint32_t TableStruct_transaction_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { + 0x081, // bitmap 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) + 11, // hasbit index offset 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_), @@ -289,22 +331,17 @@ const ::uint32_t 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, + 6, + 4, + 5, 0, - ~0u, - ~0u, - ~0u, + 3, + 1, + 7, + 2, + 0x081, // bitmap 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) + 17, // hasbit index offset PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.features_), PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.commitment_), PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.hash_), @@ -319,28 +356,23 @@ const ::uint32_t 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_), + 9, 0, - ~0u, - ~0u, - ~0u, - ~0u, 1, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, 2, - ~0u, + 3, + 10, + 4, + 5, + 6, + 13, + 7, + 12, + 11, + 8, + 0x081, // bitmap 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) + 15, // hasbit index offset 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_), @@ -352,70 +384,50 @@ const ::uint32_t 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_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.payment_reference_), + 7, 0, - ~0u, + 8, 1, - ~0u, - ~0u, - ~0u, 2, - ~0u, - ~0u, - ~0u, - ~0u, + 3, + 9, + 4, + 11, + 5, + 10, + 6, + 0x081, // bitmap 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) + 9, // hasbit index offset 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, + 2, + 3, + 4, 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) + 1, + 5, + 0x000, // bitmap PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _impl_.inputs_), PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _impl_.outputs_), PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _impl_.kernels_), + 0x081, // bitmap 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) + 6, // hasbit index offset 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, + 2, + 1, + 0x081, // bitmap 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) + 16, // hasbit index offset 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_), @@ -429,32 +441,32 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.encrypted_data_), PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.minimum_value_promise_), PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.range_proof_), - ~0u, - ~0u, + 10, 0, - ~0u, - ~0u, - ~0u, - ~0u, + 7, 1, - ~0u, - ~0u, - ~0u, - ~0u, 2, + 3, + 4, + 8, + 11, + 5, + 6, + 12, + 9, }; static const ::_pbi::MigrationSchema 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)}, - {90, 104, -1, sizeof(::tari::rpc::OutputFeatures)}, - {110, -1, -1, sizeof(::tari::rpc::AggregateBody)}, - {121, 132, -1, sizeof(::tari::rpc::Transaction)}, - {135, 156, -1, sizeof(::tari::rpc::UnblindedOutput)}, + {0, sizeof(::tari::rpc::TransactionKernel)}, + {19, sizeof(::tari::rpc::TransactionInput)}, + {50, sizeof(::tari::rpc::TransactionOutput)}, + {77, sizeof(::tari::rpc::OutputFeatures)}, + {92, sizeof(::tari::rpc::AggregateBody)}, + {96, sizeof(::tari::rpc::Transaction)}, + {105, sizeof(::tari::rpc::UnblindedOutput)}, }; -static const ::_pb::Message* const file_default_instances[] = { +static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { &::tari::rpc::_TransactionKernel_default_instance_._instance, &::tari::rpc::_TransactionInput_default_instance_._instance, &::tari::rpc::_TransactionOutput_default_instance_._instance, @@ -481,7 +493,7 @@ const char descriptor_table_protodef_transaction_2eproto[] ABSL_ATTRIBUTE_SECTIO "version\030\013 \001(\r\022\026\n\016encrypted_data\030\014 \001(\014\022\035\n" "\025minimum_value_promise\030\r \001(\004\0228\n\022metadata" "_signature\030\016 \001(\0132\034.tari.rpc.ComAndPubSig" - "nature\022\027\n\017rangeproof_hash\030\017 \001(\014\"\322\002\n\021Tran" + "nature\022\027\n\017rangeproof_hash\030\017 \001(\014\"\355\002\n\021Tran" "sactionOutput\022*\n\010features\030\001 \001(\0132\030.tari.r" "pc.OutputFeatures\022\022\n\ncommitment\030\002 \001(\014\022)\n" "\013range_proof\030\003 \001(\0132\024.tari.rpc.RangeProof" @@ -490,39 +502,39 @@ const char descriptor_table_protodef_transaction_2eproto[] ABSL_ATTRIBUTE_SECTIO "nature\030\007 \001(\0132\034.tari.rpc.ComAndPubSignatu" "re\022\020\n\010covenant\030\010 \001(\014\022\017\n\007version\030\t \001(\r\022\026\n" "\016encrypted_data\030\n \001(\014\022\035\n\025minimum_value_p" - "romise\030\013 \001(\004\"\261\001\n\016OutputFeatures\022\017\n\007versi" - "on\030\001 \001(\r\022\023\n\013output_type\030\002 \001(\r\022\020\n\010maturit" - "y\030\003 \001(\004\022\026\n\016coinbase_extra\030\004 \001(\014\0225\n\021sidec" - "hain_feature\030\005 \001(\0132\032.tari.rpc.SideChainF" - "eature\022\030\n\020range_proof_type\030\006 \001(\r\"\227\001\n\rAgg" - "regateBody\022*\n\006inputs\030\001 \003(\0132\032.tari.rpc.Tr" - "ansactionInput\022,\n\007outputs\030\002 \003(\0132\033.tari.r" - "pc.TransactionOutput\022,\n\007kernels\030\003 \003(\0132\033." - "tari.rpc.TransactionKernel\"[\n\013Transactio" - "n\022\016\n\006offset\030\001 \001(\014\022%\n\004body\030\002 \001(\0132\027.tari.r" - "pc.AggregateBody\022\025\n\rscript_offset\030\003 \001(\014\"" - "\216\003\n\017UnblindedOutput\022\r\n\005value\030\001 \001(\004\022\024\n\014sp" - "ending_key\030\002 \001(\014\022*\n\010features\030\003 \001(\0132\030.tar" - "i.rpc.OutputFeatures\022\016\n\006script\030\004 \001(\014\022\022\n\n" - "input_data\030\005 \001(\014\022\032\n\022script_private_key\030\007" - " \001(\014\022 \n\030sender_offset_public_key\030\010 \001(\014\0228" - "\n\022metadata_signature\030\t \001(\0132\034.tari.rpc.Co" - "mAndPubSignature\022\032\n\022script_lock_height\030\n" - " \001(\004\022\020\n\010covenant\030\013 \001(\014\022\026\n\016encrypted_data" - "\030\014 \001(\014\022\035\n\025minimum_value_promise\030\r \001(\004\022)\n" - "\013range_proof\030\016 \001(\0132\024.tari.rpc.RangeProof" - "b\006proto3" + "romise\030\013 \001(\004\022\031\n\021payment_reference\030\014 \001(\014\"" + "\261\001\n\016OutputFeatures\022\017\n\007version\030\001 \001(\r\022\023\n\013o" + "utput_type\030\002 \001(\r\022\020\n\010maturity\030\003 \001(\004\022\026\n\016co" + "inbase_extra\030\004 \001(\014\0225\n\021sidechain_feature\030" + "\005 \001(\0132\032.tari.rpc.SideChainFeature\022\030\n\020ran" + "ge_proof_type\030\006 \001(\r\"\227\001\n\rAggregateBody\022*\n" + "\006inputs\030\001 \003(\0132\032.tari.rpc.TransactionInpu" + "t\022,\n\007outputs\030\002 \003(\0132\033.tari.rpc.Transactio" + "nOutput\022,\n\007kernels\030\003 \003(\0132\033.tari.rpc.Tran" + "sactionKernel\"[\n\013Transaction\022\016\n\006offset\030\001" + " \001(\014\022%\n\004body\030\002 \001(\0132\027.tari.rpc.AggregateB" + "ody\022\025\n\rscript_offset\030\003 \001(\014\"\216\003\n\017Unblinded" + "Output\022\r\n\005value\030\001 \001(\004\022\024\n\014spending_key\030\002 " + "\001(\014\022*\n\010features\030\003 \001(\0132\030.tari.rpc.OutputF" + "eatures\022\016\n\006script\030\004 \001(\014\022\022\n\ninput_data\030\005 " + "\001(\014\022\032\n\022script_private_key\030\007 \001(\014\022 \n\030sende" + "r_offset_public_key\030\010 \001(\014\0228\n\022metadata_si" + "gnature\030\t \001(\0132\034.tari.rpc.ComAndPubSignat" + "ure\022\032\n\022script_lock_height\030\n \001(\004\022\020\n\010coven" + "ant\030\013 \001(\014\022\026\n\016encrypted_data\030\014 \001(\014\022\035\n\025min" + "imum_value_promise\030\r \001(\004\022)\n\013range_proof\030" + "\016 \001(\0132\024.tari.rpc.RangeProofb\006proto3" }; -static const ::_pbi::DescriptorTable* const descriptor_table_transaction_2eproto_deps[2] = - { +static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const + descriptor_table_transaction_2eproto_deps[2] = { &::descriptor_table_sidechain_5ftypes_2eproto, &::descriptor_table_types_2eproto, }; static ::absl::once_flag descriptor_table_transaction_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_transaction_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_transaction_2eproto = { false, false, - 1848, + 1875, descriptor_table_protodef_transaction_2eproto, "transaction.proto", &descriptor_table_transaction_2eproto_once, @@ -532,49 +544,39 @@ const ::_pbi::DescriptorTable descriptor_table_transaction_2eproto = { schemas, file_default_instances, TableStruct_transaction_2eproto::offsets, - file_level_metadata_transaction_2eproto, file_level_enum_descriptors_transaction_2eproto, file_level_service_descriptors_transaction_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_transaction_2eproto_getter() { - return &descriptor_table_transaction_2eproto; -} namespace tari { namespace rpc { // =================================================================== class TransactionKernel::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_._has_bits_); }; void TransactionKernel::clear_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.excess_sig_ != nullptr) _impl_.excess_sig_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000008u; } -TransactionKernel::TransactionKernel(::google::protobuf::Arena* arena) +TransactionKernel::TransactionKernel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TransactionKernel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.TransactionKernel) } -inline PROTOBUF_NDEBUG_INLINE TransactionKernel::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE TransactionKernel::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::TransactionKernel& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, excess_(arena, from.excess_), @@ -582,18 +584,22 @@ inline PROTOBUF_NDEBUG_INLINE TransactionKernel::Impl_::Impl_( burn_commitment_(arena, from.burn_commitment_) {} TransactionKernel::TransactionKernel( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TransactionKernel& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TransactionKernel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TransactionKernel* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.excess_sig_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>( - arena, *from._impl_.excess_sig_) - : nullptr; + _impl_.excess_sig_ = ((cached_has_bits & 0x00000008u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.excess_sig_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, fee_), reinterpret_cast(&from._impl_) + @@ -604,15 +610,15 @@ TransactionKernel::TransactionKernel( // @@protoc_insertion_point(copy_constructor:tari.rpc.TransactionKernel) } -inline PROTOBUF_NDEBUG_INLINE TransactionKernel::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE TransactionKernel::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, excess_(arena), hash_(arena), burn_commitment_(arena) {} -inline void TransactionKernel::SharedCtor(::_pb::Arena* arena) { +inline void TransactionKernel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, excess_sig_), @@ -623,63 +629,64 @@ inline void TransactionKernel::SharedCtor(::_pb::Arena* arena) { } TransactionKernel::~TransactionKernel() { // @@protoc_insertion_point(destructor:tari.rpc.TransactionKernel) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void TransactionKernel::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.excess_.Destroy(); - _impl_.hash_.Destroy(); - _impl_.burn_commitment_.Destroy(); - delete _impl_.excess_sig_; - _impl_.~Impl_(); +inline void TransactionKernel::SharedDtor(MessageLite& self) { + TransactionKernel& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.excess_.Destroy(); + this_._impl_.hash_.Destroy(); + this_._impl_.burn_commitment_.Destroy(); + delete this_._impl_.excess_sig_; + this_._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, - }, +inline void* PROTOBUF_NONNULL TransactionKernel::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) TransactionKernel(arena); +} +constexpr auto TransactionKernel::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(TransactionKernel), + alignof(TransactionKernel)); +} +constexpr auto TransactionKernel::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_TransactionKernel_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.excess_.ClearToEmpty(); - _impl_.hash_.ClearToEmpty(); - _impl_.burn_commitment_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.excess_sig_ != nullptr); - _impl_.excess_sig_->Clear(); - } - ::memset(&_impl_.fee_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.version_) - - reinterpret_cast(&_impl_.fee_)) + sizeof(_impl_.version_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransactionKernel::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TransactionKernel::ByteSizeLong, + &TransactionKernel::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_._cached_size_), + false, + }, + &TransactionKernel::kDescriptorMethods, + &descriptor_table_transaction_2eproto, + nullptr, // tracker + }; } -const char* TransactionKernel::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull TransactionKernel_class_data_ = + TransactionKernel::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +TransactionKernel::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&TransactionKernel_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(TransactionKernel_class_data_.tc_table); + return TransactionKernel_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 8, 1, 0, 2> TransactionKernel::_table_ = { +const ::_pbi::TcParseTable<4, 8, 1, 0, 2> +TransactionKernel::_table_ = { { PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_._has_bits_), 0, // no _extensions_ @@ -690,7 +697,8 @@ const ::_pbi::TcParseTable<4, 8, 1, 0, 2> TransactionKernel::_table_ = { 8, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TransactionKernel_default_instance_._instance, + TransactionKernel_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::TransactionKernel>(), // to_prefetch @@ -698,31 +706,31 @@ const ::_pbi::TcParseTable<4, 8, 1, 0, 2> TransactionKernel::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint32 features = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionKernel, _impl_.features_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.features_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionKernel, _impl_.features_), 6>(), + {8, 6, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.features_)}}, // uint64 fee = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TransactionKernel, _impl_.fee_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.fee_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TransactionKernel, _impl_.fee_), 4>(), + {16, 4, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.fee_)}}, // uint64 lock_height = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TransactionKernel, _impl_.lock_height_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.lock_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TransactionKernel, _impl_.lock_height_), 5>(), + {24, 5, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.lock_height_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, // bytes excess = 6; {::_pbi::TcParser::FastBS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_)}}, + {50, 0, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_)}}, // .tari.rpc.Signature excess_sig = 7; {::_pbi::TcParser::FastMtS1, - {58, 0, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_sig_)}}, + {58, 3, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_sig_)}}, // bytes hash = 8; {::_pbi::TcParser::FastBS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.hash_)}}, + {66, 1, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.hash_)}}, // uint32 version = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionKernel, _impl_.version_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.version_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionKernel, _impl_.version_), 7>(), + {72, 7, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.version_)}}, // bytes burn_commitment = 10; {::_pbi::TcParser::FastBS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.burn_commitment_)}}, + {82, 2, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.burn_commitment_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -732,165 +740,236 @@ const ::_pbi::TcParseTable<4, 8, 1, 0, 2> TransactionKernel::_table_ = { 65535, 65535 }}, {{ // uint32 features = 1; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.features_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.features_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint64 fee = 2; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.fee_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.fee_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 lock_height = 3; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.lock_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.lock_height_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes excess = 6; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.Signature excess_sig = 7; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_sig_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_sig_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes hash = 8; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.hash_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint32 version = 9; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.version_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // bytes burn_commitment = 10; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.burn_commitment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.burn_commitment_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void TransactionKernel::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionKernel) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* TransactionKernel::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.excess_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.burn_commitment_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + ABSL_DCHECK(_impl_.excess_sig_ != nullptr); + _impl_.excess_sig_->Clear(); + } + } + if ((cached_has_bits & 0x000000f0u) != 0) { + ::memset(&_impl_.fee_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.version_) - + reinterpret_cast(&_impl_.fee_)) + sizeof(_impl_.version_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL TransactionKernel::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const TransactionKernel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL TransactionKernel::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const TransactionKernel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TransactionKernel) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint32 features = 1; - if (this->_internal_features() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_features(), target); + if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { + if (this_._internal_features() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_features(), target); + } } // uint64 fee = 2; - if (this->_internal_fee() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_fee(), target); + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (this_._internal_fee() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_fee(), target); + } } // uint64 lock_height = 3; - if (this->_internal_lock_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_lock_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { + if (this_._internal_lock_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_lock_height(), target); + } } // bytes excess = 6; - if (!this->_internal_excess().empty()) { - const std::string& _s = this->_internal_excess(); - target = stream->WriteBytesMaybeAliased(6, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_excess().empty()) { + const ::std::string& _s = this_._internal_excess(); + target = stream->WriteBytesMaybeAliased(6, _s, target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.Signature excess_sig = 7; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, *_impl_.excess_sig_, _impl_.excess_sig_->GetCachedSize(), target, stream); + 7, *this_._impl_.excess_sig_, this_._impl_.excess_sig_->GetCachedSize(), target, + stream); } // bytes hash = 8; - if (!this->_internal_hash().empty()) { - const std::string& _s = this->_internal_hash(); - target = stream->WriteBytesMaybeAliased(8, _s, target); + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_hash().empty()) { + const ::std::string& _s = this_._internal_hash(); + target = stream->WriteBytesMaybeAliased(8, _s, target); + } } // uint32 version = 9; - if (this->_internal_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 9, this->_internal_version(), target); + if ((cached_has_bits & 0x00000080u) != 0) { + if (this_._internal_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 9, this_._internal_version(), target); + } } // bytes burn_commitment = 10; - if (!this->_internal_burn_commitment().empty()) { - const std::string& _s = this->_internal_burn_commitment(); - target = stream->WriteBytesMaybeAliased(10, _s, target); + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_burn_commitment().empty()) { + const ::std::string& _s = this_._internal_burn_commitment(); + target = stream->WriteBytesMaybeAliased(10, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TransactionKernel) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TransactionKernel::ByteSizeLong(const MessageLite& base) { + const TransactionKernel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t TransactionKernel::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionKernel) + const TransactionKernel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionKernel) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes excess = 6; - if (!this->_internal_excess().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_excess()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + // bytes excess = 6; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_excess().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_excess()); + } + } + // bytes hash = 8; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_hash()); + } + } + // bytes burn_commitment = 10; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_burn_commitment().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_burn_commitment()); + } + } + // .tari.rpc.Signature excess_sig = 7; + if ((cached_has_bits & 0x00000008u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.excess_sig_); + } + // uint64 fee = 2; + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_fee() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_fee()); + } + } + // uint64 lock_height = 3; + if ((cached_has_bits & 0x00000020u) != 0) { + if (this_._internal_lock_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_lock_height()); + } + } + // uint32 features = 1; + if ((cached_has_bits & 0x00000040u) != 0) { + if (this_._internal_features() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_features()); + } + } + // uint32 version = 9; + if ((cached_has_bits & 0x00000080u) != 0) { + if (this_._internal_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_version()); + } + } } - - // bytes hash = 8; - if (!this->_internal_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_hash()); - } - - // bytes burn_commitment = 10; - if (!this->_internal_burn_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_burn_commitment()); - } - - // .tari.rpc.Signature excess_sig = 7; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.excess_sig_); - } - - // uint64 fee = 2; - if (this->_internal_fee() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_fee()); - } - - // uint64 lock_height = 3; - if (this->_internal_lock_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_lock_height()); - } - - // uint32 features = 1; - if (this->_internal_features() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_features()); - } - - // uint32 version = 9; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -900,36 +979,63 @@ void TransactionKernel::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_excess().empty()) { - _this->_internal_set_excess(from._internal_excess()); - } - if (!from._internal_hash().empty()) { - _this->_internal_set_hash(from._internal_hash()); - } - if (!from._internal_burn_commitment().empty()) { - _this->_internal_set_burn_commitment(from._internal_burn_commitment()); - } 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 ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_excess().empty()) { + _this->_internal_set_excess(from._internal_excess()); + } else { + if (_this->_impl_.excess_.IsDefault()) { + _this->_internal_set_excess(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_hash().empty()) { + _this->_internal_set_hash(from._internal_hash()); + } else { + if (_this->_impl_.hash_.IsDefault()) { + _this->_internal_set_hash(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_burn_commitment().empty()) { + _this->_internal_set_burn_commitment(from._internal_burn_commitment()); + } else { + if (_this->_impl_.burn_commitment_.IsDefault()) { + _this->_internal_set_burn_commitment(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + ABSL_DCHECK(from._impl_.excess_sig_ != nullptr); + if (_this->_impl_.excess_sig_ == nullptr) { + _this->_impl_.excess_sig_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.excess_sig_); + } else { + _this->_impl_.excess_sig_->MergeFrom(*from._impl_.excess_sig_); + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (from._internal_fee() != 0) { + _this->_impl_.fee_ = from._impl_.fee_; + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (from._internal_lock_height() != 0) { + _this->_impl_.lock_height_ = from._impl_.lock_height_; + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (from._internal_features() != 0) { + _this->_impl_.features_ = from._impl_.features_; + } + } + if ((cached_has_bits & 0x00000080u) != 0) { + if (from._internal_version() != 0) { + _this->_impl_.version_ = from._impl_.version_; + } } - } - if (from._internal_fee() != 0) { - _this->_impl_.fee_ = from._impl_.fee_; - } - if (from._internal_lock_height() != 0) { - _this->_impl_.lock_height_ = from._impl_.lock_height_; - } - if (from._internal_features() != 0) { - _this->_impl_.features_ = from._impl_.features_; - } - if (from._internal_version() != 0) { - _this->_impl_.version_ = from._impl_.version_; } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); @@ -942,12 +1048,9 @@ void TransactionKernel::CopyFrom(const TransactionKernel& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TransactionKernel::IsInitialized() const { - return true; -} -void TransactionKernel::InternalSwap(TransactionKernel* PROTOBUF_RESTRICT other) { - using std::swap; +void TransactionKernel::InternalSwap(TransactionKernel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -964,37 +1067,41 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TransactionInput::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_._has_bits_); }; void TransactionInput::clear_script_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.script_signature_ != nullptr) _impl_.script_signature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000400u; } void TransactionInput::clear_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_signature_ != nullptr) _impl_.metadata_signature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000800u; } -TransactionInput::TransactionInput(::google::protobuf::Arena* arena) +TransactionInput::TransactionInput(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TransactionInput_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.TransactionInput) } -inline PROTOBUF_NDEBUG_INLINE TransactionInput::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE TransactionInput::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::TransactionInput& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, commitment_(arena, from.commitment_), @@ -1008,24 +1115,28 @@ inline PROTOBUF_NDEBUG_INLINE TransactionInput::Impl_::Impl_( rangeproof_hash_(arena, from.rangeproof_hash_) {} TransactionInput::TransactionInput( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TransactionInput& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TransactionInput_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TransactionInput* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _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; + _impl_.features_ = ((cached_has_bits & 0x00000200u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) + : nullptr; + _impl_.script_signature_ = ((cached_has_bits & 0x00000400u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.script_signature_) + : nullptr; + _impl_.metadata_signature_ = ((cached_has_bits & 0x00000800u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_signature_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, minimum_value_promise_), reinterpret_cast(&from._impl_) + @@ -1036,9 +1147,9 @@ TransactionInput::TransactionInput( // @@protoc_insertion_point(copy_constructor:tari.rpc.TransactionInput) } -inline PROTOBUF_NDEBUG_INLINE TransactionInput::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE TransactionInput::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, commitment_(arena), hash_(arena), @@ -1050,7 +1161,7 @@ inline PROTOBUF_NDEBUG_INLINE TransactionInput::Impl_::Impl_( encrypted_data_(arena), rangeproof_hash_(arena) {} -inline void TransactionInput::SharedCtor(::_pb::Arena* arena) { +inline void TransactionInput::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, features_), @@ -1061,87 +1172,72 @@ inline void TransactionInput::SharedCtor(::_pb::Arena* arena) { } TransactionInput::~TransactionInput() { // @@protoc_insertion_point(destructor:tari.rpc.TransactionInput) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void TransactionInput::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.commitment_.Destroy(); - _impl_.hash_.Destroy(); - _impl_.script_.Destroy(); - _impl_.input_data_.Destroy(); - _impl_.sender_offset_public_key_.Destroy(); - _impl_.output_hash_.Destroy(); - _impl_.covenant_.Destroy(); - _impl_.encrypted_data_.Destroy(); - _impl_.rangeproof_hash_.Destroy(); - delete _impl_.features_; - delete _impl_.script_signature_; - delete _impl_.metadata_signature_; - _impl_.~Impl_(); +inline void TransactionInput::SharedDtor(MessageLite& self) { + TransactionInput& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.commitment_.Destroy(); + this_._impl_.hash_.Destroy(); + this_._impl_.script_.Destroy(); + this_._impl_.input_data_.Destroy(); + this_._impl_.sender_offset_public_key_.Destroy(); + this_._impl_.output_hash_.Destroy(); + this_._impl_.covenant_.Destroy(); + this_._impl_.encrypted_data_.Destroy(); + this_._impl_.rangeproof_hash_.Destroy(); + delete this_._impl_.features_; + delete this_._impl_.script_signature_; + delete this_._impl_.metadata_signature_; + this_._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, - }, +inline void* PROTOBUF_NONNULL TransactionInput::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) TransactionInput(arena); +} +constexpr auto TransactionInput::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(TransactionInput), + alignof(TransactionInput)); +} +constexpr auto TransactionInput::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_TransactionInput_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.commitment_.ClearToEmpty(); - _impl_.hash_.ClearToEmpty(); - _impl_.script_.ClearToEmpty(); - _impl_.input_data_.ClearToEmpty(); - _impl_.sender_offset_public_key_.ClearToEmpty(); - _impl_.output_hash_.ClearToEmpty(); - _impl_.covenant_.ClearToEmpty(); - _impl_.encrypted_data_.ClearToEmpty(); - _impl_.rangeproof_hash_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.script_signature_ != nullptr); - _impl_.script_signature_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.metadata_signature_ != nullptr); - _impl_.metadata_signature_->Clear(); - } - } - ::memset(&_impl_.minimum_value_promise_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.version_) - - reinterpret_cast(&_impl_.minimum_value_promise_)) + sizeof(_impl_.version_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransactionInput::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TransactionInput::ByteSizeLong, + &TransactionInput::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_._cached_size_), + false, + }, + &TransactionInput::kDescriptorMethods, + &descriptor_table_transaction_2eproto, + nullptr, // tracker + }; } -const char* TransactionInput::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull TransactionInput_class_data_ = + TransactionInput::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +TransactionInput::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&TransactionInput_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(TransactionInput_class_data_.tc_table); + return TransactionInput_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 14, 3, 0, 2> TransactionInput::_table_ = { +const ::_pbi::TcParseTable<4, 14, 3, 0, 2> +TransactionInput::_table_ = { { PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_._has_bits_), 0, // no _extensions_ @@ -1152,7 +1248,8 @@ const ::_pbi::TcParseTable<4, 14, 3, 0, 2> TransactionInput::_table_ = { 14, // num_field_entries 3, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TransactionInput_default_instance_._instance, + TransactionInput_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::TransactionInput>(), // to_prefetch @@ -1161,302 +1258,413 @@ const ::_pbi::TcParseTable<4, 14, 3, 0, 2> TransactionInput::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // .tari.rpc.OutputFeatures features = 1; {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.features_)}}, + {10, 9, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.features_)}}, // bytes commitment = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.commitment_)}}, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.commitment_)}}, // bytes hash = 3; {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.hash_)}}, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.hash_)}}, // bytes script = 4; {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.script_)}}, + {34, 2, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.script_)}}, // bytes input_data = 5; {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.input_data_)}}, + {42, 3, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.input_data_)}}, {::_pbi::TcParser::MiniParse, {}}, // .tari.rpc.ComAndPubSignature script_signature = 7; {::_pbi::TcParser::FastMtS1, - {58, 1, 1, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.script_signature_)}}, + {58, 10, 1, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.script_signature_)}}, // bytes sender_offset_public_key = 8; {::_pbi::TcParser::FastBS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.sender_offset_public_key_)}}, + {66, 4, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.sender_offset_public_key_)}}, // bytes output_hash = 9; {::_pbi::TcParser::FastBS1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.output_hash_)}}, + {74, 5, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.output_hash_)}}, // bytes covenant = 10; {::_pbi::TcParser::FastBS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.covenant_)}}, + {82, 6, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.covenant_)}}, // uint32 version = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionInput, _impl_.version_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.version_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionInput, _impl_.version_), 13>(), + {88, 13, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.version_)}}, // bytes encrypted_data = 12; {::_pbi::TcParser::FastBS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.encrypted_data_)}}, + {98, 7, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.encrypted_data_)}}, // uint64 minimum_value_promise = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TransactionInput, _impl_.minimum_value_promise_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.minimum_value_promise_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TransactionInput, _impl_.minimum_value_promise_), 12>(), + {104, 12, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.minimum_value_promise_)}}, // .tari.rpc.ComAndPubSignature metadata_signature = 14; {::_pbi::TcParser::FastMtS1, - {114, 2, 2, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.metadata_signature_)}}, + {114, 11, 2, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.metadata_signature_)}}, // bytes rangeproof_hash = 15; {::_pbi::TcParser::FastBS1, - {122, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.rangeproof_hash_)}}, + {122, 8, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.rangeproof_hash_)}}, }}, {{ 65535, 65535 }}, {{ // .tari.rpc.OutputFeatures features = 1; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.features_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.features_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes commitment = 2; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.commitment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.commitment_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes hash = 3; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.hash_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes script = 4; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.script_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.script_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes input_data = 5; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.input_data_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.input_data_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.ComAndPubSignature script_signature = 7; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.script_signature_), _Internal::kHasBitsOffset + 1, 1, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.script_signature_), _Internal::kHasBitsOffset + 10, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes sender_offset_public_key = 8; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.sender_offset_public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.sender_offset_public_key_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes output_hash = 9; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.output_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.output_hash_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes covenant = 10; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.covenant_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.covenant_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint32 version = 11; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.version_), _Internal::kHasBitsOffset + 13, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // bytes encrypted_data = 12; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.encrypted_data_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.encrypted_data_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint64 minimum_value_promise = 13; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.minimum_value_promise_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.minimum_value_promise_), _Internal::kHasBitsOffset + 12, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // .tari.rpc.ComAndPubSignature metadata_signature = 14; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.metadata_signature_), _Internal::kHasBitsOffset + 2, 2, + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.metadata_signature_), _Internal::kHasBitsOffset + 11, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes rangeproof_hash = 15; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.rangeproof_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.rangeproof_hash_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void TransactionInput::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionInput) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* TransactionInput::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.commitment_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.script_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.input_data_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + _impl_.sender_offset_public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000020u) != 0) { + _impl_.output_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000040u) != 0) { + _impl_.covenant_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000080u) != 0) { + _impl_.encrypted_data_.ClearNonDefaultToEmpty(); + } + } + if ((cached_has_bits & 0x00000f00u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { + _impl_.rangeproof_hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000200u) != 0) { + ABSL_DCHECK(_impl_.features_ != nullptr); + _impl_.features_->Clear(); + } + if ((cached_has_bits & 0x00000400u) != 0) { + ABSL_DCHECK(_impl_.script_signature_ != nullptr); + _impl_.script_signature_->Clear(); + } + if ((cached_has_bits & 0x00000800u) != 0) { + ABSL_DCHECK(_impl_.metadata_signature_ != nullptr); + _impl_.metadata_signature_->Clear(); + } + } + if ((cached_has_bits & 0x00003000u) != 0) { + ::memset(&_impl_.minimum_value_promise_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.version_) - + reinterpret_cast(&_impl_.minimum_value_promise_)) + sizeof(_impl_.version_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL TransactionInput::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const TransactionInput& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL TransactionInput::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const TransactionInput& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TransactionInput) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.OutputFeatures features = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000200u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); + 1, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, + stream); } // bytes commitment = 2; - if (!this->_internal_commitment().empty()) { - const std::string& _s = this->_internal_commitment(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_commitment().empty()) { + const ::std::string& _s = this_._internal_commitment(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } // bytes hash = 3; - if (!this->_internal_hash().empty()) { - const std::string& _s = this->_internal_hash(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_hash().empty()) { + const ::std::string& _s = this_._internal_hash(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } // bytes script = 4; - if (!this->_internal_script().empty()) { - const std::string& _s = this->_internal_script(); - target = stream->WriteBytesMaybeAliased(4, _s, target); + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_script().empty()) { + const ::std::string& _s = this_._internal_script(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } } // bytes input_data = 5; - if (!this->_internal_input_data().empty()) { - const std::string& _s = this->_internal_input_data(); - target = stream->WriteBytesMaybeAliased(5, _s, target); + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_input_data().empty()) { + const ::std::string& _s = this_._internal_input_data(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } // .tari.rpc.ComAndPubSignature script_signature = 7; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000400u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, *_impl_.script_signature_, _impl_.script_signature_->GetCachedSize(), target, stream); + 7, *this_._impl_.script_signature_, this_._impl_.script_signature_->GetCachedSize(), target, + stream); } // bytes sender_offset_public_key = 8; - if (!this->_internal_sender_offset_public_key().empty()) { - const std::string& _s = this->_internal_sender_offset_public_key(); - target = stream->WriteBytesMaybeAliased(8, _s, target); + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_sender_offset_public_key().empty()) { + const ::std::string& _s = this_._internal_sender_offset_public_key(); + target = stream->WriteBytesMaybeAliased(8, _s, target); + } } // bytes output_hash = 9; - if (!this->_internal_output_hash().empty()) { - const std::string& _s = this->_internal_output_hash(); - target = stream->WriteBytesMaybeAliased(9, _s, target); + if ((cached_has_bits & 0x00000020u) != 0) { + if (!this_._internal_output_hash().empty()) { + const ::std::string& _s = this_._internal_output_hash(); + target = stream->WriteBytesMaybeAliased(9, _s, target); + } } // bytes covenant = 10; - if (!this->_internal_covenant().empty()) { - const std::string& _s = this->_internal_covenant(); - target = stream->WriteBytesMaybeAliased(10, _s, target); + if ((cached_has_bits & 0x00000040u) != 0) { + if (!this_._internal_covenant().empty()) { + const ::std::string& _s = this_._internal_covenant(); + target = stream->WriteBytesMaybeAliased(10, _s, target); + } } // uint32 version = 11; - if (this->_internal_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 11, this->_internal_version(), target); + if ((cached_has_bits & 0x00002000u) != 0) { + if (this_._internal_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 11, this_._internal_version(), target); + } } // bytes encrypted_data = 12; - if (!this->_internal_encrypted_data().empty()) { - const std::string& _s = this->_internal_encrypted_data(); - target = stream->WriteBytesMaybeAliased(12, _s, target); + if ((cached_has_bits & 0x00000080u) != 0) { + if (!this_._internal_encrypted_data().empty()) { + const ::std::string& _s = this_._internal_encrypted_data(); + target = stream->WriteBytesMaybeAliased(12, _s, target); + } } // uint64 minimum_value_promise = 13; - if (this->_internal_minimum_value_promise() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 13, this->_internal_minimum_value_promise(), target); + if ((cached_has_bits & 0x00001000u) != 0) { + if (this_._internal_minimum_value_promise() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 13, this_._internal_minimum_value_promise(), target); + } } // .tari.rpc.ComAndPubSignature metadata_signature = 14; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000800u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 14, *_impl_.metadata_signature_, _impl_.metadata_signature_->GetCachedSize(), target, stream); + 14, *this_._impl_.metadata_signature_, this_._impl_.metadata_signature_->GetCachedSize(), target, + stream); } // bytes rangeproof_hash = 15; - if (!this->_internal_rangeproof_hash().empty()) { - const std::string& _s = this->_internal_rangeproof_hash(); - target = stream->WriteBytesMaybeAliased(15, _s, target); + if ((cached_has_bits & 0x00000100u) != 0) { + if (!this_._internal_rangeproof_hash().empty()) { + const ::std::string& _s = this_._internal_rangeproof_hash(); + target = stream->WriteBytesMaybeAliased(15, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TransactionInput) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TransactionInput::ByteSizeLong(const MessageLite& base) { + const TransactionInput& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t TransactionInput::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionInput) + const TransactionInput& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionInput) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes commitment = 2; - if (!this->_internal_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_commitment()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + // bytes commitment = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_commitment().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_commitment()); + } + } + // bytes hash = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_hash()); + } + } + // bytes script = 4; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_script().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_script()); + } + } + // bytes input_data = 5; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_input_data().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_input_data()); + } + } + // bytes sender_offset_public_key = 8; + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_sender_offset_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_sender_offset_public_key()); + } + } + // bytes output_hash = 9; + if ((cached_has_bits & 0x00000020u) != 0) { + if (!this_._internal_output_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_output_hash()); + } + } + // bytes covenant = 10; + if ((cached_has_bits & 0x00000040u) != 0) { + if (!this_._internal_covenant().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_covenant()); + } + } + // bytes encrypted_data = 12; + if ((cached_has_bits & 0x00000080u) != 0) { + if (!this_._internal_encrypted_data().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_encrypted_data()); + } + } } - - // bytes hash = 3; - if (!this->_internal_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_hash()); - } - - // bytes script = 4; - if (!this->_internal_script().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script()); - } - - // bytes input_data = 5; - if (!this->_internal_input_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_input_data()); - } - - // bytes sender_offset_public_key = 8; - if (!this->_internal_sender_offset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_sender_offset_public_key()); - } - - // bytes output_hash = 9; - if (!this->_internal_output_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_output_hash()); - } - - // bytes covenant = 10; - if (!this->_internal_covenant().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_covenant()); - } - - // bytes encrypted_data = 12; - if (!this->_internal_encrypted_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_encrypted_data()); - } - - // bytes rangeproof_hash = 15; - if (!this->_internal_rangeproof_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_rangeproof_hash()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + if ((cached_has_bits & 0x00003f00u) != 0) { + // bytes rangeproof_hash = 15; + if ((cached_has_bits & 0x00000100u) != 0) { + if (!this_._internal_rangeproof_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_rangeproof_hash()); + } + } // .tari.rpc.OutputFeatures features = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); + if ((cached_has_bits & 0x00000200u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); } - // .tari.rpc.ComAndPubSignature script_signature = 7; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.script_signature_); + if ((cached_has_bits & 0x00000400u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.script_signature_); } - // .tari.rpc.ComAndPubSignature metadata_signature = 14; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_signature_); + if ((cached_has_bits & 0x00000800u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.metadata_signature_); + } + // uint64 minimum_value_promise = 13; + if ((cached_has_bits & 0x00001000u) != 0) { + if (this_._internal_minimum_value_promise() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_minimum_value_promise()); + } + } + // uint32 version = 11; + if ((cached_has_bits & 0x00002000u) != 0) { + if (this_._internal_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_version()); + } } - } - // uint64 minimum_value_promise = 13; - if (this->_internal_minimum_value_promise() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_minimum_value_promise()); - } - - // uint32 version = 11; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1466,68 +1674,125 @@ void TransactionInput::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_commitment().empty()) { - _this->_internal_set_commitment(from._internal_commitment()); - } - if (!from._internal_hash().empty()) { - _this->_internal_set_hash(from._internal_hash()); - } - if (!from._internal_script().empty()) { - _this->_internal_set_script(from._internal_script()); - } - if (!from._internal_input_data().empty()) { - _this->_internal_set_input_data(from._internal_input_data()); - } - if (!from._internal_sender_offset_public_key().empty()) { - _this->_internal_set_sender_offset_public_key(from._internal_sender_offset_public_key()); - } - if (!from._internal_output_hash().empty()) { - _this->_internal_set_output_hash(from._internal_output_hash()); - } - if (!from._internal_covenant().empty()) { - _this->_internal_set_covenant(from._internal_covenant()); - } - if (!from._internal_encrypted_data().empty()) { - _this->_internal_set_encrypted_data(from._internal_encrypted_data()); - } - if (!from._internal_rangeproof_hash().empty()) { - _this->_internal_set_rangeproof_hash(from._internal_rangeproof_hash()); - } cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_commitment().empty()) { + _this->_internal_set_commitment(from._internal_commitment()); + } else { + if (_this->_impl_.commitment_.IsDefault()) { + _this->_internal_set_commitment(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_hash().empty()) { + _this->_internal_set_hash(from._internal_hash()); + } else { + if (_this->_impl_.hash_.IsDefault()) { + _this->_internal_set_hash(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_script().empty()) { + _this->_internal_set_script(from._internal_script()); + } else { + if (_this->_impl_.script_.IsDefault()) { + _this->_internal_set_script(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_input_data().empty()) { + _this->_internal_set_input_data(from._internal_input_data()); + } else { + if (_this->_impl_.input_data_.IsDefault()) { + _this->_internal_set_input_data(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (!from._internal_sender_offset_public_key().empty()) { + _this->_internal_set_sender_offset_public_key(from._internal_sender_offset_public_key()); + } else { + if (_this->_impl_.sender_offset_public_key_.IsDefault()) { + _this->_internal_set_sender_offset_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (!from._internal_output_hash().empty()) { + _this->_internal_set_output_hash(from._internal_output_hash()); + } else { + if (_this->_impl_.output_hash_.IsDefault()) { + _this->_internal_set_output_hash(""); + } + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (!from._internal_covenant().empty()) { + _this->_internal_set_covenant(from._internal_covenant()); + } else { + if (_this->_impl_.covenant_.IsDefault()) { + _this->_internal_set_covenant(""); + } + } + } + if ((cached_has_bits & 0x00000080u) != 0) { + if (!from._internal_encrypted_data().empty()) { + _this->_internal_set_encrypted_data(from._internal_encrypted_data()); + } else { + if (_this->_impl_.encrypted_data_.IsDefault()) { + _this->_internal_set_encrypted_data(""); + } + } + } + } + if ((cached_has_bits & 0x00003f00u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { + if (!from._internal_rangeproof_hash().empty()) { + _this->_internal_set_rangeproof_hash(from._internal_rangeproof_hash()); + } else { + if (_this->_impl_.rangeproof_hash_.IsDefault()) { + _this->_internal_set_rangeproof_hash(""); + } + } + } + if ((cached_has_bits & 0x00000200u) != 0) { 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_); + _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); } else { _this->_impl_.features_->MergeFrom(*from._impl_.features_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000400u) != 0) { 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_); + _this->_impl_.script_signature_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.script_signature_); } else { _this->_impl_.script_signature_->MergeFrom(*from._impl_.script_signature_); } } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000800u) != 0) { 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_); + _this->_impl_.metadata_signature_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_signature_); } else { _this->_impl_.metadata_signature_->MergeFrom(*from._impl_.metadata_signature_); } } - } - if (from._internal_minimum_value_promise() != 0) { - _this->_impl_.minimum_value_promise_ = from._impl_.minimum_value_promise_; - } - if (from._internal_version() != 0) { - _this->_impl_.version_ = from._impl_.version_; + if ((cached_has_bits & 0x00001000u) != 0) { + if (from._internal_minimum_value_promise() != 0) { + _this->_impl_.minimum_value_promise_ = from._impl_.minimum_value_promise_; + } + } + if ((cached_has_bits & 0x00002000u) != 0) { + if (from._internal_version() != 0) { + _this->_impl_.version_ = from._impl_.version_; + } + } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); @@ -1540,12 +1805,9 @@ void TransactionInput::CopyFrom(const TransactionInput& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TransactionInput::IsInitialized() const { - return true; -} -void TransactionInput::InternalSwap(TransactionInput* PROTOBUF_RESTRICT other) { - using std::swap; +void TransactionInput::InternalSwap(TransactionInput* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1568,37 +1830,41 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TransactionOutput::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_._has_bits_); }; void TransactionOutput::clear_range_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.range_proof_ != nullptr) _impl_.range_proof_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000100u; } void TransactionOutput::clear_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_signature_ != nullptr) _impl_.metadata_signature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000200u; } -TransactionOutput::TransactionOutput(::google::protobuf::Arena* arena) +TransactionOutput::TransactionOutput(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TransactionOutput_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.TransactionOutput) } -inline PROTOBUF_NDEBUG_INLINE TransactionOutput::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE TransactionOutput::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::TransactionOutput& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, commitment_(arena, from.commitment_), @@ -1606,27 +1872,32 @@ inline PROTOBUF_NDEBUG_INLINE TransactionOutput::Impl_::Impl_( script_(arena, from.script_), sender_offset_public_key_(arena, from.sender_offset_public_key_), covenant_(arena, from.covenant_), - encrypted_data_(arena, from.encrypted_data_) {} + encrypted_data_(arena, from.encrypted_data_), + payment_reference_(arena, from.payment_reference_) {} TransactionOutput::TransactionOutput( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TransactionOutput& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, TransactionOutput_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TransactionOutput* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _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; + _impl_.features_ = ((cached_has_bits & 0x00000080u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) + : nullptr; + _impl_.range_proof_ = ((cached_has_bits & 0x00000100u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.range_proof_) + : nullptr; + _impl_.metadata_signature_ = ((cached_has_bits & 0x00000200u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_signature_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, minimum_value_promise_), reinterpret_cast(&from._impl_) + @@ -1637,18 +1908,19 @@ TransactionOutput::TransactionOutput( // @@protoc_insertion_point(copy_constructor:tari.rpc.TransactionOutput) } -inline PROTOBUF_NDEBUG_INLINE TransactionOutput::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE TransactionOutput::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, commitment_(arena), hash_(arena), script_(arena), sender_offset_public_key_(arena), covenant_(arena), - encrypted_data_(arena) {} + encrypted_data_(arena), + payment_reference_(arena) {} -inline void TransactionOutput::SharedCtor(::_pb::Arena* arena) { +inline void TransactionOutput::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, features_), @@ -1659,92 +1931,82 @@ inline void TransactionOutput::SharedCtor(::_pb::Arena* arena) { } TransactionOutput::~TransactionOutput() { // @@protoc_insertion_point(destructor:tari.rpc.TransactionOutput) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void TransactionOutput::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.commitment_.Destroy(); - _impl_.hash_.Destroy(); - _impl_.script_.Destroy(); - _impl_.sender_offset_public_key_.Destroy(); - _impl_.covenant_.Destroy(); - _impl_.encrypted_data_.Destroy(); - delete _impl_.features_; - delete _impl_.range_proof_; - delete _impl_.metadata_signature_; - _impl_.~Impl_(); +inline void TransactionOutput::SharedDtor(MessageLite& self) { + TransactionOutput& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.commitment_.Destroy(); + this_._impl_.hash_.Destroy(); + this_._impl_.script_.Destroy(); + this_._impl_.sender_offset_public_key_.Destroy(); + this_._impl_.covenant_.Destroy(); + this_._impl_.encrypted_data_.Destroy(); + this_._impl_.payment_reference_.Destroy(); + delete this_._impl_.features_; + delete this_._impl_.range_proof_; + delete this_._impl_.metadata_signature_; + this_._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, - }, +inline void* PROTOBUF_NONNULL TransactionOutput::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) TransactionOutput(arena); +} +constexpr auto TransactionOutput::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(TransactionOutput), + alignof(TransactionOutput)); +} +constexpr auto TransactionOutput::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_TransactionOutput_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.commitment_.ClearToEmpty(); - _impl_.hash_.ClearToEmpty(); - _impl_.script_.ClearToEmpty(); - _impl_.sender_offset_public_key_.ClearToEmpty(); - _impl_.covenant_.ClearToEmpty(); - _impl_.encrypted_data_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.range_proof_ != nullptr); - _impl_.range_proof_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.metadata_signature_ != nullptr); - _impl_.metadata_signature_->Clear(); - } - } - ::memset(&_impl_.minimum_value_promise_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.version_) - - reinterpret_cast(&_impl_.minimum_value_promise_)) + sizeof(_impl_.version_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransactionOutput::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TransactionOutput::ByteSizeLong, + &TransactionOutput::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_._cached_size_), + false, + }, + &TransactionOutput::kDescriptorMethods, + &descriptor_table_transaction_2eproto, + nullptr, // tracker + }; } -const char* TransactionOutput::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull TransactionOutput_class_data_ = + TransactionOutput::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +TransactionOutput::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&TransactionOutput_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(TransactionOutput_class_data_.tc_table); + return TransactionOutput_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 11, 3, 0, 2> TransactionOutput::_table_ = { +const ::_pbi::TcParseTable<4, 12, 3, 0, 2> +TransactionOutput::_table_ = { { PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_._has_bits_), 0, // no _extensions_ - 11, 120, // max_field_number, fast_idx_mask + 12, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294965248, // skipmap + 4294963200, // skipmap offsetof(decltype(_table_), field_entries), - 11, // num_field_entries + 12, // num_field_entries 3, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TransactionOutput_default_instance_._instance, + TransactionOutput_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::TransactionOutput>(), // to_prefetch @@ -1753,38 +2015,40 @@ const ::_pbi::TcParseTable<4, 11, 3, 0, 2> TransactionOutput::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // .tari.rpc.OutputFeatures features = 1; {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.features_)}}, + {10, 7, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.features_)}}, // bytes commitment = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.commitment_)}}, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.commitment_)}}, // .tari.rpc.RangeProof range_proof = 3; {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.range_proof_)}}, + {26, 8, 1, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.range_proof_)}}, // bytes hash = 4; {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.hash_)}}, + {34, 1, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.hash_)}}, // bytes script = 5; {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.script_)}}, + {42, 2, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.script_)}}, // bytes sender_offset_public_key = 6; {::_pbi::TcParser::FastBS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.sender_offset_public_key_)}}, + {50, 3, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.sender_offset_public_key_)}}, // .tari.rpc.ComAndPubSignature metadata_signature = 7; {::_pbi::TcParser::FastMtS1, - {58, 2, 2, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.metadata_signature_)}}, + {58, 9, 2, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.metadata_signature_)}}, // bytes covenant = 8; {::_pbi::TcParser::FastBS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.covenant_)}}, + {66, 4, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.covenant_)}}, // uint32 version = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionOutput, _impl_.version_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.version_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionOutput, _impl_.version_), 11>(), + {72, 11, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.version_)}}, // bytes encrypted_data = 10; {::_pbi::TcParser::FastBS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.encrypted_data_)}}, + {82, 5, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.encrypted_data_)}}, // uint64 minimum_value_promise = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TransactionOutput, _impl_.minimum_value_promise_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.minimum_value_promise_)}}, - {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TransactionOutput, _impl_.minimum_value_promise_), 10>(), + {88, 10, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.minimum_value_promise_)}}, + // bytes payment_reference = 12; + {::_pbi::TcParser::FastBS1, + {98, 6, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.payment_reference_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -1792,212 +2056,326 @@ const ::_pbi::TcParseTable<4, 11, 3, 0, 2> TransactionOutput::_table_ = { 65535, 65535 }}, {{ // .tari.rpc.OutputFeatures features = 1; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.features_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.features_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes commitment = 2; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.commitment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.commitment_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.RangeProof range_proof = 3; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.range_proof_), _Internal::kHasBitsOffset + 1, 1, + {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.range_proof_), _Internal::kHasBitsOffset + 8, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes hash = 4; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.hash_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes script = 5; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.script_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.script_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes sender_offset_public_key = 6; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.sender_offset_public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.sender_offset_public_key_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.ComAndPubSignature metadata_signature = 7; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.metadata_signature_), _Internal::kHasBitsOffset + 2, 2, + {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.metadata_signature_), _Internal::kHasBitsOffset + 9, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes covenant = 8; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.covenant_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.covenant_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint32 version = 9; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.version_), _Internal::kHasBitsOffset + 11, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // bytes encrypted_data = 10; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.encrypted_data_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.encrypted_data_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint64 minimum_value_promise = 11; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.minimum_value_promise_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::RangeProof>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.minimum_value_promise_), _Internal::kHasBitsOffset + 10, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // bytes payment_reference = 12; + {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.payment_reference_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::RangeProof>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void TransactionOutput::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionOutput) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* TransactionOutput::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.commitment_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.hash_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.script_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.sender_offset_public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + _impl_.covenant_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000020u) != 0) { + _impl_.encrypted_data_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000040u) != 0) { + _impl_.payment_reference_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000080u) != 0) { + ABSL_DCHECK(_impl_.features_ != nullptr); + _impl_.features_->Clear(); + } + } + if ((cached_has_bits & 0x00000300u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { + ABSL_DCHECK(_impl_.range_proof_ != nullptr); + _impl_.range_proof_->Clear(); + } + if ((cached_has_bits & 0x00000200u) != 0) { + ABSL_DCHECK(_impl_.metadata_signature_ != nullptr); + _impl_.metadata_signature_->Clear(); + } + } + if ((cached_has_bits & 0x00000c00u) != 0) { + ::memset(&_impl_.minimum_value_promise_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.version_) - + reinterpret_cast(&_impl_.minimum_value_promise_)) + sizeof(_impl_.version_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL TransactionOutput::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const TransactionOutput& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL TransactionOutput::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const TransactionOutput& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TransactionOutput) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.OutputFeatures features = 1; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000080u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); + 1, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, + stream); } // bytes commitment = 2; - if (!this->_internal_commitment().empty()) { - const std::string& _s = this->_internal_commitment(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_commitment().empty()) { + const ::std::string& _s = this_._internal_commitment(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } // .tari.rpc.RangeProof range_proof = 3; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000100u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.range_proof_, _impl_.range_proof_->GetCachedSize(), target, stream); + 3, *this_._impl_.range_proof_, this_._impl_.range_proof_->GetCachedSize(), target, + stream); } // bytes hash = 4; - if (!this->_internal_hash().empty()) { - const std::string& _s = this->_internal_hash(); - target = stream->WriteBytesMaybeAliased(4, _s, target); + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_hash().empty()) { + const ::std::string& _s = this_._internal_hash(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } } // bytes script = 5; - if (!this->_internal_script().empty()) { - const std::string& _s = this->_internal_script(); - target = stream->WriteBytesMaybeAliased(5, _s, target); + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_script().empty()) { + const ::std::string& _s = this_._internal_script(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } // bytes sender_offset_public_key = 6; - if (!this->_internal_sender_offset_public_key().empty()) { - const std::string& _s = this->_internal_sender_offset_public_key(); - target = stream->WriteBytesMaybeAliased(6, _s, target); + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_sender_offset_public_key().empty()) { + const ::std::string& _s = this_._internal_sender_offset_public_key(); + target = stream->WriteBytesMaybeAliased(6, _s, target); + } } // .tari.rpc.ComAndPubSignature metadata_signature = 7; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000200u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, *_impl_.metadata_signature_, _impl_.metadata_signature_->GetCachedSize(), target, stream); + 7, *this_._impl_.metadata_signature_, this_._impl_.metadata_signature_->GetCachedSize(), target, + stream); } // bytes covenant = 8; - if (!this->_internal_covenant().empty()) { - const std::string& _s = this->_internal_covenant(); - target = stream->WriteBytesMaybeAliased(8, _s, target); + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_covenant().empty()) { + const ::std::string& _s = this_._internal_covenant(); + target = stream->WriteBytesMaybeAliased(8, _s, target); + } } // uint32 version = 9; - if (this->_internal_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 9, this->_internal_version(), target); + if ((cached_has_bits & 0x00000800u) != 0) { + if (this_._internal_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 9, this_._internal_version(), target); + } } // bytes encrypted_data = 10; - if (!this->_internal_encrypted_data().empty()) { - const std::string& _s = this->_internal_encrypted_data(); - target = stream->WriteBytesMaybeAliased(10, _s, target); + if ((cached_has_bits & 0x00000020u) != 0) { + if (!this_._internal_encrypted_data().empty()) { + const ::std::string& _s = this_._internal_encrypted_data(); + target = stream->WriteBytesMaybeAliased(10, _s, target); + } } // uint64 minimum_value_promise = 11; - if (this->_internal_minimum_value_promise() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 11, this->_internal_minimum_value_promise(), target); + if ((cached_has_bits & 0x00000400u) != 0) { + if (this_._internal_minimum_value_promise() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 11, this_._internal_minimum_value_promise(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + // bytes payment_reference = 12; + if ((cached_has_bits & 0x00000040u) != 0) { + if (!this_._internal_payment_reference().empty()) { + const ::std::string& _s = this_._internal_payment_reference(); + target = stream->WriteBytesMaybeAliased(12, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TransactionOutput) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TransactionOutput::ByteSizeLong(const MessageLite& base) { + const TransactionOutput& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t TransactionOutput::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionOutput) + const TransactionOutput& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionOutput) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes commitment = 2; - if (!this->_internal_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_commitment()); - } - - // bytes hash = 4; - if (!this->_internal_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_hash()); - } - - // bytes script = 5; - if (!this->_internal_script().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script()); - } - - // bytes sender_offset_public_key = 6; - if (!this->_internal_sender_offset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_sender_offset_public_key()); - } - - // bytes covenant = 8; - if (!this->_internal_covenant().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_covenant()); - } - - // bytes encrypted_data = 10; - if (!this->_internal_encrypted_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_encrypted_data()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + // bytes commitment = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_commitment().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_commitment()); + } + } + // bytes hash = 4; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_hash().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_hash()); + } + } + // bytes script = 5; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_script().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_script()); + } + } + // bytes sender_offset_public_key = 6; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_sender_offset_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_sender_offset_public_key()); + } + } + // bytes covenant = 8; + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_covenant().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_covenant()); + } + } + // bytes encrypted_data = 10; + if ((cached_has_bits & 0x00000020u) != 0) { + if (!this_._internal_encrypted_data().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_encrypted_data()); + } + } + // bytes payment_reference = 12; + if ((cached_has_bits & 0x00000040u) != 0) { + if (!this_._internal_payment_reference().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_payment_reference()); + } + } // .tari.rpc.OutputFeatures features = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); + if ((cached_has_bits & 0x00000080u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); } - + } + if ((cached_has_bits & 0x00000f00u) != 0) { // .tari.rpc.RangeProof range_proof = 3; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.range_proof_); + if ((cached_has_bits & 0x00000100u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.range_proof_); } - // .tari.rpc.ComAndPubSignature metadata_signature = 7; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_signature_); + if ((cached_has_bits & 0x00000200u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.metadata_signature_); + } + // uint64 minimum_value_promise = 11; + if ((cached_has_bits & 0x00000400u) != 0) { + if (this_._internal_minimum_value_promise() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_minimum_value_promise()); + } + } + // uint32 version = 9; + if ((cached_has_bits & 0x00000800u) != 0) { + if (this_._internal_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_version()); + } } - } - // uint64 minimum_value_promise = 11; - if (this->_internal_minimum_value_promise() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_minimum_value_promise()); - } - - // uint32 version = 9; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2007,59 +2385,107 @@ void TransactionOutput::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_commitment().empty()) { - _this->_internal_set_commitment(from._internal_commitment()); - } - if (!from._internal_hash().empty()) { - _this->_internal_set_hash(from._internal_hash()); - } - if (!from._internal_script().empty()) { - _this->_internal_set_script(from._internal_script()); - } - if (!from._internal_sender_offset_public_key().empty()) { - _this->_internal_set_sender_offset_public_key(from._internal_sender_offset_public_key()); - } - if (!from._internal_covenant().empty()) { - _this->_internal_set_covenant(from._internal_covenant()); - } - if (!from._internal_encrypted_data().empty()) { - _this->_internal_set_encrypted_data(from._internal_encrypted_data()); - } cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_commitment().empty()) { + _this->_internal_set_commitment(from._internal_commitment()); + } else { + if (_this->_impl_.commitment_.IsDefault()) { + _this->_internal_set_commitment(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_hash().empty()) { + _this->_internal_set_hash(from._internal_hash()); + } else { + if (_this->_impl_.hash_.IsDefault()) { + _this->_internal_set_hash(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_script().empty()) { + _this->_internal_set_script(from._internal_script()); + } else { + if (_this->_impl_.script_.IsDefault()) { + _this->_internal_set_script(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_sender_offset_public_key().empty()) { + _this->_internal_set_sender_offset_public_key(from._internal_sender_offset_public_key()); + } else { + if (_this->_impl_.sender_offset_public_key_.IsDefault()) { + _this->_internal_set_sender_offset_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (!from._internal_covenant().empty()) { + _this->_internal_set_covenant(from._internal_covenant()); + } else { + if (_this->_impl_.covenant_.IsDefault()) { + _this->_internal_set_covenant(""); + } + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (!from._internal_encrypted_data().empty()) { + _this->_internal_set_encrypted_data(from._internal_encrypted_data()); + } else { + if (_this->_impl_.encrypted_data_.IsDefault()) { + _this->_internal_set_encrypted_data(""); + } + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (!from._internal_payment_reference().empty()) { + _this->_internal_set_payment_reference(from._internal_payment_reference()); + } else { + if (_this->_impl_.payment_reference_.IsDefault()) { + _this->_internal_set_payment_reference(""); + } + } + } + if ((cached_has_bits & 0x00000080u) != 0) { 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_); + _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); } else { _this->_impl_.features_->MergeFrom(*from._impl_.features_); } } - if (cached_has_bits & 0x00000002u) { + } + if ((cached_has_bits & 0x00000f00u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { 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_); + _this->_impl_.range_proof_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.range_proof_); } else { _this->_impl_.range_proof_->MergeFrom(*from._impl_.range_proof_); } } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000200u) != 0) { 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_); + _this->_impl_.metadata_signature_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_signature_); } else { _this->_impl_.metadata_signature_->MergeFrom(*from._impl_.metadata_signature_); } } - } - if (from._internal_minimum_value_promise() != 0) { - _this->_impl_.minimum_value_promise_ = from._impl_.minimum_value_promise_; - } - if (from._internal_version() != 0) { - _this->_impl_.version_ = from._impl_.version_; + if ((cached_has_bits & 0x00000400u) != 0) { + if (from._internal_minimum_value_promise() != 0) { + _this->_impl_.minimum_value_promise_ = from._impl_.minimum_value_promise_; + } + } + if ((cached_has_bits & 0x00000800u) != 0) { + if (from._internal_version() != 0) { + _this->_impl_.version_ = from._impl_.version_; + } + } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); @@ -2072,12 +2498,9 @@ void TransactionOutput::CopyFrom(const TransactionOutput& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TransactionOutput::IsInitialized() const { - return true; -} -void TransactionOutput::InternalSwap(TransactionOutput* PROTOBUF_RESTRICT other) { - using std::swap; +void TransactionOutput::InternalSwap(TransactionOutput* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2088,6 +2511,7 @@ void TransactionOutput::InternalSwap(TransactionOutput* PROTOBUF_RESTRICT other) ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sender_offset_public_key_, &other->_impl_.sender_offset_public_key_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.covenant_, &other->_impl_.covenant_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encrypted_data_, &other->_impl_.encrypted_data_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payment_reference_, &other->_impl_.payment_reference_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.version_) + sizeof(TransactionOutput::_impl_.version_) @@ -2097,49 +2521,57 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class OutputFeatures::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_._has_bits_); }; void OutputFeatures::clear_sidechain_feature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.sidechain_feature_ != nullptr) _impl_.sidechain_feature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000002u; } -OutputFeatures::OutputFeatures(::google::protobuf::Arena* arena) +OutputFeatures::OutputFeatures(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, OutputFeatures_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.OutputFeatures) } -inline PROTOBUF_NDEBUG_INLINE OutputFeatures::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE OutputFeatures::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::OutputFeatures& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, coinbase_extra_(arena, from.coinbase_extra_) {} OutputFeatures::OutputFeatures( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OutputFeatures& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, OutputFeatures_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE OutputFeatures* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.sidechain_feature_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::SideChainFeature>( - arena, *from._impl_.sidechain_feature_) - : nullptr; + _impl_.sidechain_feature_ = ((cached_has_bits & 0x00000002u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.sidechain_feature_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, version_), reinterpret_cast(&from._impl_) + @@ -2150,13 +2582,13 @@ OutputFeatures::OutputFeatures( // @@protoc_insertion_point(copy_constructor:tari.rpc.OutputFeatures) } -inline PROTOBUF_NDEBUG_INLINE OutputFeatures::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE OutputFeatures::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, coinbase_extra_(arena) {} -inline void OutputFeatures::SharedCtor(::_pb::Arena* arena) { +inline void OutputFeatures::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, sidechain_feature_), @@ -2167,59 +2599,62 @@ inline void OutputFeatures::SharedCtor(::_pb::Arena* arena) { } OutputFeatures::~OutputFeatures() { // @@protoc_insertion_point(destructor:tari.rpc.OutputFeatures) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void OutputFeatures::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.coinbase_extra_.Destroy(); - delete _impl_.sidechain_feature_; - _impl_.~Impl_(); +inline void OutputFeatures::SharedDtor(MessageLite& self) { + OutputFeatures& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.coinbase_extra_.Destroy(); + delete this_._impl_.sidechain_feature_; + this_._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, - }, +inline void* PROTOBUF_NONNULL OutputFeatures::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) OutputFeatures(arena); +} +constexpr auto OutputFeatures::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(OutputFeatures), + alignof(OutputFeatures)); +} +constexpr auto OutputFeatures::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_OutputFeatures_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.coinbase_extra_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.sidechain_feature_ != nullptr); - _impl_.sidechain_feature_->Clear(); - } - ::memset(&_impl_.version_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.range_proof_type_) - - reinterpret_cast(&_impl_.version_)) + sizeof(_impl_.range_proof_type_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &OutputFeatures::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &OutputFeatures::ByteSizeLong, + &OutputFeatures::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_._cached_size_), + false, + }, + &OutputFeatures::kDescriptorMethods, + &descriptor_table_transaction_2eproto, + nullptr, // tracker + }; } -const char* OutputFeatures::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull OutputFeatures_class_data_ = + OutputFeatures::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +OutputFeatures::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&OutputFeatures_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(OutputFeatures_class_data_.tc_table); + return OutputFeatures_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 1, 0, 2> OutputFeatures::_table_ = { +const ::_pbi::TcParseTable<3, 6, 1, 0, 2> +OutputFeatures::_table_ = { { PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_._has_bits_), 0, // no _extensions_ @@ -2230,7 +2665,8 @@ const ::_pbi::TcParseTable<3, 6, 1, 0, 2> OutputFeatures::_table_ = { 6, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_OutputFeatures_default_instance_._instance, + OutputFeatures_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>(), // to_prefetch @@ -2238,157 +2674,216 @@ const ::_pbi::TcParseTable<3, 6, 1, 0, 2> OutputFeatures::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint32 version = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(OutputFeatures, _impl_.version_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.version_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(OutputFeatures, _impl_.version_), 2>(), + {8, 2, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.version_)}}, // uint32 output_type = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(OutputFeatures, _impl_.output_type_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.output_type_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(OutputFeatures, _impl_.output_type_), 3>(), + {16, 3, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.output_type_)}}, // uint64 maturity = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(OutputFeatures, _impl_.maturity_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.maturity_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(OutputFeatures, _impl_.maturity_), 4>(), + {24, 4, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.maturity_)}}, // bytes coinbase_extra = 4; {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.coinbase_extra_)}}, + {34, 0, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.coinbase_extra_)}}, // .tari.rpc.SideChainFeature sidechain_feature = 5; {::_pbi::TcParser::FastMtS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.sidechain_feature_)}}, + {42, 1, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.sidechain_feature_)}}, // uint32 range_proof_type = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(OutputFeatures, _impl_.range_proof_type_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.range_proof_type_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(OutputFeatures, _impl_.range_proof_type_), 5>(), + {48, 5, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.range_proof_type_)}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // uint32 version = 1; - {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.version_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 output_type = 2; - {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.output_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.output_type_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint64 maturity = 3; - {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.maturity_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.maturity_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes coinbase_extra = 4; - {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.coinbase_extra_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.coinbase_extra_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.SideChainFeature sidechain_feature = 5; - {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.sidechain_feature_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.sidechain_feature_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint32 range_proof_type = 6; - {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.range_proof_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::SideChainFeature>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.range_proof_type_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::SideChainFeature>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void OutputFeatures::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.OutputFeatures) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* OutputFeatures::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.coinbase_extra_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(_impl_.sidechain_feature_ != nullptr); + _impl_.sidechain_feature_->Clear(); + } + } + if ((cached_has_bits & 0x0000003cu) != 0) { + ::memset(&_impl_.version_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.range_proof_type_) - + reinterpret_cast(&_impl_.version_)) + sizeof(_impl_.range_proof_type_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL OutputFeatures::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const OutputFeatures& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL OutputFeatures::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const OutputFeatures& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.OutputFeatures) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint32 version = 1; - if (this->_internal_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_version(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_version(), target); + } } // uint32 output_type = 2; - if (this->_internal_output_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_output_type(), target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (this_._internal_output_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_output_type(), target); + } } // uint64 maturity = 3; - if (this->_internal_maturity() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_maturity(), target); + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (this_._internal_maturity() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_maturity(), target); + } } // bytes coinbase_extra = 4; - if (!this->_internal_coinbase_extra().empty()) { - const std::string& _s = this->_internal_coinbase_extra(); - target = stream->WriteBytesMaybeAliased(4, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_coinbase_extra().empty()) { + const ::std::string& _s = this_._internal_coinbase_extra(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.SideChainFeature sidechain_feature = 5; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *_impl_.sidechain_feature_, _impl_.sidechain_feature_->GetCachedSize(), target, stream); + 5, *this_._impl_.sidechain_feature_, this_._impl_.sidechain_feature_->GetCachedSize(), target, + stream); } // uint32 range_proof_type = 6; - if (this->_internal_range_proof_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 6, this->_internal_range_proof_type(), target); + if ((cached_has_bits & 0x00000020u) != 0) { + if (this_._internal_range_proof_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 6, this_._internal_range_proof_type(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.OutputFeatures) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t OutputFeatures::ByteSizeLong(const MessageLite& base) { + const OutputFeatures& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t OutputFeatures::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.OutputFeatures) + const OutputFeatures& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.OutputFeatures) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes coinbase_extra = 4; - if (!this->_internal_coinbase_extra().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_coinbase_extra()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000003fu) != 0) { + // bytes coinbase_extra = 4; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_coinbase_extra().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_coinbase_extra()); + } + } + // .tari.rpc.SideChainFeature sidechain_feature = 5; + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.sidechain_feature_); + } + // uint32 version = 1; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_version()); + } + } + // uint32 output_type = 2; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_output_type() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_output_type()); + } + } + // uint64 maturity = 3; + if ((cached_has_bits & 0x00000010u) != 0) { + if (this_._internal_maturity() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_maturity()); + } + } + // uint32 range_proof_type = 6; + if ((cached_has_bits & 0x00000020u) != 0) { + if (this_._internal_range_proof_type() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_range_proof_type()); + } + } } - - // .tari.rpc.SideChainFeature sidechain_feature = 5; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.sidechain_feature_); - } - - // uint32 version = 1; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_version()); - } - - // uint32 output_type = 2; - if (this->_internal_output_type() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_output_type()); - } - - // uint64 maturity = 3; - if (this->_internal_maturity() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_maturity()); - } - - // uint32 range_proof_type = 6; - if (this->_internal_range_proof_type() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_range_proof_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2398,30 +2893,45 @@ void OutputFeatures::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_coinbase_extra().empty()) { - _this->_internal_set_coinbase_extra(from._internal_coinbase_extra()); - } 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 ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_coinbase_extra().empty()) { + _this->_internal_set_coinbase_extra(from._internal_coinbase_extra()); + } else { + if (_this->_impl_.coinbase_extra_.IsDefault()) { + _this->_internal_set_coinbase_extra(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(from._impl_.sidechain_feature_ != nullptr); + if (_this->_impl_.sidechain_feature_ == nullptr) { + _this->_impl_.sidechain_feature_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.sidechain_feature_); + } else { + _this->_impl_.sidechain_feature_->MergeFrom(*from._impl_.sidechain_feature_); + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_version() != 0) { + _this->_impl_.version_ = from._impl_.version_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_output_type() != 0) { + _this->_impl_.output_type_ = from._impl_.output_type_; + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (from._internal_maturity() != 0) { + _this->_impl_.maturity_ = from._impl_.maturity_; + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (from._internal_range_proof_type() != 0) { + _this->_impl_.range_proof_type_ = from._impl_.range_proof_type_; + } } - } - if (from._internal_version() != 0) { - _this->_impl_.version_ = from._impl_.version_; - } - if (from._internal_output_type() != 0) { - _this->_impl_.output_type_ = from._impl_.output_type_; - } - if (from._internal_maturity() != 0) { - _this->_impl_.maturity_ = from._impl_.maturity_; - } - if (from._internal_range_proof_type() != 0) { - _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_); @@ -2434,12 +2944,9 @@ void OutputFeatures::CopyFrom(const OutputFeatures& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool OutputFeatures::IsInitialized() const { - return true; -} -void OutputFeatures::InternalSwap(OutputFeatures* PROTOBUF_RESTRICT other) { - using std::swap; +void OutputFeatures::InternalSwap(OutputFeatures* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2454,9 +2961,7 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2464,88 +2969,127 @@ class AggregateBody::_Internal { public: }; -AggregateBody::AggregateBody(::google::protobuf::Arena* arena) +AggregateBody::AggregateBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, AggregateBody_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.AggregateBody) } -inline PROTOBUF_NDEBUG_INLINE AggregateBody::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE AggregateBody::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::AggregateBody& from_msg) : inputs_{visibility, arena, from.inputs_}, outputs_{visibility, arena, from.outputs_}, kernels_{visibility, arena, from.kernels_}, _cached_size_{0} {} AggregateBody::AggregateBody( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AggregateBody& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, AggregateBody_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE AggregateBody* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.AggregateBody) } -inline PROTOBUF_NDEBUG_INLINE AggregateBody::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE AggregateBody::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : inputs_{visibility, arena}, outputs_{visibility, arena}, kernels_{visibility, arena}, _cached_size_{0} {} -inline void AggregateBody::SharedCtor(::_pb::Arena* arena) { +inline void AggregateBody::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } AggregateBody::~AggregateBody() { // @@protoc_insertion_point(destructor:tari.rpc.AggregateBody) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void AggregateBody::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void AggregateBody::SharedDtor(MessageLite& self) { + AggregateBody& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL AggregateBody::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) AggregateBody(arena); +} +constexpr auto AggregateBody::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_.inputs_) + + decltype(AggregateBody::_impl_.inputs_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_.outputs_) + + decltype(AggregateBody::_impl_.outputs_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_.kernels_) + + decltype(AggregateBody::_impl_.kernels_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(AggregateBody), alignof(AggregateBody), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&AggregateBody::PlacementNew_, + sizeof(AggregateBody), + alignof(AggregateBody)); + } +} +constexpr auto AggregateBody::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_AggregateBody_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.inputs_.Clear(); - _impl_.outputs_.Clear(); - _impl_.kernels_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AggregateBody::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &AggregateBody::ByteSizeLong, + &AggregateBody::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_._cached_size_), + false, + }, + &AggregateBody::kDescriptorMethods, + &descriptor_table_transaction_2eproto, + nullptr, // tracker + }; } -const char* AggregateBody::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull AggregateBody_class_data_ = + AggregateBody::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +AggregateBody::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&AggregateBody_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(AggregateBody_class_data_.tc_table); + return AggregateBody_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 3, 0, 2> AggregateBody::_table_ = { +const ::_pbi::TcParseTable<2, 3, 3, 0, 2> +AggregateBody::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -2556,7 +3100,8 @@ const ::_pbi::TcParseTable<2, 3, 3, 0, 2> AggregateBody::_table_ = { 3, // num_field_entries 3, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_AggregateBody_default_instance_._instance, + AggregateBody_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::AggregateBody>(), // to_prefetch @@ -2584,26 +3129,48 @@ const ::_pbi::TcParseTable<2, 3, 3, 0, 2> AggregateBody::_table_ = { // repeated .tari.rpc.TransactionKernel kernels = 3; {PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_.kernels_), 0, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::TransactionInput>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::TransactionOutput>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::TransactionKernel>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::TransactionInput>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::TransactionOutput>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::TransactionKernel>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void AggregateBody::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.AggregateBody) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* AggregateBody::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.inputs_.Clear(); + _impl_.outputs_.Clear(); + _impl_.kernels_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL AggregateBody::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const AggregateBody& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL AggregateBody::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const AggregateBody& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.AggregateBody) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated .tari.rpc.TransactionInput inputs = 1; for (unsigned i = 0, n = static_cast( - this->_internal_inputs_size()); + this_._internal_inputs_size()); i < n; i++) { - const auto& repfield = this->_internal_inputs().Get(i); + const auto& repfield = this_._internal_inputs().Get(i); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, repfield, repfield.GetCachedSize(), @@ -2612,9 +3179,9 @@ const ::_pbi::TcParseTable<2, 3, 3, 0, 2> AggregateBody::_table_ = { // repeated .tari.rpc.TransactionOutput outputs = 2; for (unsigned i = 0, n = static_cast( - this->_internal_outputs_size()); + this_._internal_outputs_size()); i < n; i++) { - const auto& repfield = this->_internal_outputs().Get(i); + const auto& repfield = this_._internal_outputs().Get(i); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2, repfield, repfield.GetCachedSize(), @@ -2623,51 +3190,66 @@ const ::_pbi::TcParseTable<2, 3, 3, 0, 2> AggregateBody::_table_ = { // repeated .tari.rpc.TransactionKernel kernels = 3; for (unsigned i = 0, n = static_cast( - this->_internal_kernels_size()); + this_._internal_kernels_size()); i < n; i++) { - const auto& repfield = this->_internal_kernels().Get(i); + const auto& repfield = this_._internal_kernels().Get(i); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, repfield, repfield.GetCachedSize(), target, stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.AggregateBody) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AggregateBody::ByteSizeLong(const MessageLite& base) { + const AggregateBody& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t AggregateBody::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.AggregateBody) + const AggregateBody& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.AggregateBody) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // 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); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // 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); + } + } + // 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); + } + } + // 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); + } + } } - // 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); - } - // 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); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2692,12 +3274,9 @@ void AggregateBody::CopyFrom(const AggregateBody& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AggregateBody::IsInitialized() const { - return true; -} -void AggregateBody::InternalSwap(AggregateBody* PROTOBUF_RESTRICT other) { - using std::swap; +void AggregateBody::InternalSwap(AggregateBody* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.inputs_.InternalSwap(&other->_impl_.inputs_); _impl_.outputs_.InternalSwap(&other->_impl_.outputs_); @@ -2705,113 +3284,126 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class Transaction::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Transaction, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(Transaction, _impl_._has_bits_); }; -Transaction::Transaction(::google::protobuf::Arena* arena) +Transaction::Transaction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, Transaction_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.Transaction) } -inline PROTOBUF_NDEBUG_INLINE Transaction::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE Transaction::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::Transaction& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, offset_(arena, from.offset_), script_offset_(arena, from.script_offset_) {} Transaction::Transaction( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Transaction& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, Transaction_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE Transaction* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.body_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>( - arena, *from._impl_.body_) - : nullptr; + _impl_.body_ = ((cached_has_bits & 0x00000004u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.body_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.Transaction) } -inline PROTOBUF_NDEBUG_INLINE Transaction::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE Transaction::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, offset_(arena), script_offset_(arena) {} -inline void Transaction::SharedCtor(::_pb::Arena* arena) { +inline void Transaction::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.body_ = {}; } Transaction::~Transaction() { // @@protoc_insertion_point(destructor:tari.rpc.Transaction) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void Transaction::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.offset_.Destroy(); - _impl_.script_offset_.Destroy(); - delete _impl_.body_; - _impl_.~Impl_(); +inline void Transaction::SharedDtor(MessageLite& self) { + Transaction& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.offset_.Destroy(); + this_._impl_.script_offset_.Destroy(); + delete this_._impl_.body_; + this_._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, - }, +inline void* PROTOBUF_NONNULL Transaction::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Transaction(arena); +} +constexpr auto Transaction::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Transaction), + alignof(Transaction)); +} +constexpr auto Transaction::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Transaction_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.offset_.ClearToEmpty(); - _impl_.script_offset_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.body_ != nullptr); - _impl_.body_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Transaction::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Transaction::ByteSizeLong, + &Transaction::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Transaction, _impl_._cached_size_), + false, + }, + &Transaction::kDescriptorMethods, + &descriptor_table_transaction_2eproto, + nullptr, // tracker + }; } -const char* Transaction::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Transaction_class_data_ = + Transaction::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Transaction::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Transaction_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Transaction_class_data_.tc_table); + return Transaction_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 0, 2> Transaction::_table_ = { +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +Transaction::_table_ = { { PROTOBUF_FIELD_OFFSET(Transaction, _impl_._has_bits_), 0, // no _extensions_ @@ -2822,7 +3414,8 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> Transaction::_table_ = { 3, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_Transaction_default_instance_._instance, + Transaction_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::Transaction>(), // to_prefetch @@ -2831,97 +3424,145 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> Transaction::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // bytes offset = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Transaction, _impl_.offset_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Transaction, _impl_.offset_)}}, // .tari.rpc.AggregateBody body = 2; {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Transaction, _impl_.body_)}}, + {18, 2, 0, PROTOBUF_FIELD_OFFSET(Transaction, _impl_.body_)}}, // bytes script_offset = 3; {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Transaction, _impl_.script_offset_)}}, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(Transaction, _impl_.script_offset_)}}, }}, {{ 65535, 65535 }}, {{ // bytes offset = 1; - {PROTOBUF_FIELD_OFFSET(Transaction, _impl_.offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Transaction, _impl_.offset_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.AggregateBody body = 2; - {PROTOBUF_FIELD_OFFSET(Transaction, _impl_.body_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(Transaction, _impl_.body_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes script_offset = 3; - {PROTOBUF_FIELD_OFFSET(Transaction, _impl_.script_offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::AggregateBody>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(Transaction, _impl_.script_offset_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::AggregateBody>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void Transaction::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.Transaction) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* Transaction::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.offset_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.script_offset_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + ABSL_DCHECK(_impl_.body_ != nullptr); + _impl_.body_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Transaction::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Transaction& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Transaction::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Transaction& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Transaction) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes offset = 1; - if (!this->_internal_offset().empty()) { - const std::string& _s = this->_internal_offset(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_offset().empty()) { + const ::std::string& _s = this_._internal_offset(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.AggregateBody body = 2; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.body_, _impl_.body_->GetCachedSize(), target, stream); + 2, *this_._impl_.body_, this_._impl_.body_->GetCachedSize(), target, + stream); } // bytes script_offset = 3; - if (!this->_internal_script_offset().empty()) { - const std::string& _s = this->_internal_script_offset(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_script_offset().empty()) { + const ::std::string& _s = this_._internal_script_offset(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Transaction) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Transaction::ByteSizeLong(const MessageLite& base) { + const Transaction& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t Transaction::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.Transaction) + const Transaction& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.Transaction) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes offset = 1; - if (!this->_internal_offset().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_offset()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // bytes offset = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_offset().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_offset()); + } + } + // bytes script_offset = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_script_offset().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_script_offset()); + } + } + // .tari.rpc.AggregateBody body = 2; + if ((cached_has_bits & 0x00000004u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.body_); + } } - - // bytes script_offset = 3; - if (!this->_internal_script_offset().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script_offset()); - } - - // .tari.rpc.AggregateBody body = 2; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.body_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2931,20 +3572,33 @@ void Transaction::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goo ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_offset().empty()) { - _this->_internal_set_offset(from._internal_offset()); - } - if (!from._internal_script_offset().empty()) { - _this->_internal_set_script_offset(from._internal_script_offset()); - } 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_); + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_offset().empty()) { + _this->_internal_set_offset(from._internal_offset()); + } else { + if (_this->_impl_.offset_.IsDefault()) { + _this->_internal_set_offset(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_script_offset().empty()) { + _this->_internal_set_script_offset(from._internal_script_offset()); + } else { + if (_this->_impl_.script_offset_.IsDefault()) { + _this->_internal_set_script_offset(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + ABSL_DCHECK(from._impl_.body_ != nullptr); + if (_this->_impl_.body_ == nullptr) { + _this->_impl_.body_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.body_); + } else { + _this->_impl_.body_->MergeFrom(*from._impl_.body_); + } } } _this->_impl_._has_bits_[0] |= cached_has_bits; @@ -2958,12 +3612,9 @@ void Transaction::CopyFrom(const Transaction& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Transaction::IsInitialized() const { - return true; -} -void Transaction::InternalSwap(Transaction* PROTOBUF_RESTRICT other) { - using std::swap; +void Transaction::InternalSwap(Transaction* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2974,37 +3625,41 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class UnblindedOutput::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_._has_bits_); }; void UnblindedOutput::clear_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_signature_ != nullptr) _impl_.metadata_signature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000100u; } void UnblindedOutput::clear_range_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.range_proof_ != nullptr) _impl_.range_proof_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000200u; } -UnblindedOutput::UnblindedOutput(::google::protobuf::Arena* arena) +UnblindedOutput::UnblindedOutput(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, UnblindedOutput_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.UnblindedOutput) } -inline PROTOBUF_NDEBUG_INLINE UnblindedOutput::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE UnblindedOutput::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::UnblindedOutput& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, spending_key_(arena, from.spending_key_), @@ -3016,24 +3671,28 @@ inline PROTOBUF_NDEBUG_INLINE UnblindedOutput::Impl_::Impl_( encrypted_data_(arena, from.encrypted_data_) {} UnblindedOutput::UnblindedOutput( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const UnblindedOutput& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, UnblindedOutput_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE UnblindedOutput* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _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; - _impl_.range_proof_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::RangeProof>( - arena, *from._impl_.range_proof_) - : nullptr; + _impl_.features_ = ((cached_has_bits & 0x00000080u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) + : nullptr; + _impl_.metadata_signature_ = ((cached_has_bits & 0x00000100u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_signature_) + : nullptr; + _impl_.range_proof_ = ((cached_has_bits & 0x00000200u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.range_proof_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, value_), reinterpret_cast(&from._impl_) + @@ -3044,9 +3703,9 @@ UnblindedOutput::UnblindedOutput( // @@protoc_insertion_point(copy_constructor:tari.rpc.UnblindedOutput) } -inline PROTOBUF_NDEBUG_INLINE UnblindedOutput::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE UnblindedOutput::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, spending_key_(arena), script_(arena), @@ -3056,7 +3715,7 @@ inline PROTOBUF_NDEBUG_INLINE UnblindedOutput::Impl_::Impl_( covenant_(arena), encrypted_data_(arena) {} -inline void UnblindedOutput::SharedCtor(::_pb::Arena* arena) { +inline void UnblindedOutput::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, features_), @@ -3067,83 +3726,70 @@ inline void UnblindedOutput::SharedCtor(::_pb::Arena* arena) { } UnblindedOutput::~UnblindedOutput() { // @@protoc_insertion_point(destructor:tari.rpc.UnblindedOutput) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void UnblindedOutput::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.spending_key_.Destroy(); - _impl_.script_.Destroy(); - _impl_.input_data_.Destroy(); - _impl_.script_private_key_.Destroy(); - _impl_.sender_offset_public_key_.Destroy(); - _impl_.covenant_.Destroy(); - _impl_.encrypted_data_.Destroy(); - delete _impl_.features_; - delete _impl_.metadata_signature_; - delete _impl_.range_proof_; - _impl_.~Impl_(); +inline void UnblindedOutput::SharedDtor(MessageLite& self) { + UnblindedOutput& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.spending_key_.Destroy(); + this_._impl_.script_.Destroy(); + this_._impl_.input_data_.Destroy(); + this_._impl_.script_private_key_.Destroy(); + this_._impl_.sender_offset_public_key_.Destroy(); + this_._impl_.covenant_.Destroy(); + this_._impl_.encrypted_data_.Destroy(); + delete this_._impl_.features_; + delete this_._impl_.metadata_signature_; + delete this_._impl_.range_proof_; + this_._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, - }, +inline void* PROTOBUF_NONNULL UnblindedOutput::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) UnblindedOutput(arena); +} +constexpr auto UnblindedOutput::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(UnblindedOutput), + alignof(UnblindedOutput)); +} +constexpr auto UnblindedOutput::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_UnblindedOutput_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.spending_key_.ClearToEmpty(); - _impl_.script_.ClearToEmpty(); - _impl_.input_data_.ClearToEmpty(); - _impl_.script_private_key_.ClearToEmpty(); - _impl_.sender_offset_public_key_.ClearToEmpty(); - _impl_.covenant_.ClearToEmpty(); - _impl_.encrypted_data_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.metadata_signature_ != nullptr); - _impl_.metadata_signature_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.range_proof_ != nullptr); - _impl_.range_proof_->Clear(); - } - } - ::memset(&_impl_.value_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.minimum_value_promise_) - - reinterpret_cast(&_impl_.value_)) + sizeof(_impl_.minimum_value_promise_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &UnblindedOutput::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &UnblindedOutput::ByteSizeLong, + &UnblindedOutput::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_._cached_size_), + false, + }, + &UnblindedOutput::kDescriptorMethods, + &descriptor_table_transaction_2eproto, + nullptr, // tracker + }; } -const char* UnblindedOutput::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull UnblindedOutput_class_data_ = + UnblindedOutput::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +UnblindedOutput::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&UnblindedOutput_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(UnblindedOutput_class_data_.tc_table); + return UnblindedOutput_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 13, 3, 0, 2> UnblindedOutput::_table_ = { +const ::_pbi::TcParseTable<4, 13, 3, 0, 2> +UnblindedOutput::_table_ = { { PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_._has_bits_), 0, // no _extensions_ @@ -3154,7 +3800,8 @@ const ::_pbi::TcParseTable<4, 13, 3, 0, 2> UnblindedOutput::_table_ = { 13, // num_field_entries 3, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_UnblindedOutput_default_instance_._instance, + UnblindedOutput_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::UnblindedOutput>(), // to_prefetch @@ -3162,287 +3809,389 @@ const ::_pbi::TcParseTable<4, 13, 3, 0, 2> UnblindedOutput::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 value = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UnblindedOutput, _impl_.value_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.value_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UnblindedOutput, _impl_.value_), 10>(), + {8, 10, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.value_)}}, // bytes spending_key = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.spending_key_)}}, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.spending_key_)}}, // .tari.rpc.OutputFeatures features = 3; {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.features_)}}, + {26, 7, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.features_)}}, // bytes script = 4; {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_)}}, + {34, 1, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_)}}, // bytes input_data = 5; {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.input_data_)}}, + {42, 2, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.input_data_)}}, {::_pbi::TcParser::MiniParse, {}}, // bytes script_private_key = 7; {::_pbi::TcParser::FastBS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_private_key_)}}, + {58, 3, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_private_key_)}}, // bytes sender_offset_public_key = 8; {::_pbi::TcParser::FastBS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.sender_offset_public_key_)}}, + {66, 4, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.sender_offset_public_key_)}}, // .tari.rpc.ComAndPubSignature metadata_signature = 9; {::_pbi::TcParser::FastMtS1, - {74, 1, 1, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.metadata_signature_)}}, + {74, 8, 1, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.metadata_signature_)}}, // uint64 script_lock_height = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UnblindedOutput, _impl_.script_lock_height_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_lock_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UnblindedOutput, _impl_.script_lock_height_), 11>(), + {80, 11, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_lock_height_)}}, // bytes covenant = 11; {::_pbi::TcParser::FastBS1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.covenant_)}}, + {90, 5, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.covenant_)}}, // bytes encrypted_data = 12; {::_pbi::TcParser::FastBS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.encrypted_data_)}}, + {98, 6, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.encrypted_data_)}}, // uint64 minimum_value_promise = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UnblindedOutput, _impl_.minimum_value_promise_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.minimum_value_promise_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UnblindedOutput, _impl_.minimum_value_promise_), 12>(), + {104, 12, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.minimum_value_promise_)}}, // .tari.rpc.RangeProof range_proof = 14; {::_pbi::TcParser::FastMtS1, - {114, 2, 2, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.range_proof_)}}, + {114, 9, 2, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.range_proof_)}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // uint64 value = 1; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.value_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.value_), _Internal::kHasBitsOffset + 10, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes spending_key = 2; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.spending_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.spending_key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.OutputFeatures features = 3; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.features_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.features_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes script = 4; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes input_data = 5; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.input_data_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.input_data_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes script_private_key = 7; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_private_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_private_key_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes sender_offset_public_key = 8; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.sender_offset_public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.sender_offset_public_key_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // .tari.rpc.ComAndPubSignature metadata_signature = 9; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.metadata_signature_), _Internal::kHasBitsOffset + 1, 1, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.metadata_signature_), _Internal::kHasBitsOffset + 8, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint64 script_lock_height = 10; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_lock_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_lock_height_), _Internal::kHasBitsOffset + 11, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bytes covenant = 11; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.covenant_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.covenant_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes encrypted_data = 12; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.encrypted_data_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.encrypted_data_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint64 minimum_value_promise = 13; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.minimum_value_promise_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.minimum_value_promise_), _Internal::kHasBitsOffset + 12, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // .tari.rpc.RangeProof range_proof = 14; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.range_proof_), _Internal::kHasBitsOffset + 2, 2, + {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.range_proof_), _Internal::kHasBitsOffset + 9, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::RangeProof>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::RangeProof>()}, + }}, + {{ }}, }; +PROTOBUF_NOINLINE void UnblindedOutput::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.UnblindedOutput) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* UnblindedOutput::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.spending_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.script_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.input_data_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.script_private_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + _impl_.sender_offset_public_key_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000020u) != 0) { + _impl_.covenant_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000040u) != 0) { + _impl_.encrypted_data_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000080u) != 0) { + ABSL_DCHECK(_impl_.features_ != nullptr); + _impl_.features_->Clear(); + } + } + if ((cached_has_bits & 0x00000300u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { + ABSL_DCHECK(_impl_.metadata_signature_ != nullptr); + _impl_.metadata_signature_->Clear(); + } + if ((cached_has_bits & 0x00000200u) != 0) { + ABSL_DCHECK(_impl_.range_proof_ != nullptr); + _impl_.range_proof_->Clear(); + } + } + if ((cached_has_bits & 0x00001c00u) != 0) { + ::memset(&_impl_.value_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.minimum_value_promise_) - + reinterpret_cast(&_impl_.value_)) + sizeof(_impl_.minimum_value_promise_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL UnblindedOutput::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const UnblindedOutput& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL UnblindedOutput::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const UnblindedOutput& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.UnblindedOutput) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 value = 1; - if (this->_internal_value() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_value(), target); + if ((this_._impl_._has_bits_[0] & 0x00000400u) != 0) { + if (this_._internal_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_value(), target); + } } // bytes spending_key = 2; - if (!this->_internal_spending_key().empty()) { - const std::string& _s = this->_internal_spending_key(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_spending_key().empty()) { + const ::std::string& _s = this_._internal_spending_key(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.OutputFeatures features = 3; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000080u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); + 3, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, + stream); } // bytes script = 4; - if (!this->_internal_script().empty()) { - const std::string& _s = this->_internal_script(); - target = stream->WriteBytesMaybeAliased(4, _s, target); + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_script().empty()) { + const ::std::string& _s = this_._internal_script(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } } // bytes input_data = 5; - if (!this->_internal_input_data().empty()) { - const std::string& _s = this->_internal_input_data(); - target = stream->WriteBytesMaybeAliased(5, _s, target); + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_input_data().empty()) { + const ::std::string& _s = this_._internal_input_data(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } // bytes script_private_key = 7; - if (!this->_internal_script_private_key().empty()) { - const std::string& _s = this->_internal_script_private_key(); - target = stream->WriteBytesMaybeAliased(7, _s, target); + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_script_private_key().empty()) { + const ::std::string& _s = this_._internal_script_private_key(); + target = stream->WriteBytesMaybeAliased(7, _s, target); + } } // bytes sender_offset_public_key = 8; - if (!this->_internal_sender_offset_public_key().empty()) { - const std::string& _s = this->_internal_sender_offset_public_key(); - target = stream->WriteBytesMaybeAliased(8, _s, target); + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_sender_offset_public_key().empty()) { + const ::std::string& _s = this_._internal_sender_offset_public_key(); + target = stream->WriteBytesMaybeAliased(8, _s, target); + } } // .tari.rpc.ComAndPubSignature metadata_signature = 9; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000100u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, *_impl_.metadata_signature_, _impl_.metadata_signature_->GetCachedSize(), target, stream); + 9, *this_._impl_.metadata_signature_, this_._impl_.metadata_signature_->GetCachedSize(), target, + stream); } // uint64 script_lock_height = 10; - if (this->_internal_script_lock_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 10, this->_internal_script_lock_height(), target); + if ((cached_has_bits & 0x00000800u) != 0) { + if (this_._internal_script_lock_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 10, this_._internal_script_lock_height(), target); + } } // bytes covenant = 11; - if (!this->_internal_covenant().empty()) { - const std::string& _s = this->_internal_covenant(); - target = stream->WriteBytesMaybeAliased(11, _s, target); + if ((cached_has_bits & 0x00000020u) != 0) { + if (!this_._internal_covenant().empty()) { + const ::std::string& _s = this_._internal_covenant(); + target = stream->WriteBytesMaybeAliased(11, _s, target); + } } // bytes encrypted_data = 12; - if (!this->_internal_encrypted_data().empty()) { - const std::string& _s = this->_internal_encrypted_data(); - target = stream->WriteBytesMaybeAliased(12, _s, target); + if ((cached_has_bits & 0x00000040u) != 0) { + if (!this_._internal_encrypted_data().empty()) { + const ::std::string& _s = this_._internal_encrypted_data(); + target = stream->WriteBytesMaybeAliased(12, _s, target); + } } // uint64 minimum_value_promise = 13; - if (this->_internal_minimum_value_promise() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 13, this->_internal_minimum_value_promise(), target); + if ((cached_has_bits & 0x00001000u) != 0) { + if (this_._internal_minimum_value_promise() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 13, this_._internal_minimum_value_promise(), target); + } } // .tari.rpc.RangeProof range_proof = 14; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000200u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 14, *_impl_.range_proof_, _impl_.range_proof_->GetCachedSize(), target, stream); + 14, *this_._impl_.range_proof_, this_._impl_.range_proof_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.UnblindedOutput) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t UnblindedOutput::ByteSizeLong(const MessageLite& base) { + const UnblindedOutput& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t UnblindedOutput::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.UnblindedOutput) + const UnblindedOutput& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.UnblindedOutput) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes spending_key = 2; - if (!this->_internal_spending_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_spending_key()); - } - - // bytes script = 4; - if (!this->_internal_script().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script()); - } - - // bytes input_data = 5; - if (!this->_internal_input_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_input_data()); - } - - // bytes script_private_key = 7; - if (!this->_internal_script_private_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script_private_key()); - } - - // bytes sender_offset_public_key = 8; - if (!this->_internal_sender_offset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_sender_offset_public_key()); - } - - // bytes covenant = 11; - if (!this->_internal_covenant().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_covenant()); - } - - // bytes encrypted_data = 12; - if (!this->_internal_encrypted_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_encrypted_data()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { + // bytes spending_key = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_spending_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_spending_key()); + } + } + // bytes script = 4; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_script().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_script()); + } + } + // bytes input_data = 5; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_input_data().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_input_data()); + } + } + // bytes script_private_key = 7; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_script_private_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_script_private_key()); + } + } + // bytes sender_offset_public_key = 8; + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_sender_offset_public_key().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_sender_offset_public_key()); + } + } + // bytes covenant = 11; + if ((cached_has_bits & 0x00000020u) != 0) { + if (!this_._internal_covenant().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_covenant()); + } + } + // bytes encrypted_data = 12; + if ((cached_has_bits & 0x00000040u) != 0) { + if (!this_._internal_encrypted_data().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_encrypted_data()); + } + } // .tari.rpc.OutputFeatures features = 3; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); + if ((cached_has_bits & 0x00000080u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); } - + } + if ((cached_has_bits & 0x00001f00u) != 0) { // .tari.rpc.ComAndPubSignature metadata_signature = 9; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_signature_); + if ((cached_has_bits & 0x00000100u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.metadata_signature_); } - // .tari.rpc.RangeProof range_proof = 14; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.range_proof_); + if ((cached_has_bits & 0x00000200u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.range_proof_); + } + // uint64 value = 1; + if ((cached_has_bits & 0x00000400u) != 0) { + if (this_._internal_value() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_value()); + } + } + // uint64 script_lock_height = 10; + if ((cached_has_bits & 0x00000800u) != 0) { + if (this_._internal_script_lock_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_script_lock_height()); + } + } + // uint64 minimum_value_promise = 13; + if ((cached_has_bits & 0x00001000u) != 0) { + if (this_._internal_minimum_value_promise() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_minimum_value_promise()); + } } - } - // uint64 value = 1; - if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_value()); - } - - // uint64 script_lock_height = 10; - if (this->_internal_script_lock_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_script_lock_height()); - } - - // uint64 minimum_value_promise = 13; - if (this->_internal_minimum_value_promise() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_minimum_value_promise()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -3452,65 +4201,112 @@ void UnblindedOutput::MergeImpl(::google::protobuf::MessageLite& to_msg, const : ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_spending_key().empty()) { - _this->_internal_set_spending_key(from._internal_spending_key()); - } - if (!from._internal_script().empty()) { - _this->_internal_set_script(from._internal_script()); - } - if (!from._internal_input_data().empty()) { - _this->_internal_set_input_data(from._internal_input_data()); - } - if (!from._internal_script_private_key().empty()) { - _this->_internal_set_script_private_key(from._internal_script_private_key()); - } - if (!from._internal_sender_offset_public_key().empty()) { - _this->_internal_set_sender_offset_public_key(from._internal_sender_offset_public_key()); - } - if (!from._internal_covenant().empty()) { - _this->_internal_set_covenant(from._internal_covenant()); - } - if (!from._internal_encrypted_data().empty()) { - _this->_internal_set_encrypted_data(from._internal_encrypted_data()); - } cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_spending_key().empty()) { + _this->_internal_set_spending_key(from._internal_spending_key()); + } else { + if (_this->_impl_.spending_key_.IsDefault()) { + _this->_internal_set_spending_key(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_script().empty()) { + _this->_internal_set_script(from._internal_script()); + } else { + if (_this->_impl_.script_.IsDefault()) { + _this->_internal_set_script(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_input_data().empty()) { + _this->_internal_set_input_data(from._internal_input_data()); + } else { + if (_this->_impl_.input_data_.IsDefault()) { + _this->_internal_set_input_data(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_script_private_key().empty()) { + _this->_internal_set_script_private_key(from._internal_script_private_key()); + } else { + if (_this->_impl_.script_private_key_.IsDefault()) { + _this->_internal_set_script_private_key(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (!from._internal_sender_offset_public_key().empty()) { + _this->_internal_set_sender_offset_public_key(from._internal_sender_offset_public_key()); + } else { + if (_this->_impl_.sender_offset_public_key_.IsDefault()) { + _this->_internal_set_sender_offset_public_key(""); + } + } + } + if ((cached_has_bits & 0x00000020u) != 0) { + if (!from._internal_covenant().empty()) { + _this->_internal_set_covenant(from._internal_covenant()); + } else { + if (_this->_impl_.covenant_.IsDefault()) { + _this->_internal_set_covenant(""); + } + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (!from._internal_encrypted_data().empty()) { + _this->_internal_set_encrypted_data(from._internal_encrypted_data()); + } else { + if (_this->_impl_.encrypted_data_.IsDefault()) { + _this->_internal_set_encrypted_data(""); + } + } + } + if ((cached_has_bits & 0x00000080u) != 0) { 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_); + _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); } else { _this->_impl_.features_->MergeFrom(*from._impl_.features_); } } - if (cached_has_bits & 0x00000002u) { + } + if ((cached_has_bits & 0x00001f00u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { 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_); + _this->_impl_.metadata_signature_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_signature_); } else { _this->_impl_.metadata_signature_->MergeFrom(*from._impl_.metadata_signature_); } } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000200u) != 0) { 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_); + _this->_impl_.range_proof_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.range_proof_); } else { _this->_impl_.range_proof_->MergeFrom(*from._impl_.range_proof_); } } - } - if (from._internal_value() != 0) { - _this->_impl_.value_ = from._impl_.value_; - } - if (from._internal_script_lock_height() != 0) { - _this->_impl_.script_lock_height_ = from._impl_.script_lock_height_; - } - if (from._internal_minimum_value_promise() != 0) { - _this->_impl_.minimum_value_promise_ = from._impl_.minimum_value_promise_; + if ((cached_has_bits & 0x00000400u) != 0) { + if (from._internal_value() != 0) { + _this->_impl_.value_ = from._impl_.value_; + } + } + if ((cached_has_bits & 0x00000800u) != 0) { + if (from._internal_script_lock_height() != 0) { + _this->_impl_.script_lock_height_ = from._impl_.script_lock_height_; + } + } + if ((cached_has_bits & 0x00001000u) != 0) { + if (from._internal_minimum_value_promise() != 0) { + _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_); @@ -3523,12 +4319,9 @@ void UnblindedOutput::CopyFrom(const UnblindedOutput& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool UnblindedOutput::IsInitialized() const { - return true; -} -void UnblindedOutput::InternalSwap(UnblindedOutput* PROTOBUF_RESTRICT other) { - using std::swap; +void UnblindedOutput::InternalSwap(UnblindedOutput* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -3549,9 +4342,7 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -3561,8 +4352,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{}); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ [[maybe_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 f4a61c3..2b2ed44 100644 --- a/external/src/Tari/proto/gRPC/transaction.pb.h +++ b/external/src/Tari/proto/gRPC/transaction.pb.h @@ -1,22 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: transaction.proto -// Protobuf C++ Version: 5.26.1 +// Protobuf C++ Version: 6.31.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_transaction_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_transaction_2eproto_2epb_2eh +#ifndef transaction_2eproto_2epb_2eh +#define transaction_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026001 +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6031001 #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" #include "google/protobuf/arenastring.h" @@ -25,6 +25,7 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/unknown_field_set.h" @@ -40,7 +41,8 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal } // namespace protobuf } // namespace google @@ -49,31 +51,39 @@ class AnyMetadata; struct TableStruct_transaction_2eproto { static const ::uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_transaction_2eproto; +extern "C" { +extern const ::google::protobuf::internal::DescriptorTable descriptor_table_transaction_2eproto; +} // extern "C" namespace tari { namespace rpc { class AggregateBody; struct AggregateBodyDefaultTypeInternal; extern AggregateBodyDefaultTypeInternal _AggregateBody_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull AggregateBody_class_data_; class OutputFeatures; struct OutputFeaturesDefaultTypeInternal; extern OutputFeaturesDefaultTypeInternal _OutputFeatures_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull OutputFeatures_class_data_; class Transaction; struct TransactionDefaultTypeInternal; extern TransactionDefaultTypeInternal _Transaction_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Transaction_class_data_; class TransactionInput; struct TransactionInputDefaultTypeInternal; extern TransactionInputDefaultTypeInternal _TransactionInput_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull TransactionInput_class_data_; class TransactionKernel; struct TransactionKernelDefaultTypeInternal; extern TransactionKernelDefaultTypeInternal _TransactionKernel_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull TransactionKernel_class_data_; class TransactionOutput; struct TransactionOutputDefaultTypeInternal; extern TransactionOutputDefaultTypeInternal _TransactionOutput_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull TransactionOutput_class_data_; class UnblindedOutput; struct UnblindedOutputDefaultTypeInternal; extern UnblindedOutputDefaultTypeInternal _UnblindedOutput_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull UnblindedOutput_class_data_; } // namespace rpc } // namespace tari namespace google { @@ -93,25 +103,28 @@ class TransactionKernel final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.TransactionKernel) */ { public: inline TransactionKernel() : TransactionKernel(nullptr) {} - ~TransactionKernel() override; + ~TransactionKernel() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransactionKernel* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransactionKernel)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR TransactionKernel( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : TransactionKernel(nullptr, ::std::move(from)) {} inline TransactionKernel& operator=(const TransactionKernel& from) { CopyFrom(from); return *this; } inline TransactionKernel& operator=(TransactionKernel&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -123,42 +136,35 @@ class TransactionKernel final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const TransactionKernel& default_instance() { - return *internal_default_instance(); - } - static inline const TransactionKernel* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_TransactionKernel_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(TransactionKernel& a, TransactionKernel& b) { a.Swap(&b); } - inline void Swap(TransactionKernel* other) { + inline void Swap(TransactionKernel* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransactionKernel* other) { + void UnsafeArenaSwap(TransactionKernel* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -166,7 +172,7 @@ class TransactionKernel final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - TransactionKernel* New(::google::protobuf::Arena* arena = nullptr) const final { + TransactionKernel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -175,41 +181,63 @@ class TransactionKernel final : public ::google::protobuf::Message void MergeFrom(const TransactionKernel& from) { TransactionKernel::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TransactionKernel* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TransactionKernel* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionKernel"; } protected: - explicit TransactionKernel(::google::protobuf::Arena* arena); - TransactionKernel(::google::protobuf::Arena* arena, const TransactionKernel& from); - TransactionKernel(::google::protobuf::Arena* arena, TransactionKernel&& from) noexcept + explicit TransactionKernel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + TransactionKernel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TransactionKernel& from); + TransactionKernel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, TransactionKernel&& from) noexcept : TransactionKernel(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -225,65 +253,62 @@ class TransactionKernel final : public ::google::protobuf::Message }; // bytes excess = 6; void clear_excess() ; - const std::string& excess() const; - template + const ::std::string& excess() const; + template void set_excess(Arg_&& arg, Args_... args); - std::string* mutable_excess(); - PROTOBUF_NODISCARD std::string* release_excess(); - void set_allocated_excess(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_excess(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_excess(); + void set_allocated_excess(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_excess() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_excess( - const std::string& value); - std::string* _internal_mutable_excess(); + const ::std::string& _internal_excess() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_excess(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_excess(); public: // bytes hash = 8; void clear_hash() ; - const std::string& hash() const; - template + const ::std::string& hash() const; + template void set_hash(Arg_&& arg, Args_... args); - std::string* mutable_hash(); - PROTOBUF_NODISCARD std::string* release_hash(); - void set_allocated_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_hash(); + void set_allocated_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash( - const std::string& value); - std::string* _internal_mutable_hash(); + const ::std::string& _internal_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_hash(); public: // bytes burn_commitment = 10; void clear_burn_commitment() ; - const std::string& burn_commitment() const; - template + const ::std::string& burn_commitment() const; + template void set_burn_commitment(Arg_&& arg, Args_... args); - std::string* mutable_burn_commitment(); - PROTOBUF_NODISCARD std::string* release_burn_commitment(); - void set_allocated_burn_commitment(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_burn_commitment(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_burn_commitment(); + void set_allocated_burn_commitment(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_burn_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_burn_commitment( - const std::string& value); - std::string* _internal_mutable_burn_commitment(); + const ::std::string& _internal_burn_commitment() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_burn_commitment(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_burn_commitment(); public: // .tari.rpc.Signature excess_sig = 7; bool has_excess_sig() const; void clear_excess_sig() ; const ::tari::rpc::Signature& excess_sig() const; - PROTOBUF_NODISCARD ::tari::rpc::Signature* release_excess_sig(); - ::tari::rpc::Signature* mutable_excess_sig(); - void set_allocated_excess_sig(::tari::rpc::Signature* value); - void unsafe_arena_set_allocated_excess_sig(::tari::rpc::Signature* value); - ::tari::rpc::Signature* unsafe_arena_release_excess_sig(); + [[nodiscard]] ::tari::rpc::Signature* PROTOBUF_NULLABLE release_excess_sig(); + ::tari::rpc::Signature* PROTOBUF_NONNULL mutable_excess_sig(); + void set_allocated_excess_sig(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_excess_sig(::tari::rpc::Signature* PROTOBUF_NULLABLE value); + ::tari::rpc::Signature* PROTOBUF_NULLABLE unsafe_arena_release_excess_sig(); private: const ::tari::rpc::Signature& _internal_excess_sig() const; - ::tari::rpc::Signature* _internal_mutable_excess_sig(); + ::tari::rpc::Signature* PROTOBUF_NONNULL _internal_mutable_excess_sig(); public: // uint64 fee = 2; @@ -330,10 +355,11 @@ class TransactionKernel final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 8, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<4, 8, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -341,18 +367,20 @@ class TransactionKernel final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const TransactionKernel& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr excess_; ::google::protobuf::internal::ArenaStringPtr hash_; ::google::protobuf::internal::ArenaStringPtr burn_commitment_; - ::tari::rpc::Signature* excess_sig_; + ::tari::rpc::Signature* PROTOBUF_NULLABLE excess_sig_; ::uint64_t fee_; ::uint64_t lock_height_; ::uint32_t features_; @@ -362,31 +390,36 @@ class TransactionKernel final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull TransactionKernel_class_data_; // ------------------------------------------------------------------- class OutputFeatures final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.OutputFeatures) */ { public: inline OutputFeatures() : OutputFeatures(nullptr) {} - ~OutputFeatures() override; + ~OutputFeatures() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(OutputFeatures* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(OutputFeatures)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR OutputFeatures( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : OutputFeatures(nullptr, ::std::move(from)) {} inline OutputFeatures& operator=(const OutputFeatures& from) { CopyFrom(from); return *this; } inline OutputFeatures& operator=(OutputFeatures&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -398,42 +431,35 @@ class OutputFeatures final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const OutputFeatures& default_instance() { - return *internal_default_instance(); - } - static inline const OutputFeatures* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_OutputFeatures_default_instance_); } static constexpr int kIndexInFileMessages = 3; friend void swap(OutputFeatures& a, OutputFeatures& b) { a.Swap(&b); } - inline void Swap(OutputFeatures* other) { + inline void Swap(OutputFeatures* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OutputFeatures* other) { + void UnsafeArenaSwap(OutputFeatures* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -441,7 +467,7 @@ class OutputFeatures final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - OutputFeatures* New(::google::protobuf::Arena* arena = nullptr) const final { + OutputFeatures* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -450,41 +476,63 @@ class OutputFeatures final : public ::google::protobuf::Message void MergeFrom(const OutputFeatures& from) { OutputFeatures::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(OutputFeatures* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(OutputFeatures* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.OutputFeatures"; } protected: - explicit OutputFeatures(::google::protobuf::Arena* arena); - OutputFeatures(::google::protobuf::Arena* arena, const OutputFeatures& from); - OutputFeatures(::google::protobuf::Arena* arena, OutputFeatures&& from) noexcept + explicit OutputFeatures(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + OutputFeatures(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OutputFeatures& from); + OutputFeatures( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, OutputFeatures&& from) noexcept : OutputFeatures(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -498,33 +546,32 @@ class OutputFeatures final : public ::google::protobuf::Message }; // bytes coinbase_extra = 4; void clear_coinbase_extra() ; - const std::string& coinbase_extra() const; - template + const ::std::string& coinbase_extra() const; + template void set_coinbase_extra(Arg_&& arg, Args_... args); - std::string* mutable_coinbase_extra(); - PROTOBUF_NODISCARD std::string* release_coinbase_extra(); - void set_allocated_coinbase_extra(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_coinbase_extra(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_coinbase_extra(); + void set_allocated_coinbase_extra(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_coinbase_extra() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_coinbase_extra( - const std::string& value); - std::string* _internal_mutable_coinbase_extra(); + const ::std::string& _internal_coinbase_extra() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_coinbase_extra(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_coinbase_extra(); public: // .tari.rpc.SideChainFeature sidechain_feature = 5; bool has_sidechain_feature() const; void clear_sidechain_feature() ; const ::tari::rpc::SideChainFeature& sidechain_feature() const; - PROTOBUF_NODISCARD ::tari::rpc::SideChainFeature* release_sidechain_feature(); - ::tari::rpc::SideChainFeature* mutable_sidechain_feature(); - void set_allocated_sidechain_feature(::tari::rpc::SideChainFeature* value); - void unsafe_arena_set_allocated_sidechain_feature(::tari::rpc::SideChainFeature* value); - ::tari::rpc::SideChainFeature* unsafe_arena_release_sidechain_feature(); + [[nodiscard]] ::tari::rpc::SideChainFeature* PROTOBUF_NULLABLE release_sidechain_feature(); + ::tari::rpc::SideChainFeature* PROTOBUF_NONNULL mutable_sidechain_feature(); + void set_allocated_sidechain_feature(::tari::rpc::SideChainFeature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_sidechain_feature(::tari::rpc::SideChainFeature* PROTOBUF_NULLABLE value); + ::tari::rpc::SideChainFeature* PROTOBUF_NULLABLE unsafe_arena_release_sidechain_feature(); private: const ::tari::rpc::SideChainFeature& _internal_sidechain_feature() const; - ::tari::rpc::SideChainFeature* _internal_mutable_sidechain_feature(); + ::tari::rpc::SideChainFeature* PROTOBUF_NONNULL _internal_mutable_sidechain_feature(); public: // uint32 version = 1; @@ -571,10 +618,11 @@ class OutputFeatures final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<3, 6, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -582,16 +630,18 @@ class OutputFeatures final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const OutputFeatures& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr coinbase_extra_; - ::tari::rpc::SideChainFeature* sidechain_feature_; + ::tari::rpc::SideChainFeature* PROTOBUF_NULLABLE sidechain_feature_; ::uint32_t version_; ::uint32_t output_type_; ::uint64_t maturity_; @@ -601,31 +651,36 @@ class OutputFeatures final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull OutputFeatures_class_data_; // ------------------------------------------------------------------- class UnblindedOutput final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.UnblindedOutput) */ { public: inline UnblindedOutput() : UnblindedOutput(nullptr) {} - ~UnblindedOutput() override; + ~UnblindedOutput() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(UnblindedOutput* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(UnblindedOutput)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR UnblindedOutput( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : UnblindedOutput(nullptr, ::std::move(from)) {} inline UnblindedOutput& operator=(const UnblindedOutput& from) { CopyFrom(from); return *this; } inline UnblindedOutput& operator=(UnblindedOutput&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -637,42 +692,35 @@ class UnblindedOutput final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const UnblindedOutput& default_instance() { - return *internal_default_instance(); - } - static inline const UnblindedOutput* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_UnblindedOutput_default_instance_); } static constexpr int kIndexInFileMessages = 6; friend void swap(UnblindedOutput& a, UnblindedOutput& b) { a.Swap(&b); } - inline void Swap(UnblindedOutput* other) { + inline void Swap(UnblindedOutput* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UnblindedOutput* other) { + void UnsafeArenaSwap(UnblindedOutput* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -680,7 +728,7 @@ class UnblindedOutput final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - UnblindedOutput* New(::google::protobuf::Arena* arena = nullptr) const final { + UnblindedOutput* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -689,41 +737,63 @@ class UnblindedOutput final : public ::google::protobuf::Message void MergeFrom(const UnblindedOutput& from) { UnblindedOutput::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(UnblindedOutput* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(UnblindedOutput* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.UnblindedOutput"; } protected: - explicit UnblindedOutput(::google::protobuf::Arena* arena); - UnblindedOutput(::google::protobuf::Arena* arena, const UnblindedOutput& from); - UnblindedOutput(::google::protobuf::Arena* arena, UnblindedOutput&& from) noexcept + explicit UnblindedOutput(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + UnblindedOutput(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const UnblindedOutput& from); + UnblindedOutput( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, UnblindedOutput&& from) noexcept : UnblindedOutput(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -744,159 +814,152 @@ class UnblindedOutput final : public ::google::protobuf::Message }; // bytes spending_key = 2; void clear_spending_key() ; - const std::string& spending_key() const; - template + const ::std::string& spending_key() const; + template void set_spending_key(Arg_&& arg, Args_... args); - std::string* mutable_spending_key(); - PROTOBUF_NODISCARD std::string* release_spending_key(); - void set_allocated_spending_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_spending_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_spending_key(); + void set_allocated_spending_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_spending_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_spending_key( - const std::string& value); - std::string* _internal_mutable_spending_key(); + const ::std::string& _internal_spending_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_spending_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_spending_key(); public: // bytes script = 4; void clear_script() ; - const std::string& script() const; - template + const ::std::string& script() const; + template void set_script(Arg_&& arg, Args_... args); - std::string* mutable_script(); - PROTOBUF_NODISCARD std::string* release_script(); - void set_allocated_script(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_script(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_script(); + void set_allocated_script(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_script() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script( - const std::string& value); - std::string* _internal_mutable_script(); + const ::std::string& _internal_script() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_script(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_script(); public: // bytes input_data = 5; void clear_input_data() ; - const std::string& input_data() const; - template + const ::std::string& input_data() const; + template void set_input_data(Arg_&& arg, Args_... args); - std::string* mutable_input_data(); - PROTOBUF_NODISCARD std::string* release_input_data(); - void set_allocated_input_data(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_input_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_input_data(); + void set_allocated_input_data(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_input_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_input_data( - const std::string& value); - std::string* _internal_mutable_input_data(); + const ::std::string& _internal_input_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_input_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_input_data(); public: // bytes script_private_key = 7; void clear_script_private_key() ; - const std::string& script_private_key() const; - template + const ::std::string& script_private_key() const; + template void set_script_private_key(Arg_&& arg, Args_... args); - std::string* mutable_script_private_key(); - PROTOBUF_NODISCARD std::string* release_script_private_key(); - void set_allocated_script_private_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_script_private_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_script_private_key(); + void set_allocated_script_private_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_script_private_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script_private_key( - const std::string& value); - std::string* _internal_mutable_script_private_key(); + const ::std::string& _internal_script_private_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_script_private_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_script_private_key(); public: // bytes sender_offset_public_key = 8; void clear_sender_offset_public_key() ; - const std::string& sender_offset_public_key() const; - template + const ::std::string& sender_offset_public_key() const; + template void set_sender_offset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_sender_offset_public_key(); - PROTOBUF_NODISCARD std::string* release_sender_offset_public_key(); - void set_allocated_sender_offset_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_sender_offset_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_sender_offset_public_key(); + void set_allocated_sender_offset_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_sender_offset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sender_offset_public_key( - const std::string& value); - std::string* _internal_mutable_sender_offset_public_key(); + const ::std::string& _internal_sender_offset_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_sender_offset_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_sender_offset_public_key(); public: // bytes covenant = 11; void clear_covenant() ; - const std::string& covenant() const; - template + const ::std::string& covenant() const; + template void set_covenant(Arg_&& arg, Args_... args); - std::string* mutable_covenant(); - PROTOBUF_NODISCARD std::string* release_covenant(); - void set_allocated_covenant(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_covenant(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_covenant(); + void set_allocated_covenant(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_covenant() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_covenant( - const std::string& value); - std::string* _internal_mutable_covenant(); + const ::std::string& _internal_covenant() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_covenant(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_covenant(); public: // bytes encrypted_data = 12; void clear_encrypted_data() ; - const std::string& encrypted_data() const; - template + const ::std::string& encrypted_data() const; + template void set_encrypted_data(Arg_&& arg, Args_... args); - std::string* mutable_encrypted_data(); - PROTOBUF_NODISCARD std::string* release_encrypted_data(); - void set_allocated_encrypted_data(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_encrypted_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_encrypted_data(); + void set_allocated_encrypted_data(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_encrypted_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_data( - const std::string& value); - std::string* _internal_mutable_encrypted_data(); + const ::std::string& _internal_encrypted_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_encrypted_data(); public: // .tari.rpc.OutputFeatures features = 3; bool has_features() const; void clear_features() ; const ::tari::rpc::OutputFeatures& features() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputFeatures* release_features(); - ::tari::rpc::OutputFeatures* mutable_features(); - void set_allocated_features(::tari::rpc::OutputFeatures* value); - void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value); - ::tari::rpc::OutputFeatures* unsafe_arena_release_features(); + [[nodiscard]] ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE release_features(); + ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL mutable_features(); + void set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value); + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE unsafe_arena_release_features(); private: const ::tari::rpc::OutputFeatures& _internal_features() const; - ::tari::rpc::OutputFeatures* _internal_mutable_features(); + ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL _internal_mutable_features(); public: // .tari.rpc.ComAndPubSignature metadata_signature = 9; bool has_metadata_signature() const; void clear_metadata_signature() ; const ::tari::rpc::ComAndPubSignature& metadata_signature() const; - PROTOBUF_NODISCARD ::tari::rpc::ComAndPubSignature* release_metadata_signature(); - ::tari::rpc::ComAndPubSignature* mutable_metadata_signature(); - void set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value); - void unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value); - ::tari::rpc::ComAndPubSignature* unsafe_arena_release_metadata_signature(); + [[nodiscard]] ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE release_metadata_signature(); + ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL mutable_metadata_signature(); + void set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value); + ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE unsafe_arena_release_metadata_signature(); private: const ::tari::rpc::ComAndPubSignature& _internal_metadata_signature() const; - ::tari::rpc::ComAndPubSignature* _internal_mutable_metadata_signature(); + ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL _internal_mutable_metadata_signature(); public: // .tari.rpc.RangeProof range_proof = 14; bool has_range_proof() const; void clear_range_proof() ; const ::tari::rpc::RangeProof& range_proof() const; - PROTOBUF_NODISCARD ::tari::rpc::RangeProof* release_range_proof(); - ::tari::rpc::RangeProof* mutable_range_proof(); - void set_allocated_range_proof(::tari::rpc::RangeProof* value); - void unsafe_arena_set_allocated_range_proof(::tari::rpc::RangeProof* value); - ::tari::rpc::RangeProof* unsafe_arena_release_range_proof(); + [[nodiscard]] ::tari::rpc::RangeProof* PROTOBUF_NULLABLE release_range_proof(); + ::tari::rpc::RangeProof* PROTOBUF_NONNULL mutable_range_proof(); + void set_allocated_range_proof(::tari::rpc::RangeProof* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_range_proof(::tari::rpc::RangeProof* PROTOBUF_NULLABLE value); + ::tari::rpc::RangeProof* PROTOBUF_NULLABLE unsafe_arena_release_range_proof(); private: const ::tari::rpc::RangeProof& _internal_range_proof() const; - ::tari::rpc::RangeProof* _internal_mutable_range_proof(); + ::tari::rpc::RangeProof* PROTOBUF_NONNULL _internal_mutable_range_proof(); public: // uint64 value = 1; @@ -933,10 +996,11 @@ class UnblindedOutput final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 13, 3, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<4, 13, + 3, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -944,14 +1008,16 @@ class UnblindedOutput final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const UnblindedOutput& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr spending_key_; ::google::protobuf::internal::ArenaStringPtr script_; ::google::protobuf::internal::ArenaStringPtr input_data_; @@ -959,9 +1025,9 @@ class UnblindedOutput final : public ::google::protobuf::Message ::google::protobuf::internal::ArenaStringPtr sender_offset_public_key_; ::google::protobuf::internal::ArenaStringPtr covenant_; ::google::protobuf::internal::ArenaStringPtr encrypted_data_; - ::tari::rpc::OutputFeatures* features_; - ::tari::rpc::ComAndPubSignature* metadata_signature_; - ::tari::rpc::RangeProof* range_proof_; + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE features_; + ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE metadata_signature_; + ::tari::rpc::RangeProof* PROTOBUF_NULLABLE range_proof_; ::uint64_t value_; ::uint64_t script_lock_height_; ::uint64_t minimum_value_promise_; @@ -970,31 +1036,36 @@ class UnblindedOutput final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull UnblindedOutput_class_data_; // ------------------------------------------------------------------- class TransactionOutput final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.TransactionOutput) */ { public: inline TransactionOutput() : TransactionOutput(nullptr) {} - ~TransactionOutput() override; + ~TransactionOutput() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransactionOutput* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransactionOutput)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR TransactionOutput( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : TransactionOutput(nullptr, ::std::move(from)) {} inline TransactionOutput& operator=(const TransactionOutput& from) { CopyFrom(from); return *this; } inline TransactionOutput& operator=(TransactionOutput&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1006,42 +1077,35 @@ class TransactionOutput final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const TransactionOutput& default_instance() { - return *internal_default_instance(); - } - static inline const TransactionOutput* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_TransactionOutput_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(TransactionOutput& a, TransactionOutput& b) { a.Swap(&b); } - inline void Swap(TransactionOutput* other) { + inline void Swap(TransactionOutput* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransactionOutput* other) { + void UnsafeArenaSwap(TransactionOutput* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1049,7 +1113,7 @@ class TransactionOutput final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - TransactionOutput* New(::google::protobuf::Arena* arena = nullptr) const final { + TransactionOutput* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1058,41 +1122,63 @@ class TransactionOutput final : public ::google::protobuf::Message void MergeFrom(const TransactionOutput& from) { TransactionOutput::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TransactionOutput* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TransactionOutput* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionOutput"; } protected: - explicit TransactionOutput(::google::protobuf::Arena* arena); - TransactionOutput(::google::protobuf::Arena* arena, const TransactionOutput& from); - TransactionOutput(::google::protobuf::Arena* arena, TransactionOutput&& from) noexcept + explicit TransactionOutput(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + TransactionOutput(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TransactionOutput& from); + TransactionOutput( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, TransactionOutput&& from) noexcept : TransactionOutput(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1103,6 +1189,7 @@ class TransactionOutput final : public ::google::protobuf::Message kSenderOffsetPublicKeyFieldNumber = 6, kCovenantFieldNumber = 8, kEncryptedDataFieldNumber = 10, + kPaymentReferenceFieldNumber = 12, kFeaturesFieldNumber = 1, kRangeProofFieldNumber = 3, kMetadataSignatureFieldNumber = 7, @@ -1111,143 +1198,152 @@ class TransactionOutput final : public ::google::protobuf::Message }; // bytes commitment = 2; void clear_commitment() ; - const std::string& commitment() const; - template + const ::std::string& commitment() const; + template void set_commitment(Arg_&& arg, Args_... args); - std::string* mutable_commitment(); - PROTOBUF_NODISCARD std::string* release_commitment(); - void set_allocated_commitment(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_commitment(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_commitment(); + void set_allocated_commitment(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_commitment( - const std::string& value); - std::string* _internal_mutable_commitment(); + const ::std::string& _internal_commitment() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_commitment(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_commitment(); public: // bytes hash = 4; void clear_hash() ; - const std::string& hash() const; - template + const ::std::string& hash() const; + template void set_hash(Arg_&& arg, Args_... args); - std::string* mutable_hash(); - PROTOBUF_NODISCARD std::string* release_hash(); - void set_allocated_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_hash(); + void set_allocated_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash( - const std::string& value); - std::string* _internal_mutable_hash(); + const ::std::string& _internal_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_hash(); public: // bytes script = 5; void clear_script() ; - const std::string& script() const; - template + const ::std::string& script() const; + template void set_script(Arg_&& arg, Args_... args); - std::string* mutable_script(); - PROTOBUF_NODISCARD std::string* release_script(); - void set_allocated_script(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_script(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_script(); + void set_allocated_script(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_script() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script( - const std::string& value); - std::string* _internal_mutable_script(); + const ::std::string& _internal_script() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_script(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_script(); public: // bytes sender_offset_public_key = 6; void clear_sender_offset_public_key() ; - const std::string& sender_offset_public_key() const; - template + const ::std::string& sender_offset_public_key() const; + template void set_sender_offset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_sender_offset_public_key(); - PROTOBUF_NODISCARD std::string* release_sender_offset_public_key(); - void set_allocated_sender_offset_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_sender_offset_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_sender_offset_public_key(); + void set_allocated_sender_offset_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_sender_offset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sender_offset_public_key( - const std::string& value); - std::string* _internal_mutable_sender_offset_public_key(); + const ::std::string& _internal_sender_offset_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_sender_offset_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_sender_offset_public_key(); public: // bytes covenant = 8; void clear_covenant() ; - const std::string& covenant() const; - template + const ::std::string& covenant() const; + template void set_covenant(Arg_&& arg, Args_... args); - std::string* mutable_covenant(); - PROTOBUF_NODISCARD std::string* release_covenant(); - void set_allocated_covenant(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_covenant(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_covenant(); + void set_allocated_covenant(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_covenant() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_covenant( - const std::string& value); - std::string* _internal_mutable_covenant(); + const ::std::string& _internal_covenant() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_covenant(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_covenant(); public: // bytes encrypted_data = 10; void clear_encrypted_data() ; - const std::string& encrypted_data() const; - template + const ::std::string& encrypted_data() const; + template void set_encrypted_data(Arg_&& arg, Args_... args); - std::string* mutable_encrypted_data(); - PROTOBUF_NODISCARD std::string* release_encrypted_data(); - void set_allocated_encrypted_data(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_encrypted_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_encrypted_data(); + void set_allocated_encrypted_data(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_encrypted_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_data( - const std::string& value); - std::string* _internal_mutable_encrypted_data(); + const ::std::string& _internal_encrypted_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_encrypted_data(); + + public: + // bytes payment_reference = 12; + void clear_payment_reference() ; + const ::std::string& payment_reference() const; + template + void set_payment_reference(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_payment_reference(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_payment_reference(); + void set_allocated_payment_reference(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_payment_reference() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_payment_reference(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_payment_reference(); public: // .tari.rpc.OutputFeatures features = 1; bool has_features() const; void clear_features() ; const ::tari::rpc::OutputFeatures& features() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputFeatures* release_features(); - ::tari::rpc::OutputFeatures* mutable_features(); - void set_allocated_features(::tari::rpc::OutputFeatures* value); - void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value); - ::tari::rpc::OutputFeatures* unsafe_arena_release_features(); + [[nodiscard]] ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE release_features(); + ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL mutable_features(); + void set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value); + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE unsafe_arena_release_features(); private: const ::tari::rpc::OutputFeatures& _internal_features() const; - ::tari::rpc::OutputFeatures* _internal_mutable_features(); + ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL _internal_mutable_features(); public: // .tari.rpc.RangeProof range_proof = 3; bool has_range_proof() const; void clear_range_proof() ; const ::tari::rpc::RangeProof& range_proof() const; - PROTOBUF_NODISCARD ::tari::rpc::RangeProof* release_range_proof(); - ::tari::rpc::RangeProof* mutable_range_proof(); - void set_allocated_range_proof(::tari::rpc::RangeProof* value); - void unsafe_arena_set_allocated_range_proof(::tari::rpc::RangeProof* value); - ::tari::rpc::RangeProof* unsafe_arena_release_range_proof(); + [[nodiscard]] ::tari::rpc::RangeProof* PROTOBUF_NULLABLE release_range_proof(); + ::tari::rpc::RangeProof* PROTOBUF_NONNULL mutable_range_proof(); + void set_allocated_range_proof(::tari::rpc::RangeProof* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_range_proof(::tari::rpc::RangeProof* PROTOBUF_NULLABLE value); + ::tari::rpc::RangeProof* PROTOBUF_NULLABLE unsafe_arena_release_range_proof(); private: const ::tari::rpc::RangeProof& _internal_range_proof() const; - ::tari::rpc::RangeProof* _internal_mutable_range_proof(); + ::tari::rpc::RangeProof* PROTOBUF_NONNULL _internal_mutable_range_proof(); public: // .tari.rpc.ComAndPubSignature metadata_signature = 7; bool has_metadata_signature() const; void clear_metadata_signature() ; const ::tari::rpc::ComAndPubSignature& metadata_signature() const; - PROTOBUF_NODISCARD ::tari::rpc::ComAndPubSignature* release_metadata_signature(); - ::tari::rpc::ComAndPubSignature* mutable_metadata_signature(); - void set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value); - void unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value); - ::tari::rpc::ComAndPubSignature* unsafe_arena_release_metadata_signature(); + [[nodiscard]] ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE release_metadata_signature(); + ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL mutable_metadata_signature(); + void set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value); + ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE unsafe_arena_release_metadata_signature(); private: const ::tari::rpc::ComAndPubSignature& _internal_metadata_signature() const; - ::tari::rpc::ComAndPubSignature* _internal_mutable_metadata_signature(); + ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL _internal_mutable_metadata_signature(); public: // uint64 minimum_value_promise = 11; @@ -1274,10 +1370,11 @@ class TransactionOutput final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 11, 3, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<4, 12, + 3, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1285,23 +1382,26 @@ class TransactionOutput final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const TransactionOutput& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr commitment_; ::google::protobuf::internal::ArenaStringPtr hash_; ::google::protobuf::internal::ArenaStringPtr script_; ::google::protobuf::internal::ArenaStringPtr sender_offset_public_key_; ::google::protobuf::internal::ArenaStringPtr covenant_; ::google::protobuf::internal::ArenaStringPtr encrypted_data_; - ::tari::rpc::OutputFeatures* features_; - ::tari::rpc::RangeProof* range_proof_; - ::tari::rpc::ComAndPubSignature* metadata_signature_; + ::google::protobuf::internal::ArenaStringPtr payment_reference_; + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE features_; + ::tari::rpc::RangeProof* PROTOBUF_NULLABLE range_proof_; + ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE metadata_signature_; ::uint64_t minimum_value_promise_; ::uint32_t version_; PROTOBUF_TSAN_DECLARE_MEMBER @@ -1309,31 +1409,36 @@ class TransactionOutput final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull TransactionOutput_class_data_; // ------------------------------------------------------------------- class TransactionInput final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.TransactionInput) */ { public: inline TransactionInput() : TransactionInput(nullptr) {} - ~TransactionInput() override; + ~TransactionInput() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransactionInput* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransactionInput)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR TransactionInput( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : TransactionInput(nullptr, ::std::move(from)) {} inline TransactionInput& operator=(const TransactionInput& from) { CopyFrom(from); return *this; } inline TransactionInput& operator=(TransactionInput&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1345,42 +1450,35 @@ class TransactionInput final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const TransactionInput& default_instance() { - return *internal_default_instance(); - } - static inline const TransactionInput* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_TransactionInput_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(TransactionInput& a, TransactionInput& b) { a.Swap(&b); } - inline void Swap(TransactionInput* other) { + inline void Swap(TransactionInput* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransactionInput* other) { + void UnsafeArenaSwap(TransactionInput* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1388,7 +1486,7 @@ class TransactionInput final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - TransactionInput* New(::google::protobuf::Arena* arena = nullptr) const final { + TransactionInput* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1397,41 +1495,63 @@ class TransactionInput final : public ::google::protobuf::Message void MergeFrom(const TransactionInput& from) { TransactionInput::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TransactionInput* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TransactionInput* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionInput"; } protected: - explicit TransactionInput(::google::protobuf::Arena* arena); - TransactionInput(::google::protobuf::Arena* arena, const TransactionInput& from); - TransactionInput(::google::protobuf::Arena* arena, TransactionInput&& from) noexcept + explicit TransactionInput(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + TransactionInput(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TransactionInput& from); + TransactionInput( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, TransactionInput&& from) noexcept : TransactionInput(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1453,191 +1573,182 @@ class TransactionInput final : public ::google::protobuf::Message }; // bytes commitment = 2; void clear_commitment() ; - const std::string& commitment() const; - template + const ::std::string& commitment() const; + template void set_commitment(Arg_&& arg, Args_... args); - std::string* mutable_commitment(); - PROTOBUF_NODISCARD std::string* release_commitment(); - void set_allocated_commitment(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_commitment(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_commitment(); + void set_allocated_commitment(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_commitment( - const std::string& value); - std::string* _internal_mutable_commitment(); + const ::std::string& _internal_commitment() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_commitment(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_commitment(); public: // bytes hash = 3; void clear_hash() ; - const std::string& hash() const; - template + const ::std::string& hash() const; + template void set_hash(Arg_&& arg, Args_... args); - std::string* mutable_hash(); - PROTOBUF_NODISCARD std::string* release_hash(); - void set_allocated_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_hash(); + void set_allocated_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash( - const std::string& value); - std::string* _internal_mutable_hash(); + const ::std::string& _internal_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_hash(); public: // bytes script = 4; void clear_script() ; - const std::string& script() const; - template + const ::std::string& script() const; + template void set_script(Arg_&& arg, Args_... args); - std::string* mutable_script(); - PROTOBUF_NODISCARD std::string* release_script(); - void set_allocated_script(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_script(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_script(); + void set_allocated_script(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_script() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script( - const std::string& value); - std::string* _internal_mutable_script(); + const ::std::string& _internal_script() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_script(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_script(); public: // bytes input_data = 5; void clear_input_data() ; - const std::string& input_data() const; - template + const ::std::string& input_data() const; + template void set_input_data(Arg_&& arg, Args_... args); - std::string* mutable_input_data(); - PROTOBUF_NODISCARD std::string* release_input_data(); - void set_allocated_input_data(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_input_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_input_data(); + void set_allocated_input_data(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_input_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_input_data( - const std::string& value); - std::string* _internal_mutable_input_data(); + const ::std::string& _internal_input_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_input_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_input_data(); public: // bytes sender_offset_public_key = 8; void clear_sender_offset_public_key() ; - const std::string& sender_offset_public_key() const; - template + const ::std::string& sender_offset_public_key() const; + template void set_sender_offset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_sender_offset_public_key(); - PROTOBUF_NODISCARD std::string* release_sender_offset_public_key(); - void set_allocated_sender_offset_public_key(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_sender_offset_public_key(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_sender_offset_public_key(); + void set_allocated_sender_offset_public_key(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_sender_offset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sender_offset_public_key( - const std::string& value); - std::string* _internal_mutable_sender_offset_public_key(); + const ::std::string& _internal_sender_offset_public_key() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_sender_offset_public_key(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_sender_offset_public_key(); public: // bytes output_hash = 9; void clear_output_hash() ; - const std::string& output_hash() const; - template + const ::std::string& output_hash() const; + template void set_output_hash(Arg_&& arg, Args_... args); - std::string* mutable_output_hash(); - PROTOBUF_NODISCARD std::string* release_output_hash(); - void set_allocated_output_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_output_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_output_hash(); + void set_allocated_output_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_output_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_output_hash( - const std::string& value); - std::string* _internal_mutable_output_hash(); + const ::std::string& _internal_output_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_output_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_output_hash(); public: // bytes covenant = 10; void clear_covenant() ; - const std::string& covenant() const; - template + const ::std::string& covenant() const; + template void set_covenant(Arg_&& arg, Args_... args); - std::string* mutable_covenant(); - PROTOBUF_NODISCARD std::string* release_covenant(); - void set_allocated_covenant(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_covenant(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_covenant(); + void set_allocated_covenant(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_covenant() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_covenant( - const std::string& value); - std::string* _internal_mutable_covenant(); + const ::std::string& _internal_covenant() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_covenant(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_covenant(); public: // bytes encrypted_data = 12; void clear_encrypted_data() ; - const std::string& encrypted_data() const; - template + const ::std::string& encrypted_data() const; + template void set_encrypted_data(Arg_&& arg, Args_... args); - std::string* mutable_encrypted_data(); - PROTOBUF_NODISCARD std::string* release_encrypted_data(); - void set_allocated_encrypted_data(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_encrypted_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_encrypted_data(); + void set_allocated_encrypted_data(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_encrypted_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_data( - const std::string& value); - std::string* _internal_mutable_encrypted_data(); + const ::std::string& _internal_encrypted_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_encrypted_data(); public: // bytes rangeproof_hash = 15; void clear_rangeproof_hash() ; - const std::string& rangeproof_hash() const; - template + const ::std::string& rangeproof_hash() const; + template void set_rangeproof_hash(Arg_&& arg, Args_... args); - std::string* mutable_rangeproof_hash(); - PROTOBUF_NODISCARD std::string* release_rangeproof_hash(); - void set_allocated_rangeproof_hash(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_rangeproof_hash(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_rangeproof_hash(); + void set_allocated_rangeproof_hash(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_rangeproof_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_rangeproof_hash( - const std::string& value); - std::string* _internal_mutable_rangeproof_hash(); + const ::std::string& _internal_rangeproof_hash() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_rangeproof_hash(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_rangeproof_hash(); public: // .tari.rpc.OutputFeatures features = 1; bool has_features() const; void clear_features() ; const ::tari::rpc::OutputFeatures& features() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputFeatures* release_features(); - ::tari::rpc::OutputFeatures* mutable_features(); - void set_allocated_features(::tari::rpc::OutputFeatures* value); - void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value); - ::tari::rpc::OutputFeatures* unsafe_arena_release_features(); + [[nodiscard]] ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE release_features(); + ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL mutable_features(); + void set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value); + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE unsafe_arena_release_features(); private: const ::tari::rpc::OutputFeatures& _internal_features() const; - ::tari::rpc::OutputFeatures* _internal_mutable_features(); + ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL _internal_mutable_features(); public: // .tari.rpc.ComAndPubSignature script_signature = 7; bool has_script_signature() const; void clear_script_signature() ; const ::tari::rpc::ComAndPubSignature& script_signature() const; - PROTOBUF_NODISCARD ::tari::rpc::ComAndPubSignature* release_script_signature(); - ::tari::rpc::ComAndPubSignature* mutable_script_signature(); - void set_allocated_script_signature(::tari::rpc::ComAndPubSignature* value); - void unsafe_arena_set_allocated_script_signature(::tari::rpc::ComAndPubSignature* value); - ::tari::rpc::ComAndPubSignature* unsafe_arena_release_script_signature(); + [[nodiscard]] ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE release_script_signature(); + ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL mutable_script_signature(); + void set_allocated_script_signature(::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_script_signature(::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value); + ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE unsafe_arena_release_script_signature(); private: const ::tari::rpc::ComAndPubSignature& _internal_script_signature() const; - ::tari::rpc::ComAndPubSignature* _internal_mutable_script_signature(); + ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL _internal_mutable_script_signature(); public: // .tari.rpc.ComAndPubSignature metadata_signature = 14; bool has_metadata_signature() const; void clear_metadata_signature() ; const ::tari::rpc::ComAndPubSignature& metadata_signature() const; - PROTOBUF_NODISCARD ::tari::rpc::ComAndPubSignature* release_metadata_signature(); - ::tari::rpc::ComAndPubSignature* mutable_metadata_signature(); - void set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value); - void unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value); - ::tari::rpc::ComAndPubSignature* unsafe_arena_release_metadata_signature(); + [[nodiscard]] ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE release_metadata_signature(); + ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL mutable_metadata_signature(); + void set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value); + ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE unsafe_arena_release_metadata_signature(); private: const ::tari::rpc::ComAndPubSignature& _internal_metadata_signature() const; - ::tari::rpc::ComAndPubSignature* _internal_mutable_metadata_signature(); + ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL _internal_mutable_metadata_signature(); public: // uint64 minimum_value_promise = 13; @@ -1664,10 +1775,11 @@ class TransactionInput final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 14, 3, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<4, 14, + 3, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1675,14 +1787,16 @@ class TransactionInput final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const TransactionInput& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr commitment_; ::google::protobuf::internal::ArenaStringPtr hash_; ::google::protobuf::internal::ArenaStringPtr script_; @@ -1692,9 +1806,9 @@ class TransactionInput final : public ::google::protobuf::Message ::google::protobuf::internal::ArenaStringPtr covenant_; ::google::protobuf::internal::ArenaStringPtr encrypted_data_; ::google::protobuf::internal::ArenaStringPtr rangeproof_hash_; - ::tari::rpc::OutputFeatures* features_; - ::tari::rpc::ComAndPubSignature* script_signature_; - ::tari::rpc::ComAndPubSignature* metadata_signature_; + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE features_; + ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE script_signature_; + ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE metadata_signature_; ::uint64_t minimum_value_promise_; ::uint32_t version_; PROTOBUF_TSAN_DECLARE_MEMBER @@ -1702,31 +1816,36 @@ class TransactionInput final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull TransactionInput_class_data_; // ------------------------------------------------------------------- class AggregateBody final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.AggregateBody) */ { public: inline AggregateBody() : AggregateBody(nullptr) {} - ~AggregateBody() override; + ~AggregateBody() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AggregateBody* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AggregateBody)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR AggregateBody( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : AggregateBody(nullptr, ::std::move(from)) {} inline AggregateBody& operator=(const AggregateBody& from) { CopyFrom(from); return *this; } inline AggregateBody& operator=(AggregateBody&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1738,42 +1857,35 @@ class AggregateBody final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const AggregateBody& default_instance() { - return *internal_default_instance(); - } - static inline const AggregateBody* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_AggregateBody_default_instance_); } static constexpr int kIndexInFileMessages = 4; friend void swap(AggregateBody& a, AggregateBody& b) { a.Swap(&b); } - inline void Swap(AggregateBody* other) { + inline void Swap(AggregateBody* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AggregateBody* other) { + void UnsafeArenaSwap(AggregateBody* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1781,7 +1893,7 @@ class AggregateBody final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - AggregateBody* New(::google::protobuf::Arena* arena = nullptr) const final { + AggregateBody* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1790,41 +1902,63 @@ class AggregateBody final : public ::google::protobuf::Message void MergeFrom(const AggregateBody& from) { AggregateBody::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AggregateBody* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AggregateBody* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.AggregateBody"; } protected: - explicit AggregateBody(::google::protobuf::Arena* arena); - AggregateBody(::google::protobuf::Arena* arena, const AggregateBody& from); - AggregateBody(::google::protobuf::Arena* arena, AggregateBody&& from) noexcept + explicit AggregateBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + AggregateBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AggregateBody& from); + AggregateBody( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, AggregateBody&& from) noexcept : AggregateBody(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1840,15 +1974,15 @@ class AggregateBody final : public ::google::protobuf::Message public: void clear_inputs() ; - ::tari::rpc::TransactionInput* mutable_inputs(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* mutable_inputs(); + ::tari::rpc::TransactionInput* PROTOBUF_NONNULL mutable_inputs(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* PROTOBUF_NONNULL mutable_inputs(); private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>& _internal_inputs() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* _internal_mutable_inputs(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* PROTOBUF_NONNULL _internal_mutable_inputs(); public: const ::tari::rpc::TransactionInput& inputs(int index) const; - ::tari::rpc::TransactionInput* add_inputs(); + ::tari::rpc::TransactionInput* PROTOBUF_NONNULL add_inputs(); const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>& inputs() const; // repeated .tari.rpc.TransactionOutput outputs = 2; int outputs_size() const; @@ -1857,15 +1991,15 @@ class AggregateBody final : public ::google::protobuf::Message public: void clear_outputs() ; - ::tari::rpc::TransactionOutput* mutable_outputs(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* mutable_outputs(); + ::tari::rpc::TransactionOutput* PROTOBUF_NONNULL mutable_outputs(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* PROTOBUF_NONNULL mutable_outputs(); private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& _internal_outputs() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* _internal_mutable_outputs(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* PROTOBUF_NONNULL _internal_mutable_outputs(); public: const ::tari::rpc::TransactionOutput& outputs(int index) const; - ::tari::rpc::TransactionOutput* add_outputs(); + ::tari::rpc::TransactionOutput* PROTOBUF_NONNULL add_outputs(); const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& outputs() const; // repeated .tari.rpc.TransactionKernel kernels = 3; int kernels_size() const; @@ -1874,24 +2008,25 @@ class AggregateBody final : public ::google::protobuf::Message public: void clear_kernels() ; - ::tari::rpc::TransactionKernel* mutable_kernels(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* mutable_kernels(); + ::tari::rpc::TransactionKernel* PROTOBUF_NONNULL mutable_kernels(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* PROTOBUF_NONNULL mutable_kernels(); private: const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>& _internal_kernels() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* _internal_mutable_kernels(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* PROTOBUF_NONNULL _internal_mutable_kernels(); public: const ::tari::rpc::TransactionKernel& kernels(int index) const; - ::tari::rpc::TransactionKernel* add_kernels(); + ::tari::rpc::TransactionKernel* PROTOBUF_NONNULL add_kernels(); 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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 3, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1899,46 +2034,53 @@ class AggregateBody final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const AggregateBody& from_msg); ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionInput > inputs_; ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionOutput > outputs_; ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionKernel > kernels_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull AggregateBody_class_data_; // ------------------------------------------------------------------- class Transaction final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.Transaction) */ { public: inline Transaction() : Transaction(nullptr) {} - ~Transaction() override; + ~Transaction() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Transaction* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Transaction)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR Transaction( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : Transaction(nullptr, ::std::move(from)) {} inline Transaction& operator=(const Transaction& from) { CopyFrom(from); return *this; } inline Transaction& operator=(Transaction&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1950,42 +2092,35 @@ class Transaction final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Transaction& default_instance() { - return *internal_default_instance(); - } - static inline const Transaction* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_Transaction_default_instance_); } static constexpr int kIndexInFileMessages = 5; friend void swap(Transaction& a, Transaction& b) { a.Swap(&b); } - inline void Swap(Transaction* other) { + inline void Swap(Transaction* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Transaction* other) { + void UnsafeArenaSwap(Transaction* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1993,7 +2128,7 @@ class Transaction final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Transaction* New(::google::protobuf::Arena* arena = nullptr) const final { + Transaction* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2002,41 +2137,63 @@ class Transaction final : public ::google::protobuf::Message void MergeFrom(const Transaction& from) { Transaction::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Transaction* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Transaction* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.Transaction"; } protected: - explicit Transaction(::google::protobuf::Arena* arena); - Transaction(::google::protobuf::Arena* arena, const Transaction& from); - Transaction(::google::protobuf::Arena* arena, Transaction&& from) noexcept + explicit Transaction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Transaction(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Transaction& from); + Transaction( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Transaction&& from) noexcept : Transaction(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -2047,59 +2204,58 @@ class Transaction final : public ::google::protobuf::Message }; // bytes offset = 1; void clear_offset() ; - const std::string& offset() const; - template + const ::std::string& offset() const; + template void set_offset(Arg_&& arg, Args_... args); - std::string* mutable_offset(); - PROTOBUF_NODISCARD std::string* release_offset(); - void set_allocated_offset(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_offset(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_offset(); + void set_allocated_offset(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_offset() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_offset( - const std::string& value); - std::string* _internal_mutable_offset(); + const ::std::string& _internal_offset() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_offset(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_offset(); public: // bytes script_offset = 3; void clear_script_offset() ; - const std::string& script_offset() const; - template + const ::std::string& script_offset() const; + template void set_script_offset(Arg_&& arg, Args_... args); - std::string* mutable_script_offset(); - PROTOBUF_NODISCARD std::string* release_script_offset(); - void set_allocated_script_offset(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_script_offset(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_script_offset(); + void set_allocated_script_offset(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_script_offset() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script_offset( - const std::string& value); - std::string* _internal_mutable_script_offset(); + const ::std::string& _internal_script_offset() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_script_offset(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_script_offset(); public: // .tari.rpc.AggregateBody body = 2; bool has_body() const; void clear_body() ; const ::tari::rpc::AggregateBody& body() const; - PROTOBUF_NODISCARD ::tari::rpc::AggregateBody* release_body(); - ::tari::rpc::AggregateBody* mutable_body(); - void set_allocated_body(::tari::rpc::AggregateBody* value); - void unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* value); - ::tari::rpc::AggregateBody* unsafe_arena_release_body(); + [[nodiscard]] ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE release_body(); + ::tari::rpc::AggregateBody* PROTOBUF_NONNULL mutable_body(); + void set_allocated_body(::tari::rpc::AggregateBody* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* PROTOBUF_NULLABLE value); + ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE unsafe_arena_release_body(); private: const ::tari::rpc::AggregateBody& _internal_body() const; - ::tari::rpc::AggregateBody* _internal_mutable_body(); + ::tari::rpc::AggregateBody* PROTOBUF_NONNULL _internal_mutable_body(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2107,23 +2263,27 @@ class Transaction final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Transaction& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr offset_; ::google::protobuf::internal::ArenaStringPtr script_offset_; - ::tari::rpc::AggregateBody* body_; + ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE body_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_transaction_2eproto; }; +extern const ::google::protobuf::internal::ClassDataFull Transaction_class_data_; + // =================================================================== @@ -2142,8 +2302,9 @@ class Transaction final : public ::google::protobuf::Message // uint32 features = 1; inline void TransactionKernel::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.features_ = 0u; + _impl_._has_bits_[0] &= ~0x00000040u; } inline ::uint32_t TransactionKernel::features() const { // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.features) @@ -2151,21 +2312,23 @@ inline ::uint32_t TransactionKernel::features() const { } inline void TransactionKernel::set_features(::uint32_t value) { _internal_set_features(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.features) } inline ::uint32_t TransactionKernel::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.features_; } inline void TransactionKernel::_internal_set_features(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.features_ = value; } // uint64 fee = 2; inline void TransactionKernel::clear_fee() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.fee_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000010u; } inline ::uint64_t TransactionKernel::fee() const { // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.fee) @@ -2173,21 +2336,23 @@ inline ::uint64_t TransactionKernel::fee() const { } inline void TransactionKernel::set_fee(::uint64_t value) { _internal_set_fee(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.fee) } inline ::uint64_t TransactionKernel::_internal_fee() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.fee_; } inline void TransactionKernel::_internal_set_fee(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.fee_ = value; } // uint64 lock_height = 3; inline void TransactionKernel::clear_lock_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.lock_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000020u; } inline ::uint64_t TransactionKernel::lock_height() const { // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.lock_height) @@ -2195,75 +2360,91 @@ inline ::uint64_t TransactionKernel::lock_height() const { } inline void TransactionKernel::set_lock_height(::uint64_t value) { _internal_set_lock_height(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.lock_height) } inline ::uint64_t TransactionKernel::_internal_lock_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.lock_height_; } inline void TransactionKernel::_internal_set_lock_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.lock_height_ = value; } // bytes excess = 6; inline void TransactionKernel::clear_excess() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.excess_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& TransactionKernel::excess() const +inline const ::std::string& TransactionKernel::excess() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.excess) return _internal_excess(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionKernel::set_excess(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionKernel::set_excess(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.excess_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.excess) } -inline std::string* TransactionKernel::mutable_excess() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_excess(); +inline ::std::string* PROTOBUF_NONNULL TransactionKernel::mutable_excess() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_excess(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionKernel.excess) return _s; } -inline const std::string& TransactionKernel::_internal_excess() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionKernel::_internal_excess() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.excess_.Get(); } -inline void TransactionKernel::_internal_set_excess(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionKernel::_internal_set_excess(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.excess_.Set(value, GetArena()); } -inline std::string* TransactionKernel::_internal_mutable_excess() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionKernel::_internal_mutable_excess() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.excess_.Mutable( GetArena()); } -inline std::string* TransactionKernel::release_excess() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionKernel::release_excess() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionKernel.excess) - return _impl_.excess_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.excess_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.excess_.Set("", GetArena()); + } + return released; } -inline void TransactionKernel::set_allocated_excess(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionKernel::set_allocated_excess(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.excess_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.excess_.IsDefault()) { - _impl_.excess_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.excess_.IsDefault()) { + _impl_.excess_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionKernel.excess) } // .tari.rpc.Signature excess_sig = 7; inline bool TransactionKernel::has_excess_sig() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; PROTOBUF_ASSUME(!value || _impl_.excess_sig_ != nullptr); return value; } inline const ::tari::rpc::Signature& TransactionKernel::_internal_excess_sig() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Signature* p = _impl_.excess_sig_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); } @@ -2271,76 +2452,78 @@ inline const ::tari::rpc::Signature& TransactionKernel::excess_sig() const ABSL_ // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.excess_sig) return _internal_excess_sig(); } -inline void TransactionKernel::unsafe_arena_set_allocated_excess_sig(::tari::rpc::Signature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionKernel::unsafe_arena_set_allocated_excess_sig( + ::tari::rpc::Signature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.excess_sig_); } _impl_.excess_sig_ = reinterpret_cast<::tari::rpc::Signature*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000008u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000008u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionKernel.excess_sig) } -inline ::tari::rpc::Signature* TransactionKernel::release_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE TransactionKernel::release_excess_sig() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000008u; ::tari::rpc::Signature* released = _impl_.excess_sig_; _impl_.excess_sig_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Signature* TransactionKernel::unsafe_arena_release_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Signature* PROTOBUF_NULLABLE TransactionKernel::unsafe_arena_release_excess_sig() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionKernel.excess_sig) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000008u; ::tari::rpc::Signature* temp = _impl_.excess_sig_; _impl_.excess_sig_ = nullptr; return temp; } -inline ::tari::rpc::Signature* TransactionKernel::_internal_mutable_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Signature* PROTOBUF_NONNULL TransactionKernel::_internal_mutable_excess_sig() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.excess_sig_ == nullptr) { 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; +inline ::tari::rpc::Signature* PROTOBUF_NONNULL TransactionKernel::mutable_excess_sig() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000008u; ::tari::rpc::Signature* _msg = _internal_mutable_excess_sig(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionKernel.excess_sig) return _msg; } -inline void TransactionKernel::set_allocated_excess_sig(::tari::rpc::Signature* value) { +inline void TransactionKernel::set_allocated_excess_sig(::tari::rpc::Signature* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.excess_sig_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000008u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000008u; } _impl_.excess_sig_ = reinterpret_cast<::tari::rpc::Signature*>(value); @@ -2349,58 +2532,74 @@ inline void TransactionKernel::set_allocated_excess_sig(::tari::rpc::Signature* // bytes hash = 8; inline void TransactionKernel::clear_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& TransactionKernel::hash() const +inline const ::std::string& TransactionKernel::hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.hash) return _internal_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionKernel::set_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionKernel::set_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.hash) } -inline std::string* TransactionKernel::mutable_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_hash(); +inline ::std::string* PROTOBUF_NONNULL TransactionKernel::mutable_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionKernel.hash) return _s; } -inline const std::string& TransactionKernel::_internal_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionKernel::_internal_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.hash_.Get(); } -inline void TransactionKernel::_internal_set_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionKernel::_internal_set_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.hash_.Set(value, GetArena()); } -inline std::string* TransactionKernel::_internal_mutable_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionKernel::_internal_mutable_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.hash_.Mutable( GetArena()); } -inline std::string* TransactionKernel::release_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionKernel::release_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionKernel.hash) - return _impl_.hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.hash_.Set("", GetArena()); + } + return released; } -inline void TransactionKernel::set_allocated_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionKernel::set_allocated_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.hash_.IsDefault()) { - _impl_.hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.hash_.IsDefault()) { + _impl_.hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionKernel.hash) } // uint32 version = 9; inline void TransactionKernel::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = 0u; + _impl_._has_bits_[0] &= ~0x00000080u; } inline ::uint32_t TransactionKernel::version() const { // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.version) @@ -2408,64 +2607,80 @@ inline ::uint32_t TransactionKernel::version() const { } inline void TransactionKernel::set_version(::uint32_t value) { _internal_set_version(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.version) } inline ::uint32_t TransactionKernel::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.version_; } inline void TransactionKernel::_internal_set_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = value; } // bytes burn_commitment = 10; inline void TransactionKernel::clear_burn_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.burn_commitment_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& TransactionKernel::burn_commitment() const +inline const ::std::string& TransactionKernel::burn_commitment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.burn_commitment) return _internal_burn_commitment(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionKernel::set_burn_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionKernel::set_burn_commitment(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.burn_commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.burn_commitment) } -inline std::string* TransactionKernel::mutable_burn_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_burn_commitment(); +inline ::std::string* PROTOBUF_NONNULL TransactionKernel::mutable_burn_commitment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_burn_commitment(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionKernel.burn_commitment) return _s; } -inline const std::string& TransactionKernel::_internal_burn_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionKernel::_internal_burn_commitment() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.burn_commitment_.Get(); } -inline void TransactionKernel::_internal_set_burn_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionKernel::_internal_set_burn_commitment(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.burn_commitment_.Set(value, GetArena()); } -inline std::string* TransactionKernel::_internal_mutable_burn_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionKernel::_internal_mutable_burn_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.burn_commitment_.Mutable( GetArena()); } -inline std::string* TransactionKernel::release_burn_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionKernel::release_burn_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionKernel.burn_commitment) - return _impl_.burn_commitment_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.burn_commitment_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.burn_commitment_.Set("", GetArena()); + } + return released; } -inline void TransactionKernel::set_allocated_burn_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionKernel::set_allocated_burn_commitment(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.burn_commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.burn_commitment_.IsDefault()) { - _impl_.burn_commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.burn_commitment_.IsDefault()) { + _impl_.burn_commitment_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionKernel.burn_commitment) } @@ -2475,17 +2690,17 @@ inline void TransactionKernel::set_allocated_burn_commitment(std::string* value) // .tari.rpc.OutputFeatures features = 1; inline bool TransactionInput::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); return value; } inline void TransactionInput::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000200u; } inline const ::tari::rpc::OutputFeatures& TransactionInput::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::OutputFeatures* p = _impl_.features_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputFeatures_default_instance_); } @@ -2493,76 +2708,78 @@ inline const ::tari::rpc::OutputFeatures& TransactionInput::features() const ABS // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.features) return _internal_features(); } -inline void TransactionInput::unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::unsafe_arena_set_allocated_features( + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000200u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000200u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionInput.features) } -inline ::tari::rpc::OutputFeatures* TransactionInput::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE TransactionInput::release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000200u; ::tari::rpc::OutputFeatures* released = _impl_.features_; _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::OutputFeatures* TransactionInput::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE TransactionInput::unsafe_arena_release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.features) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000200u; ::tari::rpc::OutputFeatures* temp = _impl_.features_; _impl_.features_ = nullptr; return temp; } -inline ::tari::rpc::OutputFeatures* TransactionInput::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL TransactionInput::_internal_mutable_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ == nullptr) { 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; +inline ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL TransactionInput::mutable_features() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000200u; ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.features) return _msg; } -inline void TransactionInput::set_allocated_features(::tari::rpc::OutputFeatures* value) { +inline void TransactionInput::set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.features_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000200u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000200u; } _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); @@ -2571,212 +2788,272 @@ inline void TransactionInput::set_allocated_features(::tari::rpc::OutputFeatures // bytes commitment = 2; inline void TransactionInput::clear_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.commitment_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& TransactionInput::commitment() const +inline const ::std::string& TransactionInput::commitment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.commitment) return _internal_commitment(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionInput::set_commitment(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.commitment) } -inline std::string* TransactionInput::mutable_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_commitment(); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::mutable_commitment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_commitment(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.commitment) return _s; } -inline const std::string& TransactionInput::_internal_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionInput::_internal_commitment() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.commitment_.Get(); } -inline void TransactionInput::_internal_set_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::_internal_set_commitment(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.commitment_.Set(value, GetArena()); } -inline std::string* TransactionInput::_internal_mutable_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::_internal_mutable_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.commitment_.Mutable( GetArena()); } -inline std::string* TransactionInput::release_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionInput::release_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.commitment) - return _impl_.commitment_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.commitment_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.commitment_.Set("", GetArena()); + } + return released; } -inline void TransactionInput::set_allocated_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::set_allocated_commitment(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.commitment_.IsDefault()) { - _impl_.commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.commitment_.IsDefault()) { + _impl_.commitment_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.commitment) } // bytes hash = 3; inline void TransactionInput::clear_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& TransactionInput::hash() const +inline const ::std::string& TransactionInput::hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.hash) return _internal_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionInput::set_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.hash) } -inline std::string* TransactionInput::mutable_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_hash(); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::mutable_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.hash) return _s; } -inline const std::string& TransactionInput::_internal_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionInput::_internal_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.hash_.Get(); } -inline void TransactionInput::_internal_set_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::_internal_set_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.hash_.Set(value, GetArena()); } -inline std::string* TransactionInput::_internal_mutable_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::_internal_mutable_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.hash_.Mutable( GetArena()); } -inline std::string* TransactionInput::release_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionInput::release_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.hash) - return _impl_.hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.hash_.Set("", GetArena()); + } + return released; } -inline void TransactionInput::set_allocated_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::set_allocated_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.hash_.IsDefault()) { - _impl_.hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.hash_.IsDefault()) { + _impl_.hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.hash) } // bytes script = 4; inline void TransactionInput::clear_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.script_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& TransactionInput::script() const +inline const ::std::string& TransactionInput::script() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.script) return _internal_script(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_script(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionInput::set_script(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.script) } -inline std::string* TransactionInput::mutable_script() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script(); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::mutable_script() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_script(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.script) return _s; } -inline const std::string& TransactionInput::_internal_script() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionInput::_internal_script() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.script_.Get(); } -inline void TransactionInput::_internal_set_script(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::_internal_set_script(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.script_.Set(value, GetArena()); } -inline std::string* TransactionInput::_internal_mutable_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::_internal_mutable_script() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.script_.Mutable( GetArena()); } -inline std::string* TransactionInput::release_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionInput::release_script() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.script) - return _impl_.script_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.script_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.script_.Set("", GetArena()); + } + return released; } -inline void TransactionInput::set_allocated_script(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::set_allocated_script(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.script_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_.IsDefault()) { - _impl_.script_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.script_.IsDefault()) { + _impl_.script_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.script) } // bytes input_data = 5; inline void TransactionInput::clear_input_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.input_data_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& TransactionInput::input_data() const +inline const ::std::string& TransactionInput::input_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.input_data) return _internal_input_data(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_input_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionInput::set_input_data(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.input_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.input_data) } -inline std::string* TransactionInput::mutable_input_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_input_data(); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::mutable_input_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_input_data(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.input_data) return _s; } -inline const std::string& TransactionInput::_internal_input_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionInput::_internal_input_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.input_data_.Get(); } -inline void TransactionInput::_internal_set_input_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::_internal_set_input_data(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.input_data_.Set(value, GetArena()); } -inline std::string* TransactionInput::_internal_mutable_input_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::_internal_mutable_input_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.input_data_.Mutable( GetArena()); } -inline std::string* TransactionInput::release_input_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionInput::release_input_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.input_data) - return _impl_.input_data_.Release(); + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.input_data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.input_data_.Set("", GetArena()); + } + return released; } -inline void TransactionInput::set_allocated_input_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::set_allocated_input_data(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } _impl_.input_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.input_data_.IsDefault()) { - _impl_.input_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.input_data_.IsDefault()) { + _impl_.input_data_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.input_data) } // .tari.rpc.ComAndPubSignature script_signature = 7; inline bool TransactionInput::has_script_signature() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0; PROTOBUF_ASSUME(!value || _impl_.script_signature_ != nullptr); return value; } inline const ::tari::rpc::ComAndPubSignature& TransactionInput::_internal_script_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::ComAndPubSignature* p = _impl_.script_signature_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ComAndPubSignature_default_instance_); } @@ -2784,76 +3061,78 @@ inline const ::tari::rpc::ComAndPubSignature& TransactionInput::script_signature // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.script_signature) return _internal_script_signature(); } -inline void TransactionInput::unsafe_arena_set_allocated_script_signature(::tari::rpc::ComAndPubSignature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::unsafe_arena_set_allocated_script_signature( + ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.script_signature_); } _impl_.script_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + _impl_._has_bits_[0] |= 0x00000400u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000400u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionInput.script_signature) } -inline ::tari::rpc::ComAndPubSignature* TransactionInput::release_script_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE TransactionInput::release_script_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000400u; ::tari::rpc::ComAndPubSignature* released = _impl_.script_signature_; _impl_.script_signature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::ComAndPubSignature* TransactionInput::unsafe_arena_release_script_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE TransactionInput::unsafe_arena_release_script_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.script_signature) - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000400u; ::tari::rpc::ComAndPubSignature* temp = _impl_.script_signature_; _impl_.script_signature_ = nullptr; return temp; } -inline ::tari::rpc::ComAndPubSignature* TransactionInput::_internal_mutable_script_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL TransactionInput::_internal_mutable_script_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.script_signature_ == nullptr) { 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; +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL TransactionInput::mutable_script_signature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000400u; ::tari::rpc::ComAndPubSignature* _msg = _internal_mutable_script_signature(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.script_signature) return _msg; } -inline void TransactionInput::set_allocated_script_signature(::tari::rpc::ComAndPubSignature* value) { +inline void TransactionInput::set_allocated_script_signature(::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.script_signature_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + _impl_._has_bits_[0] |= 0x00000400u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000400u; } _impl_.script_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); @@ -2862,158 +3141,204 @@ inline void TransactionInput::set_allocated_script_signature(::tari::rpc::ComAnd // bytes sender_offset_public_key = 8; inline void TransactionInput::clear_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sender_offset_public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000010u; } -inline const std::string& TransactionInput::sender_offset_public_key() const +inline const ::std::string& TransactionInput::sender_offset_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.sender_offset_public_key) return _internal_sender_offset_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_sender_offset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionInput::set_sender_offset_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.sender_offset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.sender_offset_public_key) } -inline std::string* TransactionInput::mutable_sender_offset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_sender_offset_public_key(); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::mutable_sender_offset_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_sender_offset_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.sender_offset_public_key) return _s; } -inline const std::string& TransactionInput::_internal_sender_offset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionInput::_internal_sender_offset_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.sender_offset_public_key_.Get(); } -inline void TransactionInput::_internal_set_sender_offset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::_internal_set_sender_offset_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _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); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::_internal_mutable_sender_offset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; return _impl_.sender_offset_public_key_.Mutable( GetArena()); } -inline std::string* TransactionInput::release_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionInput::release_sender_offset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.sender_offset_public_key) - return _impl_.sender_offset_public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000010u; + auto* released = _impl_.sender_offset_public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.sender_offset_public_key_.Set("", GetArena()); + } + return released; } -inline void TransactionInput::set_allocated_sender_offset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::set_allocated_sender_offset_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000010u; + } else { + _impl_._has_bits_[0] &= ~0x00000010u; + } _impl_.sender_offset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sender_offset_public_key_.IsDefault()) { - _impl_.sender_offset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.sender_offset_public_key_.IsDefault()) { + _impl_.sender_offset_public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.sender_offset_public_key) } // bytes output_hash = 9; inline void TransactionInput::clear_output_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.output_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000020u; } -inline const std::string& TransactionInput::output_hash() const +inline const ::std::string& TransactionInput::output_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.output_hash) return _internal_output_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_output_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionInput::set_output_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; _impl_.output_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.output_hash) } -inline std::string* TransactionInput::mutable_output_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_output_hash(); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::mutable_output_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_output_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.output_hash) return _s; } -inline const std::string& TransactionInput::_internal_output_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionInput::_internal_output_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.output_hash_.Get(); } -inline void TransactionInput::_internal_set_output_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::_internal_set_output_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; _impl_.output_hash_.Set(value, GetArena()); } -inline std::string* TransactionInput::_internal_mutable_output_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::_internal_mutable_output_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; return _impl_.output_hash_.Mutable( GetArena()); } -inline std::string* TransactionInput::release_output_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionInput::release_output_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.output_hash) - return _impl_.output_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000020u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000020u; + auto* released = _impl_.output_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.output_hash_.Set("", GetArena()); + } + return released; } -inline void TransactionInput::set_allocated_output_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::set_allocated_output_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000020u; + } else { + _impl_._has_bits_[0] &= ~0x00000020u; + } _impl_.output_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.output_hash_.IsDefault()) { - _impl_.output_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.output_hash_.IsDefault()) { + _impl_.output_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.output_hash) } // bytes covenant = 10; inline void TransactionInput::clear_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.covenant_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000040u; } -inline const std::string& TransactionInput::covenant() const +inline const ::std::string& TransactionInput::covenant() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.covenant) return _internal_covenant(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_covenant(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionInput::set_covenant(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; _impl_.covenant_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.covenant) } -inline std::string* TransactionInput::mutable_covenant() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_covenant(); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::mutable_covenant() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_covenant(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.covenant) return _s; } -inline const std::string& TransactionInput::_internal_covenant() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionInput::_internal_covenant() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.covenant_.Get(); } -inline void TransactionInput::_internal_set_covenant(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::_internal_set_covenant(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; _impl_.covenant_.Set(value, GetArena()); } -inline std::string* TransactionInput::_internal_mutable_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::_internal_mutable_covenant() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; return _impl_.covenant_.Mutable( GetArena()); } -inline std::string* TransactionInput::release_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionInput::release_covenant() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.covenant) - return _impl_.covenant_.Release(); + if ((_impl_._has_bits_[0] & 0x00000040u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000040u; + auto* released = _impl_.covenant_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.covenant_.Set("", GetArena()); + } + return released; } -inline void TransactionInput::set_allocated_covenant(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::set_allocated_covenant(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000040u; + } else { + _impl_._has_bits_[0] &= ~0x00000040u; + } _impl_.covenant_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.covenant_.IsDefault()) { - _impl_.covenant_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.covenant_.IsDefault()) { + _impl_.covenant_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.covenant) } // uint32 version = 11; inline void TransactionInput::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = 0u; + _impl_._has_bits_[0] &= ~0x00002000u; } inline ::uint32_t TransactionInput::version() const { // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.version) @@ -3021,71 +3346,88 @@ inline ::uint32_t TransactionInput::version() const { } inline void TransactionInput::set_version(::uint32_t value) { _internal_set_version(value); + _impl_._has_bits_[0] |= 0x00002000u; // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.version) } inline ::uint32_t TransactionInput::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.version_; } inline void TransactionInput::_internal_set_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = value; } // bytes encrypted_data = 12; inline void TransactionInput::clear_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.encrypted_data_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000080u; } -inline const std::string& TransactionInput::encrypted_data() const +inline const ::std::string& TransactionInput::encrypted_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.encrypted_data) return _internal_encrypted_data(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_encrypted_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionInput::set_encrypted_data(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000080u; _impl_.encrypted_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.encrypted_data) } -inline std::string* TransactionInput::mutable_encrypted_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_encrypted_data(); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::mutable_encrypted_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_encrypted_data(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.encrypted_data) return _s; } -inline const std::string& TransactionInput::_internal_encrypted_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionInput::_internal_encrypted_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.encrypted_data_.Get(); } -inline void TransactionInput::_internal_set_encrypted_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::_internal_set_encrypted_data(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000080u; _impl_.encrypted_data_.Set(value, GetArena()); } -inline std::string* TransactionInput::_internal_mutable_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::_internal_mutable_encrypted_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000080u; return _impl_.encrypted_data_.Mutable( GetArena()); } -inline std::string* TransactionInput::release_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionInput::release_encrypted_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.encrypted_data) - return _impl_.encrypted_data_.Release(); + if ((_impl_._has_bits_[0] & 0x00000080u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000080u; + auto* released = _impl_.encrypted_data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.encrypted_data_.Set("", GetArena()); + } + return released; } -inline void TransactionInput::set_allocated_encrypted_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::set_allocated_encrypted_data(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000080u; + } else { + _impl_._has_bits_[0] &= ~0x00000080u; + } _impl_.encrypted_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.encrypted_data_.IsDefault()) { - _impl_.encrypted_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.encrypted_data_.IsDefault()) { + _impl_.encrypted_data_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.encrypted_data) } // uint64 minimum_value_promise = 13; inline void TransactionInput::clear_minimum_value_promise() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.minimum_value_promise_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00001000u; } inline ::uint64_t TransactionInput::minimum_value_promise() const { // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.minimum_value_promise) @@ -3093,25 +3435,26 @@ inline ::uint64_t TransactionInput::minimum_value_promise() const { } inline void TransactionInput::set_minimum_value_promise(::uint64_t value) { _internal_set_minimum_value_promise(value); + _impl_._has_bits_[0] |= 0x00001000u; // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.minimum_value_promise) } inline ::uint64_t TransactionInput::_internal_minimum_value_promise() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.minimum_value_promise_; } inline void TransactionInput::_internal_set_minimum_value_promise(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.minimum_value_promise_ = value; } // .tari.rpc.ComAndPubSignature metadata_signature = 14; inline bool TransactionInput::has_metadata_signature() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0; PROTOBUF_ASSUME(!value || _impl_.metadata_signature_ != nullptr); return value; } inline const ::tari::rpc::ComAndPubSignature& TransactionInput::_internal_metadata_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::ComAndPubSignature* p = _impl_.metadata_signature_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ComAndPubSignature_default_instance_); } @@ -3119,76 +3462,78 @@ inline const ::tari::rpc::ComAndPubSignature& TransactionInput::metadata_signatu // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.metadata_signature) return _internal_metadata_signature(); } -inline void TransactionInput::unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::unsafe_arena_set_allocated_metadata_signature( + ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_signature_); } _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + _impl_._has_bits_[0] |= 0x00000800u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000800u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionInput.metadata_signature) } -inline ::tari::rpc::ComAndPubSignature* TransactionInput::release_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE TransactionInput::release_metadata_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000800u; ::tari::rpc::ComAndPubSignature* released = _impl_.metadata_signature_; _impl_.metadata_signature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::ComAndPubSignature* TransactionInput::unsafe_arena_release_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE TransactionInput::unsafe_arena_release_metadata_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.metadata_signature) - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000800u; ::tari::rpc::ComAndPubSignature* temp = _impl_.metadata_signature_; _impl_.metadata_signature_ = nullptr; return temp; } -inline ::tari::rpc::ComAndPubSignature* TransactionInput::_internal_mutable_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL TransactionInput::_internal_mutable_metadata_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_signature_ == nullptr) { 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; +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL TransactionInput::mutable_metadata_signature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000800u; ::tari::rpc::ComAndPubSignature* _msg = _internal_mutable_metadata_signature(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.metadata_signature) return _msg; } -inline void TransactionInput::set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value) { +inline void TransactionInput::set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_signature_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + _impl_._has_bits_[0] |= 0x00000800u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000800u; } _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); @@ -3197,51 +3542,66 @@ inline void TransactionInput::set_allocated_metadata_signature(::tari::rpc::ComA // bytes rangeproof_hash = 15; inline void TransactionInput::clear_rangeproof_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.rangeproof_hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000100u; } -inline const std::string& TransactionInput::rangeproof_hash() const +inline const ::std::string& TransactionInput::rangeproof_hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.rangeproof_hash) return _internal_rangeproof_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_rangeproof_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionInput::set_rangeproof_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000100u; _impl_.rangeproof_hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.rangeproof_hash) } -inline std::string* TransactionInput::mutable_rangeproof_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_rangeproof_hash(); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::mutable_rangeproof_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_rangeproof_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.rangeproof_hash) return _s; } -inline const std::string& TransactionInput::_internal_rangeproof_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionInput::_internal_rangeproof_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.rangeproof_hash_.Get(); } -inline void TransactionInput::_internal_set_rangeproof_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::_internal_set_rangeproof_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000100u; _impl_.rangeproof_hash_.Set(value, GetArena()); } -inline std::string* TransactionInput::_internal_mutable_rangeproof_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionInput::_internal_mutable_rangeproof_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000100u; return _impl_.rangeproof_hash_.Mutable( GetArena()); } -inline std::string* TransactionInput::release_rangeproof_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionInput::release_rangeproof_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.rangeproof_hash) - return _impl_.rangeproof_hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000100u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000100u; + auto* released = _impl_.rangeproof_hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.rangeproof_hash_.Set("", GetArena()); + } + return released; } -inline void TransactionInput::set_allocated_rangeproof_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionInput::set_allocated_rangeproof_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000100u; + } else { + _impl_._has_bits_[0] &= ~0x00000100u; + } _impl_.rangeproof_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.rangeproof_hash_.IsDefault()) { - _impl_.rangeproof_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.rangeproof_hash_.IsDefault()) { + _impl_.rangeproof_hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.rangeproof_hash) } @@ -3251,17 +3611,17 @@ inline void TransactionInput::set_allocated_rangeproof_hash(std::string* value) // .tari.rpc.OutputFeatures features = 1; inline bool TransactionOutput::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); return value; } inline void TransactionOutput::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000080u; } inline const ::tari::rpc::OutputFeatures& TransactionOutput::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::OutputFeatures* p = _impl_.features_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputFeatures_default_instance_); } @@ -3269,76 +3629,78 @@ inline const ::tari::rpc::OutputFeatures& TransactionOutput::features() const AB // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.features) return _internal_features(); } -inline void TransactionOutput::unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::unsafe_arena_set_allocated_features( + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000080u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000080u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionOutput.features) } -inline ::tari::rpc::OutputFeatures* TransactionOutput::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE TransactionOutput::release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000080u; ::tari::rpc::OutputFeatures* released = _impl_.features_; _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::OutputFeatures* TransactionOutput::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE TransactionOutput::unsafe_arena_release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.features) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000080u; ::tari::rpc::OutputFeatures* temp = _impl_.features_; _impl_.features_ = nullptr; return temp; } -inline ::tari::rpc::OutputFeatures* TransactionOutput::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL TransactionOutput::_internal_mutable_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ == nullptr) { 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; +inline ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL TransactionOutput::mutable_features() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000080u; ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.features) return _msg; } -inline void TransactionOutput::set_allocated_features(::tari::rpc::OutputFeatures* value) { +inline void TransactionOutput::set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.features_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000080u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000080u; } _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); @@ -3347,62 +3709,77 @@ inline void TransactionOutput::set_allocated_features(::tari::rpc::OutputFeature // bytes commitment = 2; inline void TransactionOutput::clear_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.commitment_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& TransactionOutput::commitment() const +inline const ::std::string& TransactionOutput::commitment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.commitment) return _internal_commitment(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_commitment(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.commitment) } -inline std::string* TransactionOutput::mutable_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_commitment(); +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::mutable_commitment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_commitment(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.commitment) return _s; } -inline const std::string& TransactionOutput::_internal_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionOutput::_internal_commitment() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.commitment_.Get(); } -inline void TransactionOutput::_internal_set_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::_internal_set_commitment(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.commitment_.Set(value, GetArena()); } -inline std::string* TransactionOutput::_internal_mutable_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::_internal_mutable_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.commitment_.Mutable( GetArena()); } -inline std::string* TransactionOutput::release_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionOutput::release_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.commitment) - return _impl_.commitment_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.commitment_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.commitment_.Set("", GetArena()); + } + return released; } -inline void TransactionOutput::set_allocated_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::set_allocated_commitment(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.commitment_.IsDefault()) { - _impl_.commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.commitment_.IsDefault()) { + _impl_.commitment_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.commitment) } // .tari.rpc.RangeProof range_proof = 3; inline bool TransactionOutput::has_range_proof() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; PROTOBUF_ASSUME(!value || _impl_.range_proof_ != nullptr); return value; } inline const ::tari::rpc::RangeProof& TransactionOutput::_internal_range_proof() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::RangeProof* p = _impl_.range_proof_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_RangeProof_default_instance_); } @@ -3410,76 +3787,78 @@ inline const ::tari::rpc::RangeProof& TransactionOutput::range_proof() const ABS // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.range_proof) return _internal_range_proof(); } -inline void TransactionOutput::unsafe_arena_set_allocated_range_proof(::tari::rpc::RangeProof* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::unsafe_arena_set_allocated_range_proof( + ::tari::rpc::RangeProof* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.range_proof_); } _impl_.range_proof_ = reinterpret_cast<::tari::rpc::RangeProof*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + _impl_._has_bits_[0] |= 0x00000100u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000100u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionOutput.range_proof) } -inline ::tari::rpc::RangeProof* TransactionOutput::release_range_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::RangeProof* PROTOBUF_NULLABLE TransactionOutput::release_range_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000100u; ::tari::rpc::RangeProof* released = _impl_.range_proof_; _impl_.range_proof_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::RangeProof* TransactionOutput::unsafe_arena_release_range_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::RangeProof* PROTOBUF_NULLABLE TransactionOutput::unsafe_arena_release_range_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.range_proof) - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000100u; ::tari::rpc::RangeProof* temp = _impl_.range_proof_; _impl_.range_proof_ = nullptr; return temp; } -inline ::tari::rpc::RangeProof* TransactionOutput::_internal_mutable_range_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::RangeProof* PROTOBUF_NONNULL TransactionOutput::_internal_mutable_range_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.range_proof_ == nullptr) { 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; +inline ::tari::rpc::RangeProof* PROTOBUF_NONNULL TransactionOutput::mutable_range_proof() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000100u; ::tari::rpc::RangeProof* _msg = _internal_mutable_range_proof(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.range_proof) return _msg; } -inline void TransactionOutput::set_allocated_range_proof(::tari::rpc::RangeProof* value) { +inline void TransactionOutput::set_allocated_range_proof(::tari::rpc::RangeProof* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.range_proof_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + _impl_._has_bits_[0] |= 0x00000100u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000100u; } _impl_.range_proof_ = reinterpret_cast<::tari::rpc::RangeProof*>(value); @@ -3488,162 +3867,207 @@ inline void TransactionOutput::set_allocated_range_proof(::tari::rpc::RangeProof // bytes hash = 4; inline void TransactionOutput::clear_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.hash_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& TransactionOutput::hash() const +inline const ::std::string& TransactionOutput::hash() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.hash) return _internal_hash(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_hash(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.hash) } -inline std::string* TransactionOutput::mutable_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_hash(); +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::mutable_hash() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_hash(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.hash) return _s; } -inline const std::string& TransactionOutput::_internal_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionOutput::_internal_hash() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.hash_.Get(); } -inline void TransactionOutput::_internal_set_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::_internal_set_hash(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.hash_.Set(value, GetArena()); } -inline std::string* TransactionOutput::_internal_mutable_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::_internal_mutable_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.hash_.Mutable( GetArena()); } -inline std::string* TransactionOutput::release_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionOutput::release_hash() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.hash) - return _impl_.hash_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.hash_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.hash_.Set("", GetArena()); + } + return released; } -inline void TransactionOutput::set_allocated_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::set_allocated_hash(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.hash_.IsDefault()) { - _impl_.hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.hash_.IsDefault()) { + _impl_.hash_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.hash) } // bytes script = 5; inline void TransactionOutput::clear_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.script_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& TransactionOutput::script() const +inline const ::std::string& TransactionOutput::script() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.script) return _internal_script(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_script(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_script(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.script) } -inline std::string* TransactionOutput::mutable_script() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script(); +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::mutable_script() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_script(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.script) return _s; } -inline const std::string& TransactionOutput::_internal_script() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionOutput::_internal_script() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.script_.Get(); } -inline void TransactionOutput::_internal_set_script(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::_internal_set_script(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.script_.Set(value, GetArena()); } -inline std::string* TransactionOutput::_internal_mutable_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::_internal_mutable_script() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.script_.Mutable( GetArena()); } -inline std::string* TransactionOutput::release_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionOutput::release_script() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.script) - return _impl_.script_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.script_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.script_.Set("", GetArena()); + } + return released; } -inline void TransactionOutput::set_allocated_script(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::set_allocated_script(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.script_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_.IsDefault()) { - _impl_.script_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.script_.IsDefault()) { + _impl_.script_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.script) } // bytes sender_offset_public_key = 6; inline void TransactionOutput::clear_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sender_offset_public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& TransactionOutput::sender_offset_public_key() const +inline const ::std::string& TransactionOutput::sender_offset_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.sender_offset_public_key) return _internal_sender_offset_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_sender_offset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_sender_offset_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.sender_offset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.sender_offset_public_key) } -inline std::string* TransactionOutput::mutable_sender_offset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_sender_offset_public_key(); +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::mutable_sender_offset_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_sender_offset_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.sender_offset_public_key) return _s; } -inline const std::string& TransactionOutput::_internal_sender_offset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionOutput::_internal_sender_offset_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.sender_offset_public_key_.Get(); } -inline void TransactionOutput::_internal_set_sender_offset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::_internal_set_sender_offset_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _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); +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::_internal_mutable_sender_offset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.sender_offset_public_key_.Mutable( GetArena()); } -inline std::string* TransactionOutput::release_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionOutput::release_sender_offset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.sender_offset_public_key) - return _impl_.sender_offset_public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.sender_offset_public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.sender_offset_public_key_.Set("", GetArena()); + } + return released; } -inline void TransactionOutput::set_allocated_sender_offset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::set_allocated_sender_offset_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } _impl_.sender_offset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sender_offset_public_key_.IsDefault()) { - _impl_.sender_offset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.sender_offset_public_key_.IsDefault()) { + _impl_.sender_offset_public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.sender_offset_public_key) } // .tari.rpc.ComAndPubSignature metadata_signature = 7; inline bool TransactionOutput::has_metadata_signature() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; PROTOBUF_ASSUME(!value || _impl_.metadata_signature_ != nullptr); return value; } inline const ::tari::rpc::ComAndPubSignature& TransactionOutput::_internal_metadata_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::ComAndPubSignature* p = _impl_.metadata_signature_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ComAndPubSignature_default_instance_); } @@ -3651,76 +4075,78 @@ inline const ::tari::rpc::ComAndPubSignature& TransactionOutput::metadata_signat // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.metadata_signature) return _internal_metadata_signature(); } -inline void TransactionOutput::unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::unsafe_arena_set_allocated_metadata_signature( + ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_signature_); } _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + _impl_._has_bits_[0] |= 0x00000200u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000200u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionOutput.metadata_signature) } -inline ::tari::rpc::ComAndPubSignature* TransactionOutput::release_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE TransactionOutput::release_metadata_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000200u; ::tari::rpc::ComAndPubSignature* released = _impl_.metadata_signature_; _impl_.metadata_signature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::ComAndPubSignature* TransactionOutput::unsafe_arena_release_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE TransactionOutput::unsafe_arena_release_metadata_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.metadata_signature) - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000200u; ::tari::rpc::ComAndPubSignature* temp = _impl_.metadata_signature_; _impl_.metadata_signature_ = nullptr; return temp; } -inline ::tari::rpc::ComAndPubSignature* TransactionOutput::_internal_mutable_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL TransactionOutput::_internal_mutable_metadata_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_signature_ == nullptr) { 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; +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL TransactionOutput::mutable_metadata_signature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000200u; ::tari::rpc::ComAndPubSignature* _msg = _internal_mutable_metadata_signature(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.metadata_signature) return _msg; } -inline void TransactionOutput::set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value) { +inline void TransactionOutput::set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_signature_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + _impl_._has_bits_[0] |= 0x00000200u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000200u; } _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); @@ -3729,58 +4155,74 @@ inline void TransactionOutput::set_allocated_metadata_signature(::tari::rpc::Com // bytes covenant = 8; inline void TransactionOutput::clear_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.covenant_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000010u; } -inline const std::string& TransactionOutput::covenant() const +inline const ::std::string& TransactionOutput::covenant() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.covenant) return _internal_covenant(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_covenant(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_covenant(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.covenant_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.covenant) } -inline std::string* TransactionOutput::mutable_covenant() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_covenant(); +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::mutable_covenant() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_covenant(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.covenant) return _s; } -inline const std::string& TransactionOutput::_internal_covenant() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionOutput::_internal_covenant() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.covenant_.Get(); } -inline void TransactionOutput::_internal_set_covenant(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::_internal_set_covenant(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.covenant_.Set(value, GetArena()); } -inline std::string* TransactionOutput::_internal_mutable_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::_internal_mutable_covenant() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; return _impl_.covenant_.Mutable( GetArena()); } -inline std::string* TransactionOutput::release_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionOutput::release_covenant() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.covenant) - return _impl_.covenant_.Release(); + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000010u; + auto* released = _impl_.covenant_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.covenant_.Set("", GetArena()); + } + return released; } -inline void TransactionOutput::set_allocated_covenant(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::set_allocated_covenant(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000010u; + } else { + _impl_._has_bits_[0] &= ~0x00000010u; + } _impl_.covenant_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.covenant_.IsDefault()) { - _impl_.covenant_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.covenant_.IsDefault()) { + _impl_.covenant_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.covenant) } // uint32 version = 9; inline void TransactionOutput::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = 0u; + _impl_._has_bits_[0] &= ~0x00000800u; } inline ::uint32_t TransactionOutput::version() const { // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.version) @@ -3788,71 +4230,88 @@ inline ::uint32_t TransactionOutput::version() const { } inline void TransactionOutput::set_version(::uint32_t value) { _internal_set_version(value); + _impl_._has_bits_[0] |= 0x00000800u; // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.version) } inline ::uint32_t TransactionOutput::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.version_; } inline void TransactionOutput::_internal_set_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = value; } // bytes encrypted_data = 10; inline void TransactionOutput::clear_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.encrypted_data_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000020u; } -inline const std::string& TransactionOutput::encrypted_data() const +inline const ::std::string& TransactionOutput::encrypted_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.encrypted_data) return _internal_encrypted_data(); } template -inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_encrypted_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_encrypted_data(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; _impl_.encrypted_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.encrypted_data) } -inline std::string* TransactionOutput::mutable_encrypted_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_encrypted_data(); +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::mutable_encrypted_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_encrypted_data(); // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.encrypted_data) return _s; } -inline const std::string& TransactionOutput::_internal_encrypted_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& TransactionOutput::_internal_encrypted_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.encrypted_data_.Get(); } -inline void TransactionOutput::_internal_set_encrypted_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::_internal_set_encrypted_data(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; _impl_.encrypted_data_.Set(value, GetArena()); } -inline std::string* TransactionOutput::_internal_mutable_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::_internal_mutable_encrypted_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; return _impl_.encrypted_data_.Mutable( GetArena()); } -inline std::string* TransactionOutput::release_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE TransactionOutput::release_encrypted_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.encrypted_data) - return _impl_.encrypted_data_.Release(); + if ((_impl_._has_bits_[0] & 0x00000020u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000020u; + auto* released = _impl_.encrypted_data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.encrypted_data_.Set("", GetArena()); + } + return released; } -inline void TransactionOutput::set_allocated_encrypted_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void TransactionOutput::set_allocated_encrypted_data(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000020u; + } else { + _impl_._has_bits_[0] &= ~0x00000020u; + } _impl_.encrypted_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.encrypted_data_.IsDefault()) { - _impl_.encrypted_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.encrypted_data_.IsDefault()) { + _impl_.encrypted_data_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.encrypted_data) } // uint64 minimum_value_promise = 11; inline void TransactionOutput::clear_minimum_value_promise() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.minimum_value_promise_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000400u; } inline ::uint64_t TransactionOutput::minimum_value_promise() const { // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.minimum_value_promise) @@ -3860,25 +4319,92 @@ inline ::uint64_t TransactionOutput::minimum_value_promise() const { } inline void TransactionOutput::set_minimum_value_promise(::uint64_t value) { _internal_set_minimum_value_promise(value); + _impl_._has_bits_[0] |= 0x00000400u; // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.minimum_value_promise) } inline ::uint64_t TransactionOutput::_internal_minimum_value_promise() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.minimum_value_promise_; } inline void TransactionOutput::_internal_set_minimum_value_promise(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.minimum_value_promise_ = value; } +// bytes payment_reference = 12; +inline void TransactionOutput::clear_payment_reference() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.payment_reference_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000040u; +} +inline const ::std::string& TransactionOutput::payment_reference() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.payment_reference) + return _internal_payment_reference(); +} +template +PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_payment_reference(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; + _impl_.payment_reference_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.payment_reference) +} +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::mutable_payment_reference() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_payment_reference(); + // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.payment_reference) + return _s; +} +inline const ::std::string& TransactionOutput::_internal_payment_reference() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.payment_reference_.Get(); +} +inline void TransactionOutput::_internal_set_payment_reference(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; + _impl_.payment_reference_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL TransactionOutput::_internal_mutable_payment_reference() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; + return _impl_.payment_reference_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE TransactionOutput::release_payment_reference() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.payment_reference) + if ((_impl_._has_bits_[0] & 0x00000040u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000040u; + auto* released = _impl_.payment_reference_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.payment_reference_.Set("", GetArena()); + } + return released; +} +inline void TransactionOutput::set_allocated_payment_reference(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000040u; + } else { + _impl_._has_bits_[0] &= ~0x00000040u; + } + _impl_.payment_reference_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.payment_reference_.IsDefault()) { + _impl_.payment_reference_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.payment_reference) +} + // ------------------------------------------------------------------- // OutputFeatures // uint32 version = 1; inline void OutputFeatures::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = 0u; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint32_t OutputFeatures::version() const { // @@protoc_insertion_point(field_get:tari.rpc.OutputFeatures.version) @@ -3886,21 +4412,23 @@ inline ::uint32_t OutputFeatures::version() const { } inline void OutputFeatures::set_version(::uint32_t value) { _internal_set_version(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.OutputFeatures.version) } inline ::uint32_t OutputFeatures::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.version_; } inline void OutputFeatures::_internal_set_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = value; } // uint32 output_type = 2; inline void OutputFeatures::clear_output_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.output_type_ = 0u; + _impl_._has_bits_[0] &= ~0x00000008u; } inline ::uint32_t OutputFeatures::output_type() const { // @@protoc_insertion_point(field_get:tari.rpc.OutputFeatures.output_type) @@ -3908,21 +4436,23 @@ inline ::uint32_t OutputFeatures::output_type() const { } inline void OutputFeatures::set_output_type(::uint32_t value) { _internal_set_output_type(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.OutputFeatures.output_type) } inline ::uint32_t OutputFeatures::_internal_output_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.output_type_; } inline void OutputFeatures::_internal_set_output_type(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.output_type_ = value; } // uint64 maturity = 3; inline void OutputFeatures::clear_maturity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.maturity_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000010u; } inline ::uint64_t OutputFeatures::maturity() const { // @@protoc_insertion_point(field_get:tari.rpc.OutputFeatures.maturity) @@ -3930,75 +4460,91 @@ inline ::uint64_t OutputFeatures::maturity() const { } inline void OutputFeatures::set_maturity(::uint64_t value) { _internal_set_maturity(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:tari.rpc.OutputFeatures.maturity) } inline ::uint64_t OutputFeatures::_internal_maturity() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.maturity_; } inline void OutputFeatures::_internal_set_maturity(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.maturity_ = value; } // bytes coinbase_extra = 4; inline void OutputFeatures::clear_coinbase_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.coinbase_extra_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& OutputFeatures::coinbase_extra() const +inline const ::std::string& OutputFeatures::coinbase_extra() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.OutputFeatures.coinbase_extra) return _internal_coinbase_extra(); } template -inline PROTOBUF_ALWAYS_INLINE void OutputFeatures::set_coinbase_extra(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void OutputFeatures::set_coinbase_extra(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.coinbase_extra_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.OutputFeatures.coinbase_extra) } -inline std::string* OutputFeatures::mutable_coinbase_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_coinbase_extra(); +inline ::std::string* PROTOBUF_NONNULL OutputFeatures::mutable_coinbase_extra() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_coinbase_extra(); // @@protoc_insertion_point(field_mutable:tari.rpc.OutputFeatures.coinbase_extra) return _s; } -inline const std::string& OutputFeatures::_internal_coinbase_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& OutputFeatures::_internal_coinbase_extra() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.coinbase_extra_.Get(); } -inline void OutputFeatures::_internal_set_coinbase_extra(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void OutputFeatures::_internal_set_coinbase_extra(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.coinbase_extra_.Set(value, GetArena()); } -inline std::string* OutputFeatures::_internal_mutable_coinbase_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL OutputFeatures::_internal_mutable_coinbase_extra() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.coinbase_extra_.Mutable( GetArena()); } -inline std::string* OutputFeatures::release_coinbase_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE OutputFeatures::release_coinbase_extra() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.OutputFeatures.coinbase_extra) - return _impl_.coinbase_extra_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.coinbase_extra_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.coinbase_extra_.Set("", GetArena()); + } + return released; } -inline void OutputFeatures::set_allocated_coinbase_extra(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void OutputFeatures::set_allocated_coinbase_extra(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.coinbase_extra_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.coinbase_extra_.IsDefault()) { - _impl_.coinbase_extra_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.coinbase_extra_.IsDefault()) { + _impl_.coinbase_extra_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.OutputFeatures.coinbase_extra) } // .tari.rpc.SideChainFeature sidechain_feature = 5; inline bool OutputFeatures::has_sidechain_feature() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; PROTOBUF_ASSUME(!value || _impl_.sidechain_feature_ != nullptr); return value; } inline const ::tari::rpc::SideChainFeature& OutputFeatures::_internal_sidechain_feature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::SideChainFeature* p = _impl_.sidechain_feature_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_SideChainFeature_default_instance_); } @@ -4006,76 +4552,78 @@ inline const ::tari::rpc::SideChainFeature& OutputFeatures::sidechain_feature() // @@protoc_insertion_point(field_get:tari.rpc.OutputFeatures.sidechain_feature) return _internal_sidechain_feature(); } -inline void OutputFeatures::unsafe_arena_set_allocated_sidechain_feature(::tari::rpc::SideChainFeature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void OutputFeatures::unsafe_arena_set_allocated_sidechain_feature( + ::tari::rpc::SideChainFeature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sidechain_feature_); } _impl_.sidechain_feature_ = reinterpret_cast<::tari::rpc::SideChainFeature*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.OutputFeatures.sidechain_feature) } -inline ::tari::rpc::SideChainFeature* OutputFeatures::release_sidechain_feature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::SideChainFeature* PROTOBUF_NULLABLE OutputFeatures::release_sidechain_feature() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000002u; ::tari::rpc::SideChainFeature* released = _impl_.sidechain_feature_; _impl_.sidechain_feature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::SideChainFeature* OutputFeatures::unsafe_arena_release_sidechain_feature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::SideChainFeature* PROTOBUF_NULLABLE OutputFeatures::unsafe_arena_release_sidechain_feature() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.OutputFeatures.sidechain_feature) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000002u; ::tari::rpc::SideChainFeature* temp = _impl_.sidechain_feature_; _impl_.sidechain_feature_ = nullptr; return temp; } -inline ::tari::rpc::SideChainFeature* OutputFeatures::_internal_mutable_sidechain_feature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::SideChainFeature* PROTOBUF_NONNULL OutputFeatures::_internal_mutable_sidechain_feature() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.sidechain_feature_ == nullptr) { 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; +inline ::tari::rpc::SideChainFeature* PROTOBUF_NONNULL OutputFeatures::mutable_sidechain_feature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::tari::rpc::SideChainFeature* _msg = _internal_mutable_sidechain_feature(); // @@protoc_insertion_point(field_mutable:tari.rpc.OutputFeatures.sidechain_feature) return _msg; } -inline void OutputFeatures::set_allocated_sidechain_feature(::tari::rpc::SideChainFeature* value) { +inline void OutputFeatures::set_allocated_sidechain_feature(::tari::rpc::SideChainFeature* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sidechain_feature_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000002u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.sidechain_feature_ = reinterpret_cast<::tari::rpc::SideChainFeature*>(value); @@ -4084,8 +4632,9 @@ inline void OutputFeatures::set_allocated_sidechain_feature(::tari::rpc::SideCha // uint32 range_proof_type = 6; inline void OutputFeatures::clear_range_proof_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.range_proof_type_ = 0u; + _impl_._has_bits_[0] &= ~0x00000020u; } inline ::uint32_t OutputFeatures::range_proof_type() const { // @@protoc_insertion_point(field_get:tari.rpc.OutputFeatures.range_proof_type) @@ -4093,14 +4642,15 @@ inline ::uint32_t OutputFeatures::range_proof_type() const { } inline void OutputFeatures::set_range_proof_type(::uint32_t value) { _internal_set_range_proof_type(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:tari.rpc.OutputFeatures.range_proof_type) } inline ::uint32_t OutputFeatures::_internal_range_proof_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.range_proof_type_; } inline void OutputFeatures::_internal_set_range_proof_type(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.range_proof_type_ = value; } @@ -4116,18 +4666,18 @@ inline int AggregateBody::inputs_size() const { return _internal_inputs_size(); } inline void AggregateBody::clear_inputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.inputs_.Clear(); } -inline ::tari::rpc::TransactionInput* AggregateBody::mutable_inputs(int index) +inline ::tari::rpc::TransactionInput* PROTOBUF_NONNULL AggregateBody::mutable_inputs(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.AggregateBody.inputs) return _internal_mutable_inputs()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* AggregateBody::mutable_inputs() +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* PROTOBUF_NONNULL AggregateBody::mutable_inputs() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.AggregateBody.inputs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_inputs(); } inline const ::tari::rpc::TransactionInput& AggregateBody::inputs(int index) const @@ -4135,8 +4685,9 @@ inline const ::tari::rpc::TransactionInput& AggregateBody::inputs(int index) con // @@protoc_insertion_point(field_get:tari.rpc.AggregateBody.inputs) return _internal_inputs().Get(index); } -inline ::tari::rpc::TransactionInput* AggregateBody::add_inputs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TransactionInput* PROTOBUF_NONNULL AggregateBody::add_inputs() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); ::tari::rpc::TransactionInput* _add = _internal_mutable_inputs()->Add(); // @@protoc_insertion_point(field_add:tari.rpc.AggregateBody.inputs) return _add; @@ -4148,12 +4699,12 @@ inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput> } inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>& AggregateBody::_internal_inputs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.inputs_; } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* PROTOBUF_NONNULL AggregateBody::_internal_mutable_inputs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.inputs_; } @@ -4165,18 +4716,18 @@ inline int AggregateBody::outputs_size() const { return _internal_outputs_size(); } inline void AggregateBody::clear_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.outputs_.Clear(); } -inline ::tari::rpc::TransactionOutput* AggregateBody::mutable_outputs(int index) +inline ::tari::rpc::TransactionOutput* PROTOBUF_NONNULL AggregateBody::mutable_outputs(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.AggregateBody.outputs) return _internal_mutable_outputs()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* AggregateBody::mutable_outputs() +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* PROTOBUF_NONNULL AggregateBody::mutable_outputs() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.AggregateBody.outputs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_outputs(); } inline const ::tari::rpc::TransactionOutput& AggregateBody::outputs(int index) const @@ -4184,8 +4735,9 @@ inline const ::tari::rpc::TransactionOutput& AggregateBody::outputs(int index) c // @@protoc_insertion_point(field_get:tari.rpc.AggregateBody.outputs) return _internal_outputs().Get(index); } -inline ::tari::rpc::TransactionOutput* AggregateBody::add_outputs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TransactionOutput* PROTOBUF_NONNULL AggregateBody::add_outputs() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); ::tari::rpc::TransactionOutput* _add = _internal_mutable_outputs()->Add(); // @@protoc_insertion_point(field_add:tari.rpc.AggregateBody.outputs) return _add; @@ -4197,12 +4749,12 @@ inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput } inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& AggregateBody::_internal_outputs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.outputs_; } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* PROTOBUF_NONNULL AggregateBody::_internal_mutable_outputs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.outputs_; } @@ -4214,18 +4766,18 @@ inline int AggregateBody::kernels_size() const { return _internal_kernels_size(); } inline void AggregateBody::clear_kernels() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.kernels_.Clear(); } -inline ::tari::rpc::TransactionKernel* AggregateBody::mutable_kernels(int index) +inline ::tari::rpc::TransactionKernel* PROTOBUF_NONNULL AggregateBody::mutable_kernels(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.AggregateBody.kernels) return _internal_mutable_kernels()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* AggregateBody::mutable_kernels() +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* PROTOBUF_NONNULL AggregateBody::mutable_kernels() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.AggregateBody.kernels) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_kernels(); } inline const ::tari::rpc::TransactionKernel& AggregateBody::kernels(int index) const @@ -4233,8 +4785,9 @@ inline const ::tari::rpc::TransactionKernel& AggregateBody::kernels(int index) c // @@protoc_insertion_point(field_get:tari.rpc.AggregateBody.kernels) return _internal_kernels().Get(index); } -inline ::tari::rpc::TransactionKernel* AggregateBody::add_kernels() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::TransactionKernel* PROTOBUF_NONNULL AggregateBody::add_kernels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); ::tari::rpc::TransactionKernel* _add = _internal_mutable_kernels()->Add(); // @@protoc_insertion_point(field_add:tari.rpc.AggregateBody.kernels) return _add; @@ -4246,12 +4799,12 @@ inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel } inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>& AggregateBody::_internal_kernels() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.kernels_; } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* PROTOBUF_NONNULL AggregateBody::_internal_mutable_kernels() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.kernels_; } @@ -4261,67 +4814,82 @@ AggregateBody::_internal_mutable_kernels() { // bytes offset = 1; inline void Transaction::clear_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.offset_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& Transaction::offset() const +inline const ::std::string& Transaction::offset() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.Transaction.offset) return _internal_offset(); } template -inline PROTOBUF_ALWAYS_INLINE void Transaction::set_offset(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void Transaction::set_offset(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.offset_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Transaction.offset) } -inline std::string* Transaction::mutable_offset() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_offset(); +inline ::std::string* PROTOBUF_NONNULL Transaction::mutable_offset() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_offset(); // @@protoc_insertion_point(field_mutable:tari.rpc.Transaction.offset) return _s; } -inline const std::string& Transaction::_internal_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& Transaction::_internal_offset() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.offset_.Get(); } -inline void Transaction::_internal_set_offset(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Transaction::_internal_set_offset(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.offset_.Set(value, GetArena()); } -inline std::string* Transaction::_internal_mutable_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL Transaction::_internal_mutable_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.offset_.Mutable( GetArena()); } -inline std::string* Transaction::release_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE Transaction::release_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Transaction.offset) - return _impl_.offset_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.offset_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.offset_.Set("", GetArena()); + } + return released; } -inline void Transaction::set_allocated_offset(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Transaction::set_allocated_offset(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.offset_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.offset_.IsDefault()) { - _impl_.offset_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.offset_.IsDefault()) { + _impl_.offset_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.Transaction.offset) } // .tari.rpc.AggregateBody body = 2; inline bool Transaction::has_body() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; PROTOBUF_ASSUME(!value || _impl_.body_ != nullptr); return value; } inline void Transaction::clear_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.body_ != nullptr) _impl_.body_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::tari::rpc::AggregateBody& Transaction::_internal_body() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::AggregateBody* p = _impl_.body_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_AggregateBody_default_instance_); } @@ -4329,76 +4897,78 @@ inline const ::tari::rpc::AggregateBody& Transaction::body() const ABSL_ATTRIBUT // @@protoc_insertion_point(field_get:tari.rpc.Transaction.body) return _internal_body(); } -inline void Transaction::unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Transaction::unsafe_arena_set_allocated_body( + ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.body_); } _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000004u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000004u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.Transaction.body) } -inline ::tari::rpc::AggregateBody* Transaction::release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE Transaction::release_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000004u; ::tari::rpc::AggregateBody* released = _impl_.body_; _impl_.body_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::AggregateBody* Transaction::unsafe_arena_release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::AggregateBody* PROTOBUF_NULLABLE Transaction::unsafe_arena_release_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Transaction.body) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000004u; ::tari::rpc::AggregateBody* temp = _impl_.body_; _impl_.body_ = nullptr; return temp; } -inline ::tari::rpc::AggregateBody* Transaction::_internal_mutable_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::AggregateBody* PROTOBUF_NONNULL Transaction::_internal_mutable_body() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.body_ == nullptr) { 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; +inline ::tari::rpc::AggregateBody* PROTOBUF_NONNULL Transaction::mutable_body() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::tari::rpc::AggregateBody* _msg = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:tari.rpc.Transaction.body) return _msg; } -inline void Transaction::set_allocated_body(::tari::rpc::AggregateBody* value) { +inline void Transaction::set_allocated_body(::tari::rpc::AggregateBody* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.body_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.body_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000004u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(value); @@ -4407,51 +4977,66 @@ inline void Transaction::set_allocated_body(::tari::rpc::AggregateBody* value) { // bytes script_offset = 3; inline void Transaction::clear_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.script_offset_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& Transaction::script_offset() const +inline const ::std::string& Transaction::script_offset() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.Transaction.script_offset) return _internal_script_offset(); } template -inline PROTOBUF_ALWAYS_INLINE void Transaction::set_script_offset(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void Transaction::set_script_offset(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.script_offset_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Transaction.script_offset) } -inline std::string* Transaction::mutable_script_offset() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script_offset(); +inline ::std::string* PROTOBUF_NONNULL Transaction::mutable_script_offset() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_script_offset(); // @@protoc_insertion_point(field_mutable:tari.rpc.Transaction.script_offset) return _s; } -inline const std::string& Transaction::_internal_script_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& Transaction::_internal_script_offset() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.script_offset_.Get(); } -inline void Transaction::_internal_set_script_offset(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Transaction::_internal_set_script_offset(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.script_offset_.Set(value, GetArena()); } -inline std::string* Transaction::_internal_mutable_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL Transaction::_internal_mutable_script_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.script_offset_.Mutable( GetArena()); } -inline std::string* Transaction::release_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE Transaction::release_script_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Transaction.script_offset) - return _impl_.script_offset_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.script_offset_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.script_offset_.Set("", GetArena()); + } + return released; } -inline void Transaction::set_allocated_script_offset(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Transaction::set_allocated_script_offset(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.script_offset_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_offset_.IsDefault()) { - _impl_.script_offset_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.script_offset_.IsDefault()) { + _impl_.script_offset_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.Transaction.script_offset) } @@ -4461,8 +5046,9 @@ inline void Transaction::set_allocated_script_offset(std::string* value) { // uint64 value = 1; inline void UnblindedOutput::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000400u; } inline ::uint64_t UnblindedOutput::value() const { // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.value) @@ -4470,80 +5056,96 @@ inline ::uint64_t UnblindedOutput::value() const { } inline void UnblindedOutput::set_value(::uint64_t value) { _internal_set_value(value); + _impl_._has_bits_[0] |= 0x00000400u; // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.value) } inline ::uint64_t UnblindedOutput::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.value_; } inline void UnblindedOutput::_internal_set_value(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_ = value; } // bytes spending_key = 2; inline void UnblindedOutput::clear_spending_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.spending_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& UnblindedOutput::spending_key() const +inline const ::std::string& UnblindedOutput::spending_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.spending_key) return _internal_spending_key(); } template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_spending_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_spending_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.spending_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.spending_key) } -inline std::string* UnblindedOutput::mutable_spending_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_spending_key(); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::mutable_spending_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_spending_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.spending_key) return _s; } -inline const std::string& UnblindedOutput::_internal_spending_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& UnblindedOutput::_internal_spending_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.spending_key_.Get(); } -inline void UnblindedOutput::_internal_set_spending_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::_internal_set_spending_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.spending_key_.Set(value, GetArena()); } -inline std::string* UnblindedOutput::_internal_mutable_spending_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::_internal_mutable_spending_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.spending_key_.Mutable( GetArena()); } -inline std::string* UnblindedOutput::release_spending_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE UnblindedOutput::release_spending_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.spending_key) - return _impl_.spending_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.spending_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.spending_key_.Set("", GetArena()); + } + return released; } -inline void UnblindedOutput::set_allocated_spending_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::set_allocated_spending_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.spending_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.spending_key_.IsDefault()) { - _impl_.spending_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.spending_key_.IsDefault()) { + _impl_.spending_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.spending_key) } // .tari.rpc.OutputFeatures features = 3; inline bool UnblindedOutput::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); return value; } inline void UnblindedOutput::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000080u; } inline const ::tari::rpc::OutputFeatures& UnblindedOutput::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::OutputFeatures* p = _impl_.features_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputFeatures_default_instance_); } @@ -4551,76 +5153,78 @@ inline const ::tari::rpc::OutputFeatures& UnblindedOutput::features() const ABSL // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.features) return _internal_features(); } -inline void UnblindedOutput::unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::unsafe_arena_set_allocated_features( + ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000080u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000080u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.UnblindedOutput.features) } -inline ::tari::rpc::OutputFeatures* UnblindedOutput::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE UnblindedOutput::release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000080u; ::tari::rpc::OutputFeatures* released = _impl_.features_; _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::OutputFeatures* UnblindedOutput::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE UnblindedOutput::unsafe_arena_release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.features) - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000080u; ::tari::rpc::OutputFeatures* temp = _impl_.features_; _impl_.features_ = nullptr; return temp; } -inline ::tari::rpc::OutputFeatures* UnblindedOutput::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL UnblindedOutput::_internal_mutable_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ == nullptr) { 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; +inline ::tari::rpc::OutputFeatures* PROTOBUF_NONNULL UnblindedOutput::mutable_features() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000080u; ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.features) return _msg; } -inline void UnblindedOutput::set_allocated_features(::tari::rpc::OutputFeatures* value) { +inline void UnblindedOutput::set_allocated_features(::tari::rpc::OutputFeatures* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.features_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000080u; } else { - _impl_._has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000080u; } _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); @@ -4629,212 +5233,272 @@ inline void UnblindedOutput::set_allocated_features(::tari::rpc::OutputFeatures* // bytes script = 4; inline void UnblindedOutput::clear_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.script_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& UnblindedOutput::script() const +inline const ::std::string& UnblindedOutput::script() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.script) return _internal_script(); } template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_script(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_script(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.script) } -inline std::string* UnblindedOutput::mutable_script() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script(); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::mutable_script() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_script(); // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.script) return _s; } -inline const std::string& UnblindedOutput::_internal_script() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& UnblindedOutput::_internal_script() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.script_.Get(); } -inline void UnblindedOutput::_internal_set_script(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::_internal_set_script(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.script_.Set(value, GetArena()); } -inline std::string* UnblindedOutput::_internal_mutable_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::_internal_mutable_script() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.script_.Mutable( GetArena()); } -inline std::string* UnblindedOutput::release_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE UnblindedOutput::release_script() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.script) - return _impl_.script_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.script_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.script_.Set("", GetArena()); + } + return released; } -inline void UnblindedOutput::set_allocated_script(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::set_allocated_script(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.script_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_.IsDefault()) { - _impl_.script_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.script_.IsDefault()) { + _impl_.script_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.script) } // bytes input_data = 5; inline void UnblindedOutput::clear_input_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.input_data_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& UnblindedOutput::input_data() const +inline const ::std::string& UnblindedOutput::input_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.input_data) return _internal_input_data(); } template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_input_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_input_data(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.input_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.input_data) } -inline std::string* UnblindedOutput::mutable_input_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_input_data(); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::mutable_input_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_input_data(); // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.input_data) return _s; } -inline const std::string& UnblindedOutput::_internal_input_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& UnblindedOutput::_internal_input_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.input_data_.Get(); } -inline void UnblindedOutput::_internal_set_input_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::_internal_set_input_data(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.input_data_.Set(value, GetArena()); } -inline std::string* UnblindedOutput::_internal_mutable_input_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::_internal_mutable_input_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.input_data_.Mutable( GetArena()); } -inline std::string* UnblindedOutput::release_input_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE UnblindedOutput::release_input_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.input_data) - return _impl_.input_data_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.input_data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.input_data_.Set("", GetArena()); + } + return released; } -inline void UnblindedOutput::set_allocated_input_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::set_allocated_input_data(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.input_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.input_data_.IsDefault()) { - _impl_.input_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.input_data_.IsDefault()) { + _impl_.input_data_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.input_data) } // bytes script_private_key = 7; inline void UnblindedOutput::clear_script_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.script_private_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& UnblindedOutput::script_private_key() const +inline const ::std::string& UnblindedOutput::script_private_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.script_private_key) return _internal_script_private_key(); } template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_script_private_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_script_private_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.script_private_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.script_private_key) } -inline std::string* UnblindedOutput::mutable_script_private_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script_private_key(); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::mutable_script_private_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_script_private_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.script_private_key) return _s; } -inline const std::string& UnblindedOutput::_internal_script_private_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& UnblindedOutput::_internal_script_private_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.script_private_key_.Get(); } -inline void UnblindedOutput::_internal_set_script_private_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::_internal_set_script_private_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.script_private_key_.Set(value, GetArena()); } -inline std::string* UnblindedOutput::_internal_mutable_script_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::_internal_mutable_script_private_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.script_private_key_.Mutable( GetArena()); } -inline std::string* UnblindedOutput::release_script_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE UnblindedOutput::release_script_private_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.script_private_key) - return _impl_.script_private_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.script_private_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.script_private_key_.Set("", GetArena()); + } + return released; } -inline void UnblindedOutput::set_allocated_script_private_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::set_allocated_script_private_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } _impl_.script_private_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_private_key_.IsDefault()) { - _impl_.script_private_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.script_private_key_.IsDefault()) { + _impl_.script_private_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.script_private_key) } // bytes sender_offset_public_key = 8; inline void UnblindedOutput::clear_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sender_offset_public_key_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000010u; } -inline const std::string& UnblindedOutput::sender_offset_public_key() const +inline const ::std::string& UnblindedOutput::sender_offset_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.sender_offset_public_key) return _internal_sender_offset_public_key(); } template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_sender_offset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_sender_offset_public_key(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.sender_offset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.sender_offset_public_key) } -inline std::string* UnblindedOutput::mutable_sender_offset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_sender_offset_public_key(); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::mutable_sender_offset_public_key() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_sender_offset_public_key(); // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.sender_offset_public_key) return _s; } -inline const std::string& UnblindedOutput::_internal_sender_offset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& UnblindedOutput::_internal_sender_offset_public_key() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.sender_offset_public_key_.Get(); } -inline void UnblindedOutput::_internal_set_sender_offset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::_internal_set_sender_offset_public_key(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _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); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::_internal_mutable_sender_offset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; return _impl_.sender_offset_public_key_.Mutable( GetArena()); } -inline std::string* UnblindedOutput::release_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE UnblindedOutput::release_sender_offset_public_key() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.sender_offset_public_key) - return _impl_.sender_offset_public_key_.Release(); + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000010u; + auto* released = _impl_.sender_offset_public_key_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.sender_offset_public_key_.Set("", GetArena()); + } + return released; } -inline void UnblindedOutput::set_allocated_sender_offset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::set_allocated_sender_offset_public_key(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000010u; + } else { + _impl_._has_bits_[0] &= ~0x00000010u; + } _impl_.sender_offset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sender_offset_public_key_.IsDefault()) { - _impl_.sender_offset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.sender_offset_public_key_.IsDefault()) { + _impl_.sender_offset_public_key_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.sender_offset_public_key) } // .tari.rpc.ComAndPubSignature metadata_signature = 9; inline bool UnblindedOutput::has_metadata_signature() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; PROTOBUF_ASSUME(!value || _impl_.metadata_signature_ != nullptr); return value; } inline const ::tari::rpc::ComAndPubSignature& UnblindedOutput::_internal_metadata_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::ComAndPubSignature* p = _impl_.metadata_signature_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ComAndPubSignature_default_instance_); } @@ -4842,76 +5506,78 @@ inline const ::tari::rpc::ComAndPubSignature& UnblindedOutput::metadata_signatur // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.metadata_signature) return _internal_metadata_signature(); } -inline void UnblindedOutput::unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::unsafe_arena_set_allocated_metadata_signature( + ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_signature_); } _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + _impl_._has_bits_[0] |= 0x00000100u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000100u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.UnblindedOutput.metadata_signature) } -inline ::tari::rpc::ComAndPubSignature* UnblindedOutput::release_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE UnblindedOutput::release_metadata_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000100u; ::tari::rpc::ComAndPubSignature* released = _impl_.metadata_signature_; _impl_.metadata_signature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::ComAndPubSignature* UnblindedOutput::unsafe_arena_release_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE UnblindedOutput::unsafe_arena_release_metadata_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.metadata_signature) - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000100u; ::tari::rpc::ComAndPubSignature* temp = _impl_.metadata_signature_; _impl_.metadata_signature_ = nullptr; return temp; } -inline ::tari::rpc::ComAndPubSignature* UnblindedOutput::_internal_mutable_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL UnblindedOutput::_internal_mutable_metadata_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_signature_ == nullptr) { 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; +inline ::tari::rpc::ComAndPubSignature* PROTOBUF_NONNULL UnblindedOutput::mutable_metadata_signature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000100u; ::tari::rpc::ComAndPubSignature* _msg = _internal_mutable_metadata_signature(); // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.metadata_signature) return _msg; } -inline void UnblindedOutput::set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value) { +inline void UnblindedOutput::set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_signature_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + _impl_._has_bits_[0] |= 0x00000100u; } else { - _impl_._has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000100u; } _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); @@ -4920,8 +5586,9 @@ inline void UnblindedOutput::set_allocated_metadata_signature(::tari::rpc::ComAn // uint64 script_lock_height = 10; inline void UnblindedOutput::clear_script_lock_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.script_lock_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000800u; } inline ::uint64_t UnblindedOutput::script_lock_height() const { // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.script_lock_height) @@ -4929,121 +5596,153 @@ inline ::uint64_t UnblindedOutput::script_lock_height() const { } inline void UnblindedOutput::set_script_lock_height(::uint64_t value) { _internal_set_script_lock_height(value); + _impl_._has_bits_[0] |= 0x00000800u; // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.script_lock_height) } inline ::uint64_t UnblindedOutput::_internal_script_lock_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.script_lock_height_; } inline void UnblindedOutput::_internal_set_script_lock_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.script_lock_height_ = value; } // bytes covenant = 11; inline void UnblindedOutput::clear_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.covenant_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000020u; } -inline const std::string& UnblindedOutput::covenant() const +inline const ::std::string& UnblindedOutput::covenant() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.covenant) return _internal_covenant(); } template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_covenant(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_covenant(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; _impl_.covenant_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.covenant) } -inline std::string* UnblindedOutput::mutable_covenant() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_covenant(); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::mutable_covenant() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_covenant(); // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.covenant) return _s; } -inline const std::string& UnblindedOutput::_internal_covenant() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& UnblindedOutput::_internal_covenant() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.covenant_.Get(); } -inline void UnblindedOutput::_internal_set_covenant(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::_internal_set_covenant(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; _impl_.covenant_.Set(value, GetArena()); } -inline std::string* UnblindedOutput::_internal_mutable_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::_internal_mutable_covenant() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; return _impl_.covenant_.Mutable( GetArena()); } -inline std::string* UnblindedOutput::release_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE UnblindedOutput::release_covenant() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.covenant) - return _impl_.covenant_.Release(); + if ((_impl_._has_bits_[0] & 0x00000020u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000020u; + auto* released = _impl_.covenant_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.covenant_.Set("", GetArena()); + } + return released; } -inline void UnblindedOutput::set_allocated_covenant(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::set_allocated_covenant(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000020u; + } else { + _impl_._has_bits_[0] &= ~0x00000020u; + } _impl_.covenant_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.covenant_.IsDefault()) { - _impl_.covenant_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.covenant_.IsDefault()) { + _impl_.covenant_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.covenant) } // bytes encrypted_data = 12; inline void UnblindedOutput::clear_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.encrypted_data_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000040u; } -inline const std::string& UnblindedOutput::encrypted_data() const +inline const ::std::string& UnblindedOutput::encrypted_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.encrypted_data) return _internal_encrypted_data(); } template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_encrypted_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_encrypted_data(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; _impl_.encrypted_data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.encrypted_data) } -inline std::string* UnblindedOutput::mutable_encrypted_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_encrypted_data(); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::mutable_encrypted_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_encrypted_data(); // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.encrypted_data) return _s; } -inline const std::string& UnblindedOutput::_internal_encrypted_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& UnblindedOutput::_internal_encrypted_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.encrypted_data_.Get(); } -inline void UnblindedOutput::_internal_set_encrypted_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::_internal_set_encrypted_data(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; _impl_.encrypted_data_.Set(value, GetArena()); } -inline std::string* UnblindedOutput::_internal_mutable_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL UnblindedOutput::_internal_mutable_encrypted_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; return _impl_.encrypted_data_.Mutable( GetArena()); } -inline std::string* UnblindedOutput::release_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE UnblindedOutput::release_encrypted_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.encrypted_data) - return _impl_.encrypted_data_.Release(); + if ((_impl_._has_bits_[0] & 0x00000040u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000040u; + auto* released = _impl_.encrypted_data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.encrypted_data_.Set("", GetArena()); + } + return released; } -inline void UnblindedOutput::set_allocated_encrypted_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::set_allocated_encrypted_data(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000040u; + } else { + _impl_._has_bits_[0] &= ~0x00000040u; + } _impl_.encrypted_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.encrypted_data_.IsDefault()) { - _impl_.encrypted_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.encrypted_data_.IsDefault()) { + _impl_.encrypted_data_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.encrypted_data) } // uint64 minimum_value_promise = 13; inline void UnblindedOutput::clear_minimum_value_promise() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.minimum_value_promise_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00001000u; } inline ::uint64_t UnblindedOutput::minimum_value_promise() const { // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.minimum_value_promise) @@ -5051,25 +5750,26 @@ inline ::uint64_t UnblindedOutput::minimum_value_promise() const { } inline void UnblindedOutput::set_minimum_value_promise(::uint64_t value) { _internal_set_minimum_value_promise(value); + _impl_._has_bits_[0] |= 0x00001000u; // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.minimum_value_promise) } inline ::uint64_t UnblindedOutput::_internal_minimum_value_promise() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.minimum_value_promise_; } inline void UnblindedOutput::_internal_set_minimum_value_promise(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.minimum_value_promise_ = value; } // .tari.rpc.RangeProof range_proof = 14; inline bool UnblindedOutput::has_range_proof() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; PROTOBUF_ASSUME(!value || _impl_.range_proof_ != nullptr); return value; } inline const ::tari::rpc::RangeProof& UnblindedOutput::_internal_range_proof() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::RangeProof* p = _impl_.range_proof_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_RangeProof_default_instance_); } @@ -5077,76 +5777,78 @@ inline const ::tari::rpc::RangeProof& UnblindedOutput::range_proof() const ABSL_ // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.range_proof) return _internal_range_proof(); } -inline void UnblindedOutput::unsafe_arena_set_allocated_range_proof(::tari::rpc::RangeProof* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void UnblindedOutput::unsafe_arena_set_allocated_range_proof( + ::tari::rpc::RangeProof* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.range_proof_); } _impl_.range_proof_ = reinterpret_cast<::tari::rpc::RangeProof*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + _impl_._has_bits_[0] |= 0x00000200u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000200u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.UnblindedOutput.range_proof) } -inline ::tari::rpc::RangeProof* UnblindedOutput::release_range_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::RangeProof* PROTOBUF_NULLABLE UnblindedOutput::release_range_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000200u; ::tari::rpc::RangeProof* released = _impl_.range_proof_; _impl_.range_proof_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::RangeProof* UnblindedOutput::unsafe_arena_release_range_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::RangeProof* PROTOBUF_NULLABLE UnblindedOutput::unsafe_arena_release_range_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.range_proof) - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000200u; ::tari::rpc::RangeProof* temp = _impl_.range_proof_; _impl_.range_proof_ = nullptr; return temp; } -inline ::tari::rpc::RangeProof* UnblindedOutput::_internal_mutable_range_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::RangeProof* PROTOBUF_NONNULL UnblindedOutput::_internal_mutable_range_proof() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.range_proof_ == nullptr) { 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* UnblindedOutput::mutable_range_proof() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000004u; +inline ::tari::rpc::RangeProof* PROTOBUF_NONNULL UnblindedOutput::mutable_range_proof() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000200u; ::tari::rpc::RangeProof* _msg = _internal_mutable_range_proof(); // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.range_proof) return _msg; } -inline void UnblindedOutput::set_allocated_range_proof(::tari::rpc::RangeProof* value) { +inline void UnblindedOutput::set_allocated_range_proof(::tari::rpc::RangeProof* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.range_proof_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + _impl_._has_bits_[0] |= 0x00000200u; } else { - _impl_._has_bits_[0] &= ~0x00000004u; + _impl_._has_bits_[0] &= ~0x00000200u; } _impl_.range_proof_ = reinterpret_cast<::tari::rpc::RangeProof*>(value); @@ -5166,4 +5868,4 @@ inline void UnblindedOutput::set_allocated_range_proof(::tari::rpc::RangeProof* #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_transaction_2eproto_2epb_2eh +#endif // transaction_2eproto_2epb_2eh diff --git a/external/src/Tari/proto/gRPC/transaction.proto b/external/src/Tari/proto/gRPC/transaction.proto index efef3ee..0e8ab2c 100644 --- a/external/src/Tari/proto/gRPC/transaction.proto +++ b/external/src/Tari/proto/gRPC/transaction.proto @@ -115,6 +115,10 @@ message TransactionOutput { bytes encrypted_data = 10; // The minimum value of the commitment that is proven by the range proof (in MicroMinotari) uint64 minimum_value_promise = 11; + // Payment reference (PayRef) - 32-byte Blake2b hash of (block_hash || output_hash) + // This provides a unique, deterministic reference for the output that can be used + // for payment verification without revealing wallet ownership + bytes payment_reference = 12; } // Options for UTXOs diff --git a/external/src/Tari/proto/gRPC/types.grpc.pb.cc b/external/src/Tari/proto/gRPC/types.grpc.pb.cc index 4cc43c7..5a41e48 100644 --- a/external/src/Tari/proto/gRPC/types.grpc.pb.cc +++ b/external/src/Tari/proto/gRPC/types.grpc.pb.cc @@ -19,9 +19,11 @@ #include #include #include +#include namespace tari { namespace rpc { } // namespace tari } // namespace rpc +#include diff --git a/external/src/Tari/proto/gRPC/types.grpc.pb.h b/external/src/Tari/proto/gRPC/types.grpc.pb.h index 9c4e8ec..e96dfe7 100644 --- a/external/src/Tari/proto/gRPC/types.grpc.pb.h +++ b/external/src/Tari/proto/gRPC/types.grpc.pb.h @@ -46,6 +46,7 @@ #include #include #include +#include namespace tari { namespace rpc { @@ -54,4 +55,5 @@ namespace rpc { } // namespace tari +#include #endif // GRPC_types_2eproto__INCLUDED diff --git a/external/src/Tari/proto/gRPC/types.pb.cc b/external/src/Tari/proto/gRPC/types.pb.cc index 09e84f1..4d47719 100644 --- a/external/src/Tari/proto/gRPC/types.pb.cc +++ b/external/src/Tari/proto/gRPC/types.pb.cc @@ -1,18 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: types.proto -// Protobuf C++ Version: 5.26.1 +// Protobuf C++ Version: 6.31.1 #include "types.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -26,15 +29,21 @@ namespace rpc { inline constexpr WeightParams::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : kernel_weight_{::uint64_t{0u}}, + : _cached_size_{0}, + kernel_weight_{::uint64_t{0u}}, input_weight_{::uint64_t{0u}}, output_weight_{::uint64_t{0u}}, - features_and_scripts_bytes_per_gram_{::uint64_t{0u}}, - _cached_size_{0} {} + features_and_scripts_bytes_per_gram_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR WeightParams::WeightParams(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(WeightParams_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct WeightParamsDefaultTypeInternal { PROTOBUF_CONSTEXPR WeightParamsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~WeightParamsDefaultTypeInternal() {} @@ -48,17 +57,23 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr Signature::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : public_nonce_( + : _cached_size_{0}, + public_nonce_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), signature_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR Signature::Signature(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(Signature_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SignatureDefaultTypeInternal { PROTOBUF_CONSTEXPR SignatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SignatureDefaultTypeInternal() {} @@ -72,14 +87,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RangeProof::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : proof_bytes_( + : _cached_size_{0}, + proof_bytes_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR RangeProof::RangeProof(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(RangeProof_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct RangeProofDefaultTypeInternal { PROTOBUF_CONSTEXPR RangeProofDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~RangeProofDefaultTypeInternal() {} @@ -93,13 +114,19 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr Range::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : min_{::uint64_t{0u}}, - max_{::uint64_t{0u}}, - _cached_size_{0} {} + : _cached_size_{0}, + min_{::uint64_t{0u}}, + max_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR Range::Range(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(Range_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct RangeDefaultTypeInternal { PROTOBUF_CONSTEXPR RangeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~RangeDefaultTypeInternal() {} @@ -113,14 +140,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr PowAlgorithmConstants::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : min_difficulty_{::uint64_t{0u}}, + : _cached_size_{0}, + min_difficulty_{::uint64_t{0u}}, max_difficulty_{::uint64_t{0u}}, - target_time_{::uint64_t{0u}}, - _cached_size_{0} {} + target_time_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR PowAlgorithmConstants::PowAlgorithmConstants(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(PowAlgorithmConstants_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PowAlgorithmConstantsDefaultTypeInternal { PROTOBUF_CONSTEXPR PowAlgorithmConstantsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PowAlgorithmConstantsDefaultTypeInternal() {} @@ -134,14 +167,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr PermittedRangeProofs::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : range_proof_types_{}, + : _cached_size_{0}, + range_proof_types_{}, _range_proof_types_cached_byte_size_{0}, - output_type_{static_cast< ::tari::rpc::OutputType >(0)}, - _cached_size_{0} {} + output_type_{static_cast< ::tari::rpc::OutputType >(0)} {} template PROTOBUF_CONSTEXPR PermittedRangeProofs::PermittedRangeProofs(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(PermittedRangeProofs_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PermittedRangeProofsDefaultTypeInternal { PROTOBUF_CONSTEXPR PermittedRangeProofsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PermittedRangeProofsDefaultTypeInternal() {} @@ -152,8 +191,14 @@ struct PermittedRangeProofsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PermittedRangeProofsDefaultTypeInternal _PermittedRangeProofs_default_instance_; - template -PROTOBUF_CONSTEXPR Empty::Empty(::_pbi::ConstantInitialized) {} +template +PROTOBUF_CONSTEXPR Empty::Empty(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(Empty_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct EmptyDefaultTypeInternal { PROTOBUF_CONSTEXPR EmptyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EmptyDefaultTypeInternal() {} @@ -167,7 +212,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr CommitmentSignature::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : public_nonce_( + : _cached_size_{0}, + public_nonce_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), u_( @@ -175,12 +221,17 @@ inline constexpr CommitmentSignature::Impl_::Impl_( ::_pbi::ConstantInitialized()), v_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR CommitmentSignature::CommitmentSignature(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(CommitmentSignature_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CommitmentSignatureDefaultTypeInternal { PROTOBUF_CONSTEXPR CommitmentSignatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CommitmentSignatureDefaultTypeInternal() {} @@ -194,7 +245,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ComAndPubSignature::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : ephemeral_commitment_( + : _cached_size_{0}, + ephemeral_commitment_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), ephemeral_pubkey_( @@ -208,12 +260,17 @@ inline constexpr ComAndPubSignature::Impl_::Impl_( ::_pbi::ConstantInitialized()), u_y_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR ComAndPubSignature::ComAndPubSignature(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ComAndPubSignature_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ComAndPubSignatureDefaultTypeInternal { PROTOBUF_CONSTEXPR ComAndPubSignatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ComAndPubSignatureDefaultTypeInternal() {} @@ -227,12 +284,18 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr BlockHeight::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : block_height_{::uint64_t{0u}}, - _cached_size_{0} {} + : _cached_size_{0}, + block_height_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR BlockHeight::BlockHeight(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(BlockHeight_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct BlockHeightDefaultTypeInternal { PROTOBUF_CONSTEXPR BlockHeightDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~BlockHeightDefaultTypeInternal() {} @@ -252,7 +315,13 @@ inline constexpr OutputsVersion::Impl_::Impl_( template PROTOBUF_CONSTEXPR OutputsVersion::OutputsVersion(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(OutputsVersion_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct OutputsVersionDefaultTypeInternal { PROTOBUF_CONSTEXPR OutputsVersionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~OutputsVersionDefaultTypeInternal() {} @@ -263,8 +332,14 @@ struct OutputsVersionDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OutputsVersionDefaultTypeInternal _OutputsVersion_default_instance_; - template -PROTOBUF_CONSTEXPR ConsensusConstants_ProofOfWorkEntry_DoNotUse::ConsensusConstants_ProofOfWorkEntry_DoNotUse(::_pbi::ConstantInitialized) {} +template +PROTOBUF_CONSTEXPR ConsensusConstants_ProofOfWorkEntry_DoNotUse::ConsensusConstants_ProofOfWorkEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ConsensusConstants_ProofOfWorkEntry_DoNotUse::MapEntry(ConsensusConstants_ProofOfWorkEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ConsensusConstants_ProofOfWorkEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ConsensusConstants_ProofOfWorkEntry_DoNotUseDefaultTypeInternal { PROTOBUF_CONSTEXPR ConsensusConstants_ProofOfWorkEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ConsensusConstants_ProofOfWorkEntry_DoNotUseDefaultTypeInternal() {} @@ -304,8 +379,9 @@ inline constexpr ConsensusConstants::Impl_::Impl_( block_weight_kernels_{::uint64_t{0u}}, pre_mine_value_{::uint64_t{0u}}, max_script_byte_size_{::uint64_t{0u}}, - validator_node_validity_period_{::uint64_t{0u}}, effective_from_height_{::uint64_t{0u}}, + blockchain_version_{0u}, + vn_registration_max_vns_initial_epoch_{0u}, max_randomx_seed_height_{::uint64_t{0u}}, epoch_length_{::uint64_t{0u}}, validator_node_registration_min_deposit_amount_{::uint64_t{0u}}, @@ -314,11 +390,17 @@ inline constexpr ConsensusConstants::Impl_::Impl_( inflation_bips_{::uint64_t{0u}}, tail_epoch_length_{::uint64_t{0u}}, max_block_coinbase_count_{::uint64_t{0u}}, - blockchain_version_{0u} {} + vn_registration_max_vns_per_epoch_{0u} {} template PROTOBUF_CONSTEXPR ConsensusConstants::ConsensusConstants(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(ConsensusConstants_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ConsensusConstantsDefaultTypeInternal { PROTOBUF_CONSTEXPR ConsensusConstantsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ConsensusConstantsDefaultTypeInternal() {} @@ -331,148 +413,104 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConsensusConstantsDefaultTypeInternal _ConsensusConstants_default_instance_; } // namespace rpc } // namespace tari -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** +static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL + file_level_enum_descriptors_types_2eproto[2]; +static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_types_2eproto = nullptr; 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) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::Range, _impl_._has_bits_), + 5, // hasbit index offset 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) + 0, + 1, + 0x000, // bitmap + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeight, _impl_._has_bits_), + 4, // hasbit index offset 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) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::Signature, _impl_._has_bits_), + 5, // hasbit index offset 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) + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_._has_bits_), + 8, // hasbit index offset 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) + 0, + 1, + 2, + 3, + 4, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitmentSignature, _impl_._has_bits_), + 6, // hasbit index offset 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) + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgorithmConstants, _impl_._has_bits_), + 6, // hasbit index offset 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) + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _impl_._has_bits_), + 7, // hasbit index offset 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_), + 0, + 1, + 2, + 3, + 0x081, // bitmap 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) + 5, // hasbit index offset 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) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::PermittedRangeProofs, _impl_._has_bits_), + 5, // hasbit index offset 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) + 0, + ~0u, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::RangeProof, _impl_._has_bits_), + 4, // hasbit index offset 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, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, _impl_._has_bits_), + 5, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, _impl_.value_), 0, 1, + 0x081, // bitmap 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) + 38, // hasbit index offset 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_), @@ -489,7 +527,6 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.block_weight_kernels_), PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.pre_mine_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_), @@ -507,59 +544,62 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.inflation_bips_), PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.tail_epoch_length_), PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.max_block_coinbase_count_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.vn_registration_max_vns_initial_epoch_), + PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.vn_registration_max_vns_per_epoch_), + 5, + 20, + 6, + 7, + 8, + 9, + 10, + 11, ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, 0, - ~0u, + 22, ~0u, 1, 2, 3, 4, ~0u, + 23, + 24, + 25, + 26, ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, + 27, + 28, + 29, + 21, + 30, }; static const ::_pbi::MigrationSchema 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)}, - {27, -1, -1, sizeof(::tari::rpc::Signature)}, - {37, -1, -1, sizeof(::tari::rpc::ComAndPubSignature)}, - {50, -1, -1, sizeof(::tari::rpc::CommitmentSignature)}, - {61, -1, -1, sizeof(::tari::rpc::PowAlgorithmConstants)}, - {72, -1, -1, sizeof(::tari::rpc::WeightParams)}, - {84, 94, -1, sizeof(::tari::rpc::OutputsVersion)}, - {96, -1, -1, sizeof(::tari::rpc::PermittedRangeProofs)}, - {106, -1, -1, sizeof(::tari::rpc::RangeProof)}, - {115, 125, -1, sizeof(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse)}, - {127, 169, -1, sizeof(::tari::rpc::ConsensusConstants)}, + {0, sizeof(::tari::rpc::Range)}, + {7, sizeof(::tari::rpc::Empty)}, + {8, sizeof(::tari::rpc::BlockHeight)}, + {13, sizeof(::tari::rpc::Signature)}, + {20, sizeof(::tari::rpc::ComAndPubSignature)}, + {33, sizeof(::tari::rpc::CommitmentSignature)}, + {42, sizeof(::tari::rpc::PowAlgorithmConstants)}, + {51, sizeof(::tari::rpc::WeightParams)}, + {62, sizeof(::tari::rpc::OutputsVersion)}, + {69, sizeof(::tari::rpc::PermittedRangeProofs)}, + {76, sizeof(::tari::rpc::RangeProof)}, + {81, sizeof(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse)}, + {88, sizeof(::tari::rpc::ConsensusConstants)}, }; -static const ::_pb::Message* const file_default_instances[] = { +static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { &::tari::rpc::_Range_default_instance_._instance, &::tari::rpc::_Empty_default_instance_._instance, &::tari::rpc::_BlockHeight_default_instance_._instance, @@ -596,7 +636,7 @@ const char descriptor_table_protodef_types_2eproto[] ABSL_ATTRIBUTE_SECTION_VARI "output_type\030\001 \001(\0162\024.tari.rpc.OutputType\022" "3\n\021range_proof_types\030\002 \003(\0162\030.tari.rpc.Ra" "ngeProofType\"!\n\nRangeProof\022\023\n\013proof_byte" - "s\030\001 \001(\014\"\373\n\n\022ConsensusConstants\022\035\n\025coinba" + "s\030\001 \001(\014\"\255\013\n\022ConsensusConstants\022\035\n\025coinba" "se_min_maturity\030\001 \001(\004\022\032\n\022blockchain_vers" "ion\030\002 \001(\r\022\031\n\021future_time_limit\030\003 \001(\004\022\037\n\027" "difficulty_block_window\030\005 \001(\004\022$\n\034max_blo" @@ -608,8 +648,7 @@ const char descriptor_table_protodef_types_2eproto[] ABSL_ATTRIBUTE_SECTION_VARI "ock_weight_inputs\030\016 \001(\004\022\034\n\024block_weight_" "outputs\030\017 \001(\004\022\034\n\024block_weight_kernels\030\020 " "\001(\004\022\026\n\016pre_mine_value\030\021 \001(\004\022\034\n\024max_scrip" - "t_byte_size\030\022 \001(\004\022&\n\036validator_node_vali" - "dity_period\030\023 \001(\004\022\035\n\025effective_from_heig" + "t_byte_size\030\022 \001(\004\022\035\n\025effective_from_heig" "ht\030\024 \001(\004\0227\n\036valid_blockchain_version_ran" "ge\030\025 \001(\0132\017.tari.rpc.Range\022\037\n\027max_randomx" "_seed_height\030\026 \001(\004\022D\n\rproof_of_work\030\027 \003(" @@ -629,19 +668,22 @@ const char descriptor_table_protodef_types_2eproto[] ABSL_ATTRIBUTE_SECTION_VARI "types\030\" \003(\0132\036.tari.rpc.PermittedRangePro" "ofs\022\026\n\016inflation_bips\030# \001(\004\022\031\n\021tail_epoc" "h_length\030$ \001(\004\022 \n\030max_block_coinbase_cou" - "nt\030% \001(\004\032S\n\020ProofOfWorkEntry\022\013\n\003key\030\001 \001(" - "\r\022.\n\005value\030\002 \001(\0132\037.tari.rpc.PowAlgorithm" - "Constants:\0028\001*s\n\nOutputType\022\014\n\010STANDARD\020" - "\000\022\014\n\010COINBASE\020\001\022\010\n\004BURN\020\002\022\037\n\033VALIDATOR_N" - "ODE_REGISTRATION\020\003\022\036\n\032CODE_TEMPLATE_REGI" - "STRATION\020\004*:\n\016RangeProofType\022\024\n\020BULLETPR" - "OOF_PLUS\020\000\022\022\n\016REVEALED_VALUE\020\001b\006proto3" + "nt\030% \001(\004\022-\n%vn_registration_max_vns_init" + "ial_epoch\030& \001(\r\022)\n!vn_registration_max_v" + "ns_per_epoch\030\' \001(\r\032S\n\020ProofOfWorkEntry\022\013" + "\n\003key\030\001 \001(\r\022.\n\005value\030\002 \001(\0132\037.tari.rpc.Po" + "wAlgorithmConstants:\0028\001*s\n\nOutputType\022\014\n" + "\010STANDARD\020\000\022\014\n\010COINBASE\020\001\022\010\n\004BURN\020\002\022\037\n\033V" + "ALIDATOR_NODE_REGISTRATION\020\003\022\036\n\032CODE_TEM" + "PLATE_REGISTRATION\020\004*:\n\016RangeProofType\022\024" + "\n\020BULLETPROOF_PLUS\020\000\022\022\n\016REVEALED_VALUE\020\001" + "b\006proto3" }; static ::absl::once_flag descriptor_table_types_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_types_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_types_2eproto = { false, false, - 2398, + 2448, descriptor_table_protodef_types_2eproto, "types.proto", &descriptor_table_types_2eproto_once, @@ -651,67 +693,59 @@ const ::_pbi::DescriptorTable descriptor_table_types_2eproto = { schemas, file_default_instances, TableStruct_types_2eproto::offsets, - file_level_metadata_types_2eproto, file_level_enum_descriptors_types_2eproto, file_level_service_descriptors_types_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_types_2eproto_getter() { - return &descriptor_table_types_2eproto; -} namespace tari { namespace rpc { -const ::google::protobuf::EnumDescriptor* OutputType_descriptor() { +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL OutputType_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_types_2eproto); return file_level_enum_descriptors_types_2eproto[0]; } PROTOBUF_CONSTINIT const uint32_t OutputType_internal_data_[] = { 327680u, 0u, }; -bool OutputType_IsValid(int value) { - return 0 <= value && value <= 4; -} -const ::google::protobuf::EnumDescriptor* RangeProofType_descriptor() { +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL RangeProofType_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_types_2eproto); return file_level_enum_descriptors_types_2eproto[1]; } PROTOBUF_CONSTINIT const uint32_t RangeProofType_internal_data_[] = { 131072u, 0u, }; -bool RangeProofType_IsValid(int value) { - return 0 <= value && value <= 1; -} // =================================================================== class Range::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Range, _impl_._has_bits_); }; -Range::Range(::google::protobuf::Arena* arena) +Range::Range(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, Range_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.Range) } Range::Range( - ::google::protobuf::Arena* arena, const Range& from) - : Range(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Range& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, Range_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE Range::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE Range::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void Range::SharedCtor(::_pb::Arena* arena) { +inline void Range::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, min_), @@ -722,52 +756,62 @@ inline void Range::SharedCtor(::_pb::Arena* arena) { } Range::~Range() { // @@protoc_insertion_point(destructor:tari.rpc.Range) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void Range::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void Range::SharedDtor(MessageLite& self) { + Range& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL Range::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Range(arena); +} +constexpr auto Range::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Range), + alignof(Range)); +} +constexpr auto Range::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Range_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.min_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_) - - reinterpret_cast(&_impl_.min_)) + sizeof(_impl_.max_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Range::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Range::ByteSizeLong, + &Range::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Range, _impl_._cached_size_), + false, + }, + &Range::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; } -const char* Range::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Range_class_data_ = + Range::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Range::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Range_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Range_class_data_.tc_table); + return Range_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Range::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +Range::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(Range, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -776,87 +820,128 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Range::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_Range_default_instance_._instance, + Range_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Range, _impl_.max_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Range, _impl_.max_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(Range, _impl_.max_)}}, // uint64 min = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Range, _impl_.min_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Range, _impl_.min_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Range, _impl_.min_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(Range, _impl_.min_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 min = 1; - {PROTOBUF_FIELD_OFFSET(Range, _impl_.min_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(Range, _impl_.min_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 max = 2; - {PROTOBUF_FIELD_OFFSET(Range, _impl_.max_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(Range, _impl_.max_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void Range::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.Range) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* Range::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + ::memset(&_impl_.min_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.max_) - + reinterpret_cast(&_impl_.min_)) + sizeof(_impl_.max_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Range::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Range& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Range::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Range& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Range) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 min = 1; - if (this->_internal_min() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_min(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_min() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_min(), target); + } } // uint64 max = 2; - if (this->_internal_max() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_max(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_max() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_max(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Range) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Range::ByteSizeLong(const MessageLite& base) { + const Range& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t Range::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.Range) + const Range& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.Range) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 min = 1; - if (this->_internal_min() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_min()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // uint64 min = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_min() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_min()); + } + } + // uint64 max = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_max() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_max()); + } + } } - - // uint64 max = 2; - if (this->_internal_max() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_max()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -865,12 +950,20 @@ void Range::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::p ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_min() != 0) { - _this->_impl_.min_ = from._impl_.min_; - } - if (from._internal_max() != 0) { - _this->_impl_.max_ = from._impl_.max_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_min() != 0) { + _this->_impl_.min_ = from._impl_.min_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_max() != 0) { + _this->_impl_.max_ = from._impl_.max_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -881,13 +974,11 @@ void Range::CopyFrom(const Range& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Range::IsInitialized() const { - return true; -} -void Range::InternalSwap(Range* PROTOBUF_RESTRICT other) { - using std::swap; +void Range::InternalSwap(Range* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(Range, _impl_.max_) + sizeof(Range::_impl_.max_) @@ -897,9 +988,7 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -907,14 +996,22 @@ class Empty::_Internal { public: }; -Empty::Empty(::google::protobuf::Arena* arena) +Empty::Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, Empty_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:tari.rpc.Empty) } Empty::Empty( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Empty& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, Empty_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE Empty* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -923,7 +1020,75 @@ Empty::Empty( // @@protoc_insertion_point(copy_constructor:tari.rpc.Empty) } +inline void* PROTOBUF_NONNULL Empty::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Empty(arena); +} +constexpr auto Empty::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Empty), + alignof(Empty)); +} +constexpr auto Empty::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Empty_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Empty::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Empty::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &Empty::ByteSizeLong, + &Empty::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Empty, _impl_._cached_size_), + false, + }, + &Empty::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Empty_class_data_ = + Empty::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Empty::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Empty_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Empty_class_data_.tc_table); + return Empty_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +Empty::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + Empty_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::Empty>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; @@ -932,81 +1097,105 @@ 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 ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class BlockHeight::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(BlockHeight, _impl_._has_bits_); }; -BlockHeight::BlockHeight(::google::protobuf::Arena* arena) +BlockHeight::BlockHeight(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockHeight_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockHeight) } BlockHeight::BlockHeight( - ::google::protobuf::Arena* arena, const BlockHeight& from) - : BlockHeight(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockHeight& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, BlockHeight_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE BlockHeight::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE BlockHeight::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void BlockHeight::SharedCtor(::_pb::Arena* arena) { +inline void BlockHeight::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.block_height_ = {}; } BlockHeight::~BlockHeight() { // @@protoc_insertion_point(destructor:tari.rpc.BlockHeight) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void BlockHeight::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void BlockHeight::SharedDtor(MessageLite& self) { + BlockHeight& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL BlockHeight::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) BlockHeight(arena); +} +constexpr auto BlockHeight::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BlockHeight), + alignof(BlockHeight)); +} +constexpr auto BlockHeight::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_BlockHeight_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.block_height_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &BlockHeight::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &BlockHeight::ByteSizeLong, + &BlockHeight::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(BlockHeight, _impl_._cached_size_), + false, + }, + &BlockHeight::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; } -const char* BlockHeight::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull BlockHeight_class_data_ = + BlockHeight::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +BlockHeight::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&BlockHeight_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(BlockHeight_class_data_.tc_table); + return BlockHeight_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> BlockHeight::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +BlockHeight::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(BlockHeight, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -1015,68 +1204,100 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> BlockHeight::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_BlockHeight_default_instance_._instance, + BlockHeight_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeight, _impl_.block_height_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeight, _impl_.block_height_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(BlockHeight, _impl_.block_height_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 block_height = 1; - {PROTOBUF_FIELD_OFFSET(BlockHeight, _impl_.block_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(BlockHeight, _impl_.block_height_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void BlockHeight::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockHeight) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* BlockHeight::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.block_height_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL BlockHeight::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const BlockHeight& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL BlockHeight::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const BlockHeight& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockHeight) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 block_height = 1; - if (this->_internal_block_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_block_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_block_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_block_height(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockHeight) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t BlockHeight::ByteSizeLong(const MessageLite& base) { + const BlockHeight& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t BlockHeight::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockHeight) + const BlockHeight& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockHeight) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 block_height = 1; - if (this->_internal_block_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_block_height()); + { + // uint64 block_height = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_block_height() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_block_height()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1085,9 +1306,13 @@ void BlockHeight::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goo ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_block_height() != 0) { - _this->_impl_.block_height_ = from._impl_.block_height_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_block_height() != 0) { + _this->_impl_.block_height_ = from._impl_.block_height_; + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1098,110 +1323,131 @@ void BlockHeight::CopyFrom(const BlockHeight& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool BlockHeight::IsInitialized() const { - return true; -} -void BlockHeight::InternalSwap(BlockHeight* PROTOBUF_RESTRICT other) { - using std::swap; +void BlockHeight::InternalSwap(BlockHeight* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.block_height_, other->_impl_.block_height_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.block_height_, other->_impl_.block_height_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class Signature::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Signature, _impl_._has_bits_); }; -Signature::Signature(::google::protobuf::Arena* arena) +Signature::Signature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, Signature_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.Signature) } -inline PROTOBUF_NDEBUG_INLINE Signature::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : public_nonce_(arena, from.public_nonce_), - signature_(arena, from.signature_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE Signature::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::Signature& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + public_nonce_(arena, from.public_nonce_), + signature_(arena, from.signature_) {} Signature::Signature( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Signature& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, Signature_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE Signature* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.Signature) } -inline PROTOBUF_NDEBUG_INLINE Signature::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE Signature::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : public_nonce_(arena), - signature_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + public_nonce_(arena), + signature_(arena) {} -inline void Signature::SharedCtor(::_pb::Arena* arena) { +inline void Signature::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } Signature::~Signature() { // @@protoc_insertion_point(destructor:tari.rpc.Signature) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void Signature::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_nonce_.Destroy(); - _impl_.signature_.Destroy(); - _impl_.~Impl_(); +inline void Signature::SharedDtor(MessageLite& self) { + Signature& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_nonce_.Destroy(); + this_._impl_.signature_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL Signature::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Signature(arena); +} +constexpr auto Signature::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Signature), + alignof(Signature)); +} +constexpr auto Signature::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Signature_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_nonce_.ClearToEmpty(); - _impl_.signature_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Signature::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Signature::ByteSizeLong, + &Signature::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Signature, _impl_._cached_size_), + false, + }, + &Signature::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; } -const char* Signature::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Signature_class_data_ = + Signature::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Signature::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Signature_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Signature_class_data_.tc_table); + return Signature_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Signature::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +Signature::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(Signature, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -1210,7 +1456,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Signature::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_Signature_default_instance_._instance, + Signature_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::Signature>(), // to_prefetch @@ -1218,77 +1465,120 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Signature::_table_ = { }, {{ // bytes signature = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Signature, _impl_.signature_)}}, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Signature, _impl_.signature_)}}, // bytes public_nonce = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Signature, _impl_.public_nonce_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Signature, _impl_.public_nonce_)}}, }}, {{ 65535, 65535 }}, {{ // bytes public_nonce = 1; - {PROTOBUF_FIELD_OFFSET(Signature, _impl_.public_nonce_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Signature, _impl_.public_nonce_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes signature = 2; - {PROTOBUF_FIELD_OFFSET(Signature, _impl_.signature_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Signature, _impl_.signature_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void Signature::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.Signature) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* Signature::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.public_nonce_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.signature_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Signature::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Signature& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Signature::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Signature& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Signature) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes public_nonce = 1; - if (!this->_internal_public_nonce().empty()) { - const std::string& _s = this->_internal_public_nonce(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_public_nonce().empty()) { + const ::std::string& _s = this_._internal_public_nonce(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // bytes signature = 2; - if (!this->_internal_signature().empty()) { - const std::string& _s = this->_internal_signature(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_signature().empty()) { + const ::std::string& _s = this_._internal_signature(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Signature) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Signature::ByteSizeLong(const MessageLite& base) { + const Signature& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t Signature::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.Signature) + const Signature& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.Signature) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes public_nonce = 1; - if (!this->_internal_public_nonce().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_nonce()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // bytes public_nonce = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_public_nonce().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_nonce()); + } + } + // bytes signature = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_signature().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_signature()); + } + } } - - // bytes signature = 2; - if (!this->_internal_signature().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_signature()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1297,12 +1587,28 @@ void Signature::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::googl ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_public_nonce().empty()) { - _this->_internal_set_public_nonce(from._internal_public_nonce()); - } - if (!from._internal_signature().empty()) { - _this->_internal_set_signature(from._internal_signature()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_public_nonce().empty()) { + _this->_internal_set_public_nonce(from._internal_public_nonce()); + } else { + if (_this->_impl_.public_nonce_.IsDefault()) { + _this->_internal_set_public_nonce(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_signature().empty()) { + _this->_internal_set_signature(from._internal_signature()); + } else { + if (_this->_impl_.signature_.IsDefault()) { + _this->_internal_set_signature(""); + } + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1313,125 +1619,143 @@ void Signature::CopyFrom(const Signature& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Signature::IsInitialized() const { - return true; -} -void Signature::InternalSwap(Signature* PROTOBUF_RESTRICT other) { - using std::swap; +void Signature::InternalSwap(Signature* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_nonce_, &other->_impl_.public_nonce_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.signature_, &other->_impl_.signature_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ComAndPubSignature::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_._has_bits_); }; -ComAndPubSignature::ComAndPubSignature(::google::protobuf::Arena* arena) +ComAndPubSignature::ComAndPubSignature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ComAndPubSignature_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.ComAndPubSignature) } -inline PROTOBUF_NDEBUG_INLINE ComAndPubSignature::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : ephemeral_commitment_(arena, from.ephemeral_commitment_), +PROTOBUF_NDEBUG_INLINE ComAndPubSignature::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ComAndPubSignature& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + ephemeral_commitment_(arena, from.ephemeral_commitment_), ephemeral_pubkey_(arena, from.ephemeral_pubkey_), u_a_(arena, from.u_a_), u_x_(arena, from.u_x_), - u_y_(arena, from.u_y_), - _cached_size_{0} {} + u_y_(arena, from.u_y_) {} ComAndPubSignature::ComAndPubSignature( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ComAndPubSignature& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ComAndPubSignature_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ComAndPubSignature* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.ComAndPubSignature) } -inline PROTOBUF_NDEBUG_INLINE ComAndPubSignature::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE ComAndPubSignature::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : ephemeral_commitment_(arena), + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + ephemeral_commitment_(arena), ephemeral_pubkey_(arena), u_a_(arena), u_x_(arena), - u_y_(arena), - _cached_size_{0} {} + u_y_(arena) {} -inline void ComAndPubSignature::SharedCtor(::_pb::Arena* arena) { +inline void ComAndPubSignature::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } ComAndPubSignature::~ComAndPubSignature() { // @@protoc_insertion_point(destructor:tari.rpc.ComAndPubSignature) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void ComAndPubSignature::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.ephemeral_commitment_.Destroy(); - _impl_.ephemeral_pubkey_.Destroy(); - _impl_.u_a_.Destroy(); - _impl_.u_x_.Destroy(); - _impl_.u_y_.Destroy(); - _impl_.~Impl_(); +inline void ComAndPubSignature::SharedDtor(MessageLite& self) { + ComAndPubSignature& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.ephemeral_commitment_.Destroy(); + this_._impl_.ephemeral_pubkey_.Destroy(); + this_._impl_.u_a_.Destroy(); + this_._impl_.u_x_.Destroy(); + this_._impl_.u_y_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL ComAndPubSignature::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ComAndPubSignature(arena); +} +constexpr auto ComAndPubSignature::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ComAndPubSignature), + alignof(ComAndPubSignature)); +} +constexpr auto ComAndPubSignature::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ComAndPubSignature_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.ephemeral_commitment_.ClearToEmpty(); - _impl_.ephemeral_pubkey_.ClearToEmpty(); - _impl_.u_a_.ClearToEmpty(); - _impl_.u_x_.ClearToEmpty(); - _impl_.u_y_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ComAndPubSignature::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ComAndPubSignature::ByteSizeLong, + &ComAndPubSignature::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_._cached_size_), + false, + }, + &ComAndPubSignature::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; } -const char* ComAndPubSignature::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ComAndPubSignature_class_data_ = + ComAndPubSignature::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ComAndPubSignature::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ComAndPubSignature_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ComAndPubSignature_class_data_.tc_table); + return ComAndPubSignature_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 0, 2> ComAndPubSignature::_table_ = { +const ::_pbi::TcParseTable<3, 5, 0, 0, 2> +ComAndPubSignature::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_._has_bits_), 0, // no _extensions_ 5, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -1440,7 +1764,8 @@ const ::_pbi::TcParseTable<3, 5, 0, 0, 2> ComAndPubSignature::_table_ = { 5, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ComAndPubSignature_default_instance_._instance, + ComAndPubSignature_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>(), // to_prefetch @@ -1449,133 +1774,194 @@ const ::_pbi::TcParseTable<3, 5, 0, 0, 2> ComAndPubSignature::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // bytes ephemeral_commitment = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.ephemeral_commitment_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.ephemeral_commitment_)}}, // bytes ephemeral_pubkey = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.ephemeral_pubkey_)}}, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.ephemeral_pubkey_)}}, // bytes u_a = 3; {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_a_)}}, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_a_)}}, // bytes u_x = 4; {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_x_)}}, + {34, 3, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_x_)}}, // bytes u_y = 5; {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_y_)}}, + {42, 4, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_y_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // bytes ephemeral_commitment = 1; - {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.ephemeral_commitment_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.ephemeral_commitment_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes ephemeral_pubkey = 2; - {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.ephemeral_pubkey_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.ephemeral_pubkey_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes u_a = 3; - {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_a_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_a_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes u_x = 4; - {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_x_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes u_y = 5; - {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_y_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void ComAndPubSignature::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.ComAndPubSignature) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* ComAndPubSignature::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.ephemeral_commitment_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.ephemeral_pubkey_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.u_a_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000008u) != 0) { + _impl_.u_x_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000010u) != 0) { + _impl_.u_y_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ComAndPubSignature::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ComAndPubSignature& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ComAndPubSignature::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ComAndPubSignature& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ComAndPubSignature) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes ephemeral_commitment = 1; - if (!this->_internal_ephemeral_commitment().empty()) { - const std::string& _s = this->_internal_ephemeral_commitment(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_ephemeral_commitment().empty()) { + const ::std::string& _s = this_._internal_ephemeral_commitment(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // bytes ephemeral_pubkey = 2; - if (!this->_internal_ephemeral_pubkey().empty()) { - const std::string& _s = this->_internal_ephemeral_pubkey(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_ephemeral_pubkey().empty()) { + const ::std::string& _s = this_._internal_ephemeral_pubkey(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } // bytes u_a = 3; - if (!this->_internal_u_a().empty()) { - const std::string& _s = this->_internal_u_a(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (!this_._internal_u_a().empty()) { + const ::std::string& _s = this_._internal_u_a(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } // bytes u_x = 4; - if (!this->_internal_u_x().empty()) { - const std::string& _s = this->_internal_u_x(); - target = stream->WriteBytesMaybeAliased(4, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (!this_._internal_u_x().empty()) { + const ::std::string& _s = this_._internal_u_x(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } } // bytes u_y = 5; - if (!this->_internal_u_y().empty()) { - const std::string& _s = this->_internal_u_y(); - target = stream->WriteBytesMaybeAliased(5, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (!this_._internal_u_y().empty()) { + const ::std::string& _s = this_._internal_u_y(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ComAndPubSignature) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ComAndPubSignature::ByteSizeLong(const MessageLite& base) { + const ComAndPubSignature& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t ComAndPubSignature::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ComAndPubSignature) + const ComAndPubSignature& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ComAndPubSignature) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes ephemeral_commitment = 1; - if (!this->_internal_ephemeral_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_ephemeral_commitment()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + // bytes ephemeral_commitment = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_ephemeral_commitment().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_ephemeral_commitment()); + } + } + // bytes ephemeral_pubkey = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_ephemeral_pubkey().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_ephemeral_pubkey()); + } + } + // bytes u_a = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_u_a().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_u_a()); + } + } + // bytes u_x = 4; + if ((cached_has_bits & 0x00000008u) != 0) { + if (!this_._internal_u_x().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_u_x()); + } + } + // bytes u_y = 5; + if ((cached_has_bits & 0x00000010u) != 0) { + if (!this_._internal_u_y().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_u_y()); + } + } } - - // bytes ephemeral_pubkey = 2; - if (!this->_internal_ephemeral_pubkey().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_ephemeral_pubkey()); - } - - // bytes u_a = 3; - if (!this->_internal_u_a().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_u_a()); - } - - // bytes u_x = 4; - if (!this->_internal_u_x().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_u_x()); - } - - // bytes u_y = 5; - if (!this->_internal_u_y().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_u_y()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1584,21 +1970,55 @@ void ComAndPubSignature::MergeImpl(::google::protobuf::MessageLite& to_msg, cons ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_ephemeral_commitment().empty()) { - _this->_internal_set_ephemeral_commitment(from._internal_ephemeral_commitment()); - } - if (!from._internal_ephemeral_pubkey().empty()) { - _this->_internal_set_ephemeral_pubkey(from._internal_ephemeral_pubkey()); - } - if (!from._internal_u_a().empty()) { - _this->_internal_set_u_a(from._internal_u_a()); - } - if (!from._internal_u_x().empty()) { - _this->_internal_set_u_x(from._internal_u_x()); - } - if (!from._internal_u_y().empty()) { - _this->_internal_set_u_y(from._internal_u_y()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_ephemeral_commitment().empty()) { + _this->_internal_set_ephemeral_commitment(from._internal_ephemeral_commitment()); + } else { + if (_this->_impl_.ephemeral_commitment_.IsDefault()) { + _this->_internal_set_ephemeral_commitment(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_ephemeral_pubkey().empty()) { + _this->_internal_set_ephemeral_pubkey(from._internal_ephemeral_pubkey()); + } else { + if (_this->_impl_.ephemeral_pubkey_.IsDefault()) { + _this->_internal_set_ephemeral_pubkey(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_u_a().empty()) { + _this->_internal_set_u_a(from._internal_u_a()); + } else { + if (_this->_impl_.u_a_.IsDefault()) { + _this->_internal_set_u_a(""); + } + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (!from._internal_u_x().empty()) { + _this->_internal_set_u_x(from._internal_u_x()); + } else { + if (_this->_impl_.u_x_.IsDefault()) { + _this->_internal_set_u_x(""); + } + } + } + if ((cached_has_bits & 0x00000010u) != 0) { + if (!from._internal_u_y().empty()) { + _this->_internal_set_u_y(from._internal_u_y()); + } else { + if (_this->_impl_.u_y_.IsDefault()) { + _this->_internal_set_u_y(""); + } + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1609,15 +2029,13 @@ void ComAndPubSignature::CopyFrom(const ComAndPubSignature& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ComAndPubSignature::IsInitialized() const { - return true; -} -void ComAndPubSignature::InternalSwap(ComAndPubSignature* PROTOBUF_RESTRICT other) { - using std::swap; +void ComAndPubSignature::InternalSwap(ComAndPubSignature* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ephemeral_commitment_, &other->_impl_.ephemeral_commitment_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ephemeral_pubkey_, &other->_impl_.ephemeral_pubkey_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.u_a_, &other->_impl_.u_a_, arena); @@ -1626,103 +2044,125 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CommitmentSignature::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_._has_bits_); }; -CommitmentSignature::CommitmentSignature(::google::protobuf::Arena* arena) +CommitmentSignature::CommitmentSignature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, CommitmentSignature_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.CommitmentSignature) } -inline PROTOBUF_NDEBUG_INLINE CommitmentSignature::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : public_nonce_(arena, from.public_nonce_), +PROTOBUF_NDEBUG_INLINE CommitmentSignature::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::CommitmentSignature& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + public_nonce_(arena, from.public_nonce_), u_(arena, from.u_), - v_(arena, from.v_), - _cached_size_{0} {} + v_(arena, from.v_) {} CommitmentSignature::CommitmentSignature( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CommitmentSignature& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, CommitmentSignature_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CommitmentSignature* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.CommitmentSignature) } -inline PROTOBUF_NDEBUG_INLINE CommitmentSignature::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE CommitmentSignature::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : public_nonce_(arena), + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + public_nonce_(arena), u_(arena), - v_(arena), - _cached_size_{0} {} + v_(arena) {} -inline void CommitmentSignature::SharedCtor(::_pb::Arena* arena) { +inline void CommitmentSignature::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } CommitmentSignature::~CommitmentSignature() { // @@protoc_insertion_point(destructor:tari.rpc.CommitmentSignature) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void CommitmentSignature::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_nonce_.Destroy(); - _impl_.u_.Destroy(); - _impl_.v_.Destroy(); - _impl_.~Impl_(); +inline void CommitmentSignature::SharedDtor(MessageLite& self) { + CommitmentSignature& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.public_nonce_.Destroy(); + this_._impl_.u_.Destroy(); + this_._impl_.v_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL CommitmentSignature::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) CommitmentSignature(arena); +} +constexpr auto CommitmentSignature::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CommitmentSignature), + alignof(CommitmentSignature)); +} +constexpr auto CommitmentSignature::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_CommitmentSignature_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_nonce_.ClearToEmpty(); - _impl_.u_.ClearToEmpty(); - _impl_.v_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CommitmentSignature::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CommitmentSignature::ByteSizeLong, + &CommitmentSignature::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_._cached_size_), + false, + }, + &CommitmentSignature::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; } -const char* CommitmentSignature::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull CommitmentSignature_class_data_ = + CommitmentSignature::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +CommitmentSignature::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&CommitmentSignature_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(CommitmentSignature_class_data_.tc_table); + return CommitmentSignature_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> CommitmentSignature::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +CommitmentSignature::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -1731,7 +2171,8 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> CommitmentSignature::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_CommitmentSignature_default_instance_._instance, + CommitmentSignature_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::CommitmentSignature>(), // to_prefetch @@ -1740,95 +2181,144 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> CommitmentSignature::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // bytes public_nonce = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.public_nonce_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.public_nonce_)}}, // bytes u = 2; {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.u_)}}, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.u_)}}, // bytes v = 3; {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.v_)}}, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.v_)}}, }}, {{ 65535, 65535 }}, {{ // bytes public_nonce = 1; - {PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.public_nonce_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.public_nonce_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes u = 2; - {PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.u_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.u_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes v = 3; - {PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.v_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.v_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void CommitmentSignature::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.CommitmentSignature) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* CommitmentSignature::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.public_nonce_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000002u) != 0) { + _impl_.u_.ClearNonDefaultToEmpty(); + } + if ((cached_has_bits & 0x00000004u) != 0) { + _impl_.v_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL CommitmentSignature::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const CommitmentSignature& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL CommitmentSignature::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const CommitmentSignature& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.CommitmentSignature) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes public_nonce = 1; - if (!this->_internal_public_nonce().empty()) { - const std::string& _s = this->_internal_public_nonce(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_public_nonce().empty()) { + const ::std::string& _s = this_._internal_public_nonce(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } // bytes u = 2; - if (!this->_internal_u().empty()) { - const std::string& _s = this->_internal_u(); - target = stream->WriteBytesMaybeAliased(2, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (!this_._internal_u().empty()) { + const ::std::string& _s = this_._internal_u(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } } // bytes v = 3; - if (!this->_internal_v().empty()) { - const std::string& _s = this->_internal_v(); - target = stream->WriteBytesMaybeAliased(3, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (!this_._internal_v().empty()) { + const ::std::string& _s = this_._internal_v(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.CommitmentSignature) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CommitmentSignature::ByteSizeLong(const MessageLite& base) { + const CommitmentSignature& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t CommitmentSignature::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.CommitmentSignature) + const CommitmentSignature& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.CommitmentSignature) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes public_nonce = 1; - if (!this->_internal_public_nonce().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_nonce()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // bytes public_nonce = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_public_nonce().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_public_nonce()); + } + } + // bytes u = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (!this_._internal_u().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_u()); + } + } + // bytes v = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (!this_._internal_v().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_v()); + } + } } - - // bytes u = 2; - if (!this->_internal_u().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_u()); - } - - // bytes v = 3; - if (!this->_internal_v().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_v()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -1837,15 +2327,37 @@ void CommitmentSignature::MergeImpl(::google::protobuf::MessageLite& to_msg, con ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_public_nonce().empty()) { - _this->_internal_set_public_nonce(from._internal_public_nonce()); - } - if (!from._internal_u().empty()) { - _this->_internal_set_u(from._internal_u()); - } - if (!from._internal_v().empty()) { - _this->_internal_set_v(from._internal_v()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_public_nonce().empty()) { + _this->_internal_set_public_nonce(from._internal_public_nonce()); + } else { + if (_this->_impl_.public_nonce_.IsDefault()) { + _this->_internal_set_public_nonce(""); + } + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (!from._internal_u().empty()) { + _this->_internal_set_u(from._internal_u()); + } else { + if (_this->_impl_.u_.IsDefault()) { + _this->_internal_set_u(""); + } + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (!from._internal_v().empty()) { + _this->_internal_set_v(from._internal_v()); + } else { + if (_this->_impl_.v_.IsDefault()) { + _this->_internal_set_v(""); + } + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1856,47 +2368,57 @@ void CommitmentSignature::CopyFrom(const CommitmentSignature& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CommitmentSignature::IsInitialized() const { - return true; -} -void CommitmentSignature::InternalSwap(CommitmentSignature* PROTOBUF_RESTRICT other) { - using std::swap; +void CommitmentSignature::InternalSwap(CommitmentSignature* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_nonce_, &other->_impl_.public_nonce_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.u_, &other->_impl_.u_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.v_, &other->_impl_.v_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class PowAlgorithmConstants::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_._has_bits_); }; -PowAlgorithmConstants::PowAlgorithmConstants(::google::protobuf::Arena* arena) +PowAlgorithmConstants::PowAlgorithmConstants(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, PowAlgorithmConstants_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.PowAlgorithmConstants) } PowAlgorithmConstants::PowAlgorithmConstants( - ::google::protobuf::Arena* arena, const PowAlgorithmConstants& from) - : PowAlgorithmConstants(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PowAlgorithmConstants& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, PowAlgorithmConstants_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE PowAlgorithmConstants::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE PowAlgorithmConstants::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void PowAlgorithmConstants::SharedCtor(::_pb::Arena* arena) { +inline void PowAlgorithmConstants::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, min_difficulty_), @@ -1907,52 +2429,62 @@ inline void PowAlgorithmConstants::SharedCtor(::_pb::Arena* arena) { } PowAlgorithmConstants::~PowAlgorithmConstants() { // @@protoc_insertion_point(destructor:tari.rpc.PowAlgorithmConstants) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void PowAlgorithmConstants::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void PowAlgorithmConstants::SharedDtor(MessageLite& self) { + PowAlgorithmConstants& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL PowAlgorithmConstants::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PowAlgorithmConstants(arena); +} +constexpr auto PowAlgorithmConstants::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PowAlgorithmConstants), + alignof(PowAlgorithmConstants)); +} +constexpr auto PowAlgorithmConstants::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_PowAlgorithmConstants_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.min_difficulty_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.target_time_) - - reinterpret_cast(&_impl_.min_difficulty_)) + sizeof(_impl_.target_time_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PowAlgorithmConstants::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &PowAlgorithmConstants::ByteSizeLong, + &PowAlgorithmConstants::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_._cached_size_), + false, + }, + &PowAlgorithmConstants::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; } -const char* PowAlgorithmConstants::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull PowAlgorithmConstants_class_data_ = + PowAlgorithmConstants::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PowAlgorithmConstants::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&PowAlgorithmConstants_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(PowAlgorithmConstants_class_data_.tc_table); + return PowAlgorithmConstants_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> PowAlgorithmConstants::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +PowAlgorithmConstants::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_._has_bits_), 0, // no _extensions_ 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -1961,107 +2493,151 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> PowAlgorithmConstants::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_PowAlgorithmConstants_default_instance_._instance, + PowAlgorithmConstants_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.target_time_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PowAlgorithmConstants, _impl_.target_time_), 2>(), + {32, 2, 0, PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.target_time_)}}, {::_pbi::TcParser::MiniParse, {}}, // uint64 min_difficulty = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PowAlgorithmConstants, _impl_.min_difficulty_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.min_difficulty_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PowAlgorithmConstants, _impl_.min_difficulty_), 0>(), + {16, 0, 0, PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.min_difficulty_)}}, // uint64 max_difficulty = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PowAlgorithmConstants, _impl_.max_difficulty_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.max_difficulty_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PowAlgorithmConstants, _impl_.max_difficulty_), 1>(), + {24, 1, 0, PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.max_difficulty_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 min_difficulty = 2; - {PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.min_difficulty_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.min_difficulty_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 max_difficulty = 3; - {PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.max_difficulty_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.max_difficulty_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 target_time = 4; - {PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.target_time_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.target_time_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void PowAlgorithmConstants::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.PowAlgorithmConstants) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* PowAlgorithmConstants::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + ::memset(&_impl_.min_difficulty_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.target_time_) - + reinterpret_cast(&_impl_.min_difficulty_)) + sizeof(_impl_.target_time_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PowAlgorithmConstants::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PowAlgorithmConstants& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PowAlgorithmConstants::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PowAlgorithmConstants& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.PowAlgorithmConstants) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 min_difficulty = 2; - if (this->_internal_min_difficulty() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_min_difficulty(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_min_difficulty() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_min_difficulty(), target); + } } // uint64 max_difficulty = 3; - if (this->_internal_max_difficulty() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_max_difficulty(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_max_difficulty() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_max_difficulty(), target); + } } // uint64 target_time = 4; - if (this->_internal_target_time() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_target_time(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_target_time() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_target_time(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.PowAlgorithmConstants) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PowAlgorithmConstants::ByteSizeLong(const MessageLite& base) { + const PowAlgorithmConstants& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t PowAlgorithmConstants::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.PowAlgorithmConstants) + const PowAlgorithmConstants& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.PowAlgorithmConstants) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 min_difficulty = 2; - if (this->_internal_min_difficulty() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_min_difficulty()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + // uint64 min_difficulty = 2; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_min_difficulty() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_min_difficulty()); + } + } + // uint64 max_difficulty = 3; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_max_difficulty() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_max_difficulty()); + } + } + // uint64 target_time = 4; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_target_time() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_target_time()); + } + } } - - // uint64 max_difficulty = 3; - if (this->_internal_max_difficulty() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_max_difficulty()); - } - - // uint64 target_time = 4; - if (this->_internal_target_time() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_target_time()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2070,15 +2646,25 @@ void PowAlgorithmConstants::MergeImpl(::google::protobuf::MessageLite& to_msg, c ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_min_difficulty() != 0) { - _this->_impl_.min_difficulty_ = from._impl_.min_difficulty_; - } - if (from._internal_max_difficulty() != 0) { - _this->_impl_.max_difficulty_ = from._impl_.max_difficulty_; - } - if (from._internal_target_time() != 0) { - _this->_impl_.target_time_ = from._impl_.target_time_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_min_difficulty() != 0) { + _this->_impl_.min_difficulty_ = from._impl_.min_difficulty_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_max_difficulty() != 0) { + _this->_impl_.max_difficulty_ = from._impl_.max_difficulty_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_target_time() != 0) { + _this->_impl_.target_time_ = from._impl_.target_time_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2089,13 +2675,11 @@ void PowAlgorithmConstants::CopyFrom(const PowAlgorithmConstants& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PowAlgorithmConstants::IsInitialized() const { - return true; -} -void PowAlgorithmConstants::InternalSwap(PowAlgorithmConstants* PROTOBUF_RESTRICT other) { - using std::swap; +void PowAlgorithmConstants::InternalSwap(PowAlgorithmConstants* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.target_time_) + sizeof(PowAlgorithmConstants::_impl_.target_time_) @@ -2105,32 +2689,44 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class WeightParams::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(WeightParams, _impl_._has_bits_); }; -WeightParams::WeightParams(::google::protobuf::Arena* arena) +WeightParams::WeightParams(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, WeightParams_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.WeightParams) } WeightParams::WeightParams( - ::google::protobuf::Arena* arena, const WeightParams& from) - : WeightParams(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const WeightParams& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, WeightParams_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE WeightParams::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE WeightParams::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void WeightParams::SharedCtor(::_pb::Arena* arena) { +inline void WeightParams::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, kernel_weight_), @@ -2141,52 +2737,62 @@ inline void WeightParams::SharedCtor(::_pb::Arena* arena) { } WeightParams::~WeightParams() { // @@protoc_insertion_point(destructor:tari.rpc.WeightParams) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void WeightParams::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void WeightParams::SharedDtor(MessageLite& self) { + WeightParams& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL WeightParams::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) WeightParams(arena); +} +constexpr auto WeightParams::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(WeightParams), + alignof(WeightParams)); +} +constexpr auto WeightParams::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_WeightParams_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.kernel_weight_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.features_and_scripts_bytes_per_gram_) - - reinterpret_cast(&_impl_.kernel_weight_)) + sizeof(_impl_.features_and_scripts_bytes_per_gram_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &WeightParams::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &WeightParams::ByteSizeLong, + &WeightParams::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(WeightParams, _impl_._cached_size_), + false, + }, + &WeightParams::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; } -const char* WeightParams::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull WeightParams_class_data_ = + WeightParams::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +WeightParams::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&WeightParams_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(WeightParams_class_data_.tc_table); + return WeightParams_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> WeightParams::_table_ = { +const ::_pbi::TcParseTable<2, 4, 0, 0, 2> +WeightParams::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(WeightParams, _impl_._has_bits_), 0, // no _extensions_ 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -2195,125 +2801,172 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> WeightParams::_table_ = { 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_WeightParams_default_instance_._instance, + WeightParams_class_data_.base(), + nullptr, // post_loop_handler ::_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>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.features_and_scripts_bytes_per_gram_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(WeightParams, _impl_.features_and_scripts_bytes_per_gram_), 3>(), + {32, 3, 0, PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.features_and_scripts_bytes_per_gram_)}}, // uint64 kernel_weight = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(WeightParams, _impl_.kernel_weight_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.kernel_weight_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(WeightParams, _impl_.kernel_weight_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.kernel_weight_)}}, // uint64 input_weight = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(WeightParams, _impl_.input_weight_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.input_weight_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(WeightParams, _impl_.input_weight_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.input_weight_)}}, // uint64 output_weight = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(WeightParams, _impl_.output_weight_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.output_weight_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(WeightParams, _impl_.output_weight_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.output_weight_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 kernel_weight = 1; - {PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.kernel_weight_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.kernel_weight_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 input_weight = 2; - {PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.input_weight_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.input_weight_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 output_weight = 3; - {PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.output_weight_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.output_weight_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 features_and_scripts_bytes_per_gram = 4; - {PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.features_and_scripts_bytes_per_gram_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.features_and_scripts_bytes_per_gram_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void WeightParams::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.WeightParams) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* WeightParams::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + ::memset(&_impl_.kernel_weight_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.features_and_scripts_bytes_per_gram_) - + reinterpret_cast(&_impl_.kernel_weight_)) + sizeof(_impl_.features_and_scripts_bytes_per_gram_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL WeightParams::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const WeightParams& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL WeightParams::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const WeightParams& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.WeightParams) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 kernel_weight = 1; - if (this->_internal_kernel_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_kernel_weight(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_kernel_weight() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_kernel_weight(), target); + } } // uint64 input_weight = 2; - if (this->_internal_input_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_input_weight(), target); + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_input_weight() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_input_weight(), target); + } } // uint64 output_weight = 3; - if (this->_internal_output_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_output_weight(), target); + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (this_._internal_output_weight() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_output_weight(), target); + } } // uint64 features_and_scripts_bytes_per_gram = 4; - if (this->_internal_features_and_scripts_bytes_per_gram() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_features_and_scripts_bytes_per_gram(), target); + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (this_._internal_features_and_scripts_bytes_per_gram() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_features_and_scripts_bytes_per_gram(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.WeightParams) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t WeightParams::ByteSizeLong(const MessageLite& base) { + const WeightParams& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t WeightParams::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.WeightParams) + const WeightParams& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.WeightParams) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // uint64 kernel_weight = 1; - if (this->_internal_kernel_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_kernel_weight()); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + // uint64 kernel_weight = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_kernel_weight() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_kernel_weight()); + } + } + // uint64 input_weight = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_input_weight() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_input_weight()); + } + } + // uint64 output_weight = 3; + if ((cached_has_bits & 0x00000004u) != 0) { + if (this_._internal_output_weight() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_output_weight()); + } + } + // uint64 features_and_scripts_bytes_per_gram = 4; + if ((cached_has_bits & 0x00000008u) != 0) { + if (this_._internal_features_and_scripts_bytes_per_gram() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_features_and_scripts_bytes_per_gram()); + } + } } - - // uint64 input_weight = 2; - if (this->_internal_input_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_input_weight()); - } - - // uint64 output_weight = 3; - if (this->_internal_output_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_output_weight()); - } - - // uint64 features_and_scripts_bytes_per_gram = 4; - if (this->_internal_features_and_scripts_bytes_per_gram() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_features_and_scripts_bytes_per_gram()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2322,18 +2975,30 @@ void WeightParams::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::go ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_kernel_weight() != 0) { - _this->_impl_.kernel_weight_ = from._impl_.kernel_weight_; - } - if (from._internal_input_weight() != 0) { - _this->_impl_.input_weight_ = from._impl_.input_weight_; - } - if (from._internal_output_weight() != 0) { - _this->_impl_.output_weight_ = from._impl_.output_weight_; - } - if (from._internal_features_and_scripts_bytes_per_gram() != 0) { - _this->_impl_.features_and_scripts_bytes_per_gram_ = from._impl_.features_and_scripts_bytes_per_gram_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_kernel_weight() != 0) { + _this->_impl_.kernel_weight_ = from._impl_.kernel_weight_; + } + } + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_input_weight() != 0) { + _this->_impl_.input_weight_ = from._impl_.input_weight_; + } + } + if ((cached_has_bits & 0x00000004u) != 0) { + if (from._internal_output_weight() != 0) { + _this->_impl_.output_weight_ = from._impl_.output_weight_; + } + } + if ((cached_has_bits & 0x00000008u) != 0) { + if (from._internal_features_and_scripts_bytes_per_gram() != 0) { + _this->_impl_.features_and_scripts_bytes_per_gram_ = from._impl_.features_and_scripts_bytes_per_gram_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2344,13 +3009,11 @@ void WeightParams::CopyFrom(const WeightParams& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool WeightParams::IsInitialized() const { - return true; -} -void WeightParams::InternalSwap(WeightParams* PROTOBUF_RESTRICT other) { - using std::swap; +void WeightParams::InternalSwap(WeightParams* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.features_and_scripts_bytes_per_gram_) + sizeof(WeightParams::_impl_.features_and_scripts_bytes_per_gram_) @@ -2360,55 +3023,63 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class OutputsVersion::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_._has_bits_); }; -OutputsVersion::OutputsVersion(::google::protobuf::Arena* arena) +OutputsVersion::OutputsVersion(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, OutputsVersion_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.OutputsVersion) } -inline PROTOBUF_NDEBUG_INLINE OutputsVersion::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE OutputsVersion::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::OutputsVersion& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} OutputsVersion::OutputsVersion( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OutputsVersion& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, OutputsVersion_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE OutputsVersion* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _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; + _impl_.outputs_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.outputs_) + : nullptr; + _impl_.features_ = ((cached_has_bits & 0x00000002u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_) + : nullptr; // @@protoc_insertion_point(copy_constructor:tari.rpc.OutputsVersion) } -inline PROTOBUF_NDEBUG_INLINE OutputsVersion::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE OutputsVersion::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void OutputsVersion::SharedCtor(::_pb::Arena* arena) { +inline void OutputsVersion::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, outputs_), @@ -2419,61 +3090,62 @@ inline void OutputsVersion::SharedCtor(::_pb::Arena* arena) { } OutputsVersion::~OutputsVersion() { // @@protoc_insertion_point(destructor:tari.rpc.OutputsVersion) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void OutputsVersion::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.outputs_; - delete _impl_.features_; - _impl_.~Impl_(); +inline void OutputsVersion::SharedDtor(MessageLite& self) { + OutputsVersion& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.outputs_; + delete this_._impl_.features_; + this_._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, - }, +inline void* PROTOBUF_NONNULL OutputsVersion::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) OutputsVersion(arena); +} +constexpr auto OutputsVersion::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(OutputsVersion), + alignof(OutputsVersion)); +} +constexpr auto OutputsVersion::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_OutputsVersion_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.outputs_ != nullptr); - _impl_.outputs_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &OutputsVersion::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &OutputsVersion::ByteSizeLong, + &OutputsVersion::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_._cached_size_), + false, + }, + &OutputsVersion::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; } -const char* OutputsVersion::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull OutputsVersion_class_data_ = + OutputsVersion::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +OutputsVersion::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&OutputsVersion_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(OutputsVersion_class_data_.tc_table); + return OutputsVersion_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> OutputsVersion::_table_ = { +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> +OutputsVersion::_table_ = { { PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_._has_bits_), 0, // no _extensions_ @@ -2484,7 +3156,8 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> OutputsVersion::_table_ = { 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_OutputsVersion_default_instance_._instance, + OutputsVersion_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::OutputsVersion>(), // to_prefetch @@ -2505,68 +3178,106 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> OutputsVersion::_table_ = { // .tari.rpc.Range features = 2; {PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_.features_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, - }}, {{ + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, + }}, + {{ }}, }; - -::uint8_t* OutputsVersion::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.OutputsVersion) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.Range outputs = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 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, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.OutputsVersion) - return target; -} - -::size_t OutputsVersion::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.OutputsVersion) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void OutputsVersion::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.OutputsVersion) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .tari.rpc.Range outputs = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.outputs_); + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + ABSL_DCHECK(_impl_.outputs_ != nullptr); + _impl_.outputs_->Clear(); } - - // .tari.rpc.Range features = 2; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); + if ((cached_has_bits & 0x00000002u) != 0) { + ABSL_DCHECK(_impl_.features_ != nullptr); + _impl_.features_->Clear(); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL OutputsVersion::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const OutputsVersion& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL OutputsVersion::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const OutputsVersion& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.OutputsVersion) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .tari.rpc.Range outputs = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.outputs_, this_._impl_.outputs_->GetCachedSize(), target, + stream); + } + + // .tari.rpc.Range features = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.features_, this_._impl_.features_->GetCachedSize(), target, + stream); + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.OutputsVersion) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t OutputsVersion::ByteSizeLong(const MessageLite& base) { + const OutputsVersion& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t OutputsVersion::ByteSizeLong() const { + const OutputsVersion& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.OutputsVersion) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // .tari.rpc.Range outputs = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.outputs_); + } + // .tari.rpc.Range features = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.features_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} void OutputsVersion::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); @@ -2578,21 +3289,19 @@ void OutputsVersion::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { 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_); + _this->_impl_.outputs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.outputs_); } else { _this->_impl_.outputs_->MergeFrom(*from._impl_.outputs_); } } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { 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_); + _this->_impl_.features_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.features_); } else { _this->_impl_.features_->MergeFrom(*from._impl_.features_); } @@ -2609,12 +3318,9 @@ void OutputsVersion::CopyFrom(const OutputsVersion& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool OutputsVersion::IsInitialized() const { - return true; -} -void OutputsVersion::InternalSwap(OutputsVersion* PROTOBUF_RESTRICT other) { - using std::swap; +void OutputsVersion::InternalSwap(OutputsVersion* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< @@ -2626,99 +3332,134 @@ 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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class PermittedRangeProofs::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_._has_bits_); }; -PermittedRangeProofs::PermittedRangeProofs(::google::protobuf::Arena* arena) +PermittedRangeProofs::PermittedRangeProofs(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, PermittedRangeProofs_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.PermittedRangeProofs) } -inline PROTOBUF_NDEBUG_INLINE PermittedRangeProofs::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : range_proof_types_{visibility, arena, from.range_proof_types_}, - _range_proof_types_cached_byte_size_{0}, - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE PermittedRangeProofs::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::PermittedRangeProofs& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + range_proof_types_{visibility, arena, from.range_proof_types_}, + _range_proof_types_cached_byte_size_{0} {} PermittedRangeProofs::PermittedRangeProofs( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PermittedRangeProofs& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, PermittedRangeProofs_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE PermittedRangeProofs* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.output_type_ = from._impl_.output_type_; // @@protoc_insertion_point(copy_constructor:tari.rpc.PermittedRangeProofs) } -inline PROTOBUF_NDEBUG_INLINE PermittedRangeProofs::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE PermittedRangeProofs::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : range_proof_types_{visibility, arena}, - _range_proof_types_cached_byte_size_{0}, - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + range_proof_types_{visibility, arena}, + _range_proof_types_cached_byte_size_{0} {} -inline void PermittedRangeProofs::SharedCtor(::_pb::Arena* arena) { +inline void PermittedRangeProofs::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.output_type_ = {}; } PermittedRangeProofs::~PermittedRangeProofs() { // @@protoc_insertion_point(destructor:tari.rpc.PermittedRangeProofs) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void PermittedRangeProofs::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); +inline void PermittedRangeProofs::SharedDtor(MessageLite& self) { + PermittedRangeProofs& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._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, - }, +inline void* PROTOBUF_NONNULL PermittedRangeProofs::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PermittedRangeProofs(arena); +} +constexpr auto PermittedRangeProofs::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_.range_proof_types_) + + decltype(PermittedRangeProofs::_impl_.range_proof_types_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(PermittedRangeProofs), alignof(PermittedRangeProofs), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&PermittedRangeProofs::PlacementNew_, + sizeof(PermittedRangeProofs), + alignof(PermittedRangeProofs)); + } +} +constexpr auto PermittedRangeProofs::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_PermittedRangeProofs_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.range_proof_types_.Clear(); - _impl_.output_type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PermittedRangeProofs::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &PermittedRangeProofs::ByteSizeLong, + &PermittedRangeProofs::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_._cached_size_), + false, + }, + &PermittedRangeProofs::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; } -const char* PermittedRangeProofs::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull PermittedRangeProofs_class_data_ = + PermittedRangeProofs::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PermittedRangeProofs::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&PermittedRangeProofs_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(PermittedRangeProofs_class_data_.tc_table); + return PermittedRangeProofs_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> PermittedRangeProofs::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +PermittedRangeProofs::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -2727,7 +3468,8 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> PermittedRangeProofs::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_PermittedRangeProofs_default_instance_._instance, + PermittedRangeProofs_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::PermittedRangeProofs>(), // to_prefetch @@ -2737,90 +3479,113 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> PermittedRangeProofs::_table_ = { {::_pbi::TcParser::FastV32P1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_.range_proof_types_)}}, // .tari.rpc.OutputType output_type = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PermittedRangeProofs, _impl_.output_type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_.output_type_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PermittedRangeProofs, _impl_.output_type_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_.output_type_)}}, }}, {{ 65535, 65535 }}, {{ // .tari.rpc.OutputType output_type = 1; - {PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_.output_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + {PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_.output_type_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, // repeated .tari.rpc.RangeProofType range_proof_types = 2; - {PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_.range_proof_types_), 0, 0, + {PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_.range_proof_types_), -1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void PermittedRangeProofs::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.PermittedRangeProofs) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* PermittedRangeProofs::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + _impl_.range_proof_types_.Clear(); + _impl_.output_type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PermittedRangeProofs::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PermittedRangeProofs& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PermittedRangeProofs::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PermittedRangeProofs& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.PermittedRangeProofs) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // .tari.rpc.OutputType output_type = 1; - if (this->_internal_output_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_output_type(), target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (this_._internal_output_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_output_type(), target); + } } // repeated .tari.rpc.RangeProofType range_proof_types = 2; { - std::size_t byte_size = _impl_._range_proof_types_cached_byte_size_.Get(); + ::size_t byte_size = this_._impl_._range_proof_types_cached_byte_size_.Get(); if (byte_size > 0) { - target = stream->WriteEnumPacked(2, _internal_range_proof_types(), - byte_size, target); + target = stream->WriteEnumPacked( + 2, this_._internal_range_proof_types(), byte_size, target); } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.PermittedRangeProofs) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PermittedRangeProofs::ByteSizeLong(const MessageLite& base) { + const PermittedRangeProofs& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t PermittedRangeProofs::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.PermittedRangeProofs) + const PermittedRangeProofs& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.PermittedRangeProofs) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated .tari.rpc.RangeProofType range_proof_types = 2; - { - std::size_t data_size = 0; - auto count = static_cast(this->_internal_range_proof_types_size()); - - for (std::size_t i = 0; i < count; ++i) { - data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_range_proof_types().Get(static_cast(i))); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .tari.rpc.RangeProofType range_proof_types = 2; + { + total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( + this_._internal_range_proof_types(), 1, this_._impl_._range_proof_types_cached_byte_size_); } - total_size += data_size; - if (data_size > 0) { - total_size += 1; - total_size += ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)); + } + { + // .tari.rpc.OutputType output_type = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (this_._internal_output_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_output_type()); + } } - _impl_._range_proof_types_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); } - // .tari.rpc.OutputType output_type = 1; - if (this->_internal_output_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_output_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -2830,9 +3595,13 @@ void PermittedRangeProofs::MergeImpl(::google::protobuf::MessageLite& to_msg, co (void) cached_has_bits; _this->_internal_mutable_range_proof_types()->MergeFrom(from._internal_range_proof_types()); - if (from._internal_output_type() != 0) { - _this->_impl_.output_type_ = from._impl_.output_type_; + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_output_type() != 0) { + _this->_impl_.output_type_ = from._impl_.output_type_; + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2843,107 +3612,129 @@ void PermittedRangeProofs::CopyFrom(const PermittedRangeProofs& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PermittedRangeProofs::IsInitialized() const { - return true; -} -void PermittedRangeProofs::InternalSwap(PermittedRangeProofs* PROTOBUF_RESTRICT other) { - using std::swap; +void PermittedRangeProofs::InternalSwap(PermittedRangeProofs* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.range_proof_types_.InternalSwap(&other->_impl_.range_proof_types_); swap(_impl_.output_type_, other->_impl_.output_type_); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class RangeProof::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RangeProof, _impl_._has_bits_); }; -RangeProof::RangeProof(::google::protobuf::Arena* arena) +RangeProof::RangeProof(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, RangeProof_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.RangeProof) } -inline PROTOBUF_NDEBUG_INLINE RangeProof::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : proof_bytes_(arena, from.proof_bytes_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RangeProof::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::RangeProof& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + proof_bytes_(arena, from.proof_bytes_) {} RangeProof::RangeProof( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RangeProof& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, RangeProof_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE RangeProof* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:tari.rpc.RangeProof) } -inline PROTOBUF_NDEBUG_INLINE RangeProof::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE RangeProof::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : proof_bytes_(arena), - _cached_size_{0} {} + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + proof_bytes_(arena) {} -inline void RangeProof::SharedCtor(::_pb::Arena* arena) { +inline void RangeProof::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } RangeProof::~RangeProof() { // @@protoc_insertion_point(destructor:tari.rpc.RangeProof) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void RangeProof::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.proof_bytes_.Destroy(); - _impl_.~Impl_(); +inline void RangeProof::SharedDtor(MessageLite& self) { + RangeProof& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.proof_bytes_.Destroy(); + this_._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, - }, +inline void* PROTOBUF_NONNULL RangeProof::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) RangeProof(arena); +} +constexpr auto RangeProof::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RangeProof), + alignof(RangeProof)); +} +constexpr auto RangeProof::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RangeProof_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized &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); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.proof_bytes_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RangeProof::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RangeProof::ByteSizeLong, + &RangeProof::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RangeProof, _impl_._cached_size_), + false, + }, + &RangeProof::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; } -const char* RangeProof::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RangeProof_class_data_ = + RangeProof::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RangeProof::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RangeProof_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RangeProof_class_data_.tc_table); + return RangeProof_class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RangeProof::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +RangeProof::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RangeProof, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -2952,7 +3743,8 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RangeProof::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_RangeProof_default_instance_._instance, + RangeProof_class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::tari::rpc::RangeProof>(), // to_prefetch @@ -2960,59 +3752,93 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RangeProof::_table_ = { }, {{ // bytes proof_bytes = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RangeProof, _impl_.proof_bytes_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(RangeProof, _impl_.proof_bytes_)}}, }}, {{ 65535, 65535 }}, {{ // bytes proof_bytes = 1; - {PROTOBUF_FIELD_OFFSET(RangeProof, _impl_.proof_bytes_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(RangeProof, _impl_.proof_bytes_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; +PROTOBUF_NOINLINE void RangeProof::Clear() { +// @@protoc_insertion_point(message_clear_start:tari.rpc.RangeProof) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -::uint8_t* RangeProof::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.proof_bytes_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL RangeProof::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RangeProof& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RangeProof::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RangeProof& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.RangeProof) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes proof_bytes = 1; - if (!this->_internal_proof_bytes().empty()) { - const std::string& _s = this->_internal_proof_bytes(); - target = stream->WriteBytesMaybeAliased(1, _s, target); + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_proof_bytes().empty()) { + const ::std::string& _s = this_._internal_proof_bytes(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.RangeProof) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t RangeProof::ByteSizeLong(const MessageLite& base) { + const RangeProof& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t RangeProof::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.RangeProof) + const RangeProof& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.RangeProof) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // bytes proof_bytes = 1; - if (!this->_internal_proof_bytes().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_proof_bytes()); + { + // bytes proof_bytes = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_proof_bytes().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_proof_bytes()); + } + } } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -3021,9 +3847,17 @@ void RangeProof::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_proof_bytes().empty()) { - _this->_internal_set_proof_bytes(from._internal_proof_bytes()); + cached_has_bits = from._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_proof_bytes().empty()) { + _this->_internal_set_proof_bytes(from._internal_proof_bytes()); + } else { + if (_this->_impl_.proof_bytes_.IsDefault()) { + _this->_internal_set_proof_bytes(""); + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3034,50 +3868,138 @@ void RangeProof::CopyFrom(const RangeProof& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RangeProof::IsInitialized() const { - return true; -} -void RangeProof::InternalSwap(RangeProof* PROTOBUF_RESTRICT other) { - using std::swap; +void RangeProof::InternalSwap(RangeProof* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.proof_bytes_, &other->_impl_.proof_bytes_, arena); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== -ConsensusConstants_ProofOfWorkEntry_DoNotUse::ConsensusConstants_ProofOfWorkEntry_DoNotUse() {} -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]); +#if defined(PROTOBUF_CUSTOM_VTABLE) +ConsensusConstants_ProofOfWorkEntry_DoNotUse::ConsensusConstants_ProofOfWorkEntry_DoNotUse() + : SuperType(ConsensusConstants_ProofOfWorkEntry_DoNotUse_class_data_.base()) {} +ConsensusConstants_ProofOfWorkEntry_DoNotUse::ConsensusConstants_ProofOfWorkEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : SuperType(arena, ConsensusConstants_ProofOfWorkEntry_DoNotUse_class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE +ConsensusConstants_ProofOfWorkEntry_DoNotUse::ConsensusConstants_ProofOfWorkEntry_DoNotUse() : SuperType() {} +ConsensusConstants_ProofOfWorkEntry_DoNotUse::ConsensusConstants_ProofOfWorkEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE +inline void* PROTOBUF_NONNULL ConsensusConstants_ProofOfWorkEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ConsensusConstants_ProofOfWorkEntry_DoNotUse(arena); } +constexpr auto ConsensusConstants_ProofOfWorkEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ConsensusConstants_ProofOfWorkEntry_DoNotUse), + alignof(ConsensusConstants_ProofOfWorkEntry_DoNotUse)); +} +constexpr auto ConsensusConstants_ProofOfWorkEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ConsensusConstants_ProofOfWorkEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ConsensusConstants_ProofOfWorkEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConsensusConstants_ProofOfWorkEntry_DoNotUse::SharedDtor, + static_cast(&ConsensusConstants_ProofOfWorkEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ConsensusConstants_ProofOfWorkEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &ConsensusConstants_ProofOfWorkEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ConsensusConstants_ProofOfWorkEntry_DoNotUse_class_data_ = + ConsensusConstants_ProofOfWorkEntry_DoNotUse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ConsensusConstants_ProofOfWorkEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ConsensusConstants_ProofOfWorkEntry_DoNotUse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ConsensusConstants_ProofOfWorkEntry_DoNotUse_class_data_.tc_table); + return ConsensusConstants_ProofOfWorkEntry_DoNotUse_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +ConsensusConstants_ProofOfWorkEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ConsensusConstants_ProofOfWorkEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + ConsensusConstants_ProofOfWorkEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .tari.rpc.PowAlgorithmConstants value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants_ProofOfWorkEntry_DoNotUse, _impl_.value_)}}, + // uint32 key = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConsensusConstants_ProofOfWorkEntry_DoNotUse, _impl_.key_), 1>(), + {8, 1, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants_ProofOfWorkEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // uint32 key = 1; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants_ProofOfWorkEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // .tari.rpc.PowAlgorithmConstants value = 2; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants_ProofOfWorkEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::PowAlgorithmConstants>()}, + }}, + {{ + }}, +}; // =================================================================== class ConsensusConstants::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_._has_bits_); + 8 * PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_._has_bits_); }; -ConsensusConstants::ConsensusConstants(::google::protobuf::Arena* arena) +ConsensusConstants::ConsensusConstants(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ConsensusConstants_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:tari.rpc.ConsensusConstants) } -inline PROTOBUF_NDEBUG_INLINE ConsensusConstants::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) +PROTOBUF_NDEBUG_INLINE ConsensusConstants::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::tari::rpc::ConsensusConstants& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, emission_decay_{visibility, arena, from.emission_decay_}, @@ -3088,43 +4010,47 @@ inline PROTOBUF_NDEBUG_INLINE ConsensusConstants::Impl_::Impl_( permitted_range_proof_types_{visibility, arena, from.permitted_range_proof_types_} {} ConsensusConstants::ConsensusConstants( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConsensusConstants& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ConsensusConstants_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ConsensusConstants* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _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; + _impl_.valid_blockchain_version_range_ = ((cached_has_bits & 0x00000001u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.valid_blockchain_version_range_) + : nullptr; + _impl_.transaction_weight_ = ((cached_has_bits & 0x00000002u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.transaction_weight_) + : nullptr; + _impl_.input_version_range_ = ((cached_has_bits & 0x00000004u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.input_version_range_) + : nullptr; + _impl_.output_version_range_ = ((cached_has_bits & 0x00000008u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.output_version_range_) + : nullptr; + _impl_.kernel_version_range_ = ((cached_has_bits & 0x00000010u) != 0) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.kernel_version_range_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, coinbase_min_maturity_), reinterpret_cast(&from._impl_) + offsetof(Impl_, coinbase_min_maturity_), - offsetof(Impl_, blockchain_version_) - + offsetof(Impl_, vn_registration_max_vns_per_epoch_) - offsetof(Impl_, coinbase_min_maturity_) + - sizeof(Impl_::blockchain_version_)); + sizeof(Impl_::vn_registration_max_vns_per_epoch_)); // @@protoc_insertion_point(copy_constructor:tari.rpc.ConsensusConstants) } -inline PROTOBUF_NDEBUG_INLINE ConsensusConstants::Impl_::Impl_( +PROTOBUF_NDEBUG_INLINE ConsensusConstants::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, emission_decay_{visibility, arena}, _emission_decay_cached_byte_size_{0}, @@ -3133,47 +4059,338 @@ inline PROTOBUF_NDEBUG_INLINE ConsensusConstants::Impl_::Impl_( _permitted_output_types_cached_byte_size_{0}, permitted_range_proof_types_{visibility, arena} {} -inline void ConsensusConstants::SharedCtor(::_pb::Arena* arena) { +inline void ConsensusConstants::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, valid_blockchain_version_range_), 0, - offsetof(Impl_, blockchain_version_) - + offsetof(Impl_, vn_registration_max_vns_per_epoch_) - offsetof(Impl_, valid_blockchain_version_range_) + - sizeof(Impl_::blockchain_version_)); + sizeof(Impl_::vn_registration_max_vns_per_epoch_)); } ConsensusConstants::~ConsensusConstants() { // @@protoc_insertion_point(destructor:tari.rpc.ConsensusConstants) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); } -inline void ConsensusConstants::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.valid_blockchain_version_range_; - delete _impl_.transaction_weight_; - delete _impl_.input_version_range_; - delete _impl_.output_version_range_; - delete _impl_.kernel_version_range_; - _impl_.~Impl_(); +inline void ConsensusConstants::SharedDtor(MessageLite& self) { + ConsensusConstants& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.valid_blockchain_version_range_; + delete this_._impl_.transaction_weight_; + delete this_._impl_.input_version_range_; + delete this_._impl_.output_version_range_; + delete this_._impl_.kernel_version_range_; + this_._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_; +inline void* PROTOBUF_NONNULL ConsensusConstants::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ConsensusConstants(arena); } +constexpr auto ConsensusConstants::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_decay_) + + decltype(ConsensusConstants::_impl_.emission_decay_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.proof_of_work_) + + decltype(ConsensusConstants::_impl_.proof_of_work_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.proof_of_work_) + + decltype(ConsensusConstants::_impl_.proof_of_work_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.permitted_output_types_) + + decltype(ConsensusConstants::_impl_.permitted_output_types_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.permitted_range_proof_types_) + + decltype(ConsensusConstants::_impl_.permitted_range_proof_types_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(ConsensusConstants), alignof(ConsensusConstants), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&ConsensusConstants::PlacementNew_, + sizeof(ConsensusConstants), + alignof(ConsensusConstants)); + } +} +constexpr auto ConsensusConstants::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ConsensusConstants_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ConsensusConstants::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ConsensusConstants::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ConsensusConstants::ByteSizeLong, + &ConsensusConstants::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_._cached_size_), + false, + }, + &ConsensusConstants::kDescriptorMethods, + &descriptor_table_types_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ConsensusConstants_class_data_ = + ConsensusConstants::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ConsensusConstants::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ConsensusConstants_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ConsensusConstants_class_data_.tc_table); + return ConsensusConstants_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<5, 35, 8, 0, 7> +ConsensusConstants::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_._has_bits_), + 0, // no _extensions_ + 39, 248, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 17039400, // skipmap + offsetof(decltype(_table_), field_entries), + 35, // num_field_entries + 8, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + ConsensusConstants_class_data_.base(), + nullptr, // post_loop_handler + ::_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; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.coinbase_min_maturity_), 5>(), + {8, 5, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.coinbase_min_maturity_)}}, + // uint32 blockchain_version = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConsensusConstants, _impl_.blockchain_version_), 20>(), + {16, 20, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.blockchain_version_)}}, + // uint64 future_time_limit = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.future_time_limit_), 6>(), + {24, 6, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.future_time_limit_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // uint64 difficulty_block_window = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.difficulty_block_window_), 7>(), + {40, 7, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.difficulty_block_window_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // uint64 max_block_transaction_weight = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.max_block_transaction_weight_), 8>(), + {56, 8, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_block_transaction_weight_)}}, + // uint64 pow_algo_count = 8; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.pow_algo_count_), 9>(), + {64, 9, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.pow_algo_count_)}}, + // uint64 median_timestamp_count = 9; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.median_timestamp_count_), 10>(), + {72, 10, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.median_timestamp_count_)}}, + // uint64 emission_initial = 10; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.emission_initial_), 11>(), + {80, 11, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_initial_)}}, + // repeated uint64 emission_decay = 11; + {::_pbi::TcParser::FastV64P1, + {90, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_decay_)}}, + // uint64 emission_tail = 12 [deprecated = true]; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.emission_tail_), 12>(), + {96, 12, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_tail_)}}, + // uint64 min_sha3x_pow_difficulty = 13; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.min_sha3x_pow_difficulty_), 13>(), + {104, 13, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.min_sha3x_pow_difficulty_)}}, + // uint64 block_weight_inputs = 14; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.block_weight_inputs_), 14>(), + {112, 14, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_inputs_)}}, + // uint64 block_weight_outputs = 15; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.block_weight_outputs_), 15>(), + {120, 15, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_outputs_)}}, + // uint64 block_weight_kernels = 16; + {::_pbi::TcParser::FastV64S2, + {384, 16, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_kernels_)}}, + // uint64 pre_mine_value = 17; + {::_pbi::TcParser::FastV64S2, + {392, 17, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.pre_mine_value_)}}, + // uint64 max_script_byte_size = 18; + {::_pbi::TcParser::FastV64S2, + {400, 18, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_script_byte_size_)}}, + // uint64 inflation_bips = 35; + {::_pbi::TcParser::FastV64S2, + {664, 27, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.inflation_bips_)}}, + // uint64 effective_from_height = 20; + {::_pbi::TcParser::FastV64S2, + {416, 19, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.effective_from_height_)}}, + // .tari.rpc.Range valid_blockchain_version_range = 21; + {::_pbi::TcParser::FastMtS2, + {426, 0, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.valid_blockchain_version_range_)}}, + // uint64 max_randomx_seed_height = 22; + {::_pbi::TcParser::FastV64S2, + {432, 22, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_randomx_seed_height_)}}, + // uint32 vn_registration_max_vns_per_epoch = 39; + {::_pbi::TcParser::FastV32S2, + {696, 30, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.vn_registration_max_vns_per_epoch_)}}, + // .tari.rpc.WeightParams transaction_weight = 24; + {::_pbi::TcParser::FastMtS2, + {450, 1, 1, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.transaction_weight_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // .tari.rpc.Range input_version_range = 26; + {::_pbi::TcParser::FastMtS2, + {466, 2, 2, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.input_version_range_)}}, + // .tari.rpc.OutputsVersion output_version_range = 27; + {::_pbi::TcParser::FastMtS2, + {474, 3, 3, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.output_version_range_)}}, + // .tari.rpc.Range kernel_version_range = 28; + {::_pbi::TcParser::FastMtS2, + {482, 4, 4, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.kernel_version_range_)}}, + // repeated .tari.rpc.OutputType permitted_output_types = 29; + {::_pbi::TcParser::FastV32P2, + {490, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.permitted_output_types_)}}, + // uint64 epoch_length = 30; + {::_pbi::TcParser::FastV64S2, + {496, 23, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.epoch_length_)}}, + // uint64 validator_node_registration_min_deposit_amount = 31; + {::_pbi::TcParser::FastV64S2, + {504, 24, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_registration_min_deposit_amount_)}}, + }}, {{ + 33, 0, 1, + 65408, 28, + 65535, 65535 + }}, {{ + // uint64 coinbase_min_maturity = 1; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.coinbase_min_maturity_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint32 blockchain_version = 2; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.blockchain_version_), _Internal::kHasBitsOffset + 20, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // uint64 future_time_limit = 3; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.future_time_limit_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 difficulty_block_window = 5; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.difficulty_block_window_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 max_block_transaction_weight = 7; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_block_transaction_weight_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 pow_algo_count = 8; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.pow_algo_count_), _Internal::kHasBitsOffset + 9, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 median_timestamp_count = 9; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.median_timestamp_count_), _Internal::kHasBitsOffset + 10, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 emission_initial = 10; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_initial_), _Internal::kHasBitsOffset + 11, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // repeated uint64 emission_decay = 11; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_decay_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt64)}, + // uint64 emission_tail = 12 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_tail_), _Internal::kHasBitsOffset + 12, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 min_sha3x_pow_difficulty = 13; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.min_sha3x_pow_difficulty_), _Internal::kHasBitsOffset + 13, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 block_weight_inputs = 14; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_inputs_), _Internal::kHasBitsOffset + 14, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 block_weight_outputs = 15; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_outputs_), _Internal::kHasBitsOffset + 15, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 block_weight_kernels = 16; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_kernels_), _Internal::kHasBitsOffset + 16, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 pre_mine_value = 17; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.pre_mine_value_), _Internal::kHasBitsOffset + 17, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 max_script_byte_size = 18; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_script_byte_size_), _Internal::kHasBitsOffset + 18, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 effective_from_height = 20; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.effective_from_height_), _Internal::kHasBitsOffset + 19, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // .tari.rpc.Range valid_blockchain_version_range = 21; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.valid_blockchain_version_range_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // uint64 max_randomx_seed_height = 22; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_randomx_seed_height_), _Internal::kHasBitsOffset + 22, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // map proof_of_work = 23; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.proof_of_work_), -1, 6, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // .tari.rpc.WeightParams transaction_weight = 24; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.transaction_weight_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .tari.rpc.Range input_version_range = 26; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.input_version_range_), _Internal::kHasBitsOffset + 2, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .tari.rpc.OutputsVersion output_version_range = 27; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.output_version_range_), _Internal::kHasBitsOffset + 3, 3, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .tari.rpc.Range kernel_version_range = 28; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.kernel_version_range_), _Internal::kHasBitsOffset + 4, 4, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .tari.rpc.OutputType permitted_output_types = 29; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.permitted_output_types_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, + // uint64 epoch_length = 30; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.epoch_length_), _Internal::kHasBitsOffset + 23, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 validator_node_registration_min_deposit_amount = 31; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_registration_min_deposit_amount_), _Internal::kHasBitsOffset + 24, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 validator_node_registration_min_lock_height = 32; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_registration_min_lock_height_), _Internal::kHasBitsOffset + 25, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 validator_node_registration_shuffle_interval_epoch = 33; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_registration_shuffle_interval_epoch_), _Internal::kHasBitsOffset + 26, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // repeated .tari.rpc.PermittedRangeProofs permitted_range_proof_types = 34; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.permitted_range_proof_types_), -1, 5, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // uint64 inflation_bips = 35; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.inflation_bips_), _Internal::kHasBitsOffset + 27, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 tail_epoch_length = 36; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.tail_epoch_length_), _Internal::kHasBitsOffset + 28, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 max_block_coinbase_count = 37; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_block_coinbase_count_), _Internal::kHasBitsOffset + 29, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint32 vn_registration_max_vns_initial_epoch = 38; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.vn_registration_max_vns_initial_epoch_), _Internal::kHasBitsOffset + 21, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // uint32 vn_registration_max_vns_per_epoch = 39; + {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.vn_registration_max_vns_per_epoch_), _Internal::kHasBitsOffset + 30, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::WeightParams>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::OutputsVersion>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, + {::_pbi::TcParser::GetTable<::tari::rpc::PermittedRangeProofs>()}, + {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0, + 13, 11, + 0)}, + {::_pbi::TcParser::GetTable<::tari::rpc::PowAlgorithmConstants>()}, + }}, + {{ + }}, +}; PROTOBUF_NOINLINE void ConsensusConstants::Clear() { // @@protoc_insertion_point(message_clear_start:tari.rpc.ConsensusConstants) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3183,425 +4400,244 @@ PROTOBUF_NOINLINE void ConsensusConstants::Clear() { _impl_.permitted_output_types_.Clear(); _impl_.permitted_range_proof_types_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.valid_blockchain_version_range_ != nullptr); _impl_.valid_blockchain_version_range_->Clear(); } - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.transaction_weight_ != nullptr); _impl_.transaction_weight_->Clear(); } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { ABSL_DCHECK(_impl_.input_version_range_ != nullptr); _impl_.input_version_range_->Clear(); } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { ABSL_DCHECK(_impl_.output_version_range_ != nullptr); _impl_.output_version_range_->Clear(); } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { ABSL_DCHECK(_impl_.kernel_version_range_ != nullptr); _impl_.kernel_version_range_->Clear(); } } - ::memset(&_impl_.coinbase_min_maturity_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.blockchain_version_) - - reinterpret_cast(&_impl_.coinbase_min_maturity_)) + sizeof(_impl_.blockchain_version_)); + if ((cached_has_bits & 0x000000e0u) != 0) { + ::memset(&_impl_.coinbase_min_maturity_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.difficulty_block_window_) - + reinterpret_cast(&_impl_.coinbase_min_maturity_)) + sizeof(_impl_.difficulty_block_window_)); + } + if ((cached_has_bits & 0x0000ff00u) != 0) { + ::memset(&_impl_.max_block_transaction_weight_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.block_weight_outputs_) - + reinterpret_cast(&_impl_.max_block_transaction_weight_)) + sizeof(_impl_.block_weight_outputs_)); + } + if ((cached_has_bits & 0x00ff0000u) != 0) { + ::memset(&_impl_.block_weight_kernels_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.epoch_length_) - + reinterpret_cast(&_impl_.block_weight_kernels_)) + sizeof(_impl_.epoch_length_)); + } + if ((cached_has_bits & 0x7f000000u) != 0) { + ::memset(&_impl_.validator_node_registration_min_deposit_amount_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.vn_registration_max_vns_per_epoch_) - + reinterpret_cast(&_impl_.validator_node_registration_min_deposit_amount_)) + sizeof(_impl_.vn_registration_max_vns_per_epoch_)); + } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* ConsensusConstants::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 34, 8, 0, 7> ConsensusConstants::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_._has_bits_), - 0, // no _extensions_ - 37, 248, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 16777256, // skipmap - offsetof(decltype(_table_), field_entries), - 34, // num_field_entries - 8, // num_aux_entries - 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; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.coinbase_min_maturity_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.coinbase_min_maturity_)}}, - // uint32 blockchain_version = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConsensusConstants, _impl_.blockchain_version_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.blockchain_version_)}}, - // uint64 future_time_limit = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.future_time_limit_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.future_time_limit_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // uint64 difficulty_block_window = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.difficulty_block_window_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.difficulty_block_window_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // uint64 max_block_transaction_weight = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.max_block_transaction_weight_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_block_transaction_weight_)}}, - // uint64 pow_algo_count = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.pow_algo_count_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.pow_algo_count_)}}, - // uint64 median_timestamp_count = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.median_timestamp_count_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.median_timestamp_count_)}}, - // uint64 emission_initial = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.emission_initial_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_initial_)}}, - // repeated uint64 emission_decay = 11; - {::_pbi::TcParser::FastV64P1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_decay_)}}, - // uint64 emission_tail = 12 [deprecated = true]; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.emission_tail_), 63>(), - {96, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_tail_)}}, - // uint64 min_sha3x_pow_difficulty = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.min_sha3x_pow_difficulty_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.min_sha3x_pow_difficulty_)}}, - // uint64 block_weight_inputs = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.block_weight_inputs_), 63>(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_inputs_)}}, - // uint64 block_weight_outputs = 15; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.block_weight_outputs_), 63>(), - {120, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_outputs_)}}, - // uint64 block_weight_kernels = 16; - {::_pbi::TcParser::FastV64S2, - {384, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_kernels_)}}, - // uint64 pre_mine_value = 17; - {::_pbi::TcParser::FastV64S2, - {392, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.pre_mine_value_)}}, - // uint64 max_script_byte_size = 18; - {::_pbi::TcParser::FastV64S2, - {400, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_script_byte_size_)}}, - // uint64 validator_node_validity_period = 19; - {::_pbi::TcParser::FastV64S2, - {408, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_validity_period_)}}, - // uint64 effective_from_height = 20; - {::_pbi::TcParser::FastV64S2, - {416, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.effective_from_height_)}}, - // .tari.rpc.Range valid_blockchain_version_range = 21; - {::_pbi::TcParser::FastMtS2, - {426, 0, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.valid_blockchain_version_range_)}}, - // uint64 max_randomx_seed_height = 22; - {::_pbi::TcParser::FastV64S2, - {432, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_randomx_seed_height_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .tari.rpc.WeightParams transaction_weight = 24; - {::_pbi::TcParser::FastMtS2, - {450, 1, 3, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.transaction_weight_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .tari.rpc.Range input_version_range = 26; - {::_pbi::TcParser::FastMtS2, - {466, 2, 4, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.input_version_range_)}}, - // .tari.rpc.OutputsVersion output_version_range = 27; - {::_pbi::TcParser::FastMtS2, - {474, 3, 5, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.output_version_range_)}}, - // .tari.rpc.Range kernel_version_range = 28; - {::_pbi::TcParser::FastMtS2, - {482, 4, 6, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.kernel_version_range_)}}, - // repeated .tari.rpc.OutputType permitted_output_types = 29; - {::_pbi::TcParser::FastV32P2, - {490, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.permitted_output_types_)}}, - // uint64 epoch_length = 30; - {::_pbi::TcParser::FastV64S2, - {496, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.epoch_length_)}}, - // uint64 validator_node_registration_min_deposit_amount = 31; - {::_pbi::TcParser::FastV64S2, - {504, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_registration_min_deposit_amount_)}}, - }}, {{ - 33, 0, 1, - 65504, 29, - 65535, 65535 - }}, {{ - // uint64 coinbase_min_maturity = 1; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.coinbase_min_maturity_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint32 blockchain_version = 2; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.blockchain_version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint64 future_time_limit = 3; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.future_time_limit_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 difficulty_block_window = 5; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.difficulty_block_window_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 max_block_transaction_weight = 7; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_block_transaction_weight_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 pow_algo_count = 8; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.pow_algo_count_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 median_timestamp_count = 9; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.median_timestamp_count_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 emission_initial = 10; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_initial_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // repeated uint64 emission_decay = 11; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_decay_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt64)}, - // uint64 emission_tail = 12 [deprecated = true]; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_tail_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 min_sha3x_pow_difficulty = 13; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.min_sha3x_pow_difficulty_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 block_weight_inputs = 14; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_inputs_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 block_weight_outputs = 15; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_outputs_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 block_weight_kernels = 16; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_kernels_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 pre_mine_value = 17; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.pre_mine_value_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 max_script_byte_size = 18; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_script_byte_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 validator_node_validity_period = 19; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_validity_period_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 effective_from_height = 20; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.effective_from_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // .tari.rpc.Range valid_blockchain_version_range = 21; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.valid_blockchain_version_range_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 max_randomx_seed_height = 22; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_randomx_seed_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // map proof_of_work = 23; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.proof_of_work_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // .tari.rpc.WeightParams transaction_weight = 24; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.transaction_weight_), _Internal::kHasBitsOffset + 1, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.Range input_version_range = 26; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.input_version_range_), _Internal::kHasBitsOffset + 2, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.OutputsVersion output_version_range = 27; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.output_version_range_), _Internal::kHasBitsOffset + 3, 5, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.Range kernel_version_range = 28; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.kernel_version_range_), _Internal::kHasBitsOffset + 4, 6, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .tari.rpc.OutputType permitted_output_types = 29; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.permitted_output_types_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - // uint64 epoch_length = 30; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.epoch_length_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 validator_node_registration_min_deposit_amount = 31; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_registration_min_deposit_amount_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 validator_node_registration_min_lock_height = 32; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_registration_min_lock_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 validator_node_registration_shuffle_interval_epoch = 33; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_registration_shuffle_interval_epoch_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // repeated .tari.rpc.PermittedRangeProofs permitted_range_proof_types = 34; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.permitted_range_proof_types_), -1, 7, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 inflation_bips = 35; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.inflation_bips_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 tail_epoch_length = 36; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.tail_epoch_length_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 max_block_coinbase_count = 37; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_block_coinbase_count_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, - {::_pbi::TcParser::GetMapAuxInfo< - decltype(ConsensusConstants()._impl_.proof_of_work_)>( - 0, 0, 0, 13, - 11)}, - {::_pbi::TcParser::CreateInArenaStorageCb<::tari::rpc::PowAlgorithmConstants>}, - {::_pbi::TcParser::GetTable<::tari::rpc::WeightParams>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::OutputsVersion>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::PermittedRangeProofs>()}, - }}, {{ - }}, -}; - -::uint8_t* ConsensusConstants::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ConsensusConstants::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ConsensusConstants& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ConsensusConstants::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ConsensusConstants& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ConsensusConstants) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint64 coinbase_min_maturity = 1; - if (this->_internal_coinbase_min_maturity() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_coinbase_min_maturity(), target); + if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { + if (this_._internal_coinbase_min_maturity() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_coinbase_min_maturity(), target); + } } // uint32 blockchain_version = 2; - if (this->_internal_blockchain_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_blockchain_version(), target); + if ((this_._impl_._has_bits_[0] & 0x00100000u) != 0) { + if (this_._internal_blockchain_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_blockchain_version(), target); + } } // uint64 future_time_limit = 3; - if (this->_internal_future_time_limit() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_future_time_limit(), target); + if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { + if (this_._internal_future_time_limit() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_future_time_limit(), target); + } } // uint64 difficulty_block_window = 5; - if (this->_internal_difficulty_block_window() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_difficulty_block_window(), target); + if ((this_._impl_._has_bits_[0] & 0x00000080u) != 0) { + if (this_._internal_difficulty_block_window() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 5, this_._internal_difficulty_block_window(), target); + } } // uint64 max_block_transaction_weight = 7; - if (this->_internal_max_block_transaction_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 7, this->_internal_max_block_transaction_weight(), target); + if ((this_._impl_._has_bits_[0] & 0x00000100u) != 0) { + if (this_._internal_max_block_transaction_weight() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 7, this_._internal_max_block_transaction_weight(), target); + } } // uint64 pow_algo_count = 8; - if (this->_internal_pow_algo_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 8, this->_internal_pow_algo_count(), target); + if ((this_._impl_._has_bits_[0] & 0x00000200u) != 0) { + if (this_._internal_pow_algo_count() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 8, this_._internal_pow_algo_count(), target); + } } // uint64 median_timestamp_count = 9; - if (this->_internal_median_timestamp_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 9, this->_internal_median_timestamp_count(), target); + if ((this_._impl_._has_bits_[0] & 0x00000400u) != 0) { + if (this_._internal_median_timestamp_count() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 9, this_._internal_median_timestamp_count(), target); + } } // uint64 emission_initial = 10; - if (this->_internal_emission_initial() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 10, this->_internal_emission_initial(), target); + if ((this_._impl_._has_bits_[0] & 0x00000800u) != 0) { + if (this_._internal_emission_initial() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 10, this_._internal_emission_initial(), target); + } } // repeated uint64 emission_decay = 11; { - int byte_size = _impl_._emission_decay_cached_byte_size_.Get(); + int byte_size = this_._impl_._emission_decay_cached_byte_size_.Get(); if (byte_size > 0) { target = stream->WriteUInt64Packed( - 11, _internal_emission_decay(), byte_size, target); + 11, this_._internal_emission_decay(), byte_size, target); } } // uint64 emission_tail = 12 [deprecated = true]; - if (this->_internal_emission_tail() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 12, this->_internal_emission_tail(), target); + if ((this_._impl_._has_bits_[0] & 0x00001000u) != 0) { + if (this_._internal_emission_tail() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 12, this_._internal_emission_tail(), target); + } } // uint64 min_sha3x_pow_difficulty = 13; - if (this->_internal_min_sha3x_pow_difficulty() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 13, this->_internal_min_sha3x_pow_difficulty(), target); + if ((this_._impl_._has_bits_[0] & 0x00002000u) != 0) { + if (this_._internal_min_sha3x_pow_difficulty() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 13, this_._internal_min_sha3x_pow_difficulty(), target); + } } // uint64 block_weight_inputs = 14; - if (this->_internal_block_weight_inputs() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 14, this->_internal_block_weight_inputs(), target); + if ((this_._impl_._has_bits_[0] & 0x00004000u) != 0) { + if (this_._internal_block_weight_inputs() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 14, this_._internal_block_weight_inputs(), target); + } } // uint64 block_weight_outputs = 15; - if (this->_internal_block_weight_outputs() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 15, this->_internal_block_weight_outputs(), target); + if ((this_._impl_._has_bits_[0] & 0x00008000u) != 0) { + if (this_._internal_block_weight_outputs() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 15, this_._internal_block_weight_outputs(), target); + } } // uint64 block_weight_kernels = 16; - if (this->_internal_block_weight_kernels() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 16, this->_internal_block_weight_kernels(), target); + if ((this_._impl_._has_bits_[0] & 0x00010000u) != 0) { + if (this_._internal_block_weight_kernels() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 16, this_._internal_block_weight_kernels(), target); + } } // uint64 pre_mine_value = 17; - if (this->_internal_pre_mine_value() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 17, this->_internal_pre_mine_value(), target); + if ((this_._impl_._has_bits_[0] & 0x00020000u) != 0) { + if (this_._internal_pre_mine_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 17, this_._internal_pre_mine_value(), target); + } } // uint64 max_script_byte_size = 18; - if (this->_internal_max_script_byte_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 18, this->_internal_max_script_byte_size(), target); - } - - // uint64 validator_node_validity_period = 19; - if (this->_internal_validator_node_validity_period() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 19, this->_internal_validator_node_validity_period(), target); + if ((this_._impl_._has_bits_[0] & 0x00040000u) != 0) { + if (this_._internal_max_script_byte_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 18, this_._internal_max_script_byte_size(), target); + } } // uint64 effective_from_height = 20; - if (this->_internal_effective_from_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 20, this->_internal_effective_from_height(), target); + if ((this_._impl_._has_bits_[0] & 0x00080000u) != 0) { + if (this_._internal_effective_from_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 20, this_._internal_effective_from_height(), target); + } } - cached_has_bits = _impl_._has_bits_[0]; + cached_has_bits = this_._impl_._has_bits_[0]; // .tari.rpc.Range valid_blockchain_version_range = 21; - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 21, *_impl_.valid_blockchain_version_range_, _impl_.valid_blockchain_version_range_->GetCachedSize(), target, stream); + 21, *this_._impl_.valid_blockchain_version_range_, this_._impl_.valid_blockchain_version_range_->GetCachedSize(), target, + stream); } // uint64 max_randomx_seed_height = 22; - if (this->_internal_max_randomx_seed_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 22, this->_internal_max_randomx_seed_height(), target); + if ((cached_has_bits & 0x00400000u) != 0) { + if (this_._internal_max_randomx_seed_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 22, this_._internal_max_randomx_seed_height(), target); + } } // map proof_of_work = 23; - if (!_internal_proof_of_work().empty()) { + if (!this_._internal_proof_of_work().empty()) { using MapType = ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>; using WireHelper = _pbi::MapEntryFuncs<::uint32_t, ::tari::rpc::PowAlgorithmConstants, _pbi::WireFormatLite::TYPE_UINT32, _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = _internal_proof_of_work(); + const auto& field = this_._internal_proof_of_work(); if (stream->IsSerializationDeterministic() && field.size() > 1) { for (const auto& entry : ::google::protobuf::internal::MapSorterFlat(field)) { @@ -3617,71 +4653,83 @@ const ::_pbi::TcParseTable<5, 34, 8, 0, 7> ConsensusConstants::_table_ = { } // .tari.rpc.WeightParams transaction_weight = 24; - if (cached_has_bits & 0x00000002u) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 24, *_impl_.transaction_weight_, _impl_.transaction_weight_->GetCachedSize(), target, stream); + 24, *this_._impl_.transaction_weight_, this_._impl_.transaction_weight_->GetCachedSize(), target, + stream); } // .tari.rpc.Range input_version_range = 26; - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 26, *_impl_.input_version_range_, _impl_.input_version_range_->GetCachedSize(), target, stream); + 26, *this_._impl_.input_version_range_, this_._impl_.input_version_range_->GetCachedSize(), target, + stream); } // .tari.rpc.OutputsVersion output_version_range = 27; - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 27, *_impl_.output_version_range_, _impl_.output_version_range_->GetCachedSize(), target, stream); + 27, *this_._impl_.output_version_range_, this_._impl_.output_version_range_->GetCachedSize(), target, + stream); } // .tari.rpc.Range kernel_version_range = 28; - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 28, *_impl_.kernel_version_range_, _impl_.kernel_version_range_->GetCachedSize(), target, stream); + 28, *this_._impl_.kernel_version_range_, this_._impl_.kernel_version_range_->GetCachedSize(), target, + stream); } // repeated .tari.rpc.OutputType permitted_output_types = 29; { - std::size_t byte_size = _impl_._permitted_output_types_cached_byte_size_.Get(); + ::size_t byte_size = this_._impl_._permitted_output_types_cached_byte_size_.Get(); if (byte_size > 0) { - target = stream->WriteEnumPacked(29, _internal_permitted_output_types(), - byte_size, target); + target = stream->WriteEnumPacked( + 29, this_._internal_permitted_output_types(), byte_size, target); } } // uint64 epoch_length = 30; - if (this->_internal_epoch_length() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 30, this->_internal_epoch_length(), target); + if ((cached_has_bits & 0x00800000u) != 0) { + if (this_._internal_epoch_length() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 30, this_._internal_epoch_length(), target); + } } // uint64 validator_node_registration_min_deposit_amount = 31; - if (this->_internal_validator_node_registration_min_deposit_amount() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 31, this->_internal_validator_node_registration_min_deposit_amount(), target); + if ((cached_has_bits & 0x01000000u) != 0) { + if (this_._internal_validator_node_registration_min_deposit_amount() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 31, this_._internal_validator_node_registration_min_deposit_amount(), target); + } } // uint64 validator_node_registration_min_lock_height = 32; - if (this->_internal_validator_node_registration_min_lock_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 32, this->_internal_validator_node_registration_min_lock_height(), target); + if ((cached_has_bits & 0x02000000u) != 0) { + if (this_._internal_validator_node_registration_min_lock_height() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 32, this_._internal_validator_node_registration_min_lock_height(), target); + } } // uint64 validator_node_registration_shuffle_interval_epoch = 33; - if (this->_internal_validator_node_registration_shuffle_interval_epoch() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 33, this->_internal_validator_node_registration_shuffle_interval_epoch(), target); + if ((cached_has_bits & 0x04000000u) != 0) { + if (this_._internal_validator_node_registration_shuffle_interval_epoch() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 33, this_._internal_validator_node_registration_shuffle_interval_epoch(), target); + } } // repeated .tari.rpc.PermittedRangeProofs permitted_range_proof_types = 34; for (unsigned i = 0, n = static_cast( - this->_internal_permitted_range_proof_types_size()); + this_._internal_permitted_range_proof_types_size()); i < n; i++) { - const auto& repfield = this->_internal_permitted_range_proof_types().Get(i); + const auto& repfield = this_._internal_permitted_range_proof_types().Get(i); target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 34, repfield, repfield.GetCachedSize(), @@ -3689,272 +4737,325 @@ const ::_pbi::TcParseTable<5, 34, 8, 0, 7> ConsensusConstants::_table_ = { } // uint64 inflation_bips = 35; - if (this->_internal_inflation_bips() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 35, this->_internal_inflation_bips(), target); + if ((cached_has_bits & 0x08000000u) != 0) { + if (this_._internal_inflation_bips() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 35, this_._internal_inflation_bips(), target); + } } // uint64 tail_epoch_length = 36; - if (this->_internal_tail_epoch_length() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 36, this->_internal_tail_epoch_length(), target); + if ((cached_has_bits & 0x10000000u) != 0) { + if (this_._internal_tail_epoch_length() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 36, this_._internal_tail_epoch_length(), target); + } } // uint64 max_block_coinbase_count = 37; - if (this->_internal_max_block_coinbase_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 37, this->_internal_max_block_coinbase_count(), target); + if ((cached_has_bits & 0x20000000u) != 0) { + if (this_._internal_max_block_coinbase_count() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 37, this_._internal_max_block_coinbase_count(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + // uint32 vn_registration_max_vns_initial_epoch = 38; + if ((cached_has_bits & 0x00200000u) != 0) { + if (this_._internal_vn_registration_max_vns_initial_epoch() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 38, this_._internal_vn_registration_max_vns_initial_epoch(), target); + } + } + + // uint32 vn_registration_max_vns_per_epoch = 39; + if ((cached_has_bits & 0x40000000u) != 0) { + if (this_._internal_vn_registration_max_vns_per_epoch() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 39, this_._internal_vn_registration_max_vns_per_epoch(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ConsensusConstants) return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ConsensusConstants::ByteSizeLong(const MessageLite& base) { + const ConsensusConstants& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE ::size_t ConsensusConstants::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ConsensusConstants) + const ConsensusConstants& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:tari.rpc.ConsensusConstants) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + (void)cached_has_bits; - // repeated uint64 emission_decay = 11; - { - std::size_t data_size = ::_pbi::WireFormatLite::UInt64Size( - this->_internal_emission_decay()) - ; - _impl_._emission_decay_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - // map proof_of_work = 23; - total_size += 2 * ::google::protobuf::internal::FromIntSize(_internal_proof_of_work_size()); - for (const auto& entry : _internal_proof_of_work()) { - total_size += _pbi::MapEntryFuncs<::uint32_t, ::tari::rpc::PowAlgorithmConstants, - _pbi::WireFormatLite::TYPE_UINT32, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); - } - // repeated .tari.rpc.OutputType permitted_output_types = 29; - { - std::size_t data_size = 0; - auto count = static_cast(this->_internal_permitted_output_types_size()); - - for (std::size_t i = 0; i < count; ++i) { - data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_permitted_output_types().Get(static_cast(i))); + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated uint64 emission_decay = 11; + { + total_size += + ::_pbi::WireFormatLite::UInt64SizeWithPackedTagSize( + this_._internal_emission_decay(), 1, + this_._impl_._emission_decay_cached_byte_size_); } - total_size += data_size; - if (data_size > 0) { - total_size += 2; - total_size += ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)); + // map proof_of_work = 23; + { + total_size += + 2 * ::google::protobuf::internal::FromIntSize(this_._internal_proof_of_work_size()); + for (const auto& entry : this_._internal_proof_of_work()) { + total_size += _pbi::MapEntryFuncs<::uint32_t, ::tari::rpc::PowAlgorithmConstants, + _pbi::WireFormatLite::TYPE_UINT32, + _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + } + } + // repeated .tari.rpc.OutputType permitted_output_types = 29; + { + total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( + this_._internal_permitted_output_types(), 2, this_._impl_._permitted_output_types_cached_byte_size_); + } + // 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); + } } - _impl_._permitted_output_types_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); } - // 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); - } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { // .tari.rpc.Range valid_blockchain_version_range = 21; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.valid_blockchain_version_range_); + if ((cached_has_bits & 0x00000001u) != 0) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.valid_blockchain_version_range_); } - // .tari.rpc.WeightParams transaction_weight = 24; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.transaction_weight_); + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.transaction_weight_); } - // .tari.rpc.Range input_version_range = 26; - if (cached_has_bits & 0x00000004u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.input_version_range_); + if ((cached_has_bits & 0x00000004u) != 0) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.input_version_range_); } - // .tari.rpc.OutputsVersion output_version_range = 27; - if (cached_has_bits & 0x00000008u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.output_version_range_); + if ((cached_has_bits & 0x00000008u) != 0) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.output_version_range_); } - // .tari.rpc.Range kernel_version_range = 28; - if (cached_has_bits & 0x00000010u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kernel_version_range_); + if ((cached_has_bits & 0x00000010u) != 0) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.kernel_version_range_); + } + // uint64 coinbase_min_maturity = 1; + if ((cached_has_bits & 0x00000020u) != 0) { + if (this_._internal_coinbase_min_maturity() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_coinbase_min_maturity()); + } + } + // uint64 future_time_limit = 3; + if ((cached_has_bits & 0x00000040u) != 0) { + if (this_._internal_future_time_limit() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_future_time_limit()); + } + } + // uint64 difficulty_block_window = 5; + if ((cached_has_bits & 0x00000080u) != 0) { + if (this_._internal_difficulty_block_window() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_difficulty_block_window()); + } } - } - // uint64 coinbase_min_maturity = 1; - if (this->_internal_coinbase_min_maturity() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_coinbase_min_maturity()); + if ((cached_has_bits & 0x0000ff00u) != 0) { + // uint64 max_block_transaction_weight = 7; + if ((cached_has_bits & 0x00000100u) != 0) { + if (this_._internal_max_block_transaction_weight() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_max_block_transaction_weight()); + } + } + // uint64 pow_algo_count = 8; + if ((cached_has_bits & 0x00000200u) != 0) { + if (this_._internal_pow_algo_count() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_pow_algo_count()); + } + } + // uint64 median_timestamp_count = 9; + if ((cached_has_bits & 0x00000400u) != 0) { + if (this_._internal_median_timestamp_count() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_median_timestamp_count()); + } + } + // uint64 emission_initial = 10; + if ((cached_has_bits & 0x00000800u) != 0) { + if (this_._internal_emission_initial() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_emission_initial()); + } + } + // uint64 emission_tail = 12 [deprecated = true]; + if ((cached_has_bits & 0x00001000u) != 0) { + if (this_._internal_emission_tail() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_emission_tail()); + } + } + // uint64 min_sha3x_pow_difficulty = 13; + if ((cached_has_bits & 0x00002000u) != 0) { + if (this_._internal_min_sha3x_pow_difficulty() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_min_sha3x_pow_difficulty()); + } + } + // uint64 block_weight_inputs = 14; + if ((cached_has_bits & 0x00004000u) != 0) { + if (this_._internal_block_weight_inputs() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_block_weight_inputs()); + } + } + // uint64 block_weight_outputs = 15; + if ((cached_has_bits & 0x00008000u) != 0) { + if (this_._internal_block_weight_outputs() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_block_weight_outputs()); + } + } } - - // uint64 future_time_limit = 3; - if (this->_internal_future_time_limit() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_future_time_limit()); + if ((cached_has_bits & 0x00ff0000u) != 0) { + // uint64 block_weight_kernels = 16; + if ((cached_has_bits & 0x00010000u) != 0) { + if (this_._internal_block_weight_kernels() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_block_weight_kernels()); + } + } + // uint64 pre_mine_value = 17; + if ((cached_has_bits & 0x00020000u) != 0) { + if (this_._internal_pre_mine_value() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_pre_mine_value()); + } + } + // uint64 max_script_byte_size = 18; + if ((cached_has_bits & 0x00040000u) != 0) { + if (this_._internal_max_script_byte_size() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_max_script_byte_size()); + } + } + // uint64 effective_from_height = 20; + if ((cached_has_bits & 0x00080000u) != 0) { + if (this_._internal_effective_from_height() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_effective_from_height()); + } + } + // uint32 blockchain_version = 2; + if ((cached_has_bits & 0x00100000u) != 0) { + if (this_._internal_blockchain_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_blockchain_version()); + } + } + // uint32 vn_registration_max_vns_initial_epoch = 38; + if ((cached_has_bits & 0x00200000u) != 0) { + if (this_._internal_vn_registration_max_vns_initial_epoch() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( + this_._internal_vn_registration_max_vns_initial_epoch()); + } + } + // uint64 max_randomx_seed_height = 22; + if ((cached_has_bits & 0x00400000u) != 0) { + if (this_._internal_max_randomx_seed_height() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_max_randomx_seed_height()); + } + } + // uint64 epoch_length = 30; + if ((cached_has_bits & 0x00800000u) != 0) { + if (this_._internal_epoch_length() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_epoch_length()); + } + } } - - // uint64 difficulty_block_window = 5; - if (this->_internal_difficulty_block_window() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_difficulty_block_window()); + if ((cached_has_bits & 0x7f000000u) != 0) { + // uint64 validator_node_registration_min_deposit_amount = 31; + if ((cached_has_bits & 0x01000000u) != 0) { + if (this_._internal_validator_node_registration_min_deposit_amount() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_validator_node_registration_min_deposit_amount()); + } + } + // uint64 validator_node_registration_min_lock_height = 32; + if ((cached_has_bits & 0x02000000u) != 0) { + if (this_._internal_validator_node_registration_min_lock_height() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_validator_node_registration_min_lock_height()); + } + } + // uint64 validator_node_registration_shuffle_interval_epoch = 33; + if ((cached_has_bits & 0x04000000u) != 0) { + if (this_._internal_validator_node_registration_shuffle_interval_epoch() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_validator_node_registration_shuffle_interval_epoch()); + } + } + // uint64 inflation_bips = 35; + if ((cached_has_bits & 0x08000000u) != 0) { + if (this_._internal_inflation_bips() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_inflation_bips()); + } + } + // uint64 tail_epoch_length = 36; + if ((cached_has_bits & 0x10000000u) != 0) { + if (this_._internal_tail_epoch_length() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_tail_epoch_length()); + } + } + // uint64 max_block_coinbase_count = 37; + if ((cached_has_bits & 0x20000000u) != 0) { + if (this_._internal_max_block_coinbase_count() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( + this_._internal_max_block_coinbase_count()); + } + } + // uint32 vn_registration_max_vns_per_epoch = 39; + if ((cached_has_bits & 0x40000000u) != 0) { + if (this_._internal_vn_registration_max_vns_per_epoch() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( + this_._internal_vn_registration_max_vns_per_epoch()); + } + } } - - // uint64 max_block_transaction_weight = 7; - if (this->_internal_max_block_transaction_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_max_block_transaction_weight()); - } - - // uint64 pow_algo_count = 8; - if (this->_internal_pow_algo_count() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_pow_algo_count()); - } - - // uint64 median_timestamp_count = 9; - if (this->_internal_median_timestamp_count() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_median_timestamp_count()); - } - - // uint64 emission_initial = 10; - if (this->_internal_emission_initial() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_emission_initial()); - } - - // uint64 emission_tail = 12 [deprecated = true]; - if (this->_internal_emission_tail() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_emission_tail()); - } - - // uint64 min_sha3x_pow_difficulty = 13; - if (this->_internal_min_sha3x_pow_difficulty() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_min_sha3x_pow_difficulty()); - } - - // uint64 block_weight_inputs = 14; - if (this->_internal_block_weight_inputs() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_block_weight_inputs()); - } - - // uint64 block_weight_outputs = 15; - if (this->_internal_block_weight_outputs() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_block_weight_outputs()); - } - - // uint64 block_weight_kernels = 16; - if (this->_internal_block_weight_kernels() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_block_weight_kernels()); - } - - // uint64 pre_mine_value = 17; - if (this->_internal_pre_mine_value() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_pre_mine_value()); - } - - // uint64 max_script_byte_size = 18; - if (this->_internal_max_script_byte_size() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_max_script_byte_size()); - } - - // uint64 validator_node_validity_period = 19; - if (this->_internal_validator_node_validity_period() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_validator_node_validity_period()); - } - - // uint64 effective_from_height = 20; - if (this->_internal_effective_from_height() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_effective_from_height()); - } - - // uint64 max_randomx_seed_height = 22; - if (this->_internal_max_randomx_seed_height() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_max_randomx_seed_height()); - } - - // uint64 epoch_length = 30; - if (this->_internal_epoch_length() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_epoch_length()); - } - - // uint64 validator_node_registration_min_deposit_amount = 31; - if (this->_internal_validator_node_registration_min_deposit_amount() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_validator_node_registration_min_deposit_amount()); - } - - // uint64 validator_node_registration_min_lock_height = 32; - if (this->_internal_validator_node_registration_min_lock_height() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_validator_node_registration_min_lock_height()); - } - - // uint64 validator_node_registration_shuffle_interval_epoch = 33; - if (this->_internal_validator_node_registration_shuffle_interval_epoch() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_validator_node_registration_shuffle_interval_epoch()); - } - - // uint64 inflation_bips = 35; - if (this->_internal_inflation_bips() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_inflation_bips()); - } - - // uint64 tail_epoch_length = 36; - if (this->_internal_tail_epoch_length() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_tail_epoch_length()); - } - - // uint64 max_block_coinbase_count = 37; - if (this->_internal_max_block_coinbase_count() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_max_block_coinbase_count()); - } - - // uint32 blockchain_version = 2; - if (this->_internal_blockchain_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_blockchain_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } - 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); @@ -3970,127 +5071,183 @@ void ConsensusConstants::MergeImpl(::google::protobuf::MessageLite& to_msg, cons _this->_internal_mutable_permitted_range_proof_types()->MergeFrom( from._internal_permitted_range_proof_types()); cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { 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_); + _this->_impl_.valid_blockchain_version_range_ = ::google::protobuf::Message::CopyConstruct(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) { + if ((cached_has_bits & 0x00000002u) != 0) { 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_); + _this->_impl_.transaction_weight_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.transaction_weight_); } else { _this->_impl_.transaction_weight_->MergeFrom(*from._impl_.transaction_weight_); } } - if (cached_has_bits & 0x00000004u) { + if ((cached_has_bits & 0x00000004u) != 0) { 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_); + _this->_impl_.input_version_range_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.input_version_range_); } else { _this->_impl_.input_version_range_->MergeFrom(*from._impl_.input_version_range_); } } - if (cached_has_bits & 0x00000008u) { + if ((cached_has_bits & 0x00000008u) != 0) { 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_); + _this->_impl_.output_version_range_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.output_version_range_); } else { _this->_impl_.output_version_range_->MergeFrom(*from._impl_.output_version_range_); } } - if (cached_has_bits & 0x00000010u) { + if ((cached_has_bits & 0x00000010u) != 0) { 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_); + _this->_impl_.kernel_version_range_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.kernel_version_range_); } else { _this->_impl_.kernel_version_range_->MergeFrom(*from._impl_.kernel_version_range_); } } + if ((cached_has_bits & 0x00000020u) != 0) { + if (from._internal_coinbase_min_maturity() != 0) { + _this->_impl_.coinbase_min_maturity_ = from._impl_.coinbase_min_maturity_; + } + } + if ((cached_has_bits & 0x00000040u) != 0) { + if (from._internal_future_time_limit() != 0) { + _this->_impl_.future_time_limit_ = from._impl_.future_time_limit_; + } + } + if ((cached_has_bits & 0x00000080u) != 0) { + if (from._internal_difficulty_block_window() != 0) { + _this->_impl_.difficulty_block_window_ = from._impl_.difficulty_block_window_; + } + } } - if (from._internal_coinbase_min_maturity() != 0) { - _this->_impl_.coinbase_min_maturity_ = from._impl_.coinbase_min_maturity_; + if ((cached_has_bits & 0x0000ff00u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { + if (from._internal_max_block_transaction_weight() != 0) { + _this->_impl_.max_block_transaction_weight_ = from._impl_.max_block_transaction_weight_; + } + } + if ((cached_has_bits & 0x00000200u) != 0) { + if (from._internal_pow_algo_count() != 0) { + _this->_impl_.pow_algo_count_ = from._impl_.pow_algo_count_; + } + } + if ((cached_has_bits & 0x00000400u) != 0) { + if (from._internal_median_timestamp_count() != 0) { + _this->_impl_.median_timestamp_count_ = from._impl_.median_timestamp_count_; + } + } + if ((cached_has_bits & 0x00000800u) != 0) { + if (from._internal_emission_initial() != 0) { + _this->_impl_.emission_initial_ = from._impl_.emission_initial_; + } + } + if ((cached_has_bits & 0x00001000u) != 0) { + if (from._internal_emission_tail() != 0) { + _this->_impl_.emission_tail_ = from._impl_.emission_tail_; + } + } + if ((cached_has_bits & 0x00002000u) != 0) { + if (from._internal_min_sha3x_pow_difficulty() != 0) { + _this->_impl_.min_sha3x_pow_difficulty_ = from._impl_.min_sha3x_pow_difficulty_; + } + } + if ((cached_has_bits & 0x00004000u) != 0) { + if (from._internal_block_weight_inputs() != 0) { + _this->_impl_.block_weight_inputs_ = from._impl_.block_weight_inputs_; + } + } + if ((cached_has_bits & 0x00008000u) != 0) { + if (from._internal_block_weight_outputs() != 0) { + _this->_impl_.block_weight_outputs_ = from._impl_.block_weight_outputs_; + } + } } - if (from._internal_future_time_limit() != 0) { - _this->_impl_.future_time_limit_ = from._impl_.future_time_limit_; + if ((cached_has_bits & 0x00ff0000u) != 0) { + if ((cached_has_bits & 0x00010000u) != 0) { + if (from._internal_block_weight_kernels() != 0) { + _this->_impl_.block_weight_kernels_ = from._impl_.block_weight_kernels_; + } + } + if ((cached_has_bits & 0x00020000u) != 0) { + if (from._internal_pre_mine_value() != 0) { + _this->_impl_.pre_mine_value_ = from._impl_.pre_mine_value_; + } + } + if ((cached_has_bits & 0x00040000u) != 0) { + if (from._internal_max_script_byte_size() != 0) { + _this->_impl_.max_script_byte_size_ = from._impl_.max_script_byte_size_; + } + } + if ((cached_has_bits & 0x00080000u) != 0) { + if (from._internal_effective_from_height() != 0) { + _this->_impl_.effective_from_height_ = from._impl_.effective_from_height_; + } + } + if ((cached_has_bits & 0x00100000u) != 0) { + if (from._internal_blockchain_version() != 0) { + _this->_impl_.blockchain_version_ = from._impl_.blockchain_version_; + } + } + if ((cached_has_bits & 0x00200000u) != 0) { + if (from._internal_vn_registration_max_vns_initial_epoch() != 0) { + _this->_impl_.vn_registration_max_vns_initial_epoch_ = from._impl_.vn_registration_max_vns_initial_epoch_; + } + } + if ((cached_has_bits & 0x00400000u) != 0) { + if (from._internal_max_randomx_seed_height() != 0) { + _this->_impl_.max_randomx_seed_height_ = from._impl_.max_randomx_seed_height_; + } + } + if ((cached_has_bits & 0x00800000u) != 0) { + if (from._internal_epoch_length() != 0) { + _this->_impl_.epoch_length_ = from._impl_.epoch_length_; + } + } } - if (from._internal_difficulty_block_window() != 0) { - _this->_impl_.difficulty_block_window_ = from._impl_.difficulty_block_window_; - } - if (from._internal_max_block_transaction_weight() != 0) { - _this->_impl_.max_block_transaction_weight_ = from._impl_.max_block_transaction_weight_; - } - if (from._internal_pow_algo_count() != 0) { - _this->_impl_.pow_algo_count_ = from._impl_.pow_algo_count_; - } - if (from._internal_median_timestamp_count() != 0) { - _this->_impl_.median_timestamp_count_ = from._impl_.median_timestamp_count_; - } - if (from._internal_emission_initial() != 0) { - _this->_impl_.emission_initial_ = from._impl_.emission_initial_; - } - if (from._internal_emission_tail() != 0) { - _this->_impl_.emission_tail_ = from._impl_.emission_tail_; - } - if (from._internal_min_sha3x_pow_difficulty() != 0) { - _this->_impl_.min_sha3x_pow_difficulty_ = from._impl_.min_sha3x_pow_difficulty_; - } - if (from._internal_block_weight_inputs() != 0) { - _this->_impl_.block_weight_inputs_ = from._impl_.block_weight_inputs_; - } - if (from._internal_block_weight_outputs() != 0) { - _this->_impl_.block_weight_outputs_ = from._impl_.block_weight_outputs_; - } - if (from._internal_block_weight_kernels() != 0) { - _this->_impl_.block_weight_kernels_ = from._impl_.block_weight_kernels_; - } - if (from._internal_pre_mine_value() != 0) { - _this->_impl_.pre_mine_value_ = from._impl_.pre_mine_value_; - } - if (from._internal_max_script_byte_size() != 0) { - _this->_impl_.max_script_byte_size_ = from._impl_.max_script_byte_size_; - } - if (from._internal_validator_node_validity_period() != 0) { - _this->_impl_.validator_node_validity_period_ = from._impl_.validator_node_validity_period_; - } - if (from._internal_effective_from_height() != 0) { - _this->_impl_.effective_from_height_ = from._impl_.effective_from_height_; - } - if (from._internal_max_randomx_seed_height() != 0) { - _this->_impl_.max_randomx_seed_height_ = from._impl_.max_randomx_seed_height_; - } - if (from._internal_epoch_length() != 0) { - _this->_impl_.epoch_length_ = from._impl_.epoch_length_; - } - if (from._internal_validator_node_registration_min_deposit_amount() != 0) { - _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->_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->_impl_.validator_node_registration_shuffle_interval_epoch_ = from._impl_.validator_node_registration_shuffle_interval_epoch_; - } - if (from._internal_inflation_bips() != 0) { - _this->_impl_.inflation_bips_ = from._impl_.inflation_bips_; - } - if (from._internal_tail_epoch_length() != 0) { - _this->_impl_.tail_epoch_length_ = from._impl_.tail_epoch_length_; - } - if (from._internal_max_block_coinbase_count() != 0) { - _this->_impl_.max_block_coinbase_count_ = from._impl_.max_block_coinbase_count_; - } - if (from._internal_blockchain_version() != 0) { - _this->_impl_.blockchain_version_ = from._impl_.blockchain_version_; + if ((cached_has_bits & 0x7f000000u) != 0) { + if ((cached_has_bits & 0x01000000u) != 0) { + if (from._internal_validator_node_registration_min_deposit_amount() != 0) { + _this->_impl_.validator_node_registration_min_deposit_amount_ = from._impl_.validator_node_registration_min_deposit_amount_; + } + } + if ((cached_has_bits & 0x02000000u) != 0) { + if (from._internal_validator_node_registration_min_lock_height() != 0) { + _this->_impl_.validator_node_registration_min_lock_height_ = from._impl_.validator_node_registration_min_lock_height_; + } + } + if ((cached_has_bits & 0x04000000u) != 0) { + if (from._internal_validator_node_registration_shuffle_interval_epoch() != 0) { + _this->_impl_.validator_node_registration_shuffle_interval_epoch_ = from._impl_.validator_node_registration_shuffle_interval_epoch_; + } + } + if ((cached_has_bits & 0x08000000u) != 0) { + if (from._internal_inflation_bips() != 0) { + _this->_impl_.inflation_bips_ = from._impl_.inflation_bips_; + } + } + if ((cached_has_bits & 0x10000000u) != 0) { + if (from._internal_tail_epoch_length() != 0) { + _this->_impl_.tail_epoch_length_ = from._impl_.tail_epoch_length_; + } + } + if ((cached_has_bits & 0x20000000u) != 0) { + if (from._internal_max_block_coinbase_count() != 0) { + _this->_impl_.max_block_coinbase_count_ = from._impl_.max_block_coinbase_count_; + } + } + if ((cached_has_bits & 0x40000000u) != 0) { + if (from._internal_vn_registration_max_vns_per_epoch() != 0) { + _this->_impl_.vn_registration_max_vns_per_epoch_ = from._impl_.vn_registration_max_vns_per_epoch_; + } + } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); @@ -4103,12 +5260,9 @@ void ConsensusConstants::CopyFrom(const ConsensusConstants& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ConsensusConstants::IsInitialized() const { - return true; -} -void ConsensusConstants::InternalSwap(ConsensusConstants* PROTOBUF_RESTRICT other) { - using std::swap; +void ConsensusConstants::InternalSwap(ConsensusConstants* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.emission_decay_.InternalSwap(&other->_impl_.emission_decay_); @@ -4116,17 +5270,15 @@ void ConsensusConstants::InternalSwap(ConsensusConstants* PROTOBUF_RESTRICT othe _impl_.permitted_output_types_.InternalSwap(&other->_impl_.permitted_output_types_); _impl_.permitted_range_proof_types_.InternalSwap(&other->_impl_.permitted_range_proof_types_); ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.blockchain_version_) - + sizeof(ConsensusConstants::_impl_.blockchain_version_) + PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.vn_registration_max_vns_per_epoch_) + + sizeof(ConsensusConstants::_impl_.vn_registration_max_vns_per_epoch_) - PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.valid_blockchain_version_range_)>( reinterpret_cast(&_impl_.valid_blockchain_version_range_), reinterpret_cast(&other->_impl_.valid_blockchain_version_range_)); } ::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 ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) } // namespace rpc @@ -4136,8 +5288,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{}); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ [[maybe_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 393a62d..d8670cf 100644 --- a/external/src/Tari/proto/gRPC/types.pb.h +++ b/external/src/Tari/proto/gRPC/types.pb.h @@ -1,22 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: types.proto -// Protobuf C++ Version: 5.26.1 +// Protobuf C++ Version: 6.31.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_types_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_types_2eproto_2epb_2eh +#ifndef types_2eproto_2epb_2eh +#define types_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026001 +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6031001 #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" #include "google/protobuf/arenastring.h" @@ -26,11 +26,13 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_type_handler.h" // IWYU pragma: export #include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" +#include "google/protobuf/map_field.h" #include "google/protobuf/generated_enum_reflection.h" #include "google/protobuf/unknown_field_set.h" // @@protoc_insertion_point(includes) @@ -43,7 +45,8 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal } // namespace protobuf } // namespace google @@ -52,53 +55,77 @@ class AnyMetadata; struct TableStruct_types_2eproto { static const ::uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_types_2eproto; +extern "C" { +extern const ::google::protobuf::internal::DescriptorTable descriptor_table_types_2eproto; +} // extern "C" namespace tari { namespace rpc { +enum OutputType : int; +extern const uint32_t OutputType_internal_data_[]; +enum RangeProofType : int; +extern const uint32_t RangeProofType_internal_data_[]; class BlockHeight; struct BlockHeightDefaultTypeInternal; extern BlockHeightDefaultTypeInternal _BlockHeight_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull BlockHeight_class_data_; class ComAndPubSignature; struct ComAndPubSignatureDefaultTypeInternal; extern ComAndPubSignatureDefaultTypeInternal _ComAndPubSignature_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ComAndPubSignature_class_data_; class CommitmentSignature; struct CommitmentSignatureDefaultTypeInternal; extern CommitmentSignatureDefaultTypeInternal _CommitmentSignature_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull CommitmentSignature_class_data_; class ConsensusConstants; struct ConsensusConstantsDefaultTypeInternal; extern ConsensusConstantsDefaultTypeInternal _ConsensusConstants_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ConsensusConstants_class_data_; class ConsensusConstants_ProofOfWorkEntry_DoNotUse; struct ConsensusConstants_ProofOfWorkEntry_DoNotUseDefaultTypeInternal; extern ConsensusConstants_ProofOfWorkEntry_DoNotUseDefaultTypeInternal _ConsensusConstants_ProofOfWorkEntry_DoNotUse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ConsensusConstants_ProofOfWorkEntry_DoNotUse_class_data_; class Empty; struct EmptyDefaultTypeInternal; extern EmptyDefaultTypeInternal _Empty_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Empty_class_data_; class OutputsVersion; struct OutputsVersionDefaultTypeInternal; extern OutputsVersionDefaultTypeInternal _OutputsVersion_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull OutputsVersion_class_data_; class PermittedRangeProofs; struct PermittedRangeProofsDefaultTypeInternal; extern PermittedRangeProofsDefaultTypeInternal _PermittedRangeProofs_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull PermittedRangeProofs_class_data_; class PowAlgorithmConstants; struct PowAlgorithmConstantsDefaultTypeInternal; extern PowAlgorithmConstantsDefaultTypeInternal _PowAlgorithmConstants_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull PowAlgorithmConstants_class_data_; class Range; struct RangeDefaultTypeInternal; extern RangeDefaultTypeInternal _Range_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Range_class_data_; class RangeProof; struct RangeProofDefaultTypeInternal; extern RangeProofDefaultTypeInternal _RangeProof_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RangeProof_class_data_; class Signature; struct SignatureDefaultTypeInternal; extern SignatureDefaultTypeInternal _Signature_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Signature_class_data_; class WeightParams; struct WeightParamsDefaultTypeInternal; extern WeightParamsDefaultTypeInternal _WeightParams_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull WeightParams_class_data_; } // namespace rpc } // namespace tari namespace google { namespace protobuf { +template <> +internal::EnumTraitsT<::tari::rpc::OutputType_internal_data_> + internal::EnumTraitsImpl::value<::tari::rpc::OutputType>; +template <> +internal::EnumTraitsT<::tari::rpc::RangeProofType_internal_data_> + internal::EnumTraitsImpl::value<::tari::rpc::RangeProofType>; } // namespace protobuf } // namespace google @@ -111,67 +138,73 @@ enum OutputType : int { VALIDATOR_NODE_REGISTRATION = 3, CODE_TEMPLATE_REGISTRATION = 4, OutputType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), + ::std::numeric_limits<::int32_t>::min(), OutputType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ::std::numeric_limits<::int32_t>::max(), }; -bool OutputType_IsValid(int value); extern const uint32_t OutputType_internal_data_[]; -constexpr OutputType OutputType_MIN = static_cast(0); -constexpr OutputType OutputType_MAX = static_cast(4); -constexpr int OutputType_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -OutputType_descriptor(); +inline constexpr OutputType OutputType_MIN = + static_cast(0); +inline constexpr OutputType OutputType_MAX = + static_cast(4); +inline bool OutputType_IsValid(int value) { + return 0 <= value && value <= 4; +} +inline constexpr int OutputType_ARRAYSIZE = 4 + 1; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL OutputType_descriptor(); template -const std::string& OutputType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, +const ::std::string& OutputType_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, "Incorrect type passed to OutputType_Name()."); return OutputType_Name(static_cast(value)); } template <> -inline const std::string& OutputType_Name(OutputType value) { - return ::google::protobuf::internal::NameOfDenseEnum( +inline const ::std::string& OutputType_Name(OutputType value) { + return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool OutputType_Parse(absl::string_view name, OutputType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - OutputType_descriptor(), name, value); +inline bool OutputType_Parse( + ::absl::string_view name, OutputType* PROTOBUF_NONNULL value) { + return ::google::protobuf::internal::ParseNamedEnum(OutputType_descriptor(), name, + value); } enum RangeProofType : int { BULLETPROOF_PLUS = 0, REVEALED_VALUE = 1, RangeProofType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), + ::std::numeric_limits<::int32_t>::min(), RangeProofType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), + ::std::numeric_limits<::int32_t>::max(), }; -bool RangeProofType_IsValid(int value); extern const uint32_t RangeProofType_internal_data_[]; -constexpr RangeProofType RangeProofType_MIN = static_cast(0); -constexpr RangeProofType RangeProofType_MAX = static_cast(1); -constexpr int RangeProofType_ARRAYSIZE = 1 + 1; -const ::google::protobuf::EnumDescriptor* -RangeProofType_descriptor(); +inline constexpr RangeProofType RangeProofType_MIN = + static_cast(0); +inline constexpr RangeProofType RangeProofType_MAX = + static_cast(1); +inline bool RangeProofType_IsValid(int value) { + return 0 <= value && value <= 1; +} +inline constexpr int RangeProofType_ARRAYSIZE = 1 + 1; +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL RangeProofType_descriptor(); template -const std::string& RangeProofType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, +const ::std::string& RangeProofType_Name(T value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, "Incorrect type passed to RangeProofType_Name()."); return RangeProofType_Name(static_cast(value)); } template <> -inline const std::string& RangeProofType_Name(RangeProofType value) { - return ::google::protobuf::internal::NameOfDenseEnum( +inline const ::std::string& RangeProofType_Name(RangeProofType value) { + return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool RangeProofType_Parse(absl::string_view name, RangeProofType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - RangeProofType_descriptor(), name, value); +inline bool RangeProofType_Parse( + ::absl::string_view name, RangeProofType* PROTOBUF_NONNULL value) { + return ::google::protobuf::internal::ParseNamedEnum(RangeProofType_descriptor(), name, + value); } // =================================================================== @@ -183,25 +216,28 @@ class WeightParams final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.WeightParams) */ { public: inline WeightParams() : WeightParams(nullptr) {} - ~WeightParams() override; + ~WeightParams() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(WeightParams* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(WeightParams)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR WeightParams( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : WeightParams(nullptr, ::std::move(from)) {} inline WeightParams& operator=(const WeightParams& from) { CopyFrom(from); return *this; } inline WeightParams& operator=(WeightParams&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -213,42 +249,35 @@ class WeightParams final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const WeightParams& default_instance() { - return *internal_default_instance(); - } - static inline const WeightParams* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_WeightParams_default_instance_); } static constexpr int kIndexInFileMessages = 7; friend void swap(WeightParams& a, WeightParams& b) { a.Swap(&b); } - inline void Swap(WeightParams* other) { + inline void Swap(WeightParams* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(WeightParams* other) { + void UnsafeArenaSwap(WeightParams* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -256,7 +285,7 @@ class WeightParams final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - WeightParams* New(::google::protobuf::Arena* arena = nullptr) const final { + WeightParams* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -265,41 +294,63 @@ class WeightParams final : public ::google::protobuf::Message void MergeFrom(const WeightParams& from) { WeightParams::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(WeightParams* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(WeightParams* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.WeightParams"; } protected: - explicit WeightParams(::google::protobuf::Arena* arena); - WeightParams(::google::protobuf::Arena* arena, const WeightParams& from); - WeightParams(::google::protobuf::Arena* arena, WeightParams&& from) noexcept + explicit WeightParams(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + WeightParams(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const WeightParams& from); + WeightParams( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, WeightParams&& from) noexcept : WeightParams(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -353,10 +404,11 @@ class WeightParams final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -364,47 +416,55 @@ class WeightParams final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const WeightParams& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t kernel_weight_; ::uint64_t input_weight_; ::uint64_t output_weight_; ::uint64_t features_and_scripts_bytes_per_gram_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull WeightParams_class_data_; // ------------------------------------------------------------------- class Signature final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.Signature) */ { public: inline Signature() : Signature(nullptr) {} - ~Signature() override; + ~Signature() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Signature* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Signature)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR Signature( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : Signature(nullptr, ::std::move(from)) {} inline Signature& operator=(const Signature& from) { CopyFrom(from); return *this; } inline Signature& operator=(Signature&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -416,42 +476,35 @@ class Signature final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Signature& default_instance() { - return *internal_default_instance(); - } - static inline const Signature* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_Signature_default_instance_); } static constexpr int kIndexInFileMessages = 3; friend void swap(Signature& a, Signature& b) { a.Swap(&b); } - inline void Swap(Signature* other) { + inline void Swap(Signature* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Signature* other) { + void UnsafeArenaSwap(Signature* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -459,7 +512,7 @@ class Signature final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Signature* New(::google::protobuf::Arena* arena = nullptr) const final { + Signature* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -468,41 +521,63 @@ class Signature final : public ::google::protobuf::Message void MergeFrom(const Signature& from) { Signature::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Signature* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Signature* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.Signature"; } protected: - explicit Signature(::google::protobuf::Arena* arena); - Signature(::google::protobuf::Arena* arena, const Signature& from); - Signature(::google::protobuf::Arena* arena, Signature&& from) noexcept + explicit Signature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Signature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Signature& from); + Signature( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Signature&& from) noexcept : Signature(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -512,44 +587,43 @@ class Signature final : public ::google::protobuf::Message }; // bytes public_nonce = 1; void clear_public_nonce() ; - const std::string& public_nonce() const; - template + const ::std::string& public_nonce() const; + template void set_public_nonce(Arg_&& arg, Args_... args); - std::string* mutable_public_nonce(); - PROTOBUF_NODISCARD std::string* release_public_nonce(); - void set_allocated_public_nonce(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_public_nonce(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_nonce(); + void set_allocated_public_nonce(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_public_nonce() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_nonce( - const std::string& value); - std::string* _internal_mutable_public_nonce(); + const ::std::string& _internal_public_nonce() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_nonce(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_nonce(); public: // bytes signature = 2; void clear_signature() ; - const std::string& signature() const; - template + const ::std::string& signature() const; + template void set_signature(Arg_&& arg, Args_... args); - std::string* mutable_signature(); - PROTOBUF_NODISCARD std::string* release_signature(); - void set_allocated_signature(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_signature(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_signature(); + void set_allocated_signature(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_signature() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_signature( - const std::string& value); - std::string* _internal_mutable_signature(); + const ::std::string& _internal_signature() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_signature(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_signature(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -557,45 +631,53 @@ class Signature final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Signature& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr public_nonce_; ::google::protobuf::internal::ArenaStringPtr signature_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull Signature_class_data_; // ------------------------------------------------------------------- class RangeProof final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.RangeProof) */ { public: inline RangeProof() : RangeProof(nullptr) {} - ~RangeProof() override; + ~RangeProof() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(RangeProof* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RangeProof)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR RangeProof( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : RangeProof(nullptr, ::std::move(from)) {} inline RangeProof& operator=(const RangeProof& from) { CopyFrom(from); return *this; } inline RangeProof& operator=(RangeProof&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -607,42 +689,35 @@ class RangeProof final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RangeProof& default_instance() { - return *internal_default_instance(); - } - static inline const RangeProof* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RangeProof_default_instance_); } static constexpr int kIndexInFileMessages = 10; friend void swap(RangeProof& a, RangeProof& b) { a.Swap(&b); } - inline void Swap(RangeProof* other) { + inline void Swap(RangeProof* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RangeProof* other) { + void UnsafeArenaSwap(RangeProof* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -650,7 +725,7 @@ class RangeProof final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RangeProof* New(::google::protobuf::Arena* arena = nullptr) const final { + RangeProof* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -659,41 +734,63 @@ class RangeProof final : public ::google::protobuf::Message void MergeFrom(const RangeProof& from) { RangeProof::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(RangeProof* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(RangeProof* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.RangeProof"; } protected: - explicit RangeProof(::google::protobuf::Arena* arena); - RangeProof(::google::protobuf::Arena* arena, const RangeProof& from); - RangeProof(::google::protobuf::Arena* arena, RangeProof&& from) noexcept + explicit RangeProof(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RangeProof(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RangeProof& from); + RangeProof( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RangeProof&& from) noexcept : RangeProof(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -702,28 +799,28 @@ class RangeProof final : public ::google::protobuf::Message }; // bytes proof_bytes = 1; void clear_proof_bytes() ; - const std::string& proof_bytes() const; - template + const ::std::string& proof_bytes() const; + template void set_proof_bytes(Arg_&& arg, Args_... args); - std::string* mutable_proof_bytes(); - PROTOBUF_NODISCARD std::string* release_proof_bytes(); - void set_allocated_proof_bytes(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_proof_bytes(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_proof_bytes(); + void set_allocated_proof_bytes(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_proof_bytes() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_proof_bytes( - const std::string& value); - std::string* _internal_mutable_proof_bytes(); + const ::std::string& _internal_proof_bytes() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_proof_bytes(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_proof_bytes(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -731,44 +828,52 @@ class RangeProof final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RangeProof& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::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; }; + +extern const ::google::protobuf::internal::ClassDataFull RangeProof_class_data_; // ------------------------------------------------------------------- class Range final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.Range) */ { public: inline Range() : Range(nullptr) {} - ~Range() override; + ~Range() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Range* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Range)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR Range( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : Range(nullptr, ::std::move(from)) {} inline Range& operator=(const Range& from) { CopyFrom(from); return *this; } inline Range& operator=(Range&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -780,42 +885,35 @@ class Range final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Range& default_instance() { - return *internal_default_instance(); - } - static inline const Range* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_Range_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Range& a, Range& b) { a.Swap(&b); } - inline void Swap(Range* other) { + inline void Swap(Range* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Range* other) { + void UnsafeArenaSwap(Range* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -823,7 +921,7 @@ class Range final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Range* New(::google::protobuf::Arena* arena = nullptr) const final { + Range* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -832,41 +930,63 @@ class Range final : public ::google::protobuf::Message void MergeFrom(const Range& from) { Range::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Range* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Range* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.Range"; } protected: - explicit Range(::google::protobuf::Arena* arena); - Range(::google::protobuf::Arena* arena, const Range& from); - Range(::google::protobuf::Arena* arena, Range&& from) noexcept + explicit Range(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Range(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Range& from); + Range( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Range&& from) noexcept : Range(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -898,10 +1018,11 @@ class Range final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -909,45 +1030,53 @@ class Range final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Range& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t min_; ::uint64_t max_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull Range_class_data_; // ------------------------------------------------------------------- class PowAlgorithmConstants final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.PowAlgorithmConstants) */ { public: inline PowAlgorithmConstants() : PowAlgorithmConstants(nullptr) {} - ~PowAlgorithmConstants() override; + ~PowAlgorithmConstants() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PowAlgorithmConstants* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PowAlgorithmConstants)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR PowAlgorithmConstants( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : PowAlgorithmConstants(nullptr, ::std::move(from)) {} inline PowAlgorithmConstants& operator=(const PowAlgorithmConstants& from) { CopyFrom(from); return *this; } inline PowAlgorithmConstants& operator=(PowAlgorithmConstants&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -959,42 +1088,35 @@ class PowAlgorithmConstants final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const PowAlgorithmConstants& default_instance() { - return *internal_default_instance(); - } - static inline const PowAlgorithmConstants* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_PowAlgorithmConstants_default_instance_); } static constexpr int kIndexInFileMessages = 6; friend void swap(PowAlgorithmConstants& a, PowAlgorithmConstants& b) { a.Swap(&b); } - inline void Swap(PowAlgorithmConstants* other) { + inline void Swap(PowAlgorithmConstants* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PowAlgorithmConstants* other) { + void UnsafeArenaSwap(PowAlgorithmConstants* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1002,7 +1124,7 @@ class PowAlgorithmConstants final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - PowAlgorithmConstants* New(::google::protobuf::Arena* arena = nullptr) const final { + PowAlgorithmConstants* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1011,41 +1133,63 @@ class PowAlgorithmConstants final : public ::google::protobuf::Message void MergeFrom(const PowAlgorithmConstants& from) { PowAlgorithmConstants::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(PowAlgorithmConstants* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PowAlgorithmConstants* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.PowAlgorithmConstants"; } protected: - explicit PowAlgorithmConstants(::google::protobuf::Arena* arena); - PowAlgorithmConstants(::google::protobuf::Arena* arena, const PowAlgorithmConstants& from); - PowAlgorithmConstants(::google::protobuf::Arena* arena, PowAlgorithmConstants&& from) noexcept + explicit PowAlgorithmConstants(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PowAlgorithmConstants(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PowAlgorithmConstants& from); + PowAlgorithmConstants( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PowAlgorithmConstants&& from) noexcept : PowAlgorithmConstants(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1088,10 +1232,11 @@ class PowAlgorithmConstants final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1099,46 +1244,54 @@ class PowAlgorithmConstants final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PowAlgorithmConstants& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t min_difficulty_; ::uint64_t max_difficulty_; ::uint64_t target_time_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull PowAlgorithmConstants_class_data_; // ------------------------------------------------------------------- class PermittedRangeProofs final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.PermittedRangeProofs) */ { public: inline PermittedRangeProofs() : PermittedRangeProofs(nullptr) {} - ~PermittedRangeProofs() override; + ~PermittedRangeProofs() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PermittedRangeProofs* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PermittedRangeProofs)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR PermittedRangeProofs( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : PermittedRangeProofs(nullptr, ::std::move(from)) {} inline PermittedRangeProofs& operator=(const PermittedRangeProofs& from) { CopyFrom(from); return *this; } inline PermittedRangeProofs& operator=(PermittedRangeProofs&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1150,42 +1303,35 @@ class PermittedRangeProofs final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const PermittedRangeProofs& default_instance() { - return *internal_default_instance(); - } - static inline const PermittedRangeProofs* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_PermittedRangeProofs_default_instance_); } static constexpr int kIndexInFileMessages = 9; friend void swap(PermittedRangeProofs& a, PermittedRangeProofs& b) { a.Swap(&b); } - inline void Swap(PermittedRangeProofs* other) { + inline void Swap(PermittedRangeProofs* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PermittedRangeProofs* other) { + void UnsafeArenaSwap(PermittedRangeProofs* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1193,7 +1339,7 @@ class PermittedRangeProofs final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - PermittedRangeProofs* New(::google::protobuf::Arena* arena = nullptr) const final { + PermittedRangeProofs* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1202,41 +1348,63 @@ class PermittedRangeProofs final : public ::google::protobuf::Message void MergeFrom(const PermittedRangeProofs& from) { PermittedRangeProofs::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(PermittedRangeProofs* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PermittedRangeProofs* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.PermittedRangeProofs"; } protected: - explicit PermittedRangeProofs(::google::protobuf::Arena* arena); - PermittedRangeProofs(::google::protobuf::Arena* arena, const PermittedRangeProofs& from); - PermittedRangeProofs(::google::protobuf::Arena* arena, PermittedRangeProofs&& from) noexcept + explicit PermittedRangeProofs(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PermittedRangeProofs(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PermittedRangeProofs& from); + PermittedRangeProofs( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PermittedRangeProofs&& from) noexcept : PermittedRangeProofs(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1256,11 +1424,11 @@ class PermittedRangeProofs final : public ::google::protobuf::Message void set_range_proof_types(int index, ::tari::rpc::RangeProofType value); void add_range_proof_types(::tari::rpc::RangeProofType value); const ::google::protobuf::RepeatedField& range_proof_types() const; - ::google::protobuf::RepeatedField* mutable_range_proof_types(); + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_range_proof_types(); private: const ::google::protobuf::RepeatedField& _internal_range_proof_types() const; - ::google::protobuf::RepeatedField* _internal_mutable_range_proof_types(); + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_range_proof_types(); public: // .tari.rpc.OutputType output_type = 1; @@ -1277,10 +1445,11 @@ class PermittedRangeProofs final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1288,45 +1457,53 @@ class PermittedRangeProofs final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PermittedRangeProofs& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedField range_proof_types_; - mutable ::google::protobuf::internal::CachedSize _range_proof_types_cached_byte_size_; + ::google::protobuf::internal::CachedSize _range_proof_types_cached_byte_size_; int output_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull PermittedRangeProofs_class_data_; // ------------------------------------------------------------------- class Empty final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:tari.rpc.Empty) */ { public: inline Empty() : Empty(nullptr) {} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Empty* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Empty)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR Empty( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : Empty(nullptr, ::std::move(from)) {} inline Empty& operator=(const Empty& from) { CopyFrom(from); return *this; } inline Empty& operator=(Empty&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1338,42 +1515,35 @@ class Empty final : public ::google::protobuf::internal::ZeroFieldsBase ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Empty& default_instance() { - return *internal_default_instance(); - } - static inline const Empty* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_Empty_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(Empty& a, Empty& b) { a.Swap(&b); } - inline void Swap(Empty* other) { + inline void Swap(Empty* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Empty* other) { + void UnsafeArenaSwap(Empty* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1381,7 +1551,7 @@ class Empty final : public ::google::protobuf::internal::ZeroFieldsBase // implements Message ---------------------------------------------- - Empty* New(::google::protobuf::Arena* arena = nullptr) const final { + Empty* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; @@ -1394,26 +1564,44 @@ class Empty final : public ::google::protobuf::internal::ZeroFieldsBase } public: + bool IsInitialized() const { + return true; + } private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.Empty"; } protected: - explicit Empty(::google::protobuf::Arena* arena); - Empty(::google::protobuf::Arena* arena, const Empty& from); - Empty(::google::protobuf::Arena* arena, Empty&& from) noexcept + explicit Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Empty& from); + Empty( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Empty&& from) noexcept : Empty(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // @@protoc_insertion_point(class_scope:tari.rpc.Empty) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1421,41 +1609,48 @@ class Empty final : public ::google::protobuf::internal::ZeroFieldsBase 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Empty& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_types_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull Empty_class_data_; // ------------------------------------------------------------------- class CommitmentSignature final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.CommitmentSignature) */ { public: inline CommitmentSignature() : CommitmentSignature(nullptr) {} - ~CommitmentSignature() override; + ~CommitmentSignature() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CommitmentSignature* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CommitmentSignature)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR CommitmentSignature( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : CommitmentSignature(nullptr, ::std::move(from)) {} inline CommitmentSignature& operator=(const CommitmentSignature& from) { CopyFrom(from); return *this; } inline CommitmentSignature& operator=(CommitmentSignature&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1467,42 +1662,35 @@ class CommitmentSignature final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const CommitmentSignature& default_instance() { - return *internal_default_instance(); - } - static inline const CommitmentSignature* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_CommitmentSignature_default_instance_); } static constexpr int kIndexInFileMessages = 5; friend void swap(CommitmentSignature& a, CommitmentSignature& b) { a.Swap(&b); } - inline void Swap(CommitmentSignature* other) { + inline void Swap(CommitmentSignature* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CommitmentSignature* other) { + void UnsafeArenaSwap(CommitmentSignature* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1510,7 +1698,7 @@ class CommitmentSignature final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - CommitmentSignature* New(::google::protobuf::Arena* arena = nullptr) const final { + CommitmentSignature* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1519,41 +1707,63 @@ class CommitmentSignature final : public ::google::protobuf::Message void MergeFrom(const CommitmentSignature& from) { CommitmentSignature::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CommitmentSignature* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CommitmentSignature* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.CommitmentSignature"; } protected: - explicit CommitmentSignature(::google::protobuf::Arena* arena); - CommitmentSignature(::google::protobuf::Arena* arena, const CommitmentSignature& from); - CommitmentSignature(::google::protobuf::Arena* arena, CommitmentSignature&& from) noexcept + explicit CommitmentSignature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + CommitmentSignature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CommitmentSignature& from); + CommitmentSignature( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CommitmentSignature&& from) noexcept : CommitmentSignature(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1564,60 +1774,58 @@ class CommitmentSignature final : public ::google::protobuf::Message }; // bytes public_nonce = 1; void clear_public_nonce() ; - const std::string& public_nonce() const; - template + const ::std::string& public_nonce() const; + template void set_public_nonce(Arg_&& arg, Args_... args); - std::string* mutable_public_nonce(); - PROTOBUF_NODISCARD std::string* release_public_nonce(); - void set_allocated_public_nonce(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_public_nonce(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_nonce(); + void set_allocated_public_nonce(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_public_nonce() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_nonce( - const std::string& value); - std::string* _internal_mutable_public_nonce(); + const ::std::string& _internal_public_nonce() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_public_nonce(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_public_nonce(); public: // bytes u = 2; void clear_u() ; - const std::string& u() const; - template + const ::std::string& u() const; + template void set_u(Arg_&& arg, Args_... args); - std::string* mutable_u(); - PROTOBUF_NODISCARD std::string* release_u(); - void set_allocated_u(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_u(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_u(); + void set_allocated_u(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_u() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_u( - const std::string& value); - std::string* _internal_mutable_u(); + const ::std::string& _internal_u() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_u(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_u(); public: // bytes v = 3; void clear_v() ; - const std::string& v() const; - template + const ::std::string& v() const; + template void set_v(Arg_&& arg, Args_... args); - std::string* mutable_v(); - PROTOBUF_NODISCARD std::string* release_v(); - void set_allocated_v(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_v(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_v(); + void set_allocated_v(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_v() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_v( - const std::string& value); - std::string* _internal_mutable_v(); + const ::std::string& _internal_v() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_v(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_v(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1625,46 +1833,54 @@ class CommitmentSignature final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const CommitmentSignature& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr public_nonce_; ::google::protobuf::internal::ArenaStringPtr u_; ::google::protobuf::internal::ArenaStringPtr v_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull CommitmentSignature_class_data_; // ------------------------------------------------------------------- class ComAndPubSignature final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ComAndPubSignature) */ { public: inline ComAndPubSignature() : ComAndPubSignature(nullptr) {} - ~ComAndPubSignature() override; + ~ComAndPubSignature() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ComAndPubSignature* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ComAndPubSignature)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR ComAndPubSignature( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : ComAndPubSignature(nullptr, ::std::move(from)) {} inline ComAndPubSignature& operator=(const ComAndPubSignature& from) { CopyFrom(from); return *this; } inline ComAndPubSignature& operator=(ComAndPubSignature&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1676,42 +1892,35 @@ class ComAndPubSignature final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ComAndPubSignature& default_instance() { - return *internal_default_instance(); - } - static inline const ComAndPubSignature* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ComAndPubSignature_default_instance_); } static constexpr int kIndexInFileMessages = 4; friend void swap(ComAndPubSignature& a, ComAndPubSignature& b) { a.Swap(&b); } - inline void Swap(ComAndPubSignature* other) { + inline void Swap(ComAndPubSignature* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ComAndPubSignature* other) { + void UnsafeArenaSwap(ComAndPubSignature* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1719,7 +1928,7 @@ class ComAndPubSignature final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ComAndPubSignature* New(::google::protobuf::Arena* arena = nullptr) const final { + ComAndPubSignature* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1728,41 +1937,63 @@ class ComAndPubSignature final : public ::google::protobuf::Message void MergeFrom(const ComAndPubSignature& from) { ComAndPubSignature::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ComAndPubSignature* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ComAndPubSignature* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.ComAndPubSignature"; } protected: - explicit ComAndPubSignature(::google::protobuf::Arena* arena); - ComAndPubSignature(::google::protobuf::Arena* arena, const ComAndPubSignature& from); - ComAndPubSignature(::google::protobuf::Arena* arena, ComAndPubSignature&& from) noexcept + explicit ComAndPubSignature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ComAndPubSignature(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ComAndPubSignature& from); + ComAndPubSignature( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ComAndPubSignature&& from) noexcept : ComAndPubSignature(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1775,92 +2006,88 @@ class ComAndPubSignature final : public ::google::protobuf::Message }; // bytes ephemeral_commitment = 1; void clear_ephemeral_commitment() ; - const std::string& ephemeral_commitment() const; - template + const ::std::string& ephemeral_commitment() const; + template void set_ephemeral_commitment(Arg_&& arg, Args_... args); - std::string* mutable_ephemeral_commitment(); - PROTOBUF_NODISCARD std::string* release_ephemeral_commitment(); - void set_allocated_ephemeral_commitment(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_ephemeral_commitment(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_ephemeral_commitment(); + void set_allocated_ephemeral_commitment(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_ephemeral_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ephemeral_commitment( - const std::string& value); - std::string* _internal_mutable_ephemeral_commitment(); + const ::std::string& _internal_ephemeral_commitment() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_ephemeral_commitment(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_ephemeral_commitment(); public: // bytes ephemeral_pubkey = 2; void clear_ephemeral_pubkey() ; - const std::string& ephemeral_pubkey() const; - template + const ::std::string& ephemeral_pubkey() const; + template void set_ephemeral_pubkey(Arg_&& arg, Args_... args); - std::string* mutable_ephemeral_pubkey(); - PROTOBUF_NODISCARD std::string* release_ephemeral_pubkey(); - void set_allocated_ephemeral_pubkey(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_ephemeral_pubkey(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_ephemeral_pubkey(); + void set_allocated_ephemeral_pubkey(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_ephemeral_pubkey() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ephemeral_pubkey( - const std::string& value); - std::string* _internal_mutable_ephemeral_pubkey(); + const ::std::string& _internal_ephemeral_pubkey() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_ephemeral_pubkey(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_ephemeral_pubkey(); public: // bytes u_a = 3; void clear_u_a() ; - const std::string& u_a() const; - template + const ::std::string& u_a() const; + template void set_u_a(Arg_&& arg, Args_... args); - std::string* mutable_u_a(); - PROTOBUF_NODISCARD std::string* release_u_a(); - void set_allocated_u_a(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_u_a(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_u_a(); + void set_allocated_u_a(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_u_a() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_u_a( - const std::string& value); - std::string* _internal_mutable_u_a(); + const ::std::string& _internal_u_a() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_u_a(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_u_a(); public: // bytes u_x = 4; void clear_u_x() ; - const std::string& u_x() const; - template + const ::std::string& u_x() const; + template void set_u_x(Arg_&& arg, Args_... args); - std::string* mutable_u_x(); - PROTOBUF_NODISCARD std::string* release_u_x(); - void set_allocated_u_x(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_u_x(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_u_x(); + void set_allocated_u_x(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_u_x() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_u_x( - const std::string& value); - std::string* _internal_mutable_u_x(); + const ::std::string& _internal_u_x() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_u_x(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_u_x(); public: // bytes u_y = 5; void clear_u_y() ; - const std::string& u_y() const; - template + const ::std::string& u_y() const; + template void set_u_y(Arg_&& arg, Args_... args); - std::string* mutable_u_y(); - PROTOBUF_NODISCARD std::string* release_u_y(); - void set_allocated_u_y(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_u_y(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_u_y(); + void set_allocated_u_y(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_u_y() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_u_y( - const std::string& value); - std::string* _internal_mutable_u_y(); + const ::std::string& _internal_u_y() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_u_y(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_u_y(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<3, 5, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1868,48 +2095,56 @@ class ComAndPubSignature final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ComAndPubSignature& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr ephemeral_commitment_; ::google::protobuf::internal::ArenaStringPtr ephemeral_pubkey_; ::google::protobuf::internal::ArenaStringPtr u_a_; ::google::protobuf::internal::ArenaStringPtr u_x_; ::google::protobuf::internal::ArenaStringPtr u_y_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ComAndPubSignature_class_data_; // ------------------------------------------------------------------- class BlockHeight final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.BlockHeight) */ { public: inline BlockHeight() : BlockHeight(nullptr) {} - ~BlockHeight() override; + ~BlockHeight() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(BlockHeight* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(BlockHeight)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR BlockHeight( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : BlockHeight(nullptr, ::std::move(from)) {} inline BlockHeight& operator=(const BlockHeight& from) { CopyFrom(from); return *this; } inline BlockHeight& operator=(BlockHeight&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1921,42 +2156,35 @@ class BlockHeight final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const BlockHeight& default_instance() { - return *internal_default_instance(); - } - static inline const BlockHeight* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_BlockHeight_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(BlockHeight& a, BlockHeight& b) { a.Swap(&b); } - inline void Swap(BlockHeight* other) { + inline void Swap(BlockHeight* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(BlockHeight* other) { + void UnsafeArenaSwap(BlockHeight* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1964,7 +2192,7 @@ class BlockHeight final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - BlockHeight* New(::google::protobuf::Arena* arena = nullptr) const final { + BlockHeight* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1973,41 +2201,63 @@ class BlockHeight final : public ::google::protobuf::Message void MergeFrom(const BlockHeight& from) { BlockHeight::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockHeight* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(BlockHeight* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.BlockHeight"; } protected: - explicit BlockHeight(::google::protobuf::Arena* arena); - BlockHeight(::google::protobuf::Arena* arena, const BlockHeight& from); - BlockHeight(::google::protobuf::Arena* arena, BlockHeight&& from) noexcept + explicit BlockHeight(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + BlockHeight(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BlockHeight& from); + BlockHeight( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BlockHeight&& from) noexcept : BlockHeight(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -2028,10 +2278,11 @@ class BlockHeight final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2039,44 +2290,52 @@ class BlockHeight final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const BlockHeight& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t block_height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull BlockHeight_class_data_; // ------------------------------------------------------------------- class OutputsVersion final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.OutputsVersion) */ { public: inline OutputsVersion() : OutputsVersion(nullptr) {} - ~OutputsVersion() override; + ~OutputsVersion() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(OutputsVersion* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(OutputsVersion)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR OutputsVersion( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : OutputsVersion(nullptr, ::std::move(from)) {} inline OutputsVersion& operator=(const OutputsVersion& from) { CopyFrom(from); return *this; } inline OutputsVersion& operator=(OutputsVersion&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2088,42 +2347,35 @@ class OutputsVersion final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const OutputsVersion& default_instance() { - return *internal_default_instance(); - } - static inline const OutputsVersion* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_OutputsVersion_default_instance_); } static constexpr int kIndexInFileMessages = 8; friend void swap(OutputsVersion& a, OutputsVersion& b) { a.Swap(&b); } - inline void Swap(OutputsVersion* other) { + inline void Swap(OutputsVersion* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(OutputsVersion* other) { + void UnsafeArenaSwap(OutputsVersion* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2131,7 +2383,7 @@ class OutputsVersion final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - OutputsVersion* New(::google::protobuf::Arena* arena = nullptr) const final { + OutputsVersion* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2140,41 +2392,63 @@ class OutputsVersion final : public ::google::protobuf::Message void MergeFrom(const OutputsVersion& from) { OutputsVersion::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(OutputsVersion* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(OutputsVersion* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.OutputsVersion"; } protected: - explicit OutputsVersion(::google::protobuf::Arena* arena); - OutputsVersion(::google::protobuf::Arena* arena, const OutputsVersion& from); - OutputsVersion(::google::protobuf::Arena* arena, OutputsVersion&& from) noexcept + explicit OutputsVersion(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + OutputsVersion(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OutputsVersion& from); + OutputsVersion( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, OutputsVersion&& from) noexcept : OutputsVersion(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -2186,40 +2460,41 @@ class OutputsVersion final : public ::google::protobuf::Message bool has_outputs() const; void clear_outputs() ; const ::tari::rpc::Range& outputs() const; - PROTOBUF_NODISCARD ::tari::rpc::Range* release_outputs(); - ::tari::rpc::Range* mutable_outputs(); - void set_allocated_outputs(::tari::rpc::Range* value); - void unsafe_arena_set_allocated_outputs(::tari::rpc::Range* value); - ::tari::rpc::Range* unsafe_arena_release_outputs(); + [[nodiscard]] ::tari::rpc::Range* PROTOBUF_NULLABLE release_outputs(); + ::tari::rpc::Range* PROTOBUF_NONNULL mutable_outputs(); + void set_allocated_outputs(::tari::rpc::Range* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_outputs(::tari::rpc::Range* PROTOBUF_NULLABLE value); + ::tari::rpc::Range* PROTOBUF_NULLABLE unsafe_arena_release_outputs(); private: const ::tari::rpc::Range& _internal_outputs() const; - ::tari::rpc::Range* _internal_mutable_outputs(); + ::tari::rpc::Range* PROTOBUF_NONNULL _internal_mutable_outputs(); public: // .tari.rpc.Range features = 2; bool has_features() const; void clear_features() ; const ::tari::rpc::Range& features() const; - PROTOBUF_NODISCARD ::tari::rpc::Range* release_features(); - ::tari::rpc::Range* mutable_features(); - void set_allocated_features(::tari::rpc::Range* value); - void unsafe_arena_set_allocated_features(::tari::rpc::Range* value); - ::tari::rpc::Range* unsafe_arena_release_features(); + [[nodiscard]] ::tari::rpc::Range* PROTOBUF_NULLABLE release_features(); + ::tari::rpc::Range* PROTOBUF_NONNULL mutable_features(); + void set_allocated_features(::tari::rpc::Range* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_features(::tari::rpc::Range* PROTOBUF_NULLABLE value); + ::tari::rpc::Range* PROTOBUF_NULLABLE unsafe_arena_release_features(); private: const ::tari::rpc::Range& _internal_features() const; - ::tari::rpc::Range* _internal_mutable_features(); + ::tari::rpc::Range* PROTOBUF_NONNULL _internal_mutable_features(); public: // @@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, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 2, 0, + 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2227,72 +2502,92 @@ class OutputsVersion final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const OutputsVersion& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Range* outputs_; - ::tari::rpc::Range* features_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::tari::rpc::Range* PROTOBUF_NULLABLE outputs_; + ::tari::rpc::Range* PROTOBUF_NULLABLE features_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull OutputsVersion_class_data_; // ------------------------------------------------------------------- class ConsensusConstants_ProofOfWorkEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - ConsensusConstants_ProofOfWorkEntry_DoNotUse, ::uint32_t, ::tari::rpc::PowAlgorithmConstants, - ::google::protobuf::internal::WireFormatLite::TYPE_UINT32, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + : public ::google::protobuf::internal::MapEntry<::uint32_t, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_UINT32, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { public: - using SuperType = ::google::protobuf::internal::MapEntry< - ConsensusConstants_ProofOfWorkEntry_DoNotUse, ::uint32_t, ::tari::rpc::PowAlgorithmConstants, - ::google::protobuf::internal::WireFormatLite::TYPE_UINT32, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + using SuperType = + ::google::protobuf::internal::MapEntry<::uint32_t, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_UINT32, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; ConsensusConstants_ProofOfWorkEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR ConsensusConstants_ProofOfWorkEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit ConsensusConstants_ProofOfWorkEntry_DoNotUse(::google::protobuf::Arena* arena); - static const ConsensusConstants_ProofOfWorkEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_ConsensusConstants_ProofOfWorkEntry_DoNotUse_default_instance_); + explicit PROTOBUF_CONSTEXPR ConsensusConstants_ProofOfWorkEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit ConsensusConstants_ProofOfWorkEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_ConsensusConstants_ProofOfWorkEntry_DoNotUse_default_instance_; } - static bool ValidateKey(void*) { return true; } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; + + + static constexpr auto InternalGenerateClassData_(); + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_types_2eproto; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; + + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); }; +extern const ::google::protobuf::internal::ClassDataFull ConsensusConstants_ProofOfWorkEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- class ConsensusConstants final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tari.rpc.ConsensusConstants) */ { public: inline ConsensusConstants() : ConsensusConstants(nullptr) {} - ~ConsensusConstants() override; + ~ConsensusConstants() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ConsensusConstants* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ConsensusConstants)); + } +#endif + template - explicit PROTOBUF_CONSTEXPR ConsensusConstants( - ::google::protobuf::internal::ConstantInitialized); + 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)) {} + : ConsensusConstants(nullptr, ::std::move(from)) {} inline ConsensusConstants& operator=(const ConsensusConstants& from) { CopyFrom(from); return *this; } inline ConsensusConstants& operator=(ConsensusConstants&& 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 - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2304,42 +2599,35 @@ class ConsensusConstants final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ConsensusConstants& default_instance() { - return *internal_default_instance(); - } - static inline const ConsensusConstants* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ConsensusConstants_default_instance_); } static constexpr int kIndexInFileMessages = 12; friend void swap(ConsensusConstants& a, ConsensusConstants& b) { a.Swap(&b); } - inline void Swap(ConsensusConstants* other) { + inline void Swap(ConsensusConstants* PROTOBUF_NONNULL 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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ConsensusConstants* other) { + void UnsafeArenaSwap(ConsensusConstants* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2347,7 +2635,7 @@ class ConsensusConstants final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ConsensusConstants* New(::google::protobuf::Arena* arena = nullptr) const final { + ConsensusConstants* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2356,41 +2644,63 @@ class ConsensusConstants final : public ::google::protobuf::Message void MergeFrom(const ConsensusConstants& from) { ConsensusConstants::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + 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; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::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* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ConsensusConstants* other); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ConsensusConstants* PROTOBUF_NONNULL other); private: - friend class ::google::protobuf::internal::AnyMetadata; + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "tari.rpc.ConsensusConstants"; } protected: - explicit ConsensusConstants(::google::protobuf::Arena* arena); - ConsensusConstants(::google::protobuf::Arena* arena, const ConsensusConstants& from); - ConsensusConstants(::google::protobuf::Arena* arena, ConsensusConstants&& from) noexcept + explicit ConsensusConstants(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ConsensusConstants(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ConsensusConstants& from); + ConsensusConstants( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ConsensusConstants&& from) noexcept : ConsensusConstants(arena) { *this = ::std::move(from); } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); public: - ::google::protobuf::Metadata GetMetadata() const final; + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -2418,8 +2728,9 @@ class ConsensusConstants final : public ::google::protobuf::Message kBlockWeightKernelsFieldNumber = 16, kPreMineValueFieldNumber = 17, kMaxScriptByteSizeFieldNumber = 18, - kValidatorNodeValidityPeriodFieldNumber = 19, kEffectiveFromHeightFieldNumber = 20, + kBlockchainVersionFieldNumber = 2, + kVnRegistrationMaxVnsInitialEpochFieldNumber = 38, kMaxRandomxSeedHeightFieldNumber = 22, kEpochLengthFieldNumber = 30, kValidatorNodeRegistrationMinDepositAmountFieldNumber = 31, @@ -2428,7 +2739,7 @@ class ConsensusConstants final : public ::google::protobuf::Message kInflationBipsFieldNumber = 35, kTailEpochLengthFieldNumber = 36, kMaxBlockCoinbaseCountFieldNumber = 37, - kBlockchainVersionFieldNumber = 2, + kVnRegistrationMaxVnsPerEpochFieldNumber = 39, }; // repeated uint64 emission_decay = 11; int emission_decay_size() const; @@ -2441,11 +2752,11 @@ class ConsensusConstants final : public ::google::protobuf::Message void set_emission_decay(int index, ::uint64_t value); void add_emission_decay(::uint64_t value); const ::google::protobuf::RepeatedField<::uint64_t>& emission_decay() const; - ::google::protobuf::RepeatedField<::uint64_t>* mutable_emission_decay(); + ::google::protobuf::RepeatedField<::uint64_t>* PROTOBUF_NONNULL mutable_emission_decay(); private: const ::google::protobuf::RepeatedField<::uint64_t>& _internal_emission_decay() const; - ::google::protobuf::RepeatedField<::uint64_t>* _internal_mutable_emission_decay(); + ::google::protobuf::RepeatedField<::uint64_t>* PROTOBUF_NONNULL _internal_mutable_emission_decay(); public: // map proof_of_work = 23; @@ -2456,11 +2767,11 @@ class ConsensusConstants final : public ::google::protobuf::Message public: void clear_proof_of_work() ; const ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>& proof_of_work() const; - ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>* mutable_proof_of_work(); + ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>* PROTOBUF_NONNULL mutable_proof_of_work(); private: const ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>& _internal_proof_of_work() const; - ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>* _internal_mutable_proof_of_work(); + ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>* PROTOBUF_NONNULL _internal_mutable_proof_of_work(); public: // repeated .tari.rpc.OutputType permitted_output_types = 29; @@ -2475,11 +2786,11 @@ class ConsensusConstants final : public ::google::protobuf::Message void set_permitted_output_types(int index, ::tari::rpc::OutputType value); void add_permitted_output_types(::tari::rpc::OutputType value); const ::google::protobuf::RepeatedField& permitted_output_types() const; - ::google::protobuf::RepeatedField* mutable_permitted_output_types(); + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_permitted_output_types(); private: const ::google::protobuf::RepeatedField& _internal_permitted_output_types() const; - ::google::protobuf::RepeatedField* _internal_mutable_permitted_output_types(); + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_permitted_output_types(); public: // repeated .tari.rpc.PermittedRangeProofs permitted_range_proof_types = 34; @@ -2489,89 +2800,89 @@ class ConsensusConstants final : public ::google::protobuf::Message 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(); + ::tari::rpc::PermittedRangeProofs* PROTOBUF_NONNULL mutable_permitted_range_proof_types(int index); + ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>* PROTOBUF_NONNULL 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(); + ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>* PROTOBUF_NONNULL _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(); + ::tari::rpc::PermittedRangeProofs* PROTOBUF_NONNULL add_permitted_range_proof_types(); 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() ; const ::tari::rpc::Range& valid_blockchain_version_range() const; - PROTOBUF_NODISCARD ::tari::rpc::Range* release_valid_blockchain_version_range(); - ::tari::rpc::Range* mutable_valid_blockchain_version_range(); - void set_allocated_valid_blockchain_version_range(::tari::rpc::Range* value); - void unsafe_arena_set_allocated_valid_blockchain_version_range(::tari::rpc::Range* value); - ::tari::rpc::Range* unsafe_arena_release_valid_blockchain_version_range(); + [[nodiscard]] ::tari::rpc::Range* PROTOBUF_NULLABLE release_valid_blockchain_version_range(); + ::tari::rpc::Range* PROTOBUF_NONNULL mutable_valid_blockchain_version_range(); + void set_allocated_valid_blockchain_version_range(::tari::rpc::Range* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_valid_blockchain_version_range(::tari::rpc::Range* PROTOBUF_NULLABLE value); + ::tari::rpc::Range* PROTOBUF_NULLABLE unsafe_arena_release_valid_blockchain_version_range(); private: const ::tari::rpc::Range& _internal_valid_blockchain_version_range() const; - ::tari::rpc::Range* _internal_mutable_valid_blockchain_version_range(); + ::tari::rpc::Range* PROTOBUF_NONNULL _internal_mutable_valid_blockchain_version_range(); public: // .tari.rpc.WeightParams transaction_weight = 24; bool has_transaction_weight() const; void clear_transaction_weight() ; const ::tari::rpc::WeightParams& transaction_weight() const; - PROTOBUF_NODISCARD ::tari::rpc::WeightParams* release_transaction_weight(); - ::tari::rpc::WeightParams* mutable_transaction_weight(); - void set_allocated_transaction_weight(::tari::rpc::WeightParams* value); - void unsafe_arena_set_allocated_transaction_weight(::tari::rpc::WeightParams* value); - ::tari::rpc::WeightParams* unsafe_arena_release_transaction_weight(); + [[nodiscard]] ::tari::rpc::WeightParams* PROTOBUF_NULLABLE release_transaction_weight(); + ::tari::rpc::WeightParams* PROTOBUF_NONNULL mutable_transaction_weight(); + void set_allocated_transaction_weight(::tari::rpc::WeightParams* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_transaction_weight(::tari::rpc::WeightParams* PROTOBUF_NULLABLE value); + ::tari::rpc::WeightParams* PROTOBUF_NULLABLE unsafe_arena_release_transaction_weight(); private: const ::tari::rpc::WeightParams& _internal_transaction_weight() const; - ::tari::rpc::WeightParams* _internal_mutable_transaction_weight(); + ::tari::rpc::WeightParams* PROTOBUF_NONNULL _internal_mutable_transaction_weight(); public: // .tari.rpc.Range input_version_range = 26; bool has_input_version_range() const; void clear_input_version_range() ; const ::tari::rpc::Range& input_version_range() const; - PROTOBUF_NODISCARD ::tari::rpc::Range* release_input_version_range(); - ::tari::rpc::Range* mutable_input_version_range(); - void set_allocated_input_version_range(::tari::rpc::Range* value); - void unsafe_arena_set_allocated_input_version_range(::tari::rpc::Range* value); - ::tari::rpc::Range* unsafe_arena_release_input_version_range(); + [[nodiscard]] ::tari::rpc::Range* PROTOBUF_NULLABLE release_input_version_range(); + ::tari::rpc::Range* PROTOBUF_NONNULL mutable_input_version_range(); + void set_allocated_input_version_range(::tari::rpc::Range* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_input_version_range(::tari::rpc::Range* PROTOBUF_NULLABLE value); + ::tari::rpc::Range* PROTOBUF_NULLABLE unsafe_arena_release_input_version_range(); private: const ::tari::rpc::Range& _internal_input_version_range() const; - ::tari::rpc::Range* _internal_mutable_input_version_range(); + ::tari::rpc::Range* PROTOBUF_NONNULL _internal_mutable_input_version_range(); public: // .tari.rpc.OutputsVersion output_version_range = 27; bool has_output_version_range() const; void clear_output_version_range() ; const ::tari::rpc::OutputsVersion& output_version_range() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputsVersion* release_output_version_range(); - ::tari::rpc::OutputsVersion* mutable_output_version_range(); - void set_allocated_output_version_range(::tari::rpc::OutputsVersion* value); - void unsafe_arena_set_allocated_output_version_range(::tari::rpc::OutputsVersion* value); - ::tari::rpc::OutputsVersion* unsafe_arena_release_output_version_range(); + [[nodiscard]] ::tari::rpc::OutputsVersion* PROTOBUF_NULLABLE release_output_version_range(); + ::tari::rpc::OutputsVersion* PROTOBUF_NONNULL mutable_output_version_range(); + void set_allocated_output_version_range(::tari::rpc::OutputsVersion* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_output_version_range(::tari::rpc::OutputsVersion* PROTOBUF_NULLABLE value); + ::tari::rpc::OutputsVersion* PROTOBUF_NULLABLE unsafe_arena_release_output_version_range(); private: const ::tari::rpc::OutputsVersion& _internal_output_version_range() const; - ::tari::rpc::OutputsVersion* _internal_mutable_output_version_range(); + ::tari::rpc::OutputsVersion* PROTOBUF_NONNULL _internal_mutable_output_version_range(); public: // .tari.rpc.Range kernel_version_range = 28; bool has_kernel_version_range() const; void clear_kernel_version_range() ; const ::tari::rpc::Range& kernel_version_range() const; - PROTOBUF_NODISCARD ::tari::rpc::Range* release_kernel_version_range(); - ::tari::rpc::Range* mutable_kernel_version_range(); - void set_allocated_kernel_version_range(::tari::rpc::Range* value); - void unsafe_arena_set_allocated_kernel_version_range(::tari::rpc::Range* value); - ::tari::rpc::Range* unsafe_arena_release_kernel_version_range(); + [[nodiscard]] ::tari::rpc::Range* PROTOBUF_NULLABLE release_kernel_version_range(); + ::tari::rpc::Range* PROTOBUF_NONNULL mutable_kernel_version_range(); + void set_allocated_kernel_version_range(::tari::rpc::Range* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_kernel_version_range(::tari::rpc::Range* PROTOBUF_NULLABLE value); + ::tari::rpc::Range* PROTOBUF_NULLABLE unsafe_arena_release_kernel_version_range(); private: const ::tari::rpc::Range& _internal_kernel_version_range() const; - ::tari::rpc::Range* _internal_mutable_kernel_version_range(); + ::tari::rpc::Range* PROTOBUF_NONNULL _internal_mutable_kernel_version_range(); public: // uint64 coinbase_min_maturity = 1; @@ -2713,16 +3024,6 @@ class ConsensusConstants final : public ::google::protobuf::Message ::uint64_t _internal_max_script_byte_size() const; void _internal_set_max_script_byte_size(::uint64_t value); - public: - // uint64 validator_node_validity_period = 19; - void clear_validator_node_validity_period() ; - ::uint64_t validator_node_validity_period() const; - void set_validator_node_validity_period(::uint64_t value); - - private: - ::uint64_t _internal_validator_node_validity_period() const; - void _internal_set_validator_node_validity_period(::uint64_t value); - public: // uint64 effective_from_height = 20; void clear_effective_from_height() ; @@ -2733,6 +3034,26 @@ class ConsensusConstants final : public ::google::protobuf::Message ::uint64_t _internal_effective_from_height() const; void _internal_set_effective_from_height(::uint64_t value); + public: + // uint32 blockchain_version = 2; + void clear_blockchain_version() ; + ::uint32_t blockchain_version() const; + void set_blockchain_version(::uint32_t value); + + private: + ::uint32_t _internal_blockchain_version() const; + void _internal_set_blockchain_version(::uint32_t value); + + public: + // uint32 vn_registration_max_vns_initial_epoch = 38; + void clear_vn_registration_max_vns_initial_epoch() ; + ::uint32_t vn_registration_max_vns_initial_epoch() const; + void set_vn_registration_max_vns_initial_epoch(::uint32_t value); + + private: + ::uint32_t _internal_vn_registration_max_vns_initial_epoch() const; + void _internal_set_vn_registration_max_vns_initial_epoch(::uint32_t value); + public: // uint64 max_randomx_seed_height = 22; void clear_max_randomx_seed_height() ; @@ -2814,24 +3135,25 @@ class ConsensusConstants final : public ::google::protobuf::Message void _internal_set_max_block_coinbase_count(::uint64_t value); public: - // uint32 blockchain_version = 2; - void clear_blockchain_version() ; - ::uint32_t blockchain_version() const; - void set_blockchain_version(::uint32_t value); + // uint32 vn_registration_max_vns_per_epoch = 39; + void clear_vn_registration_max_vns_per_epoch() ; + ::uint32_t vn_registration_max_vns_per_epoch() const; + void set_vn_registration_max_vns_per_epoch(::uint32_t value); private: - ::uint32_t _internal_blockchain_version() const; - void _internal_set_blockchain_version(::uint32_t value); + ::uint32_t _internal_vn_registration_max_vns_per_epoch() const; + void _internal_set_vn_registration_max_vns_per_epoch(::uint32_t value); public: // @@protoc_insertion_point(class_scope:tari.rpc.ConsensusConstants) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 5, 34, 8, - 0, 7> + static const ::google::protobuf::internal::TcParseTable<5, 35, + 8, 0, + 7> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2839,28 +3161,30 @@ class ConsensusConstants final : public ::google::protobuf::Message 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ConsensusConstants& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedField<::uint64_t> emission_decay_; - mutable ::google::protobuf::internal::CachedSize _emission_decay_cached_byte_size_; + ::google::protobuf::internal::CachedSize _emission_decay_cached_byte_size_; ::google::protobuf::internal::MapField proof_of_work_; ::google::protobuf::RepeatedField permitted_output_types_; - mutable ::google::protobuf::internal::CachedSize _permitted_output_types_cached_byte_size_; + ::google::protobuf::internal::CachedSize _permitted_output_types_cached_byte_size_; ::google::protobuf::RepeatedPtrField< ::tari::rpc::PermittedRangeProofs > permitted_range_proof_types_; - ::tari::rpc::Range* valid_blockchain_version_range_; - ::tari::rpc::WeightParams* transaction_weight_; - ::tari::rpc::Range* input_version_range_; - ::tari::rpc::OutputsVersion* output_version_range_; - ::tari::rpc::Range* kernel_version_range_; + ::tari::rpc::Range* PROTOBUF_NULLABLE valid_blockchain_version_range_; + ::tari::rpc::WeightParams* PROTOBUF_NULLABLE transaction_weight_; + ::tari::rpc::Range* PROTOBUF_NULLABLE input_version_range_; + ::tari::rpc::OutputsVersion* PROTOBUF_NULLABLE output_version_range_; + ::tari::rpc::Range* PROTOBUF_NULLABLE kernel_version_range_; ::uint64_t coinbase_min_maturity_; ::uint64_t future_time_limit_; ::uint64_t difficulty_block_window_; @@ -2875,8 +3199,9 @@ class ConsensusConstants final : public ::google::protobuf::Message ::uint64_t block_weight_kernels_; ::uint64_t pre_mine_value_; ::uint64_t max_script_byte_size_; - ::uint64_t validator_node_validity_period_; ::uint64_t effective_from_height_; + ::uint32_t blockchain_version_; + ::uint32_t vn_registration_max_vns_initial_epoch_; ::uint64_t max_randomx_seed_height_; ::uint64_t epoch_length_; ::uint64_t validator_node_registration_min_deposit_amount_; @@ -2885,13 +3210,15 @@ class ConsensusConstants final : public ::google::protobuf::Message ::uint64_t inflation_bips_; ::uint64_t tail_epoch_length_; ::uint64_t max_block_coinbase_count_; - ::uint32_t blockchain_version_; + ::uint32_t vn_registration_max_vns_per_epoch_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_types_2eproto; }; +extern const ::google::protobuf::internal::ClassDataFull ConsensusConstants_class_data_; + // =================================================================== @@ -2910,8 +3237,9 @@ class ConsensusConstants final : public ::google::protobuf::Message // uint64 min = 1; inline void Range::clear_min() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t Range::min() const { // @@protoc_insertion_point(field_get:tari.rpc.Range.min) @@ -2919,21 +3247,23 @@ inline ::uint64_t Range::min() const { } inline void Range::set_min(::uint64_t value) { _internal_set_min(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.Range.min) } inline ::uint64_t Range::_internal_min() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.min_; } inline void Range::_internal_set_min(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_ = value; } // uint64 max = 2; inline void Range::clear_max() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t Range::max() const { // @@protoc_insertion_point(field_get:tari.rpc.Range.max) @@ -2941,14 +3271,15 @@ inline ::uint64_t Range::max() const { } inline void Range::set_max(::uint64_t value) { _internal_set_max(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.Range.max) } inline ::uint64_t Range::_internal_max() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.max_; } inline void Range::_internal_set_max(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_ = value; } @@ -2962,8 +3293,9 @@ inline void Range::_internal_set_max(::uint64_t value) { // uint64 block_height = 1; inline void BlockHeight::clear_block_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t BlockHeight::block_height() const { // @@protoc_insertion_point(field_get:tari.rpc.BlockHeight.block_height) @@ -2971,14 +3303,15 @@ inline ::uint64_t BlockHeight::block_height() const { } inline void BlockHeight::set_block_height(::uint64_t value) { _internal_set_block_height(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.BlockHeight.block_height) } inline ::uint64_t BlockHeight::_internal_block_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.block_height_; } inline void BlockHeight::_internal_set_block_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_height_ = value; } @@ -2988,101 +3321,131 @@ inline void BlockHeight::_internal_set_block_height(::uint64_t value) { // bytes public_nonce = 1; inline void Signature::clear_public_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.public_nonce_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& Signature::public_nonce() const +inline const ::std::string& Signature::public_nonce() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.Signature.public_nonce) return _internal_public_nonce(); } template -inline PROTOBUF_ALWAYS_INLINE void Signature::set_public_nonce(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void Signature::set_public_nonce(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.public_nonce_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Signature.public_nonce) } -inline std::string* Signature::mutable_public_nonce() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_nonce(); +inline ::std::string* PROTOBUF_NONNULL Signature::mutable_public_nonce() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_nonce(); // @@protoc_insertion_point(field_mutable:tari.rpc.Signature.public_nonce) return _s; } -inline const std::string& Signature::_internal_public_nonce() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& Signature::_internal_public_nonce() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.public_nonce_.Get(); } -inline void Signature::_internal_set_public_nonce(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Signature::_internal_set_public_nonce(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.public_nonce_.Set(value, GetArena()); } -inline std::string* Signature::_internal_mutable_public_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL Signature::_internal_mutable_public_nonce() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.public_nonce_.Mutable( GetArena()); } -inline std::string* Signature::release_public_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE Signature::release_public_nonce() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Signature.public_nonce) - return _impl_.public_nonce_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.public_nonce_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_nonce_.Set("", GetArena()); + } + return released; } -inline void Signature::set_allocated_public_nonce(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Signature::set_allocated_public_nonce(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.public_nonce_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_nonce_.IsDefault()) { - _impl_.public_nonce_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_nonce_.IsDefault()) { + _impl_.public_nonce_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.Signature.public_nonce) } // bytes signature = 2; inline void Signature::clear_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.signature_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& Signature::signature() const +inline const ::std::string& Signature::signature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.Signature.signature) return _internal_signature(); } template -inline PROTOBUF_ALWAYS_INLINE void Signature::set_signature(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void Signature::set_signature(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.signature_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.Signature.signature) } -inline std::string* Signature::mutable_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_signature(); +inline ::std::string* PROTOBUF_NONNULL Signature::mutable_signature() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_signature(); // @@protoc_insertion_point(field_mutable:tari.rpc.Signature.signature) return _s; } -inline const std::string& Signature::_internal_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& Signature::_internal_signature() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.signature_.Get(); } -inline void Signature::_internal_set_signature(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Signature::_internal_set_signature(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.signature_.Set(value, GetArena()); } -inline std::string* Signature::_internal_mutable_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL Signature::_internal_mutable_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.signature_.Mutable( GetArena()); } -inline std::string* Signature::release_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE Signature::release_signature() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.Signature.signature) - return _impl_.signature_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.signature_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.signature_.Set("", GetArena()); + } + return released; } -inline void Signature::set_allocated_signature(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void Signature::set_allocated_signature(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.signature_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.signature_.IsDefault()) { - _impl_.signature_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.signature_.IsDefault()) { + _impl_.signature_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.Signature.signature) } @@ -3092,251 +3455,326 @@ inline void Signature::set_allocated_signature(std::string* value) { // bytes ephemeral_commitment = 1; inline void ComAndPubSignature::clear_ephemeral_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ephemeral_commitment_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& ComAndPubSignature::ephemeral_commitment() const +inline const ::std::string& ComAndPubSignature::ephemeral_commitment() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.ComAndPubSignature.ephemeral_commitment) return _internal_ephemeral_commitment(); } template -inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_ephemeral_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_ephemeral_commitment(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.ephemeral_commitment_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.ephemeral_commitment) } -inline std::string* ComAndPubSignature::mutable_ephemeral_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_ephemeral_commitment(); +inline ::std::string* PROTOBUF_NONNULL ComAndPubSignature::mutable_ephemeral_commitment() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_ephemeral_commitment(); // @@protoc_insertion_point(field_mutable:tari.rpc.ComAndPubSignature.ephemeral_commitment) return _s; } -inline const std::string& ComAndPubSignature::_internal_ephemeral_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& ComAndPubSignature::_internal_ephemeral_commitment() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.ephemeral_commitment_.Get(); } -inline void ComAndPubSignature::_internal_set_ephemeral_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComAndPubSignature::_internal_set_ephemeral_commitment(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.ephemeral_commitment_.Set(value, GetArena()); } -inline std::string* ComAndPubSignature::_internal_mutable_ephemeral_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL ComAndPubSignature::_internal_mutable_ephemeral_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.ephemeral_commitment_.Mutable( GetArena()); } -inline std::string* ComAndPubSignature::release_ephemeral_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE ComAndPubSignature::release_ephemeral_commitment() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ComAndPubSignature.ephemeral_commitment) - return _impl_.ephemeral_commitment_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.ephemeral_commitment_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.ephemeral_commitment_.Set("", GetArena()); + } + return released; } -inline void ComAndPubSignature::set_allocated_ephemeral_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComAndPubSignature::set_allocated_ephemeral_commitment(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.ephemeral_commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.ephemeral_commitment_.IsDefault()) { - _impl_.ephemeral_commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.ephemeral_commitment_.IsDefault()) { + _impl_.ephemeral_commitment_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.ComAndPubSignature.ephemeral_commitment) } // bytes ephemeral_pubkey = 2; inline void ComAndPubSignature::clear_ephemeral_pubkey() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ephemeral_pubkey_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& ComAndPubSignature::ephemeral_pubkey() const +inline const ::std::string& ComAndPubSignature::ephemeral_pubkey() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.ComAndPubSignature.ephemeral_pubkey) return _internal_ephemeral_pubkey(); } template -inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_ephemeral_pubkey(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_ephemeral_pubkey(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.ephemeral_pubkey_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.ephemeral_pubkey) } -inline std::string* ComAndPubSignature::mutable_ephemeral_pubkey() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_ephemeral_pubkey(); +inline ::std::string* PROTOBUF_NONNULL ComAndPubSignature::mutable_ephemeral_pubkey() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_ephemeral_pubkey(); // @@protoc_insertion_point(field_mutable:tari.rpc.ComAndPubSignature.ephemeral_pubkey) return _s; } -inline const std::string& ComAndPubSignature::_internal_ephemeral_pubkey() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& ComAndPubSignature::_internal_ephemeral_pubkey() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.ephemeral_pubkey_.Get(); } -inline void ComAndPubSignature::_internal_set_ephemeral_pubkey(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComAndPubSignature::_internal_set_ephemeral_pubkey(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.ephemeral_pubkey_.Set(value, GetArena()); } -inline std::string* ComAndPubSignature::_internal_mutable_ephemeral_pubkey() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL ComAndPubSignature::_internal_mutable_ephemeral_pubkey() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.ephemeral_pubkey_.Mutable( GetArena()); } -inline std::string* ComAndPubSignature::release_ephemeral_pubkey() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE ComAndPubSignature::release_ephemeral_pubkey() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ComAndPubSignature.ephemeral_pubkey) - return _impl_.ephemeral_pubkey_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.ephemeral_pubkey_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.ephemeral_pubkey_.Set("", GetArena()); + } + return released; } -inline void ComAndPubSignature::set_allocated_ephemeral_pubkey(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComAndPubSignature::set_allocated_ephemeral_pubkey(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.ephemeral_pubkey_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.ephemeral_pubkey_.IsDefault()) { - _impl_.ephemeral_pubkey_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.ephemeral_pubkey_.IsDefault()) { + _impl_.ephemeral_pubkey_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.ComAndPubSignature.ephemeral_pubkey) } // bytes u_a = 3; inline void ComAndPubSignature::clear_u_a() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.u_a_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& ComAndPubSignature::u_a() const +inline const ::std::string& ComAndPubSignature::u_a() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.ComAndPubSignature.u_a) return _internal_u_a(); } template -inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_u_a(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_u_a(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.u_a_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.u_a) } -inline std::string* ComAndPubSignature::mutable_u_a() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_u_a(); +inline ::std::string* PROTOBUF_NONNULL ComAndPubSignature::mutable_u_a() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_u_a(); // @@protoc_insertion_point(field_mutable:tari.rpc.ComAndPubSignature.u_a) return _s; } -inline const std::string& ComAndPubSignature::_internal_u_a() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& ComAndPubSignature::_internal_u_a() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.u_a_.Get(); } -inline void ComAndPubSignature::_internal_set_u_a(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComAndPubSignature::_internal_set_u_a(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.u_a_.Set(value, GetArena()); } -inline std::string* ComAndPubSignature::_internal_mutable_u_a() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL ComAndPubSignature::_internal_mutable_u_a() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.u_a_.Mutable( GetArena()); } -inline std::string* ComAndPubSignature::release_u_a() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE ComAndPubSignature::release_u_a() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ComAndPubSignature.u_a) - return _impl_.u_a_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.u_a_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.u_a_.Set("", GetArena()); + } + return released; } -inline void ComAndPubSignature::set_allocated_u_a(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComAndPubSignature::set_allocated_u_a(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.u_a_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.u_a_.IsDefault()) { - _impl_.u_a_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.u_a_.IsDefault()) { + _impl_.u_a_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.ComAndPubSignature.u_a) } // bytes u_x = 4; inline void ComAndPubSignature::clear_u_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.u_x_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& ComAndPubSignature::u_x() const +inline const ::std::string& ComAndPubSignature::u_x() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.ComAndPubSignature.u_x) return _internal_u_x(); } template -inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_u_x(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_u_x(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.u_x_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.u_x) } -inline std::string* ComAndPubSignature::mutable_u_x() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_u_x(); +inline ::std::string* PROTOBUF_NONNULL ComAndPubSignature::mutable_u_x() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_u_x(); // @@protoc_insertion_point(field_mutable:tari.rpc.ComAndPubSignature.u_x) return _s; } -inline const std::string& ComAndPubSignature::_internal_u_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& ComAndPubSignature::_internal_u_x() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.u_x_.Get(); } -inline void ComAndPubSignature::_internal_set_u_x(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComAndPubSignature::_internal_set_u_x(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.u_x_.Set(value, GetArena()); } -inline std::string* ComAndPubSignature::_internal_mutable_u_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL ComAndPubSignature::_internal_mutable_u_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.u_x_.Mutable( GetArena()); } -inline std::string* ComAndPubSignature::release_u_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE ComAndPubSignature::release_u_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ComAndPubSignature.u_x) - return _impl_.u_x_.Release(); + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000008u; + auto* released = _impl_.u_x_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.u_x_.Set("", GetArena()); + } + return released; } -inline void ComAndPubSignature::set_allocated_u_x(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComAndPubSignature::set_allocated_u_x(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000008u; + } else { + _impl_._has_bits_[0] &= ~0x00000008u; + } _impl_.u_x_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.u_x_.IsDefault()) { - _impl_.u_x_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.u_x_.IsDefault()) { + _impl_.u_x_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.ComAndPubSignature.u_x) } // bytes u_y = 5; inline void ComAndPubSignature::clear_u_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.u_y_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000010u; } -inline const std::string& ComAndPubSignature::u_y() const +inline const ::std::string& ComAndPubSignature::u_y() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.ComAndPubSignature.u_y) return _internal_u_y(); } template -inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_u_y(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_u_y(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.u_y_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.u_y) } -inline std::string* ComAndPubSignature::mutable_u_y() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_u_y(); +inline ::std::string* PROTOBUF_NONNULL ComAndPubSignature::mutable_u_y() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_u_y(); // @@protoc_insertion_point(field_mutable:tari.rpc.ComAndPubSignature.u_y) return _s; } -inline const std::string& ComAndPubSignature::_internal_u_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& ComAndPubSignature::_internal_u_y() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.u_y_.Get(); } -inline void ComAndPubSignature::_internal_set_u_y(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComAndPubSignature::_internal_set_u_y(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.u_y_.Set(value, GetArena()); } -inline std::string* ComAndPubSignature::_internal_mutable_u_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL ComAndPubSignature::_internal_mutable_u_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; return _impl_.u_y_.Mutable( GetArena()); } -inline std::string* ComAndPubSignature::release_u_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE ComAndPubSignature::release_u_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ComAndPubSignature.u_y) - return _impl_.u_y_.Release(); + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000010u; + auto* released = _impl_.u_y_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.u_y_.Set("", GetArena()); + } + return released; } -inline void ComAndPubSignature::set_allocated_u_y(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ComAndPubSignature::set_allocated_u_y(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000010u; + } else { + _impl_._has_bits_[0] &= ~0x00000010u; + } _impl_.u_y_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.u_y_.IsDefault()) { - _impl_.u_y_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.u_y_.IsDefault()) { + _impl_.u_y_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.ComAndPubSignature.u_y) } @@ -3346,151 +3784,196 @@ inline void ComAndPubSignature::set_allocated_u_y(std::string* value) { // bytes public_nonce = 1; inline void CommitmentSignature::clear_public_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.public_nonce_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& CommitmentSignature::public_nonce() const +inline const ::std::string& CommitmentSignature::public_nonce() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.CommitmentSignature.public_nonce) return _internal_public_nonce(); } template -inline PROTOBUF_ALWAYS_INLINE void CommitmentSignature::set_public_nonce(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void CommitmentSignature::set_public_nonce(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.public_nonce_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.CommitmentSignature.public_nonce) } -inline std::string* CommitmentSignature::mutable_public_nonce() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_nonce(); +inline ::std::string* PROTOBUF_NONNULL CommitmentSignature::mutable_public_nonce() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_public_nonce(); // @@protoc_insertion_point(field_mutable:tari.rpc.CommitmentSignature.public_nonce) return _s; } -inline const std::string& CommitmentSignature::_internal_public_nonce() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& CommitmentSignature::_internal_public_nonce() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.public_nonce_.Get(); } -inline void CommitmentSignature::_internal_set_public_nonce(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CommitmentSignature::_internal_set_public_nonce(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.public_nonce_.Set(value, GetArena()); } -inline std::string* CommitmentSignature::_internal_mutable_public_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL CommitmentSignature::_internal_mutable_public_nonce() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.public_nonce_.Mutable( GetArena()); } -inline std::string* CommitmentSignature::release_public_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE CommitmentSignature::release_public_nonce() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.CommitmentSignature.public_nonce) - return _impl_.public_nonce_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.public_nonce_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.public_nonce_.Set("", GetArena()); + } + return released; } -inline void CommitmentSignature::set_allocated_public_nonce(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CommitmentSignature::set_allocated_public_nonce(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.public_nonce_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_nonce_.IsDefault()) { - _impl_.public_nonce_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_nonce_.IsDefault()) { + _impl_.public_nonce_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.CommitmentSignature.public_nonce) } // bytes u = 2; inline void CommitmentSignature::clear_u() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.u_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& CommitmentSignature::u() const +inline const ::std::string& CommitmentSignature::u() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.CommitmentSignature.u) return _internal_u(); } template -inline PROTOBUF_ALWAYS_INLINE void CommitmentSignature::set_u(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void CommitmentSignature::set_u(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.u_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.CommitmentSignature.u) } -inline std::string* CommitmentSignature::mutable_u() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_u(); +inline ::std::string* PROTOBUF_NONNULL CommitmentSignature::mutable_u() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_u(); // @@protoc_insertion_point(field_mutable:tari.rpc.CommitmentSignature.u) return _s; } -inline const std::string& CommitmentSignature::_internal_u() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& CommitmentSignature::_internal_u() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.u_.Get(); } -inline void CommitmentSignature::_internal_set_u(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CommitmentSignature::_internal_set_u(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.u_.Set(value, GetArena()); } -inline std::string* CommitmentSignature::_internal_mutable_u() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL CommitmentSignature::_internal_mutable_u() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.u_.Mutable( GetArena()); } -inline std::string* CommitmentSignature::release_u() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE CommitmentSignature::release_u() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.CommitmentSignature.u) - return _impl_.u_.Release(); + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000002u; + auto* released = _impl_.u_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.u_.Set("", GetArena()); + } + return released; } -inline void CommitmentSignature::set_allocated_u(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CommitmentSignature::set_allocated_u(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } _impl_.u_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.u_.IsDefault()) { - _impl_.u_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.u_.IsDefault()) { + _impl_.u_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.CommitmentSignature.u) } // bytes v = 3; inline void CommitmentSignature::clear_v() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.v_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& CommitmentSignature::v() const +inline const ::std::string& CommitmentSignature::v() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.CommitmentSignature.v) return _internal_v(); } template -inline PROTOBUF_ALWAYS_INLINE void CommitmentSignature::set_v(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void CommitmentSignature::set_v(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.v_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.CommitmentSignature.v) } -inline std::string* CommitmentSignature::mutable_v() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_v(); +inline ::std::string* PROTOBUF_NONNULL CommitmentSignature::mutable_v() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_v(); // @@protoc_insertion_point(field_mutable:tari.rpc.CommitmentSignature.v) return _s; } -inline const std::string& CommitmentSignature::_internal_v() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& CommitmentSignature::_internal_v() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.v_.Get(); } -inline void CommitmentSignature::_internal_set_v(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CommitmentSignature::_internal_set_v(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.v_.Set(value, GetArena()); } -inline std::string* CommitmentSignature::_internal_mutable_v() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL CommitmentSignature::_internal_mutable_v() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.v_.Mutable( GetArena()); } -inline std::string* CommitmentSignature::release_v() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE CommitmentSignature::release_v() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.CommitmentSignature.v) - return _impl_.v_.Release(); + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000004u; + auto* released = _impl_.v_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.v_.Set("", GetArena()); + } + return released; } -inline void CommitmentSignature::set_allocated_v(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void CommitmentSignature::set_allocated_v(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } _impl_.v_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.v_.IsDefault()) { - _impl_.v_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.v_.IsDefault()) { + _impl_.v_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.CommitmentSignature.v) } @@ -3500,8 +3983,9 @@ inline void CommitmentSignature::set_allocated_v(std::string* value) { // uint64 min_difficulty = 2; inline void PowAlgorithmConstants::clear_min_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_difficulty_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t PowAlgorithmConstants::min_difficulty() const { // @@protoc_insertion_point(field_get:tari.rpc.PowAlgorithmConstants.min_difficulty) @@ -3509,21 +3993,23 @@ inline ::uint64_t PowAlgorithmConstants::min_difficulty() const { } inline void PowAlgorithmConstants::set_min_difficulty(::uint64_t value) { _internal_set_min_difficulty(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.PowAlgorithmConstants.min_difficulty) } inline ::uint64_t PowAlgorithmConstants::_internal_min_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.min_difficulty_; } inline void PowAlgorithmConstants::_internal_set_min_difficulty(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_difficulty_ = value; } // uint64 max_difficulty = 3; inline void PowAlgorithmConstants::clear_max_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_difficulty_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t PowAlgorithmConstants::max_difficulty() const { // @@protoc_insertion_point(field_get:tari.rpc.PowAlgorithmConstants.max_difficulty) @@ -3531,21 +4017,23 @@ inline ::uint64_t PowAlgorithmConstants::max_difficulty() const { } inline void PowAlgorithmConstants::set_max_difficulty(::uint64_t value) { _internal_set_max_difficulty(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.PowAlgorithmConstants.max_difficulty) } inline ::uint64_t PowAlgorithmConstants::_internal_max_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.max_difficulty_; } inline void PowAlgorithmConstants::_internal_set_max_difficulty(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_difficulty_ = value; } // uint64 target_time = 4; inline void PowAlgorithmConstants::clear_target_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.target_time_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t PowAlgorithmConstants::target_time() const { // @@protoc_insertion_point(field_get:tari.rpc.PowAlgorithmConstants.target_time) @@ -3553,14 +4041,15 @@ inline ::uint64_t PowAlgorithmConstants::target_time() const { } inline void PowAlgorithmConstants::set_target_time(::uint64_t value) { _internal_set_target_time(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.PowAlgorithmConstants.target_time) } inline ::uint64_t PowAlgorithmConstants::_internal_target_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.target_time_; } inline void PowAlgorithmConstants::_internal_set_target_time(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.target_time_ = value; } @@ -3570,8 +4059,9 @@ inline void PowAlgorithmConstants::_internal_set_target_time(::uint64_t value) { // uint64 kernel_weight = 1; inline void WeightParams::clear_kernel_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.kernel_weight_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::uint64_t WeightParams::kernel_weight() const { // @@protoc_insertion_point(field_get:tari.rpc.WeightParams.kernel_weight) @@ -3579,21 +4069,23 @@ inline ::uint64_t WeightParams::kernel_weight() const { } inline void WeightParams::set_kernel_weight(::uint64_t value) { _internal_set_kernel_weight(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.WeightParams.kernel_weight) } inline ::uint64_t WeightParams::_internal_kernel_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.kernel_weight_; } inline void WeightParams::_internal_set_kernel_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.kernel_weight_ = value; } // uint64 input_weight = 2; inline void WeightParams::clear_input_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.input_weight_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t WeightParams::input_weight() const { // @@protoc_insertion_point(field_get:tari.rpc.WeightParams.input_weight) @@ -3601,21 +4093,23 @@ inline ::uint64_t WeightParams::input_weight() const { } inline void WeightParams::set_input_weight(::uint64_t value) { _internal_set_input_weight(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:tari.rpc.WeightParams.input_weight) } inline ::uint64_t WeightParams::_internal_input_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.input_weight_; } inline void WeightParams::_internal_set_input_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.input_weight_ = value; } // uint64 output_weight = 3; inline void WeightParams::clear_output_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.output_weight_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::uint64_t WeightParams::output_weight() const { // @@protoc_insertion_point(field_get:tari.rpc.WeightParams.output_weight) @@ -3623,21 +4117,23 @@ inline ::uint64_t WeightParams::output_weight() const { } inline void WeightParams::set_output_weight(::uint64_t value) { _internal_set_output_weight(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:tari.rpc.WeightParams.output_weight) } inline ::uint64_t WeightParams::_internal_output_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.output_weight_; } inline void WeightParams::_internal_set_output_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.output_weight_ = value; } // uint64 features_and_scripts_bytes_per_gram = 4; inline void WeightParams::clear_features_and_scripts_bytes_per_gram() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.features_and_scripts_bytes_per_gram_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000008u; } inline ::uint64_t WeightParams::features_and_scripts_bytes_per_gram() const { // @@protoc_insertion_point(field_get:tari.rpc.WeightParams.features_and_scripts_bytes_per_gram) @@ -3645,14 +4141,15 @@ inline ::uint64_t WeightParams::features_and_scripts_bytes_per_gram() const { } inline void WeightParams::set_features_and_scripts_bytes_per_gram(::uint64_t value) { _internal_set_features_and_scripts_bytes_per_gram(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:tari.rpc.WeightParams.features_and_scripts_bytes_per_gram) } inline ::uint64_t WeightParams::_internal_features_and_scripts_bytes_per_gram() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.features_and_scripts_bytes_per_gram_ = value; } @@ -3667,12 +4164,12 @@ inline bool OutputsVersion::has_outputs() const { return value; } inline void OutputsVersion::clear_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.outputs_ != nullptr) _impl_.outputs_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::tari::rpc::Range& OutputsVersion::_internal_outputs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Range* p = _impl_.outputs_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Range_default_instance_); } @@ -3680,8 +4177,9 @@ inline const ::tari::rpc::Range& OutputsVersion::outputs() const ABSL_ATTRIBUTE_ // @@protoc_insertion_point(field_get:tari.rpc.OutputsVersion.outputs) return _internal_outputs(); } -inline void OutputsVersion::unsafe_arena_set_allocated_outputs(::tari::rpc::Range* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void OutputsVersion::unsafe_arena_set_allocated_outputs( + ::tari::rpc::Range* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.outputs_); } @@ -3693,27 +4191,27 @@ inline void OutputsVersion::unsafe_arena_set_allocated_outputs(::tari::rpc::Rang } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.OutputsVersion.outputs) } -inline ::tari::rpc::Range* OutputsVersion::release_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NULLABLE OutputsVersion::release_outputs() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::Range* released = _impl_.outputs_; _impl_.outputs_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Range* OutputsVersion::unsafe_arena_release_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NULLABLE OutputsVersion::unsafe_arena_release_outputs() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.OutputsVersion.outputs) _impl_._has_bits_[0] &= ~0x00000001u; @@ -3721,29 +4219,30 @@ inline ::tari::rpc::Range* OutputsVersion::unsafe_arena_release_outputs() { _impl_.outputs_ = nullptr; return temp; } -inline ::tari::rpc::Range* OutputsVersion::_internal_mutable_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NONNULL OutputsVersion::_internal_mutable_outputs() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.outputs_ == nullptr) { 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 { +inline ::tari::rpc::Range* PROTOBUF_NONNULL 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; } -inline void OutputsVersion::set_allocated_outputs(::tari::rpc::Range* value) { +inline void OutputsVersion::set_allocated_outputs(::tari::rpc::Range* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.outputs_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.outputs_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3763,12 +4262,12 @@ inline bool OutputsVersion::has_features() const { return value; } inline void OutputsVersion::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ != nullptr) _impl_.features_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::tari::rpc::Range& OutputsVersion::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Range* p = _impl_.features_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Range_default_instance_); } @@ -3776,8 +4275,9 @@ inline const ::tari::rpc::Range& OutputsVersion::features() const ABSL_ATTRIBUTE // @@protoc_insertion_point(field_get:tari.rpc.OutputsVersion.features) return _internal_features(); } -inline void OutputsVersion::unsafe_arena_set_allocated_features(::tari::rpc::Range* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void OutputsVersion::unsafe_arena_set_allocated_features( + ::tari::rpc::Range* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } @@ -3789,27 +4289,27 @@ inline void OutputsVersion::unsafe_arena_set_allocated_features(::tari::rpc::Ran } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.OutputsVersion.features) } -inline ::tari::rpc::Range* OutputsVersion::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NULLABLE OutputsVersion::release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000002u; ::tari::rpc::Range* released = _impl_.features_; _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Range* OutputsVersion::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NULLABLE OutputsVersion::unsafe_arena_release_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.OutputsVersion.features) _impl_._has_bits_[0] &= ~0x00000002u; @@ -3817,29 +4317,30 @@ inline ::tari::rpc::Range* OutputsVersion::unsafe_arena_release_features() { _impl_.features_ = nullptr; return temp; } -inline ::tari::rpc::Range* OutputsVersion::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NONNULL OutputsVersion::_internal_mutable_features() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.features_ == nullptr) { 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 { +inline ::tari::rpc::Range* PROTOBUF_NONNULL 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; } -inline void OutputsVersion::set_allocated_features(::tari::rpc::Range* value) { +inline void OutputsVersion::set_allocated_features(::tari::rpc::Range* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.features_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3858,8 +4359,9 @@ inline void OutputsVersion::set_allocated_features(::tari::rpc::Range* value) { // .tari.rpc.OutputType output_type = 1; inline void PermittedRangeProofs::clear_output_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.output_type_ = 0; + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::tari::rpc::OutputType PermittedRangeProofs::output_type() const { // @@protoc_insertion_point(field_get:tari.rpc.PermittedRangeProofs.output_type) @@ -3867,14 +4369,15 @@ inline ::tari::rpc::OutputType PermittedRangeProofs::output_type() const { } inline void PermittedRangeProofs::set_output_type(::tari::rpc::OutputType value) { _internal_set_output_type(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:tari.rpc.PermittedRangeProofs.output_type) } inline ::tari::rpc::OutputType PermittedRangeProofs::_internal_output_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::tari::rpc::OutputType>(_impl_.output_type_); } inline void PermittedRangeProofs::_internal_set_output_type(::tari::rpc::OutputType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.output_type_ = value; } @@ -3886,7 +4389,7 @@ inline int PermittedRangeProofs::range_proof_types_size() const { return _internal_range_proof_types_size(); } inline void PermittedRangeProofs::clear_range_proof_types() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.range_proof_types_.Clear(); } inline ::tari::rpc::RangeProofType PermittedRangeProofs::range_proof_types(int index) const { @@ -3898,7 +4401,7 @@ inline void PermittedRangeProofs::set_range_proof_types(int index, ::tari::rpc:: // @@protoc_insertion_point(field_set:tari.rpc.PermittedRangeProofs.range_proof_types) } inline void PermittedRangeProofs::add_range_proof_types(::tari::rpc::RangeProofType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_range_proof_types()->Add(value); // @@protoc_insertion_point(field_add:tari.rpc.PermittedRangeProofs.range_proof_types) } @@ -3907,19 +4410,20 @@ inline const ::google::protobuf::RepeatedField& PermittedRangeProofs::range // @@protoc_insertion_point(field_list:tari.rpc.PermittedRangeProofs.range_proof_types) return _internal_range_proof_types(); } -inline ::google::protobuf::RepeatedField* PermittedRangeProofs::mutable_range_proof_types() +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL PermittedRangeProofs::mutable_range_proof_types() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.PermittedRangeProofs.range_proof_types) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_range_proof_types(); } inline const ::google::protobuf::RepeatedField& PermittedRangeProofs::_internal_range_proof_types() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.range_proof_types_; } -inline ::google::protobuf::RepeatedField* PermittedRangeProofs::_internal_mutable_range_proof_types() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +PermittedRangeProofs::_internal_mutable_range_proof_types() { + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.range_proof_types_; } @@ -3929,51 +4433,66 @@ inline ::google::protobuf::RepeatedField* PermittedRangeProofs::_internal_m // bytes proof_bytes = 1; inline void RangeProof::clear_proof_bytes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.proof_bytes_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& RangeProof::proof_bytes() const +inline const ::std::string& RangeProof::proof_bytes() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:tari.rpc.RangeProof.proof_bytes) return _internal_proof_bytes(); } template -inline PROTOBUF_ALWAYS_INLINE void RangeProof::set_proof_bytes(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +PROTOBUF_ALWAYS_INLINE void RangeProof::set_proof_bytes(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.proof_bytes_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:tari.rpc.RangeProof.proof_bytes) } -inline std::string* RangeProof::mutable_proof_bytes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_proof_bytes(); +inline ::std::string* PROTOBUF_NONNULL RangeProof::mutable_proof_bytes() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::std::string* _s = _internal_mutable_proof_bytes(); // @@protoc_insertion_point(field_mutable:tari.rpc.RangeProof.proof_bytes) return _s; } -inline const std::string& RangeProof::_internal_proof_bytes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline const ::std::string& RangeProof::_internal_proof_bytes() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.proof_bytes_.Get(); } -inline void RangeProof::_internal_set_proof_bytes(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RangeProof::_internal_set_proof_bytes(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.proof_bytes_.Set(value, GetArena()); } -inline std::string* RangeProof::_internal_mutable_proof_bytes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NONNULL RangeProof::_internal_mutable_proof_bytes() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.proof_bytes_.Mutable( GetArena()); } -inline std::string* RangeProof::release_proof_bytes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::std::string* PROTOBUF_NULLABLE RangeProof::release_proof_bytes() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.RangeProof.proof_bytes) - return _impl_.proof_bytes_.Release(); + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + return nullptr; + } + _impl_._has_bits_[0] &= ~0x00000001u; + auto* released = _impl_.proof_bytes_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.proof_bytes_.Set("", GetArena()); + } + return released; } -inline void RangeProof::set_allocated_proof_bytes(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void RangeProof::set_allocated_proof_bytes(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } _impl_.proof_bytes_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.proof_bytes_.IsDefault()) { - _impl_.proof_bytes_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.proof_bytes_.IsDefault()) { + _impl_.proof_bytes_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:tari.rpc.RangeProof.proof_bytes) } @@ -3985,8 +4504,9 @@ inline void RangeProof::set_allocated_proof_bytes(std::string* value) { // uint64 coinbase_min_maturity = 1; inline void ConsensusConstants::clear_coinbase_min_maturity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.coinbase_min_maturity_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000020u; } inline ::uint64_t ConsensusConstants::coinbase_min_maturity() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.coinbase_min_maturity) @@ -3994,21 +4514,23 @@ inline ::uint64_t ConsensusConstants::coinbase_min_maturity() const { } inline void ConsensusConstants::set_coinbase_min_maturity(::uint64_t value) { _internal_set_coinbase_min_maturity(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.coinbase_min_maturity) } inline ::uint64_t ConsensusConstants::_internal_coinbase_min_maturity() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.coinbase_min_maturity_; } inline void ConsensusConstants::_internal_set_coinbase_min_maturity(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.coinbase_min_maturity_ = value; } // uint32 blockchain_version = 2; inline void ConsensusConstants::clear_blockchain_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.blockchain_version_ = 0u; + _impl_._has_bits_[0] &= ~0x00100000u; } inline ::uint32_t ConsensusConstants::blockchain_version() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.blockchain_version) @@ -4016,21 +4538,23 @@ inline ::uint32_t ConsensusConstants::blockchain_version() const { } inline void ConsensusConstants::set_blockchain_version(::uint32_t value) { _internal_set_blockchain_version(value); + _impl_._has_bits_[0] |= 0x00100000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.blockchain_version) } inline ::uint32_t ConsensusConstants::_internal_blockchain_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.blockchain_version_; } inline void ConsensusConstants::_internal_set_blockchain_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.blockchain_version_ = value; } // uint64 future_time_limit = 3; inline void ConsensusConstants::clear_future_time_limit() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.future_time_limit_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000040u; } inline ::uint64_t ConsensusConstants::future_time_limit() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.future_time_limit) @@ -4038,21 +4562,23 @@ inline ::uint64_t ConsensusConstants::future_time_limit() const { } inline void ConsensusConstants::set_future_time_limit(::uint64_t value) { _internal_set_future_time_limit(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.future_time_limit) } inline ::uint64_t ConsensusConstants::_internal_future_time_limit() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.future_time_limit_; } inline void ConsensusConstants::_internal_set_future_time_limit(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.future_time_limit_ = value; } // uint64 difficulty_block_window = 5; inline void ConsensusConstants::clear_difficulty_block_window() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.difficulty_block_window_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000080u; } inline ::uint64_t ConsensusConstants::difficulty_block_window() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.difficulty_block_window) @@ -4060,21 +4586,23 @@ inline ::uint64_t ConsensusConstants::difficulty_block_window() const { } inline void ConsensusConstants::set_difficulty_block_window(::uint64_t value) { _internal_set_difficulty_block_window(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.difficulty_block_window) } inline ::uint64_t ConsensusConstants::_internal_difficulty_block_window() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.difficulty_block_window_; } inline void ConsensusConstants::_internal_set_difficulty_block_window(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.difficulty_block_window_ = value; } // uint64 max_block_transaction_weight = 7; inline void ConsensusConstants::clear_max_block_transaction_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_block_transaction_weight_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000100u; } inline ::uint64_t ConsensusConstants::max_block_transaction_weight() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.max_block_transaction_weight) @@ -4082,21 +4610,23 @@ inline ::uint64_t ConsensusConstants::max_block_transaction_weight() const { } inline void ConsensusConstants::set_max_block_transaction_weight(::uint64_t value) { _internal_set_max_block_transaction_weight(value); + _impl_._has_bits_[0] |= 0x00000100u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.max_block_transaction_weight) } inline ::uint64_t ConsensusConstants::_internal_max_block_transaction_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.max_block_transaction_weight_; } inline void ConsensusConstants::_internal_set_max_block_transaction_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_block_transaction_weight_ = value; } // uint64 pow_algo_count = 8; inline void ConsensusConstants::clear_pow_algo_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pow_algo_count_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000200u; } inline ::uint64_t ConsensusConstants::pow_algo_count() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.pow_algo_count) @@ -4104,21 +4634,23 @@ inline ::uint64_t ConsensusConstants::pow_algo_count() const { } inline void ConsensusConstants::set_pow_algo_count(::uint64_t value) { _internal_set_pow_algo_count(value); + _impl_._has_bits_[0] |= 0x00000200u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.pow_algo_count) } inline ::uint64_t ConsensusConstants::_internal_pow_algo_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pow_algo_count_; } inline void ConsensusConstants::_internal_set_pow_algo_count(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pow_algo_count_ = value; } // uint64 median_timestamp_count = 9; inline void ConsensusConstants::clear_median_timestamp_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.median_timestamp_count_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000400u; } inline ::uint64_t ConsensusConstants::median_timestamp_count() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.median_timestamp_count) @@ -4126,21 +4658,23 @@ inline ::uint64_t ConsensusConstants::median_timestamp_count() const { } inline void ConsensusConstants::set_median_timestamp_count(::uint64_t value) { _internal_set_median_timestamp_count(value); + _impl_._has_bits_[0] |= 0x00000400u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.median_timestamp_count) } inline ::uint64_t ConsensusConstants::_internal_median_timestamp_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.median_timestamp_count_; } inline void ConsensusConstants::_internal_set_median_timestamp_count(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.median_timestamp_count_ = value; } // uint64 emission_initial = 10; inline void ConsensusConstants::clear_emission_initial() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.emission_initial_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00000800u; } inline ::uint64_t ConsensusConstants::emission_initial() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.emission_initial) @@ -4148,14 +4682,15 @@ inline ::uint64_t ConsensusConstants::emission_initial() const { } inline void ConsensusConstants::set_emission_initial(::uint64_t value) { _internal_set_emission_initial(value); + _impl_._has_bits_[0] |= 0x00000800u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.emission_initial) } inline ::uint64_t ConsensusConstants::_internal_emission_initial() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.emission_initial_; } inline void ConsensusConstants::_internal_set_emission_initial(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.emission_initial_ = value; } @@ -4167,7 +4702,7 @@ inline int ConsensusConstants::emission_decay_size() const { return _internal_emission_decay_size(); } inline void ConsensusConstants::clear_emission_decay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.emission_decay_.Clear(); } inline ::uint64_t ConsensusConstants::emission_decay(int index) const { @@ -4179,7 +4714,7 @@ inline void ConsensusConstants::set_emission_decay(int index, ::uint64_t value) // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.emission_decay) } inline void ConsensusConstants::add_emission_decay(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_emission_decay()->Add(value); // @@protoc_insertion_point(field_add:tari.rpc.ConsensusConstants.emission_decay) } @@ -4188,26 +4723,28 @@ inline const ::google::protobuf::RepeatedField<::uint64_t>& ConsensusConstants:: // @@protoc_insertion_point(field_list:tari.rpc.ConsensusConstants.emission_decay) return _internal_emission_decay(); } -inline ::google::protobuf::RepeatedField<::uint64_t>* ConsensusConstants::mutable_emission_decay() +inline ::google::protobuf::RepeatedField<::uint64_t>* PROTOBUF_NONNULL ConsensusConstants::mutable_emission_decay() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.ConsensusConstants.emission_decay) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_emission_decay(); } inline const ::google::protobuf::RepeatedField<::uint64_t>& ConsensusConstants::_internal_emission_decay() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.emission_decay_; } -inline ::google::protobuf::RepeatedField<::uint64_t>* ConsensusConstants::_internal_mutable_emission_decay() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline ::google::protobuf::RepeatedField<::uint64_t>* PROTOBUF_NONNULL +ConsensusConstants::_internal_mutable_emission_decay() { + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.emission_decay_; } // uint64 emission_tail = 12 [deprecated = true]; inline void ConsensusConstants::clear_emission_tail() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.emission_tail_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00001000u; } inline ::uint64_t ConsensusConstants::emission_tail() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.emission_tail) @@ -4215,21 +4752,23 @@ inline ::uint64_t ConsensusConstants::emission_tail() const { } inline void ConsensusConstants::set_emission_tail(::uint64_t value) { _internal_set_emission_tail(value); + _impl_._has_bits_[0] |= 0x00001000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.emission_tail) } inline ::uint64_t ConsensusConstants::_internal_emission_tail() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.emission_tail_; } inline void ConsensusConstants::_internal_set_emission_tail(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.emission_tail_ = value; } // uint64 min_sha3x_pow_difficulty = 13; inline void ConsensusConstants::clear_min_sha3x_pow_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_sha3x_pow_difficulty_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00002000u; } inline ::uint64_t ConsensusConstants::min_sha3x_pow_difficulty() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.min_sha3x_pow_difficulty) @@ -4237,21 +4776,23 @@ inline ::uint64_t ConsensusConstants::min_sha3x_pow_difficulty() const { } inline void ConsensusConstants::set_min_sha3x_pow_difficulty(::uint64_t value) { _internal_set_min_sha3x_pow_difficulty(value); + _impl_._has_bits_[0] |= 0x00002000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.min_sha3x_pow_difficulty) } inline ::uint64_t ConsensusConstants::_internal_min_sha3x_pow_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.min_sha3x_pow_difficulty_; } inline void ConsensusConstants::_internal_set_min_sha3x_pow_difficulty(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_sha3x_pow_difficulty_ = value; } // uint64 block_weight_inputs = 14; inline void ConsensusConstants::clear_block_weight_inputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_weight_inputs_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00004000u; } inline ::uint64_t ConsensusConstants::block_weight_inputs() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.block_weight_inputs) @@ -4259,21 +4800,23 @@ inline ::uint64_t ConsensusConstants::block_weight_inputs() const { } inline void ConsensusConstants::set_block_weight_inputs(::uint64_t value) { _internal_set_block_weight_inputs(value); + _impl_._has_bits_[0] |= 0x00004000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.block_weight_inputs) } inline ::uint64_t ConsensusConstants::_internal_block_weight_inputs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.block_weight_inputs_; } inline void ConsensusConstants::_internal_set_block_weight_inputs(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_weight_inputs_ = value; } // uint64 block_weight_outputs = 15; inline void ConsensusConstants::clear_block_weight_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_weight_outputs_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00008000u; } inline ::uint64_t ConsensusConstants::block_weight_outputs() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.block_weight_outputs) @@ -4281,21 +4824,23 @@ inline ::uint64_t ConsensusConstants::block_weight_outputs() const { } inline void ConsensusConstants::set_block_weight_outputs(::uint64_t value) { _internal_set_block_weight_outputs(value); + _impl_._has_bits_[0] |= 0x00008000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.block_weight_outputs) } inline ::uint64_t ConsensusConstants::_internal_block_weight_outputs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.block_weight_outputs_; } inline void ConsensusConstants::_internal_set_block_weight_outputs(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_weight_outputs_ = value; } // uint64 block_weight_kernels = 16; inline void ConsensusConstants::clear_block_weight_kernels() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_weight_kernels_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00010000u; } inline ::uint64_t ConsensusConstants::block_weight_kernels() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.block_weight_kernels) @@ -4303,21 +4848,23 @@ inline ::uint64_t ConsensusConstants::block_weight_kernels() const { } inline void ConsensusConstants::set_block_weight_kernels(::uint64_t value) { _internal_set_block_weight_kernels(value); + _impl_._has_bits_[0] |= 0x00010000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.block_weight_kernels) } inline ::uint64_t ConsensusConstants::_internal_block_weight_kernels() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.block_weight_kernels_; } inline void ConsensusConstants::_internal_set_block_weight_kernels(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.block_weight_kernels_ = value; } // uint64 pre_mine_value = 17; inline void ConsensusConstants::clear_pre_mine_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pre_mine_value_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00020000u; } inline ::uint64_t ConsensusConstants::pre_mine_value() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.pre_mine_value) @@ -4325,21 +4872,23 @@ inline ::uint64_t ConsensusConstants::pre_mine_value() const { } inline void ConsensusConstants::set_pre_mine_value(::uint64_t value) { _internal_set_pre_mine_value(value); + _impl_._has_bits_[0] |= 0x00020000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.pre_mine_value) } inline ::uint64_t ConsensusConstants::_internal_pre_mine_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pre_mine_value_; } inline void ConsensusConstants::_internal_set_pre_mine_value(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pre_mine_value_ = value; } // uint64 max_script_byte_size = 18; inline void ConsensusConstants::clear_max_script_byte_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_script_byte_size_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00040000u; } inline ::uint64_t ConsensusConstants::max_script_byte_size() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.max_script_byte_size) @@ -4347,43 +4896,23 @@ inline ::uint64_t ConsensusConstants::max_script_byte_size() const { } inline void ConsensusConstants::set_max_script_byte_size(::uint64_t value) { _internal_set_max_script_byte_size(value); + _impl_._has_bits_[0] |= 0x00040000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.max_script_byte_size) } inline ::uint64_t ConsensusConstants::_internal_max_script_byte_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.max_script_byte_size_; } inline void ConsensusConstants::_internal_set_max_script_byte_size(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_script_byte_size_ = value; } -// uint64 validator_node_validity_period = 19; -inline void ConsensusConstants::clear_validator_node_validity_period() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_validity_period_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::validator_node_validity_period() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.validator_node_validity_period) - return _internal_validator_node_validity_period(); -} -inline void ConsensusConstants::set_validator_node_validity_period(::uint64_t value) { - _internal_set_validator_node_validity_period(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.validator_node_validity_period) -} -inline ::uint64_t ConsensusConstants::_internal_validator_node_validity_period() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.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; -} - // uint64 effective_from_height = 20; inline void ConsensusConstants::clear_effective_from_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.effective_from_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00080000u; } inline ::uint64_t ConsensusConstants::effective_from_height() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.effective_from_height) @@ -4391,14 +4920,15 @@ inline ::uint64_t ConsensusConstants::effective_from_height() const { } inline void ConsensusConstants::set_effective_from_height(::uint64_t value) { _internal_set_effective_from_height(value); + _impl_._has_bits_[0] |= 0x00080000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.effective_from_height) } inline ::uint64_t ConsensusConstants::_internal_effective_from_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.effective_from_height_; } inline void ConsensusConstants::_internal_set_effective_from_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.effective_from_height_ = value; } @@ -4409,12 +4939,12 @@ inline bool ConsensusConstants::has_valid_blockchain_version_range() const { return value; } inline void ConsensusConstants::clear_valid_blockchain_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.valid_blockchain_version_range_ != nullptr) _impl_.valid_blockchain_version_range_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::tari::rpc::Range& ConsensusConstants::_internal_valid_blockchain_version_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Range* p = _impl_.valid_blockchain_version_range_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Range_default_instance_); } @@ -4422,8 +4952,9 @@ inline const ::tari::rpc::Range& ConsensusConstants::valid_blockchain_version_ra // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.valid_blockchain_version_range) return _internal_valid_blockchain_version_range(); } -inline void ConsensusConstants::unsafe_arena_set_allocated_valid_blockchain_version_range(::tari::rpc::Range* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ConsensusConstants::unsafe_arena_set_allocated_valid_blockchain_version_range( + ::tari::rpc::Range* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.valid_blockchain_version_range_); } @@ -4435,27 +4966,27 @@ inline void ConsensusConstants::unsafe_arena_set_allocated_valid_blockchain_vers } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ConsensusConstants.valid_blockchain_version_range) } -inline ::tari::rpc::Range* ConsensusConstants::release_valid_blockchain_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NULLABLE ConsensusConstants::release_valid_blockchain_version_range() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::tari::rpc::Range* released = _impl_.valid_blockchain_version_range_; _impl_.valid_blockchain_version_range_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Range* ConsensusConstants::unsafe_arena_release_valid_blockchain_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NULLABLE ConsensusConstants::unsafe_arena_release_valid_blockchain_version_range() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ConsensusConstants.valid_blockchain_version_range) _impl_._has_bits_[0] &= ~0x00000001u; @@ -4463,29 +4994,30 @@ inline ::tari::rpc::Range* ConsensusConstants::unsafe_arena_release_valid_blockc _impl_.valid_blockchain_version_range_ = nullptr; return temp; } -inline ::tari::rpc::Range* ConsensusConstants::_internal_mutable_valid_blockchain_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NONNULL ConsensusConstants::_internal_mutable_valid_blockchain_version_range() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.valid_blockchain_version_range_ == nullptr) { 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 { +inline ::tari::rpc::Range* PROTOBUF_NONNULL 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; } -inline void ConsensusConstants::set_allocated_valid_blockchain_version_range(::tari::rpc::Range* value) { +inline void ConsensusConstants::set_allocated_valid_blockchain_version_range(::tari::rpc::Range* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.valid_blockchain_version_range_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.valid_blockchain_version_range_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -4500,8 +5032,9 @@ inline void ConsensusConstants::set_allocated_valid_blockchain_version_range(::t // uint64 max_randomx_seed_height = 22; inline void ConsensusConstants::clear_max_randomx_seed_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_randomx_seed_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00400000u; } inline ::uint64_t ConsensusConstants::max_randomx_seed_height() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.max_randomx_seed_height) @@ -4509,14 +5042,15 @@ inline ::uint64_t ConsensusConstants::max_randomx_seed_height() const { } inline void ConsensusConstants::set_max_randomx_seed_height(::uint64_t value) { _internal_set_max_randomx_seed_height(value); + _impl_._has_bits_[0] |= 0x00400000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.max_randomx_seed_height) } inline ::uint64_t ConsensusConstants::_internal_max_randomx_seed_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.max_randomx_seed_height_; } inline void ConsensusConstants::_internal_set_max_randomx_seed_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_randomx_seed_height_ = value; } @@ -4528,22 +5062,23 @@ inline int ConsensusConstants::proof_of_work_size() const { return _internal_proof_of_work_size(); } inline void ConsensusConstants::clear_proof_of_work() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.proof_of_work_.Clear(); } inline const ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>& ConsensusConstants::_internal_proof_of_work() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.proof_of_work_.GetMap(); } inline const ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>& ConsensusConstants::proof_of_work() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:tari.rpc.ConsensusConstants.proof_of_work) return _internal_proof_of_work(); } -inline ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>* ConsensusConstants::_internal_mutable_proof_of_work() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>* PROTOBUF_NONNULL ConsensusConstants::_internal_mutable_proof_of_work() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.proof_of_work_.MutableMap(); } -inline ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>* ConsensusConstants::mutable_proof_of_work() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>* PROTOBUF_NONNULL ConsensusConstants::mutable_proof_of_work() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:tari.rpc.ConsensusConstants.proof_of_work) return _internal_mutable_proof_of_work(); } @@ -4555,12 +5090,12 @@ inline bool ConsensusConstants::has_transaction_weight() const { return value; } inline void ConsensusConstants::clear_transaction_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.transaction_weight_ != nullptr) _impl_.transaction_weight_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::tari::rpc::WeightParams& ConsensusConstants::_internal_transaction_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::WeightParams* p = _impl_.transaction_weight_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_WeightParams_default_instance_); } @@ -4568,8 +5103,9 @@ inline const ::tari::rpc::WeightParams& ConsensusConstants::transaction_weight() // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.transaction_weight) return _internal_transaction_weight(); } -inline void ConsensusConstants::unsafe_arena_set_allocated_transaction_weight(::tari::rpc::WeightParams* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ConsensusConstants::unsafe_arena_set_allocated_transaction_weight( + ::tari::rpc::WeightParams* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.transaction_weight_); } @@ -4581,27 +5117,27 @@ inline void ConsensusConstants::unsafe_arena_set_allocated_transaction_weight(:: } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ConsensusConstants.transaction_weight) } -inline ::tari::rpc::WeightParams* ConsensusConstants::release_transaction_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::WeightParams* PROTOBUF_NULLABLE ConsensusConstants::release_transaction_weight() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000002u; ::tari::rpc::WeightParams* released = _impl_.transaction_weight_; _impl_.transaction_weight_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::WeightParams* ConsensusConstants::unsafe_arena_release_transaction_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::WeightParams* PROTOBUF_NULLABLE ConsensusConstants::unsafe_arena_release_transaction_weight() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ConsensusConstants.transaction_weight) _impl_._has_bits_[0] &= ~0x00000002u; @@ -4609,29 +5145,30 @@ inline ::tari::rpc::WeightParams* ConsensusConstants::unsafe_arena_release_trans _impl_.transaction_weight_ = nullptr; return temp; } -inline ::tari::rpc::WeightParams* ConsensusConstants::_internal_mutable_transaction_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::WeightParams* PROTOBUF_NONNULL ConsensusConstants::_internal_mutable_transaction_weight() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.transaction_weight_ == nullptr) { 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 { +inline ::tari::rpc::WeightParams* PROTOBUF_NONNULL 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; } -inline void ConsensusConstants::set_allocated_transaction_weight(::tari::rpc::WeightParams* value) { +inline void ConsensusConstants::set_allocated_transaction_weight(::tari::rpc::WeightParams* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.transaction_weight_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.transaction_weight_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -4651,12 +5188,12 @@ inline bool ConsensusConstants::has_input_version_range() const { return value; } inline void ConsensusConstants::clear_input_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.input_version_range_ != nullptr) _impl_.input_version_range_->Clear(); _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::tari::rpc::Range& ConsensusConstants::_internal_input_version_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Range* p = _impl_.input_version_range_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Range_default_instance_); } @@ -4664,8 +5201,9 @@ inline const ::tari::rpc::Range& ConsensusConstants::input_version_range() const // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.input_version_range) return _internal_input_version_range(); } -inline void ConsensusConstants::unsafe_arena_set_allocated_input_version_range(::tari::rpc::Range* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ConsensusConstants::unsafe_arena_set_allocated_input_version_range( + ::tari::rpc::Range* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.input_version_range_); } @@ -4677,27 +5215,27 @@ inline void ConsensusConstants::unsafe_arena_set_allocated_input_version_range(: } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ConsensusConstants.input_version_range) } -inline ::tari::rpc::Range* ConsensusConstants::release_input_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NULLABLE ConsensusConstants::release_input_version_range() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000004u; ::tari::rpc::Range* released = _impl_.input_version_range_; _impl_.input_version_range_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Range* ConsensusConstants::unsafe_arena_release_input_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NULLABLE ConsensusConstants::unsafe_arena_release_input_version_range() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ConsensusConstants.input_version_range) _impl_._has_bits_[0] &= ~0x00000004u; @@ -4705,29 +5243,30 @@ inline ::tari::rpc::Range* ConsensusConstants::unsafe_arena_release_input_versio _impl_.input_version_range_ = nullptr; return temp; } -inline ::tari::rpc::Range* ConsensusConstants::_internal_mutable_input_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NONNULL ConsensusConstants::_internal_mutable_input_version_range() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.input_version_range_ == nullptr) { 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 { +inline ::tari::rpc::Range* PROTOBUF_NONNULL 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; } -inline void ConsensusConstants::set_allocated_input_version_range(::tari::rpc::Range* value) { +inline void ConsensusConstants::set_allocated_input_version_range(::tari::rpc::Range* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.input_version_range_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.input_version_range_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -4747,12 +5286,12 @@ inline bool ConsensusConstants::has_output_version_range() const { return value; } inline void ConsensusConstants::clear_output_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.output_version_range_ != nullptr) _impl_.output_version_range_->Clear(); _impl_._has_bits_[0] &= ~0x00000008u; } inline const ::tari::rpc::OutputsVersion& ConsensusConstants::_internal_output_version_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::OutputsVersion* p = _impl_.output_version_range_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputsVersion_default_instance_); } @@ -4760,8 +5299,9 @@ inline const ::tari::rpc::OutputsVersion& ConsensusConstants::output_version_ran // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.output_version_range) return _internal_output_version_range(); } -inline void ConsensusConstants::unsafe_arena_set_allocated_output_version_range(::tari::rpc::OutputsVersion* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ConsensusConstants::unsafe_arena_set_allocated_output_version_range( + ::tari::rpc::OutputsVersion* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.output_version_range_); } @@ -4773,27 +5313,27 @@ inline void ConsensusConstants::unsafe_arena_set_allocated_output_version_range( } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ConsensusConstants.output_version_range) } -inline ::tari::rpc::OutputsVersion* ConsensusConstants::release_output_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputsVersion* PROTOBUF_NULLABLE ConsensusConstants::release_output_version_range() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000008u; ::tari::rpc::OutputsVersion* released = _impl_.output_version_range_; _impl_.output_version_range_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::OutputsVersion* ConsensusConstants::unsafe_arena_release_output_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputsVersion* PROTOBUF_NULLABLE ConsensusConstants::unsafe_arena_release_output_version_range() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ConsensusConstants.output_version_range) _impl_._has_bits_[0] &= ~0x00000008u; @@ -4801,29 +5341,30 @@ inline ::tari::rpc::OutputsVersion* ConsensusConstants::unsafe_arena_release_out _impl_.output_version_range_ = nullptr; return temp; } -inline ::tari::rpc::OutputsVersion* ConsensusConstants::_internal_mutable_output_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::OutputsVersion* PROTOBUF_NONNULL ConsensusConstants::_internal_mutable_output_version_range() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.output_version_range_ == nullptr) { 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 { +inline ::tari::rpc::OutputsVersion* PROTOBUF_NONNULL 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; } -inline void ConsensusConstants::set_allocated_output_version_range(::tari::rpc::OutputsVersion* value) { +inline void ConsensusConstants::set_allocated_output_version_range(::tari::rpc::OutputsVersion* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.output_version_range_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.output_version_range_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -4843,12 +5384,12 @@ inline bool ConsensusConstants::has_kernel_version_range() const { return value; } inline void ConsensusConstants::clear_kernel_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.kernel_version_range_ != nullptr) _impl_.kernel_version_range_->Clear(); _impl_._has_bits_[0] &= ~0x00000010u; } inline const ::tari::rpc::Range& ConsensusConstants::_internal_kernel_version_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::tari::rpc::Range* p = _impl_.kernel_version_range_; return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Range_default_instance_); } @@ -4856,8 +5397,9 @@ inline const ::tari::rpc::Range& ConsensusConstants::kernel_version_range() cons // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.kernel_version_range) return _internal_kernel_version_range(); } -inline void ConsensusConstants::unsafe_arena_set_allocated_kernel_version_range(::tari::rpc::Range* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline void ConsensusConstants::unsafe_arena_set_allocated_kernel_version_range( + ::tari::rpc::Range* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.kernel_version_range_); } @@ -4869,27 +5411,27 @@ inline void ConsensusConstants::unsafe_arena_set_allocated_kernel_version_range( } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ConsensusConstants.kernel_version_range) } -inline ::tari::rpc::Range* ConsensusConstants::release_kernel_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NULLABLE ConsensusConstants::release_kernel_version_range() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000010u; ::tari::rpc::Range* released = _impl_.kernel_version_range_; _impl_.kernel_version_range_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tari::rpc::Range* ConsensusConstants::unsafe_arena_release_kernel_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NULLABLE ConsensusConstants::unsafe_arena_release_kernel_version_range() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:tari.rpc.ConsensusConstants.kernel_version_range) _impl_._has_bits_[0] &= ~0x00000010u; @@ -4897,29 +5439,30 @@ inline ::tari::rpc::Range* ConsensusConstants::unsafe_arena_release_kernel_versi _impl_.kernel_version_range_ = nullptr; return temp; } -inline ::tari::rpc::Range* ConsensusConstants::_internal_mutable_kernel_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::Range* PROTOBUF_NONNULL ConsensusConstants::_internal_mutable_kernel_version_range() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.kernel_version_range_ == nullptr) { 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 { +inline ::tari::rpc::Range* PROTOBUF_NONNULL 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; } -inline void ConsensusConstants::set_allocated_kernel_version_range(::tari::rpc::Range* value) { +inline void ConsensusConstants::set_allocated_kernel_version_range(::tari::rpc::Range* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.kernel_version_range_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.kernel_version_range_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -4940,7 +5483,7 @@ inline int ConsensusConstants::permitted_output_types_size() const { return _internal_permitted_output_types_size(); } inline void ConsensusConstants::clear_permitted_output_types() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.permitted_output_types_.Clear(); } inline ::tari::rpc::OutputType ConsensusConstants::permitted_output_types(int index) const { @@ -4952,7 +5495,7 @@ inline void ConsensusConstants::set_permitted_output_types(int index, ::tari::rp // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.permitted_output_types) } inline void ConsensusConstants::add_permitted_output_types(::tari::rpc::OutputType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_permitted_output_types()->Add(value); // @@protoc_insertion_point(field_add:tari.rpc.ConsensusConstants.permitted_output_types) } @@ -4961,26 +5504,28 @@ inline const ::google::protobuf::RepeatedField& ConsensusConstants::permitt // @@protoc_insertion_point(field_list:tari.rpc.ConsensusConstants.permitted_output_types) return _internal_permitted_output_types(); } -inline ::google::protobuf::RepeatedField* ConsensusConstants::mutable_permitted_output_types() +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL ConsensusConstants::mutable_permitted_output_types() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.ConsensusConstants.permitted_output_types) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_permitted_output_types(); } inline const ::google::protobuf::RepeatedField& ConsensusConstants::_internal_permitted_output_types() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.permitted_output_types_; } -inline ::google::protobuf::RepeatedField* ConsensusConstants::_internal_mutable_permitted_output_types() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +ConsensusConstants::_internal_mutable_permitted_output_types() { + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.permitted_output_types_; } // uint64 epoch_length = 30; inline void ConsensusConstants::clear_epoch_length() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.epoch_length_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x00800000u; } inline ::uint64_t ConsensusConstants::epoch_length() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.epoch_length) @@ -4988,21 +5533,23 @@ inline ::uint64_t ConsensusConstants::epoch_length() const { } inline void ConsensusConstants::set_epoch_length(::uint64_t value) { _internal_set_epoch_length(value); + _impl_._has_bits_[0] |= 0x00800000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.epoch_length) } inline ::uint64_t ConsensusConstants::_internal_epoch_length() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.epoch_length_; } inline void ConsensusConstants::_internal_set_epoch_length(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.epoch_length_ = value; } // uint64 validator_node_registration_min_deposit_amount = 31; inline void ConsensusConstants::clear_validator_node_registration_min_deposit_amount() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.validator_node_registration_min_deposit_amount_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x01000000u; } inline ::uint64_t ConsensusConstants::validator_node_registration_min_deposit_amount() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.validator_node_registration_min_deposit_amount) @@ -5010,21 +5557,23 @@ inline ::uint64_t ConsensusConstants::validator_node_registration_min_deposit_am } inline void ConsensusConstants::set_validator_node_registration_min_deposit_amount(::uint64_t value) { _internal_set_validator_node_registration_min_deposit_amount(value); + _impl_._has_bits_[0] |= 0x01000000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.validator_node_registration_min_deposit_amount) } inline ::uint64_t ConsensusConstants::_internal_validator_node_registration_min_deposit_amount() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.validator_node_registration_min_deposit_amount_; } inline void ConsensusConstants::_internal_set_validator_node_registration_min_deposit_amount(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.validator_node_registration_min_deposit_amount_ = value; } // uint64 validator_node_registration_min_lock_height = 32; inline void ConsensusConstants::clear_validator_node_registration_min_lock_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.validator_node_registration_min_lock_height_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x02000000u; } inline ::uint64_t ConsensusConstants::validator_node_registration_min_lock_height() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.validator_node_registration_min_lock_height) @@ -5032,21 +5581,23 @@ inline ::uint64_t ConsensusConstants::validator_node_registration_min_lock_heigh } inline void ConsensusConstants::set_validator_node_registration_min_lock_height(::uint64_t value) { _internal_set_validator_node_registration_min_lock_height(value); + _impl_._has_bits_[0] |= 0x02000000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.validator_node_registration_min_lock_height) } inline ::uint64_t ConsensusConstants::_internal_validator_node_registration_min_lock_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.validator_node_registration_min_lock_height_; } inline void ConsensusConstants::_internal_set_validator_node_registration_min_lock_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.validator_node_registration_min_lock_height_ = value; } // uint64 validator_node_registration_shuffle_interval_epoch = 33; inline void ConsensusConstants::clear_validator_node_registration_shuffle_interval_epoch() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.validator_node_registration_shuffle_interval_epoch_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x04000000u; } inline ::uint64_t ConsensusConstants::validator_node_registration_shuffle_interval_epoch() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.validator_node_registration_shuffle_interval_epoch) @@ -5054,14 +5605,15 @@ inline ::uint64_t ConsensusConstants::validator_node_registration_shuffle_interv } inline void ConsensusConstants::set_validator_node_registration_shuffle_interval_epoch(::uint64_t value) { _internal_set_validator_node_registration_shuffle_interval_epoch(value); + _impl_._has_bits_[0] |= 0x04000000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.validator_node_registration_shuffle_interval_epoch) } inline ::uint64_t ConsensusConstants::_internal_validator_node_registration_shuffle_interval_epoch() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.validator_node_registration_shuffle_interval_epoch_; } inline void ConsensusConstants::_internal_set_validator_node_registration_shuffle_interval_epoch(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.validator_node_registration_shuffle_interval_epoch_ = value; } @@ -5073,18 +5625,18 @@ inline int ConsensusConstants::permitted_range_proof_types_size() const { return _internal_permitted_range_proof_types_size(); } inline void ConsensusConstants::clear_permitted_range_proof_types() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.permitted_range_proof_types_.Clear(); } -inline ::tari::rpc::PermittedRangeProofs* ConsensusConstants::mutable_permitted_range_proof_types(int index) +inline ::tari::rpc::PermittedRangeProofs* PROTOBUF_NONNULL ConsensusConstants::mutable_permitted_range_proof_types(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:tari.rpc.ConsensusConstants.permitted_range_proof_types) return _internal_mutable_permitted_range_proof_types()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>* ConsensusConstants::mutable_permitted_range_proof_types() +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>* PROTOBUF_NONNULL ConsensusConstants::mutable_permitted_range_proof_types() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:tari.rpc.ConsensusConstants.permitted_range_proof_types) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_permitted_range_proof_types(); } inline const ::tari::rpc::PermittedRangeProofs& ConsensusConstants::permitted_range_proof_types(int index) const @@ -5092,8 +5644,9 @@ inline const ::tari::rpc::PermittedRangeProofs& ConsensusConstants::permitted_ra // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.permitted_range_proof_types) return _internal_permitted_range_proof_types().Get(index); } -inline ::tari::rpc::PermittedRangeProofs* ConsensusConstants::add_permitted_range_proof_types() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); +inline ::tari::rpc::PermittedRangeProofs* PROTOBUF_NONNULL ConsensusConstants::add_permitted_range_proof_types() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); ::tari::rpc::PermittedRangeProofs* _add = _internal_mutable_permitted_range_proof_types()->Add(); // @@protoc_insertion_point(field_add:tari.rpc.ConsensusConstants.permitted_range_proof_types) return _add; @@ -5105,19 +5658,20 @@ inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangePro } inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>& ConsensusConstants::_internal_permitted_range_proof_types() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.permitted_range_proof_types_; } -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>* +inline ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>* PROTOBUF_NONNULL ConsensusConstants::_internal_mutable_permitted_range_proof_types() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.permitted_range_proof_types_; } // uint64 inflation_bips = 35; inline void ConsensusConstants::clear_inflation_bips() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.inflation_bips_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x08000000u; } inline ::uint64_t ConsensusConstants::inflation_bips() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.inflation_bips) @@ -5125,21 +5679,23 @@ inline ::uint64_t ConsensusConstants::inflation_bips() const { } inline void ConsensusConstants::set_inflation_bips(::uint64_t value) { _internal_set_inflation_bips(value); + _impl_._has_bits_[0] |= 0x08000000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.inflation_bips) } inline ::uint64_t ConsensusConstants::_internal_inflation_bips() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.inflation_bips_; } inline void ConsensusConstants::_internal_set_inflation_bips(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.inflation_bips_ = value; } // uint64 tail_epoch_length = 36; inline void ConsensusConstants::clear_tail_epoch_length() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tail_epoch_length_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x10000000u; } inline ::uint64_t ConsensusConstants::tail_epoch_length() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.tail_epoch_length) @@ -5147,21 +5703,23 @@ inline ::uint64_t ConsensusConstants::tail_epoch_length() const { } inline void ConsensusConstants::set_tail_epoch_length(::uint64_t value) { _internal_set_tail_epoch_length(value); + _impl_._has_bits_[0] |= 0x10000000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.tail_epoch_length) } inline ::uint64_t ConsensusConstants::_internal_tail_epoch_length() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.tail_epoch_length_; } inline void ConsensusConstants::_internal_set_tail_epoch_length(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tail_epoch_length_ = value; } // uint64 max_block_coinbase_count = 37; inline void ConsensusConstants::clear_max_block_coinbase_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_block_coinbase_count_ = ::uint64_t{0u}; + _impl_._has_bits_[0] &= ~0x20000000u; } inline ::uint64_t ConsensusConstants::max_block_coinbase_count() const { // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.max_block_coinbase_count) @@ -5169,17 +5727,66 @@ inline ::uint64_t ConsensusConstants::max_block_coinbase_count() const { } inline void ConsensusConstants::set_max_block_coinbase_count(::uint64_t value) { _internal_set_max_block_coinbase_count(value); + _impl_._has_bits_[0] |= 0x20000000u; // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.max_block_coinbase_count) } inline ::uint64_t ConsensusConstants::_internal_max_block_coinbase_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.max_block_coinbase_count_; } inline void ConsensusConstants::_internal_set_max_block_coinbase_count(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_block_coinbase_count_ = value; } +// uint32 vn_registration_max_vns_initial_epoch = 38; +inline void ConsensusConstants::clear_vn_registration_max_vns_initial_epoch() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.vn_registration_max_vns_initial_epoch_ = 0u; + _impl_._has_bits_[0] &= ~0x00200000u; +} +inline ::uint32_t ConsensusConstants::vn_registration_max_vns_initial_epoch() const { + // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.vn_registration_max_vns_initial_epoch) + return _internal_vn_registration_max_vns_initial_epoch(); +} +inline void ConsensusConstants::set_vn_registration_max_vns_initial_epoch(::uint32_t value) { + _internal_set_vn_registration_max_vns_initial_epoch(value); + _impl_._has_bits_[0] |= 0x00200000u; + // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.vn_registration_max_vns_initial_epoch) +} +inline ::uint32_t ConsensusConstants::_internal_vn_registration_max_vns_initial_epoch() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.vn_registration_max_vns_initial_epoch_; +} +inline void ConsensusConstants::_internal_set_vn_registration_max_vns_initial_epoch(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.vn_registration_max_vns_initial_epoch_ = value; +} + +// uint32 vn_registration_max_vns_per_epoch = 39; +inline void ConsensusConstants::clear_vn_registration_max_vns_per_epoch() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.vn_registration_max_vns_per_epoch_ = 0u; + _impl_._has_bits_[0] &= ~0x40000000u; +} +inline ::uint32_t ConsensusConstants::vn_registration_max_vns_per_epoch() const { + // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.vn_registration_max_vns_per_epoch) + return _internal_vn_registration_max_vns_per_epoch(); +} +inline void ConsensusConstants::set_vn_registration_max_vns_per_epoch(::uint32_t value) { + _internal_set_vn_registration_max_vns_per_epoch(value); + _impl_._has_bits_[0] |= 0x40000000u; + // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.vn_registration_max_vns_per_epoch) +} +inline ::uint32_t ConsensusConstants::_internal_vn_registration_max_vns_per_epoch() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.vn_registration_max_vns_per_epoch_; +} +inline void ConsensusConstants::_internal_set_vn_registration_max_vns_per_epoch(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.vn_registration_max_vns_per_epoch_ = value; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -5195,13 +5802,13 @@ namespace protobuf { template <> struct is_proto_enum<::tari::rpc::OutputType> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::OutputType>() { +inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::tari::rpc::OutputType>() { return ::tari::rpc::OutputType_descriptor(); } template <> struct is_proto_enum<::tari::rpc::RangeProofType> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::RangeProofType>() { +inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::tari::rpc::RangeProofType>() { return ::tari::rpc::RangeProofType_descriptor(); } @@ -5212,4 +5819,4 @@ inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::RangeProofType>() { #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_types_2eproto_2epb_2eh +#endif // types_2eproto_2epb_2eh diff --git a/external/src/Tari/proto/gRPC/types.proto b/external/src/Tari/proto/gRPC/types.proto index d25b5ad..6c89a89 100644 --- a/external/src/Tari/proto/gRPC/types.proto +++ b/external/src/Tari/proto/gRPC/types.proto @@ -126,7 +126,6 @@ message ConsensusConstants { uint64 block_weight_kernels = 16; uint64 pre_mine_value = 17; uint64 max_script_byte_size = 18; - uint64 validator_node_validity_period = 19; uint64 effective_from_height = 20; Range valid_blockchain_version_range = 21; uint64 max_randomx_seed_height = 22; @@ -144,4 +143,6 @@ message ConsensusConstants { uint64 inflation_bips = 35; uint64 tail_epoch_length = 36; uint64 max_block_coinbase_count = 37; + uint32 vn_registration_max_vns_initial_epoch = 38; + uint32 vn_registration_max_vns_per_epoch = 39; } diff --git a/external/src/grpc b/external/src/grpc index 58c4289..ab8e8d6 160000 --- a/external/src/grpc +++ b/external/src/grpc @@ -1 +1 @@ -Subproject commit 58c4289a671ad4dd9ff5164f58b30b495b68001a +Subproject commit ab8e8d62614ac5a961dc8bc30c3e1b34fc2cbc85